Step for managing users
Before you begin
About this task
- If you need more information about a CP command, use the Help
facility. From the command line, type this command and press the Enter
key:
where command_name is the CP command.help cp command_nameExample:help cp forceFor CP command information, you can also consult z/VM: CP Commands and Utilities Reference.
- For
help information for DirMaint commands,
use the DIRM HELP command. To display a menu of DirMaint HELP information, enter:
Place the cursor under a command or topic for which you want information and then press the Enter key.dirm helpTo display information about a specific DirMaint command, type the following command and press the Enter key:
where command_name is the DirMaint command.dirm help command_nameExample:
The DirMaint HELP facility recognizes the short form of a DirMaint operand, sodirm help adddirm help adordirm help aare also valid.To display information about the DIRMAINT command (DIRMAINT EXEC), type the following and press the Enter key:dirm help dirmaintYou can also display information about a message (DVH1093 in this example) by typing the following and pressing the Enter key:dirm help dvh1093For information about DirMaint commands, you can also consult z/VM: Directory Maintenance Facility Commands Reference.
Procedure
| If you want to … | Then use the following command … |
|---|---|
| Add a new directory entry. | DIRM ADD Issue this command from MAINT. Example: To add a new user with user ID LINUX1, perform the following steps:
You are done. Note: Another useful function of the DirMaint ADD command is the
ability to replicate (or clone) virtual machines from an existing
prototype. For more information about using templates for cloning
virtual machines, see Cloning Linux virtual servers.
|
| Retrieve a copy of a user or profile directory entry, introduce new control statements or modify existing ones, then replace the entry. | DIRM GET and DIRM REPLACE Issue this command from MAINT. Example: To add to the empty directory entry LINUX1 the OPTION QUICKDSP statement, perform the following steps:
You are done. |
| Delete a virtual machine (remove a directory entry from the source directory) | DIRM PURGE Issue this command from MAINT. Use the Clean option to format the minidisks within the directory entry while command processing. Example: To delete
the LINUX1 directory entry and format all the disks within its definition,
type the following and press the Enter key:
|
| Query, alter, or delete the current profile entry for a user. The profile entry consolidates other directory statements that are used in common by multiple directory entries. | DIRM INCLUDE Issue this command from MAINT. The INCLUDE statement specifies the name of a profile entry to be invoked as part of the directory entry. Example: To include the PROFILE
LINDFLT into the USER LINUX1, type the following and press the Enter
key:
|
| Prevent or allow a user from making any changes to his or her directory entry. | DIRM LOCK/UNLOCK Issue this command from MAINT. The UNLOCK operand is used to remove the lock against the directory entry. Example:
To lock the directory entry of the user LINUX1, type the following
and press the Enter key:
|
| Add a minidisk to a Linux® virtual server | DIRM AMDISK Issue this command from MAINT. Use the region/volume/group id from your EXTENT CONTROL file to point out which DASD extents to use while allocating a new minidisk. Use AUTOR/AUTOV/AUTOG parameters when allocating within a region/volume/group, respectively. Example: To create
a new minidisk for user LINUX1 within the DASD group GRPLNX with virtual
address 200, a size of 5 cylinders, and mode of MR, type the following
and press the Enter key:
The
following describes the modes:
|
| Change a minidisk size or location. | DIRM CMDISK Issue this command from MAINT. Use the region/volume/group id from your EXTENT CONTROL file to point out which DASD extents to use while allocating a new minidisk. Use AUTOR/AUTOV/AUTOG parameters when allocating within a region/volume/group, respectively. Example: To change the location of minidisk 200
of user LINUX1 to the LINUX01 region and to change its size to 3 cylinders,
type the following and press the Enter key:
|
| Delete a minidisk from a directory entry. | DIRM DMDISK Issue this command from MAINT. Use the Clean option to format the minidisk while deleting it. Example:
To delete the minidisk from the LINUX1 user definition and format
it, type the following and press the Enter key:
|
| Request that a LINK control statement be inserted in a directory entry and put into effect automatically each time the user logs on. | DIRM LINK Issue this command from MAINT. Example:
To establish an MR link to minidisk 200, which is owned by LINUX1,
as minidisk 9200 within a user definition of LINUX2, type the following
and press the Enter key:
|
| Permanently change the line end character for a user (the user's virtual console) | DIRM FOR userid TERM
LINEND char Issue this command from MAINT. Example:
|
| Permanently change the storage size of a virtual machine | DIRM FOR userid STORAGE nnnM
Issue this command from MAINT. Example:
|
| Display the number of logged-on users | CP QUERY USERS Issue this command from LGLOPR. Example:
|
| Display a user ID and device address of the user | CP QUERY userid Issue this command from LGLOPR. Example:
|
| List logged on users and addresses | CP QUERY NAMES Issue this command from LGLOPR. Example:
DSCmeans the virtual machine is running in disconnected mode. |
| Grant a user access to a virtual switch | SET VSWITCH Example: To grant
LINUX02 access to virtual switch SSISW, issue the following command:
|
| Log off an active user | CP FORCE userid
Issue this command from LGLOPR. Example:
|
| Log on another virtual machine | CP XAUTOLOG Issue this command from LGLOPR. Example:
|
| Check to see whether a Linux virtual server is enabled for the shutdown signal | QUERY SIGNALS Issue this command from LGLOPR. Example:
|
| Signal a virtual machine to shut down | CP SIGNAL SHUTDOWN userid WITHIN seconds
Issue this command from LGLOPR. Example:
|
Results
You are done when you have successfully managed the users.