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.

Usage Notes<br />

<strong>VM</strong>AC<br />

gives the external security manager (ESM) the power to dynamically turn<br />

m<strong>and</strong>atory access control (MAC) on or off. If you specify MAC <strong>and</strong> <strong>VM</strong>AC for<br />

this comm<strong>and</strong>, you are enabling MAC <strong>and</strong> allowing the external security<br />

manager (ESM) to dynamically disable MAC. If you specify <strong>VM</strong>AC <strong>and</strong> you do<br />

not specify MAC for this comm<strong>and</strong>, you are disabling MAC <strong>and</strong> allowing the<br />

ESM to dynamically enable MAC.<br />

VPROT<br />

gives the external security manager (ESM) the power to dynamically turn<br />

comm<strong>and</strong> access protection on or off. If you specify PROT <strong>and</strong> VPROT for this<br />

comm<strong>and</strong>, you are enabling protection <strong>and</strong> allowing the external security<br />

manager (ESM) to dynamically disable that protection. If you specify VPROT<br />

<strong>and</strong> you do not specify PROT for this comm<strong>and</strong>, you are disabling protection<br />

<strong>and</strong> allowing the ESM to dynamically enable that protection.<br />

1. For each existing <strong>CP</strong> comm<strong>and</strong>, <strong>CP</strong> has at least 1 comm<strong>and</strong> table entry block.<br />

If the comm<strong>and</strong> has more than 1 privilege class, <strong>CP</strong> has 1 comm<strong>and</strong> table<br />

entry block for each version of the comm<strong>and</strong>. The only exceptions to this are<br />

the QUERY <strong>and</strong> SET comm<strong>and</strong>s. <strong>CP</strong> has at least 1 comm<strong>and</strong> table entry<br />

block for each QUERY <strong>and</strong> SET subcomm<strong>and</strong>.<br />

2. When you define a new <strong>CP</strong> comm<strong>and</strong> or a new version of an existing <strong>CP</strong><br />

comm<strong>and</strong>, you must supply <strong>CP</strong> with certain information about that comm<strong>and</strong>.<br />

The amount of information you must supply varies depending on what you are<br />

defining. You must always supply the comm<strong>and</strong> (or subcomm<strong>and</strong>) information<br />

<strong>and</strong> the following table lists any other oper<strong>and</strong>s you are required to supply<br />

when defining a new comm<strong>and</strong> or a new comm<strong>and</strong> version.<br />

When Adding a New: You Must Specify:<br />

Comm<strong>and</strong> EPNAME EPNAME<br />

PRIVCLASSANY - or - PRIVCLASSES<br />

<strong>IBM</strong>CLASS<br />

Comm<strong>and</strong> Version PRIVCLASSANY - or - PRIVCLASSES<br />

<strong>IBM</strong>CLASS<br />

DEFINE COMMAND / CMD<br />

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

4. If you do not specify the ENABLE oper<strong>and</strong>, the new <strong>CP</strong> comm<strong>and</strong> is initially in<br />

a disabled state. This means that the comm<strong>and</strong> <strong>and</strong> any alias that is defined<br />

for this comm<strong>and</strong> will not function. To activate a <strong>CP</strong> comm<strong>and</strong> after defining it,<br />

use the ENABLE COMMAND or CMD comm<strong>and</strong> (page 426). This means that<br />

the comm<strong>and</strong> you defined will now function, as will any alias you have defined<br />

<strong>and</strong> explicitly enabled for that comm<strong>and</strong>.<br />

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

6. To change the definition of an existing <strong>CP</strong> comm<strong>and</strong>, use the MODIFY<br />

COMMAND or CMD comm<strong>and</strong> (page 599).<br />

7. To deactivate a <strong>CP</strong> comm<strong>and</strong> after defining it, use the DISABLE COMMAND<br />

or CMD comm<strong>and</strong> (page 263). If you disable a base comm<strong>and</strong>, any alias that<br />

is defined for that comm<strong>and</strong> will not function.<br />

8. To obtain information such as the enable/disable status for the comm<strong>and</strong> you<br />

have defined, use the QUERY <strong>CP</strong>CMDS comm<strong>and</strong> (page 728).<br />

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

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

Saved successfully!

Ooh no, something went wrong!