mmlscomp command
Displays storage components.
Synopsis
mmlscomp [--type CompType] [--part-number PartNumber]
[--serial-number SerialNumber] [--name Name] [--comp-id CompId]
[--format Format] [--output-file OutputFile] [--sortSortKey]
Availability
Available with the Elastic Storage Server.
Description
The mmlscomp command displays a list of storage components with attributes that match the specified parameters.
Parameters
- --type CompType
- Specifies a component type, which may include wildcard characters. The resulting list includes those components whose component types (rack, server, or storageEnclosure ) match the specified value.
- --part-number PartNumber
- Specifies a part number, which may include wildcard characters. The resulting list includes those components whose part numbers match the specified value.
- --serial-number SerialNumber
- Specifies a serial number, which may include wildcard characters. The resulting list includes those components whose serial numbers match the specified value.
- --name Name
- Specifies a name, which may include wildcard characters. The resulting list includes those components whose names match the specified value.
- --comp-id CompId
- Specifies a component ID, which may include wildcard characters. The resulting list includes those components whose component IDs match the specified value.
- --format Format
- Specifies the format in which the component data will be listed. Valid values are: colon, column, stanza, and table. The default value is table.
- --output-file OutputFile
- Specifies the name of an output file in which the component data will listed.
- --sort SortKey
- Indicates that the command output is to be sorted by the attribute specified in SortKey.
Exit status
- 0
- Successful completion.
- nonzero
- A failure has occurred.
Security
You must have root authority to run the mmlscomp command.
The node on which the command is issued must be able to execute remote shell commands on any other node in the cluster without the use of a password and without producing any extraneous messages. For additional details, see the following IBM Storage Scale RAID: Administration topic: Requirements for administering IBM Storage Scale RAID.
Examples
- To list components sorted by name, enter the following command:
$ mmlscomp --sort name
The system displays output similar to this:
Rack Components Comp ID Part Number Serial Number Name ------- ----------- ------------- ------ 9 1410HEA R01C01 Storage Enclosure Components Comp ID Part Number Serial Number Name Display ID ------- ----------- ------------- ------------------ ---------- 2 1818-80E SV12345007 G1E1-SX98760044 01 4 1818-80E SV12345005 G1E2-SX98760049 05 3 1818-80E SV12345003 G1E3-SX98760041 13 7 1818-80E SV12345008 G1E4-SX98760036 17 1 1818-80E SV12345001 G1E5-SX98760048 21 6 1818-80E SV12345002 G1E6-SX98760050 25 8 1818-80E SV12345006 G1E7-SX98760039 33 5 1818-80E SV12345004 G1E8-SX98760052 37
- To list components in stanza format, enter the following command:
mmlscomp --format stanza
The system displays output similar to this:
%rack: compId=9 name=R01C01 partNumber=1410HEA %storageEnclosure: compId=1 displayId=21 name='1818-80E-SV12345001' partNumber=1818-80E serialNumber=SV12345001 %storageEnclosure: compId=2 displayId=1 name='1818-80E-SV12345007' partNumber=1818-80E serialNumber=SV12345007 %storageEnclosure: compId=3 displayId=13 name='G1E3-SX98760044' partNumber=1818-80E serialNumber=SV12345003
See also
See also the following IBM
Storage Scale RAID:
Administration topics:
- mmaddcomp command
- mmaddcompspec command
- mmchcomp command
- mmchcomploc command
- mmchenclosure command
- mmchfirmware command
- mmdelcomp command
- mmdelcomploc command
- mmdelcompspec command
- mmdiscovercomp command
- mmlscomploc command
- mmlscompspec command
- mmlsenclosure command
- mmlsfirmware command
- mmsyncdisplayid command
- Configuring components on the Elastic Storage Server.
Location
/usr/lpp/mmfs/bin