27.12.2012 Views

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MODIFY COMMAND / CMD<br />

Responses<br />

6. Once defined, an alias name cannot be used again. An alias cannot be<br />

modified or eliminated; it can only be disabled.<br />

7. To load the comm<strong>and</strong> processing code into <strong>CP</strong>’s system execution space, use<br />

the <strong>CP</strong>XLOAD comm<strong>and</strong> (page 101).<br />

8. To activate a <strong>CP</strong> comm<strong>and</strong>:<br />

v While defining it, use the ENABLE oper<strong>and</strong> of the DEFINE COMMAND or<br />

CMD comm<strong>and</strong> (page 134).<br />

v After defining it, use the ENABLE COMMAND or CMD comm<strong>and</strong> (page<br />

426).<br />

9. To display the real address of the <strong>CP</strong> comm<strong>and</strong> table entry block, the current<br />

<strong>IBM</strong> class, <strong>and</strong> the current privilege class for a specified <strong>CP</strong> comm<strong>and</strong>, use the<br />

LOCATE CMDBK comm<strong>and</strong> (page 528).<br />

10. To deactivate a <strong>CP</strong> comm<strong>and</strong>:<br />

v While defining it, use the DISABLE oper<strong>and</strong> of the DEFINE COMMAND or<br />

CMD comm<strong>and</strong> (page 134).<br />

v After defining it, use the DISABLE COMMAND or CMD comm<strong>and</strong> (page<br />

263).<br />

11. To remove the comm<strong>and</strong> processing code from <strong>CP</strong>’s system execution space,<br />

use the <strong>CP</strong>XUNLOAD comm<strong>and</strong> (page 107).<br />

12. MODIFY COMMAND RESET will not allow a RESET to occur if the resulting<br />

comm<strong>and</strong> versions would have different EPNAMEs. This can occur if you<br />

change the EPNAME for a comm<strong>and</strong> then add a new version for that<br />

comm<strong>and</strong>. To avoid this restriction, you should add new versions of a<br />

comm<strong>and</strong> before changing the EPNAMEs associated with the comm<strong>and</strong>.<br />

13. The SILENTly <strong>and</strong> NOTSILENTly option must be applied to all versions of a<br />

comm<strong>and</strong>.<br />

14. For more information about user-defined comm<strong>and</strong>s, see the z/<strong>VM</strong>: <strong>CP</strong> Exit<br />

Customization book.<br />

Response 1:<br />

To change the <strong>CP</strong> SHUTDOWN comm<strong>and</strong> from privilege class A to privilege class<br />

S, enter the following:<br />

modify comm<strong>and</strong> shutdown privclasses s<br />

Ready;<br />

Response 2:<br />

602 z/<strong>VM</strong>: <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Reference</strong><br />

To change the version of the <strong>CP</strong> SET PRIVCLASS comm<strong>and</strong> that allows users with<br />

any privilege class to issue the comm<strong>and</strong> to a version that allows only users with<br />

privilege class G <strong>and</strong> Z to issue the comm<strong>and</strong>, enter the following:<br />

locate cmdbk set subcmd privc<br />

Subcomm<strong>and</strong> CMDBK Alias <strong>IBM</strong>CLASS Privilege<br />

PRIVCLASS 12345678 * C C<br />

PRIVCLASS 76543218 * 0 <br />

Ready;<br />

modify cmd set subcmd privc ibmclass 0 privclasses gz<br />

Ready;<br />

locate cmdbk set subcmd privc<br />

Subcomm<strong>and</strong> CMDBK Alias <strong>IBM</strong>CLASS Privilege

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!