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.

DEFINE COMMAND / CMD<br />

AFTer_logon<br />

tells <strong>CP</strong> that the comm<strong>and</strong> version you are defining will only be issued by users<br />

after they log onto the system. Most <strong>CP</strong> comm<strong>and</strong>s fall into this category. The<br />

default is AFTER_LOGON.<br />

BEFore_logon<br />

tells <strong>CP</strong> that the comm<strong>and</strong> you are defining will only be issued by users before<br />

they log onto the system. For example, the <strong>CP</strong> DIAL comm<strong>and</strong> can only be<br />

used before logon.<br />

Note: If you specify BEFORE_LOGON, you must specify PRIVCLASSANY<br />

because <strong>CP</strong> cannot check privilege classes before a user logs on. Thus,<br />

you cannot specify BEFORE_LOGON with the PRIVCLASSES or<br />

<strong>IBM</strong>CLASS oper<strong>and</strong>s.<br />

ANYTime<br />

tells <strong>CP</strong> that the comm<strong>and</strong> version you are defining can be issued by users<br />

both before <strong>and</strong> after they log onto the system. For example, many systems let<br />

users issue the <strong>CP</strong> MESSAGE or MSG comm<strong>and</strong>s before <strong>and</strong> after logon.<br />

Note: If you specify ANYTIME, you must specify PRIVCLASSANY because <strong>CP</strong><br />

cannot check privilege classes before a user logs on. Thus, you cannot<br />

specify ANYTIME with the PRIVCLASSES or <strong>IBM</strong>CLASS oper<strong>and</strong>s.<br />

AUDIT<br />

tells the external security manager (ESM) to audit the comm<strong>and</strong> that you are<br />

defining. When you audit a comm<strong>and</strong>, the ESM logs each attempt by users to<br />

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

DISAble<br />

tells <strong>CP</strong> not to call the entry points <strong>and</strong> external symbols associated with this<br />

<strong>CP</strong> comm<strong>and</strong> until you enable it. (For more information about enabling <strong>CP</strong><br />

comm<strong>and</strong>s, see Usage Note 4.) If omitted, DISABLE is the default.<br />

ENable<br />

tells <strong>CP</strong> to immediately start calling the entry points <strong>and</strong> external symbols<br />

associated with this <strong>CP</strong> comm<strong>and</strong>.<br />

EPName name<br />

tells <strong>CP</strong> the name of the entry point that contains the code to process the<br />

comm<strong>and</strong>. The variable name must be a 1- to 8-character string. The first<br />

character must be alphabetic or one of the following special characters: dollar<br />

sign ($), number sign (#), underscore (_), or at sign (@). The rest of the string<br />

can be alphanumeric characters, the 4 special characters ($, #, _, <strong>and</strong> @), or<br />

any combination thereof.<br />

Note: If you are defining a new comm<strong>and</strong>, you must specify EPNAME. If you<br />

are defining a new version of an existing comm<strong>and</strong>, specifying EPNAME<br />

is optional. This is because <strong>CP</strong> only allows one entry point per<br />

comm<strong>and</strong>, regardless of how many versions that comm<strong>and</strong> has. So,<br />

when you define a new version of an existing comm<strong>and</strong>, <strong>CP</strong> already<br />

knows the entry point name.<br />

The QUERY <strong>and</strong> SET comm<strong>and</strong>s are the only exceptions, because they have<br />

subcomm<strong>and</strong>s. Note that <strong>CP</strong> only allows one entry point per subcomm<strong>and</strong>,<br />

regardless of how many versions that subcomm<strong>and</strong> has.<br />

MAC<br />

tells <strong>CP</strong> to enable m<strong>and</strong>atory access control (MAC) for the comm<strong>and</strong> that you<br />

are defining. When MAC is enabled for your comm<strong>and</strong>, the external security<br />

Chapter 2. <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> 135

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

Saved successfully!

Ooh no, something went wrong!