Purpose
hmgetacls - Displays Hardware Monitor access permissions.
Syntax
hmgetacls [-f file_name] [slot_spec]
Flags
Operands
Description
The hmgetacls command Displays Hardware Monitor access permissions that are associated with the specified hardware, in conjunction with the configured authorization methods.
Files
/spdata/sys1/spmon/hmdceacls, /spdata/sys1/spmon/hmacls
Location
/usr/lpp/ssp/bin/hmgetacls
Related Information
Commands: lsauthts, chauthts, hmckacls, hmdceobj
Examples
In the following examples the same command (hmgetacls 1:1-2) is issued four times; once for each of the possible authorization method configurations. The command's target is slots 1 and 2 in frame 1. Slot 1 contains a wide node and therefore it is not possible for slot 2 to contain a node.
[/]> hmgetacls 1:1-2 frame1/slot1 v s m u frame1/slot2 - - - -
[/]> hmgetacls 1:1-2 frame1/slot1 v s m - frame1/slot2 v s m -
[/]> hmgetacls 1:1-2 frame1/slot1 v s m u frame1/slot2 v s m -
If the user is root and on the control workstation, the output shows that the user can perform all of the actions:
[/]> hmgetacls 1:1-2 frame1/slot1 v s m u frame1/slot2 v s m u
Purpose
hmmon - Monitors the state of the SP hardware.
Syntax
Flags
Operands
Description
Use this command to monitor the state of the SP hardware contained in one or more SP frames. Each frame consists of 18 slots, numbered 0 through 17, where slot 0 represents the frame itself, slot 17 can contain a switch and slots 1 through 16 can contain thin or wide processing nodes. Wide nodes occupy two slots and are addressed by the odd slot number. In a switch only frame, slots 1 through 16 can contain switches; the switches occupy two slots and are addressed by the even slot number.
With no flags and operands, the command prints to standard output descriptive text of all hardware state changes in the current system partition as they occur, from the time the command is invoked. The command does not terminate, unless the -Q flag or the -V flag is specified, and must be interrupted by the user. To monitor all of the hardware in the SP system, the -G flag must be specified. Note that the switches and the frames themselves are not contained in any system partition.
When one or more slot_spec operands are present, each operand is interpreted as a slot ID specification. A slot ID specification names one or more slots in one or more SP frames and it has either of two forms:
fidlist:[sidlist] or nodlist
where:
The first form specifies frame numbers and slot numbers. The second form specifies node numbers. A fval is a frame number or a range of frame numbers of the form a-b. A sval is a slot number from the set 0 through 17 or a range of slot numbers of the form a-b. An nval is a node number or a range of node numbers of the form a-b. If a sidlist is not specified, all hardware in the frames specified by the fidlist is monitored.
The relationship of node numbers to frame and slot numbers is given by the following formula:
node_number = ((frame_number - 1) x 16) + slot_number
The following are some examples of slot ID specifications.
To specify all hardware in frames 1 through 10, enter:
1-10:
To specify frames 2, 4, 5, 6, and 7, enter:
2,4-7:0
To specify slots 9 through 16 in frame 5, enter:
5:9-16
If frame 5 contained wide nodes, the even slot numbers are ignored.
To specify slots 1, 12, 13, 14, 15, and 16 in each of frames 3 and 4, enter:
3,4:1,12-16
To specify slot 17 in frame 4, enter:
4:17
To specify the nodes in slots 1 through 16 of frame 2, enter:
17-32
To specify the nodes in slot 1 of frame 1, slot 1 of frame 2 and slot 1 of frame 3, enter:
1,17,33
To specify the node in slot 6 of frame 1, enter:
6
Optionally, slot ID specifications may be provided in a file rather than as command operands. The file must contain one specification per line. When slot ID specifications are provided to the command, only the hardware named by the specifications is monitored. Furthermore, of the hardware named by these specifications, only that which is located in the current system partition is monitored. To monitor hardware not contained in the current system partition, the -G flag must be specified. If the -G flag is not specified and the slot ID specifications name no hardware in the current system partition, an error message is displayed.
The default output displays hardware state information on a slot-by-slot basis. The state information for each slot is captioned by its frame ID and slot ID and consists of two columns. Each column contains state variable information, one variable per line. Each variable is displayed as descriptive text and a value. Boolean values are displayed as TRUE or FALSE. Integer values are displayed in hexadecimal.
The command provides two other output formats, raw and symbolic. Both write the information for one state variable per line. The raw format consists of four fields separated by white space as follows:
The symbolic format consists of six fields separated by white space as follows:
The alternative output formats are suitable for input to post-processing programs, such as awk or scripts.
Output in any format can be limited to display only information from the specified hardware that corresponds to a list of state variables supplied to the command with the -v flag.
The user can monitor nonexistent nodes in an existing frame to detect when a node is added while the system is up and running. No information is returned for nonexistent nodes when the -q or -Q flag is specified.
The hmmon 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
To execute the hmmon command, the user 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/hmmon
Related Information
Commands: hmcmds
Files: /spdata/sys1/spmon/hmdceacls, /spdata/sys1/spmon/hmacls
Examples
The following is an example of default output from hmmon -G -Q 1:0,1. The command returns similar output, depending on your system configuration.
frame 001, slot 00: node 01 I2C not responding FALSE node 02 I2C not responding TRUE node 03 I2C not responding FALSE node 04 I2C not responding TRUE switch I2C not responding FALSE node 01 serial link open TRUE node 02 serial link open FALSE node 03 serial link open TRUE frame LED 1 (green) 0x0001 frame LED 2 (green) 0x0001 frame LED 3 (yellow) 0x0000 frame LED 4 (yellow) 0x0000 AC-DC section A power off FALSE AC-DC section B power off FALSE AC-DC section C power off FALSE AC-DC section D power off FALSE supervisor timer ticks 0x88f2 +48 voltage 0x0078 temperature 0x0036 supervisor serial number 0x1234 supervisor type 0x0011 supervisor code version 0x5ff5 frame 001, slot 01: serial 1 DTR asserted TRUE -12 volt low warning TRUE -12 volt low shutdown FALSE -12 volt high warning TRUE +4 volt low shutdown FALSE +4 volt high warning TRUE fan 1 shutdown FALSE fan 2 warning TRUE DC-DC power on > 10 secs TRUE +5 DC-DC output good TRUE 7 segment display flashing FALSE node/switch LED 1 (green) 0x0001 reset button depressed FALSE serial link open TRUE diagnosis return code 0x00dd 7 segment LED A 0x00ff +5 I/O voltage 0x007f +12 voltage 0x0096
The following is an example of raw output from hmmon -G -Q -r 1:0. The command returns similar output, depending on your system configuration.
1 0 0x880f 32 1 0 0x881c 0 1 0 0x881d 4 1 0 0x8834 54 1 0 0x8839 4660 1 0 0x883a 17 1 0 0x88a8 1 1 1 0x9097 16 1 1 0x9098 0 1 1 0x9047 1 1 1 0x909d 128 1 1 0x9023 221 1 1 0x90a1 255 1 1 0x90a2 127 1 1 0x903b 24565
The following is an example of symbolic output from hmmon -G -Q -s 1:0. The command returns similar output, depending on your system configuration.
1 0 nodefail1 FALSE 0x8802 node 01 I2C not responding 1 0 nodeLinkOpen1 TRUE 0x8813 node 01 serial link open 1 0 frACLED 1 0x8824 frame LED 1 (green) 1 0 frNodeComm 0 0x8827 frame LED 4 (yellow) 1 0 frPowerOff_B FALSE 0x882d AC-DC section B power off 1 0 timeTicks 34881 0x8830 supervisor timer ticks 1 0 voltP48 46.800 0x8831 +48 voltage 1 0 type 17 0x883a supervisor type 1 0 codeVersion 24565 0x883b supervisor code version 1 0 controllerResponds TRUE 0x88a8 Frame responding to polls 1 0 rs232DCD TRUE 0x88a9 RS232 link DCD active 1 0 rs232CTS TRUE 0x88aa RS232 link CTS active 1 1 fanfail2 FALSE 0x9050 fan 2 shutdown 1 1 nodePowerOn10Sec TRUE 0x904b DC-DC power on > 10 secs 1 1 P5DCok TRUE 0x9097 +5 DC-DC output good 1 1 powerLED 1 0x9047 node/switch LED 1 (green) 1 1 envLED 0 0x9048 node/switch LED 2 (yellow) 1 1 keyModeSwitch 0 0x909b key switch 1 1 serialLinkOpen TRUE 0x909d serial link open 1 1 LED7SegA 255 0x909f 7 segment LED A 1 1 voltP5i 4.978 0x90a2 +5 I/O voltage
The raw and symbolic formats output by the hmmon command contain the variable ID of each state variable. Refer to Appendix D in PSSP: Administration Guide.
Purpose
hmreinit - Stops and starts the Hardware Monitor daemon and modifies the System Data Repository (SDR) as necessary.
Syntax
hmreinit
Flags
None.
Operands
None.
Description
Use this command to reinitialize the Hardware Monitor daemon when changes to the SP system occur. When the daemon is restarted, splogd will invoke SDR_config which will update the SDR to match the current hardware configuration.
Standard Error
This command writes error messages (as necessary) to standard error.
Exit Values
Security
You must have root privilege and write access to the SDR to run this command.
Implementation Specifics
This command is part of the Parallel System Support Programs (PSSP) Licensed Program (LP).
Location
/usr/lpp/ssp/install/bin/hmreinit
Related Information
Commands: SDR_config, spframe, splogd
For additional information, refer to the "Reconfiguring the IBM RS/6000 SP system" chapter in PSSP: Installation and Migration Guide.
Examples
To stop and restart the Hardware Monitor daemon, enter:
hmreinit
You should receive messages similar to the following:
0513-044 The stop of the splogd Subsystem was completed successfully. 0513-044 The stop of the hardmon Subsystem was completed successfully. 0513-059 The hardmon Subsystem has been started. Subsystem PID is 22746. 0513-059 The splogd Subsystem has been started. Subsystem PID is 28440. SDR_config: SDR_config completed successfully.
Purpose
hostlist - Lists SP host names to standard output based on criteria.
Syntax
Flags
Operands
None.
Description
The hostlist command writes SP host names to standard output. The arguments to the command indicate the host names to be written. More than one flag can be specified, in which case, the hosts indicated by all the flags are written.
If no arguments are specified, hostlist writes the contents of a file specified by the WCOLL environment variable. If the WCOLL environment variable does not exist, the MP_HOSTFILE environment variable is used as the name of a POE host file to use for input. Finally, ./host.list is tried. If none of these steps are successful, an error has occurred. The input file is in dsh-working-collective-file or POE-host-list-file format. Node pool specifications in POE host files are not supported.
Files
|Environment Variables
|The HN_METHOD=reliable or initial environment variable will be used with |the hostlist -a or hostlist -av options to |determine whether to use the reliable_hostname or |initial_hostname when building the working collective. The |default is the initial_hostname.
Related Information
Commands: dsh, sysctl
Examples
hostlist -av -e badhost > ./working
hostlist -s 1-4:1 | dsh -w - program
hostlist -n 1-16,33-35 -w otherone | dsh -w - program
export WCOLL=./wcoll hostlist | sysctl -c - sysctl_app args
|export HN_METHOD=reliable |hostlist -aG > ./working
Purpose
hr - Controls the host_responds monitor daemon, hrd, on the control workstation.
Syntax
Flags
Operands
Description
Use this command to control the operation of hrd, the host_responds daemon on the control workstation within a system partition. The hrd daemon receives information from the Event Management subsystem about nodes that are reachable through the |SP Ethernet administrative local area network (LAN) within a system partition. The hrd daemon uses this information to update the SDR host_responds class.
The hr script is not normally executed from the command line. It is normally called by the hrctrl command, which is in turn called by the syspar_ctrl command during installation of the system, and partitioning or repartitioning of the system.
The hrd daemon is initially started on the control workstation with the System Resource Controller (SRC). It is respawned automatically if the hrd daemon is unsuccessful. The SP_NAME environment variable causes selection of the correct daemon.
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 "Starting up and shutting down the SP system" chapter and "The System Data Repository" appendix in PSSP: Administration Guide
AIX Commands Reference
Information about the System Resource Controller (SRC) in AIX General Programming Concepts: Writing and Debugging Programs
Location
/usr/lpp/ssp/bin/hr
Related Information
Commands: hrctrl, lssrc, startsrc, stopsrc, syspar_ctrl
Examples
See the hrctrl command.
Purpose
hrctrl - A script that controls the Host_Responds subsystem.
Syntax
hrctrl { -a | -s | -k | -d | -c | -t | -o | -r | -h }
Flags
Operands
None.
Description
The Host_Responds subsystem provides to other PSSP subsystems information about the state of the nodes on the IBM RS/6000 SP.
The hrctrl control script controls the operation of the Host_Responds subsystem. The subsystem is under the control of the System Resource Controller (SRC) and belongs to a subsystem group called hr. Associated with each subsystem is a daemon and a script that configures and starts the daemon.
An instance of the Host_Responds subsystem executes on the control workstation for every system partition. Because Host_Responds provides its services within the scope of a system partition, its subsystem is said to be system partition-sensitive. This control script operates in a manner similar to the control scripts of other system partition-sensitive subsystems. The script should be issued on the control workstation. If it is issued on a node, it has no effect.
From an operational point of view, the Host_Responds subsystem group is organized as follows:
The hr subsystem is associated with the hrd daemon and the hr script. The hr script configures and starts the hrd daemon.
On the control workstation, there are multiple instances of each subsystem, one for each system partition. Accordingly, the subsystem names on the control workstation have the system partition name appended to them. For example, for system partitions named sp_prod and sp_test, the subsystems on the control workstation are named hr.sp_prod and hr.sp_test.
The subsystem does not run on the nodes.
The hrd daemon provides the Host_Responds services. The hr script configures and starts the hrd daemon.
The hrctrl script is not normally executed from the command line. It is normally called by the syspar_ctrl command during installation of the system, and partitioning or repartitioning of the system.
The hrctrl script provides a variety of controls for operating the Host_Responds subsystem:
Before performing any of these functions, the script obtains the node number (using the node_number) command. If the node number is not zero, the control script is running on a node and it exits immediately. Otherwise, it is executing on the control workstation and it calls the hr script with an operand that specifies the action to be performed.
Adding the Subsystem
When the -a flag is specified, the control script uses the hr command with the mksrc operand to add the Host_Responds subsystem to the SRC.
Starting the Subsystem
When the -s flag is specified, the control script uses the hr command with the start operand to start the Host_Responds subsystem, hr .
Stopping the Subsystem
When the -k flag is specified, the control script uses the hr command with the stop operand to stop the Host_Responds subsystem, hr .
Deleting the Subsystem
When the -d flag is specified, the control script uses the hr command with the rmsrc operand to remove the Host_Responds subsystem from the SRC.
Cleaning up the Subsystems
When the -c flag is specified, the control script uses the hr command with the clean operand to stop and remove the Host_Responds subsystems for all system partitions from the SRC.
Turning Tracing On
When the -t flag is specified, the control script turns tracing on for the hrd daemon, using the hr command with the trace on operand.
Turning Tracing Off
When the -o flag is specified, the control script turns tracing off (returns it to its default level) for the hrd daemon, using the hr command with the trace off operand.
Refreshing the Subsystem
When the -r flag is specified, the control script refreshes the subsystem, using the hr refresh command.
Standard Error
This command writes error messages (as necessary) to standard error.
Exit Values
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
AIX Commands Reference
Information about the System Resource Controller (SRC) in AIX General Programming Concepts: Writing and Debugging Programs
Location
/usr/lpp/ssp/bin/hrctrl
Related Information
Commands: hr, lssrc , startsrc, stopsrc, syspar_ctrl
Examples
hrctrl -a
hrctrl -s
hrctrl -k
hrctrl -d
hrctrl -c
hrctrl -t
hrctrl -o
lssrc -g hr
lssrc -s subsystem_name
lssrc -l -s subsystem_name
In response, the system returns information that includes the running status of the subsystem and the status of the nodes within the system partition.
lssrc -a
Purpose
hsdatalst - Displays hashed shared disk information for the virtual shared disk from the System Data Repository (SDR).
Syntax
hsdatalst [-G]
Flags
Operands
None.
Description
This command is used to display defined hashed shared disk information in the system.
You can use the System Management Interface Tool (SMIT) to run this command. To use SMIT, enter:
smit list_vsd
and select the List Defined Hashed Shared Disk option.
Prerequisite Information
PSSP: Managing Shared Disks
Location
/usr/lpp/csd/bin/hsdatalst
Related Information
Commands: defhsd, undefhsd, updatehsd
Examples
To display SDR hashed shared disk data, enter:
hsdatalst
which produces output similar to:
HSD Table minor option stripeSZ #vsds hsd_name vsd_name size_in_MB ---- -------------- -------- ----- ----------------------------- 1 protect_lvcb 32768 2 HsD HsD1n13 512 1 protect_lvcb 32768 2 HsD HsD1n14 512 2 protect_lvcb 65536 4 myhsd vsd1n1 2148 2 protect_lvcb 65536 4 myhsd vsd1n2 2148 2 protect_lvcb 65536 4 myhsd vsd1n3 2148 2 protect_lvcb 65536 4 myhsd vsd1n4 2148
Purpose
hsdvts - Verifies that a hashed shared disk for a virtual shared disk has been correctly configured and works.
Attention |
---|
Data on hsd_name will be overwritten and, therefore, destroyed. Use this command after you have defined your hashed shared disks, virtual shared disks, and logical volumes, but before you have loaded your application data onto any of them. |
Syntax
hsdvts hsd_name
Flags
None.
Operands
Description
This command writes /unix to hsd_name, reads it from hsd_name to a temporary file, and compares the temporary file to the original to make sure the I/O was successful. If the files compare exactly, the test was successful.
hsdvts writes to the raw hsd_name device /dev/rhsd_name. Since raw devices can only be written in multiples of 512-sized blocks, hsdvts determines the number of full 512-byte blocks in /unix file, and writes that number to hsd_name via dd command. It makes a copy of /unix that contains this number of 512-byte blocks for comparison to the copy read from hsd_name. The dd command is used for all copy operations.
Prerequisite Information
PSSP: Managing Shared Disks
Location
/usr/lpp/csd/bin/hsdvts
Related Information
Commands: cfghsd, cfgvsd, dd, defhsd, startvsd
Examples
To verify that hashed shared disk hsd1 has been correctly configured and works, enter:
hsdvts hsd1