IBM Books

Command and Technical Reference, Volume 2

spmkvgobj

Purpose

spmkvgobj - Creates a new root volume group for a node or series of nodes in the System Data Repository (SDR).

Syntax

spmkvgobj
-r volume_group_name [-h pv_list] [-i install_image]
 
[-p code_version] [-v lppsource_name] [-n boot_server]
 
[-c { 1 | 2 | 3}] [ -q {true | false}]
 
{start_frame start_slot {node_count | rest} | -l node_list}

Flags

-r volume_group
Specifies the root volume group name to create. |

|-h pv_list
|Indicates the physical volumes to be used for installation for the volume |group specified. The root volume group is defined on the disks |indicated, and all data on the disks is destroyed. The physical volumes |may be specified as: |
|Logical names (for example, hdisk0)
|Hardware location (for example, 00-00-00-0,0)
|SSA connwhere (for example, ssar//012345678912345)
|Physical volume identifier (for example, 0123456789abcdef)
|SAN disk identifier with world-wide port name and logical unit identifier |(for example, 0x0123456789abcdef//0x0) |

|If multiple physical volumes are specified, separate them by commas for |logical names and by colons for all other formats. Different formats |may be used for the different physical volumes except when using logical |names. The default is hdisk0.

|Note:
IBM strongly suggests that formats other than logical names be used to |specify the physical volumes. It ensures that you install on the |intended disk by targeting a specific disk at a specific location. The |logical naming of physical volumes may change depending on hardware installed |or possible hardware problems. This is especially true when there are |external drives present, as the manner in which the device names are defined |may not be obvious. |

-i install_image
Specifies the name of the install image to be used for the volume group when they are next network-installed. Specify a file in the /spdata/sys1/install/images directory on the control workstation. At installation, the value for each volume group's install image name is default, which means that the default install image name for the system partition or the system is used for each node. The default install image name is found in the Syspar or the SP object in that order. The default value is "default".

-p code_version
Sets the volume group's code version. Use this to indicate the PSSP level to install on the node. The code_version value you choose must match the directory name that the PSSP installation files are placed under in the /spdata/sys1/install/pssplpp directory during installation. See the PSSP: Installation and Migration Guide for more details. The default value is "PSSP-3.1".

-v lppsource_name
Sets the volume group's lppsource name. Use this to indicate the AIX level to install on the node. The lppsource_name value you choose must match the directory name you choose to place the lppsource files under in the /spdata/sys1/install directory during installation. See the PSSP: Installation and Migration Guide for more details. The default value is "default".

-n boot_server
Identifies the boot/install server for the volume groups you have specified. The boot/install server is identifies by a node number. Node number 0 represents the control workstation. The value of the boot/install server at installation depends on how many frames are in your system. In a single frame system, the control workstation (node 0) is the default server for each node. In a multiple frame system, the default server for the first node in each frame is the control workstation, and the default server for the rest of the nodes in a frame is the first node in that frame. The default value for a new root volume group is "0".

-c copies
Specifies the number of mirrors to create for the volume group. To enable mirroring, set this to 2 or 3. Setting this to 1 disables mirroring. When enabling mirroring, be sure that there are enough physical volumes to contain all the copies of the volume group. Each copy must have at least 1 physical volume. The default value is "1".

-q true | false
Specifies whether quorum should be enabled. If quorum is enabled, a voting scheme will be used to determine if the number of physical volumes that are up is enough to maintain quorum. If quorum is lost, the entire volume group will be taken off line to preserve data integrity. If quorum is disabled, the volume group will remain on line as long as there is at least 1 running physical volume. The default value is "true".

-l node_list
Specifies a list of nodes to be used for this operation. Specify a comma-delimited list of node numbers. If you use the -l flag, do not use the start_frame, start_slot, or node_count operands.

Operands

|start_frame
|Specifies the frame number of the first node to be used for this |operation. Specify a value between 1 and 128 inclusive. |

|start_slot
|Specifies the slot number of the first node to be used for this |operation. Specify a value between 1 and 16 inclusive.
|Note:
The node_count is considered to be within the current system |partition. |

node_count
Specifies the number of nodes to be used for this operation. The node information is added for successive nodes within a frame. If the count of nodes causes the nodes in a frame to be exhausted, the operation continues for nodes in the next sequential frame. Specify a value between 1 and 1024 inclusive. If rest is specified, all the nodes from start_frame start_slot to the end of your system are used.
Note:
The node_count is considered to be within the current system partition.

Description

Use the spmkvgobj command to create a new root volume group on a node or group of nodes in the System Data Repository (SDR). When this command is run and the SDR is changed, setup_server must be run on the affected boot/install servers and affected nodes may need to be customized or installed to apply the changes. Certain volume group information such as mirroring and the pv_list may be updated using the spmirrorvg or spunmirrorvg commands.

Exit Values

0
Indicates the command has run successfully.

1
A non-critical error occurred, some creations may have succeeded.

2
Indicates an irrecoverable error occurred and no changes were made.

Security

You must have root privilege and write access to the SDR to run this command.

Implementation Specifics

This command is part of the IBM Parallel System Support Programs (PSSP) Licensed Program (LP).

Location

/usr/lpp/ssp/bin/spmkvgobj

Related Information

Commands: spbootins, spchvgobj, spmirrorvg, sprmvgobj, spunmirrorvg

Examples

  1. To create a new root volume group using 2 SSA physical volumes and taking all other default values on nodes 2 and 3, enter:
    spmkvgobj -r rootvg2 -h \
              ssar//567464736372821:ssar//67464736372821 -l 2,3
    
  2. To create a new root volume group using 3 SCSI physical volumes, enabling mirroring and specifying a mksysb image on node 7, enter:
    spmkvgobj -r rootvg2 -h 00-00-00-0,0:00-00-00-1,0:00-00-00-2,0 \
              -c 2 -q false -i bos.obj.ssp.432 -l 7
    

spmon

Purpose

spmon - Operates the system controls and monitors system activity.

Syntax

spmon
[-query [-Monitor] [-long] | -connect host_name |
 
-Global | -help | -key {normal | secure | service} | -Key |
 
-Led | -power {on | off} |
 
-reset | -mux {i | 1 | 2 | 3} |
 
-open | -diagnostics]
 
[[-target] target_value... ]

Flags

All spmon commands require a -target parameter except those with -diagnostics, and -help parameters.

-query
Queries the hardware variable specified as the target and returns the requested value. query is the default. If no other parameter is entered, a query is performed.

-Monitor
Monitors the variables specified in the targets. If any of the specified variables change the state, the new state is written to standard output.

-long
Applies only to -query and -Monitor. Returns the requested variables in fully qualified hierarchical format rather than the default format which is just the variable value.

-connect
Connects to control workstation specified in host_name variable. Use this parameter with the -key, -Key, -Led, -open, -power, -reset, and -mux parameters.

-Global
Allows targets that are outside of the current system partition. This parameter must be used for any query or command if specifying frames or switches.

-help
Displays the usage information for the spmon command.

-key
Choice of normal | secure | service. Changes the key mode switch position for the node specified as the target.

-Key
Returns status of the key mode switch position for the node specified as the target.

-Led
Displays the 3-digit display value.

-power
Choice of on | off.

Turns the power on or off for the node, frame, or switch specified as the target. For example:

spmon -G -p off frame1
spmon -p off node16
spmon -G -p off frame2/switch
spmon -G -p off frame11/switch2

-reset
Resets the node specified as the target.

|On systems that do not have a key mode switch, the spmon |-reset command produces a dump.

-mux
Choice of i | 1 | 2 | 3. Sets multiplexors that control the clocking of a switch to the value indicated. These values mean:
i
Use internal oscillator (make this switch the master)
1
Use input 1
2
Use input 2
3
Use input 3

The mux setting must match the physical wiring of the switch clocks and requires a frame as its target. For a switch in node 17, use a frame as the target or frame/switchN for a switch in a switch-only frame.

-open
Opens a tty connection to the node specified in the target flag. Press Enter to begin the session. Type Ctrl-x to close the connection. Refer to the s1term command for details.

-diagnostics
Performs the following diagnostics tests:
  1. Checks if the server process is running
  2. Tries to open a connection to the server
  3. Queries the number of frames in system
  4. If the -G parameter is specified, for each frame checks:
    • If the frame controller responding
    • If a switch is attached
    • The mux value
    • If the frame power supplies are ON or OFF
  5. For each node in each frame, checks:
    • Node type
    • If power is on or off
    • hostResponds
    • switchResponds
    • The position of key switch
    • Environment problems
    • The values of the front panel LEDs.

    For each switch, checks:

    • Frame, slot
    • Node type
    • If power is on or off
    • Clock input
    • Environment problems

The tests are in dependent order. If any of these are unsuccessful, the subsequent tests do not run.

[-target] target_value
Specifies the target node, frame, variable, or attribute for the command as target_value

The -target flag is optional. Any parameter without a flag is assumed to be the target. You can also have multiple target-flags (-t), which are optional.

Operands

None.

Description

Any unique abbreviation of flags and keywords is acceptable.

Specify target_value with the hierarchical format (or tree structure). The format is:

/SP/frame/frameN/[nodeM|switch 
M]/variableX/value

SP
Is literally the string "SP".

frame
Is the string frame.

frameN
Is frame1...frameN where N is the frame number in the SP system.

nodeM | switchM
Is the node number or switch number within the specified frame. M is the slot number of that node or switch. When switch is specified without a number, it means switch 17.

variableX
Is a variable known to the SP System Monitor. Refer to the "System Monitor Variables, Display Types, and Attributes Appendix" of PSSP: Administration Guide for a list of variables.

value
Is literally the string "value."

You can use wildcards (*) to specify more than one target node or frame for the query command.

Note:
Though they are not hardware variables, for compatibility with older systems, the variables hostResponds and switchResponds can be used as specific targets of the spmon command for both -query and -Monitor commands. However, the variable names must be entered explicitly. These two variables are not returned if the variable specified is a wildcard (*).

You can use aliases in place of fully qualified hierarchical target values. Aliases require less typing and may be more intuitive than the fully qualified targets. Leaving the leading slash (/) off the target indicates that it is an alias.

There are two formats for aliases:

The spmon command fails if any of the hardware targeted is not supported by the version of PSSP on the machine where the command was issued.

Security

System Control Mode: To execute the spmon command in System Control Mode you must be authorized to access the Hardware Monitor subsystem and must be granted "VFOP" permission for the hardware objects (frames, slots) specified in the command. Commands sent to hardware objects for which the user does not have "VFOP" permission are ignored.

Monitor Mode: To execute the spmon command in Monitor Mode you must be authorized to access the Hardware Monitor subsystem and must be granted Monitor permission for the hardware objects (frames, slots) specified in the command. State information is not returned for hardware objects for which the user does not have Monitor permission.

Location

/usr/lpp/ssp/bin/spmon

Related Information

The sphardware command launches a graphical user interface for monitoring and controlling an SP system.

Commands: hmcmds, hmmon

Examples

  1. To query the key setting of node1 on frame1, enter:
    spmon -q -t /SP/frame/frame1/node1/keyModeSwitch/value
    0
    
  2. To perform the same query using an alias (uses query flag default), enter:
    spmon node1/keyModeSwitch/value
    0
    
  3. To query the LED settings of node1 on frame1, enter:
    spmon -L frame1/node1
    

    You should receive output similar to the following:

     _____________
    |  _   _   _  |
    | |_| |_| |_| | Frame 1, Node 1
    | |_| |_| |_| |
    |_____________|
    
  4. To query the mux value on all switches in the system, enter:
    spmon -G -q -l frame*/switch*/mux/value
    /SP/frame/frame1/switch17/mux/value/0
    
  5. To monitor the power LEDs on the nodes on frame1, enter:
    spmon -M frame1/node*/powerLED/value
     
    2
     
    1
    
  6. To query the power LEDs on the nodes on frame1 and then monitor them and print the values in fully qualified hierarchical form, enter:
    spmon -M -q -l frame1/node*/powerLED/value
    /SP/frame/frame1/node1/powerLED/value/1
    /SP/frame/frame1/node3/powerLED/value/1
    /SP/frame/frame1/node5/powerLED/value/1
    /SP/frame/frame1/node7/powerLED/value/1
    /SP/frame/frame1/node9/powerLED/value/1
    /SP/frame/frame1/node10/powerLED/value/1
    /SP/frame/frame1/node11/powerLED/value/1
    /SP/frame/frame1/node12/powerLED/value/1
    /SP/frame/frame1/node13/powerLED/value/1
    /SP/frame/frame1/node14/powerLED/value/1
    /SP/frame/frame1/node15/powerLED/value/1
    /SP/frame/frame1/node16/powerLED/value/1
    /SP/frame/frame1/node1/powerLED/value/2
    /SP/frame/frame1/node1/powerLED/value/1
    
    Note:
    "node*" returns powerLED values on switches in slots 1--16 also.
  7. To switch power off node3 on frame2, enter:
    spmon -p off frame2/node3
    

    If node3 on frame2 is outside the current system partition, enter:

    spmon -G -p off frame2/node3
    
  8. To switch power off node3 on frame2 using alias format2, enter:
    spmon -p off node19
    
  9. To change key setting on node1 on frame1 to service, enter:
    spmon -k service node1
    
  10. To switch power off frame1, (type 17 frame supervisor only), enter:
    spmon -G -p off frame1
    
  11. To switch power off frame1, (SEPBU - type 18 frame supervisor), enter:
    spmon -G -p off frame1/A
    
  12. To set the frame1 switch to be the master switch (use internal oscillator), enter:
    spmon -G -m i frame1
    

    or

    spmon -G -m i frame1/switch
    
  13. To set frame 10, switch4 in a switch-only frame to be the master switch, enter:
    spmon -G -m i frame10/switch4
    

spmon_ctest

Purpose

spmon_ctest - Verifies that the System Monitor component is configured correctly.

Syntax

spmon_ctest [-l log_file] [-q]

Flags

-l log_file
Specifies the path name of the log file to which error messages are written. (This is lowercase l, as in list.)

-q
Specifies quiet mode; suppresses output to standard error.

Operands

None.

Description

This command is designed to be run after installing the SP system to verify that the System Monitor is configured correctly. The test checks to make sure that the hardware is running, that it can be queried, and determines whether any node objects were created in the System Data Repository (SDR). The test also indicates whether the RS232 lines are connected properly.

A return code of zero indicates that the test completed as expected; otherwise it returns the number of errors. If you do not specify the -q flag, a message is displayed on standard output that indicates if the test was successful or not. In either case, the command returns 0 if successful, 1 if unsuccessful. If errors are detected, more detailed information is recorded in the log file. If you do not specify the -l flag, error messages are recorded in /var/adm/SPlogs/spmon_ctest.log.

You can use the System Management Interface Tool (SMIT) to run this command. To use SMIT, enter:

smit SP_verify

and select the System Monitor Configuration option.

You must run this test from a user who has monitor authority in /spdata/sys1/spmon/hmacls. The user must also have a nonexpired authentication ticket.

Refer to the "RS/6000 SP files and other technical information" section of PSSP: Command and Technical Reference for additional Kerberos information.

Files

/var/adm/SPlogs/spmon_ctest.log
Default log file.

Security

You must root privilege to run this command.

Location

/usr/lpp/ssp/bin/spmon_ctest

Related Information

Commands: CSS_test, jm_install_verify, jm_verify, SDR_test, SYSMAN_test, spmon_itest

Examples

To verify installation of the SP System Monitor, saving error messages in spmon.err in the current working directory, enter:

spmon_ctest -l spmon.err

spmon_itest

Purpose

spmon_itest - Verifies that the System Monitor is installed and operational.

Syntax

spmon_itest [-l log_file] [-q]

Flags

-l log_file
Specifies the path name of the log file to which error messages are written. (This is lowercase l, as in list.)

-q
Specifies quiet mode; suppresses output to standard error.

Operands

None.

Description

This command is designed to be run after installing the SP system to verify that the System Monitor is installed correctly.

A return code of zero indicates that the test completed as expected; otherwise it returns the number of errors. If you do not specify the -q flag, a message is displayed on standard output that indicates if the tests were successful or not. In either case, the command returns 0 if successful, 1 if unsuccessful. If errors are detected, more detailed information is recorded in the log file. If you do not specify the -l flag, error messages are recorded in /var/adm/SPlogs/spmon_itest.log.

You can use the System Management Interface Tool (SMIT) to run this command. To use SMIT, enter:

smit SP_verify

and select the System Monitor Installation option.

Files

/var/adm/SPlogs/spmon_itest.log
Default log file.

Security

You must have root privilege to run this command.

Location

/usr/lpp/ssp/bin/spmon_itest

Related Information

Commands: CSS_test, jm_install_verify, jm_verify, SDR_test, SYSMAN_test, spmon_ctest

Examples

To verify installation of the SP System Monitor, saving error messages in spmon.err in the current working directory, enter:

spmon_itest -l spmon.err

spnkeyman_start

Purpose

spnkeyman_start - Conditionally starts the SP Per Node Key Management daemon on the control workstation, node, or stand-alone workstation. The command runs locally on the host where the daemon is to be started.

Syntax

spnkeyman_start
 

Flags

None.

Operands

None.

Description

The spnkeyman_start command is used to conditionally start the key management daemon on a specific machine. When this command is executed the key management daemon spnkeymand is started.

The daemon will not be started if DCE has not been installed on the workstation. On the SP, the script will generally be run from rc.sp during re-boot. On a stand alone workstation, the script can be started with an inittab entry: nkeyman:2:once:/usr/lpp/ssp/bin/spnkeyman_start.

If DCE is configured on the control workstation after installation, it is necessary for the system administrator to start the daemon manually after the SP has been configured to use DCE.

The daemon requires:

  1. DCE is installed and configured on the host where the daemon is running.
  2. Principals (SP or non-SP workstation) must be in the DCE registry and the keyfiles created on the host (control workstation, node or non-SP workstation) before the daemon will run.

If you need to stop the spnkeymand daemon, enter:

stopsrc -s spnkeyman
 

Standard Error

This command issues error messages to alert a system administrator to a problem.

Exit Values

0
The command has run successfully.

3
DCE is not installed.

4
There was an error calling startsrc.

5
An error occurred.

Errors result in the SP Key Management daemon not running, and consequently the services that rely on SP Key Management to provide key files will ultimately be unsuccessful.

Security

You must have root privilege to run this command.

Implementation Specifics

This command is part of the IBM Parallel System Support Programs (PSSP) Licensed Program (LP).

Prerequisite Information

The section on SP system security in PSSP: Administration Guide and IBM Distributed Computing Environment manuals set.

Location

/usr/lpp/ssp/bin/spnkeyman_start

Related Information

Commands: startsrc

Examples

To start the key management daemon, enter:

spnkeyman_start

sprestore_config

Purpose

sprestore_config - Restores the system to a given system partitioning configuration as specified in the System Data Repository (SDR) which was previously archived.

Syntax

sprestore_config archive_file [-h]

Flags

-h
Displays usage information.

Operands

archive_file
Specifies the name of the archived SDR file to be restored.

Description

The sprestore_config command is valid only on systems with no switch or with an SP switch. |This command is not valid on a system with an SP Switch2 switch or |on a switchless clustered enterprise server system.

Use this command to restore the SDR from an archive file that was previously created with the SDRArchive command. In addition to restoring the SDR (using the SDRRestore command), the sprestore_config command also restores system partition-sensitive subsystems (for example, hats, hb, and hr) to their previous state. This command is most useful when recovering from an attempt to partition the SP (see the spapply_config command).

You can use the System Management Interface Tool (SMIT) to run the sprestore_config command. To use SMIT, enter:

smit syspar_restore

and enter (or select from a generated list) the name of the SDR archive from which to restore.

Notes:

  1. This command should be run only on the control workstation.

  2. Due to system partitioning changes, your SP_NAME environment variable may no longer be set to a valid system partition name. To get a list of valid system partition names, enter the splst_syspars -n command. Then verify that your SP_NAME environment variable is either unset or set to one of the system partition names in the list.

Exit Values

0
Indicates success.

1
Indicates that an error occurred while trying to restore the specified system partitioning configuration.

2
Indicates a usage error.

Security

You must have root privilege to run this command. You must also have SDR write access for each partition you are restoring.

Related Information

Commands: SDRArchive, SDRRestore, spapply_config, spcustomize_syspar, spdisplay_syspar, spverify_config, syspar_ctrl

Files: nodelist, topology

Examples

To restore the SDR and the system-partition sensitive subsystems (for example, hats, hb, and hr) from the archive 'backup.95110.1620' which was previously created using the SDRArchive command, enter:

sprestore_config backup.95110.1620

sprmuser

Purpose

sprmuser - Removes a user account from the SP system.

Syntax

sprmuser [-i] [-p] [-r] name

Flags

-i
Displays the current user information and enables interactive control. This allows you to quit before deleting the user account.

-p
Removes user password information from the /etc/security/passwd file.

-r
Removes the user's home directory specified in the home attribute.

name
Name of the user account you want to delete.

Operands

None.

Description

The -i and -r options are unique to the SP system.

You can use the System Management Interface Tool (SMIT) to run the sprmuser command. To use SMIT, enter:

smit spusers

and select the Remove a User option.

|Environment Variables

|PSSP 3.4 provides the ability to run commands using secure remote |command and secure remote copy methods.

|To determine whether you are using either AIX rsh or rcp |or the secure remote command and copy method, the following environment |variables are used. |If no environment variables are set, the defaults are |/bin/rsh and /bin/rcp.

|You must be careful to keep these environment variables consistent. |If setting the variables, all three should be set. The DSH_REMOTE_CMD |and REMOTE_COPY_CMD executables should be kept consistent with the choice of |the remote command method in RCMD_PGM: |

|For example, if you want to run sprmuser using a secure remote |method, enter:

|export RCMD_PGM=secrshell
|export DSH_REMOTE_CMD=/bin/ssh
|export REMOTE_COPY_CMD=/bin/scp

Security

You must have root privilege to run this command.

This command runs from the control workstation only.

Location

/usr/lpp/ssp/bin/sprmuser

Examples

  1. To remove user account charlie without destroying the home directory, enter:
    sprmuser charlie
    
  2. To remove user account charlie, remove any information about this user in the /etc/security/passwd file, and remove the home directory, enter:
    sprmuser -pr charlie
    

sprmvgobj

Purpose

sprmvgobj - Removes a root volume group for a node or series of nodes from the System Data Repository (SDR).

Syntax

sprmvgobj
[-r volume_group_name]
 
{start_frame start_slot {node_count | rest} | -l node_list}

Flags

-r volume_group
Specifies the root volume group name to remove.

-l node_list
Specifies a list of nodes to be used for this operation. Specify a comma-delimited list of node numbers. If you use the -l flag, do not use the start_frame, start_slot , or node_count operands.

Operands

|start_frame
|Specifies the frame number of the first node to be used for this |operation. Specify a value between 1 and 128 inclusive. |

|start_slot
|Specifies the slot number of the first node to be used for this |operation. Specify a value between 1 and 16 inclusive.
|Note:
The start_frame and start_slot must resolve to a node in |the current system partition. |
|

|node_count
|Specifies the number of nodes to be used for this operation. The |node information is added for successive nodes within a frame. If the |count of nodes causes the nodes in a frame to be exhausted, the operation |continues for nodes in the next sequential frame. Specify a value |between 1 and 512 inclusive. If rest is specified, all the |nodes from start_frame start_slot to the end of your system are |used.
|Note:
The node_count is considered to be within the current system |partition. |

Description

The sprmvgobj command is used to remove a root volume group on a node or group of nodes from the System Data Repository (SDR).

Exit Values

0
Indicates the command has run successfully.

2
Indicates an irrecoverable error occurred and no changes were made.

Security

You must have root privilege and write access to the SDR to run this command.

Implementation Specifics

This command is part of the IBM Parallel System Support Programs (PSSP) Licensed Program (LP).

Location

/usr/lpp/ssp/bin/sprmvgobj

Related Information

Commands: spbootins, spchvgobj, sprmvgobj

Examples

To remove a root volume group on nodes 2 and 3, enter:

sprmvgobj -r rootvg2 -l 2,3


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]