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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DEFINE COMMAND / CMD<br />

Responses<br />

9. 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 />

10. When specifying a comm<strong>and</strong> or subcomm<strong>and</strong> name, you can use special<br />

characters in the name. However, we do not recommend that you use the<br />

pattern matching characters (* <strong>and</strong> %). You can use these characters to define<br />

comm<strong>and</strong>s, but they may seem confusing when you issue the LOCATE<br />

CMDBK comm<strong>and</strong>. For example, suppose you define 2 new comm<strong>and</strong>s:<br />

<strong>CP</strong>U% — to calculate recent <strong>CP</strong>U busy as a percentage, <strong>and</strong> <strong>CP</strong>U1 — to<br />

cause some action on real processor number 1. If you issue LOCATE CMDBK<br />

<strong>CP</strong>U%, <strong>CP</strong> displays information on both <strong>CP</strong>U% <strong>and</strong> <strong>CP</strong>U1, because <strong>CP</strong><br />

interprets the % in your LOCATE comm<strong>and</strong> to be a pattern matching character.<br />

<strong>CP</strong> places no restriction on the use of special characters such as *, %,<br />

comma, (, ), blank, /, ;, $, #, <strong>and</strong> @ in comm<strong>and</strong> names. However, some<br />

External Security Managers (EMSs) restrict their use. Please consult your ESM<br />

documentation for information on restricted characters.<br />

11. If you try to define a minimum abbreviation that matches the abbreviation for<br />

an existing comm<strong>and</strong>, subcomm<strong>and</strong>, or alias, <strong>CP</strong> rejects your DEFINE<br />

comm<strong>and</strong>. For example, if you created a “QUEUE” comm<strong>and</strong> with a minimum<br />

abbreviation of 2, <strong>CP</strong> would reject your QUEUE comm<strong>and</strong> because “QU” is an<br />

abbreviation for the QUERY comm<strong>and</strong>. In this case, you would need to specify<br />

a minimum abbreviation greater than or equal to 4 because the first 3<br />

characters of QUERY <strong>and</strong> QUEUE are identical.<br />

12. Once defined, comm<strong>and</strong>s, subcomm<strong>and</strong>s, aliases, <strong>and</strong> Diagnose codes cannot<br />

be deleted. They may be altered in various appropriate ways, but they remain<br />

in existence until a SHUTDOWN or RESTART IPL is done.<br />

13. 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 />

14. The DEFINE COMMAND or DEFINE DIAGNOSE comm<strong>and</strong>s should not be<br />

used on a system with an active External Security Manager (ESM);<br />

unpredictable results could occur. To safely define a <strong>CP</strong> comm<strong>and</strong> add the<br />

DEFINE COMMAND or DEFINE DIAGNOSE statement to the SYSTEM<br />

CONFIG file <strong>and</strong> re-IPL the system. This allows the comm<strong>and</strong> <strong>and</strong> diagnose<br />

additions to control structures to be made prior to activating the ESM.<br />

15. 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 define a new comm<strong>and</strong>, TELL, with:<br />

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

v 3 versions:<br />

– Privilege class A, <strong>IBM</strong> class A, issued after logon<br />

– Privilege class B, <strong>IBM</strong> class B, issued after logon<br />

– Any privilege class, no <strong>IBM</strong> class, issued before <strong>and</strong> after logon,<br />

v No minimum abbreviation, <strong>and</strong><br />

v The same entry point <strong>and</strong> syntax as the <strong>CP</strong> MESSAGE comm<strong>and</strong>,<br />

enter the following:

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

Saved successfully!

Ooh no, something went wrong!