Displays information related to the specified hosts.
Syntax
|
Parameters
–name hostname
Selection by the name of the host.
–ip ip
Selection by the IP address of the host.
–wwpn wwpn
Selection by the WWPN of a host
–iqn iqn
Selection by the IQN of a host.
All parameters above can be specified partially using * as wildcard. Using only * selects all hosts with this specific attribute supplied, regardless of its value. (e.g. –iqn * selects all hosts with iSCSI connectivity).
–format format
Specifies the output format. Refer to the description of the "Format parameter".
–connectparam
Refer to the description of the "Connection parameters".
Return codes
Error Code | Name | Error Type |
0 |
| Function successful |
3 |
| Version not supported |
7 |
| Specified parameters invalid |
13 |
| Error in StorMan communication between client and server |
16 |
| Unexpected error in function |
36 |
| User / password for StorMan not valid |
Examples
Output for hosts with
–format std
(default)storcfg host –show –name d*
hostID type name hostID D021ZE01 hostname D021ZE01 hosttype SU390 host model SE SERVER SU700 OS BS2000 OSD/BC V11.0A FQDN D021ZE01.abg.fsc.net SE Server SE-Server-2 SE Model SE700 SE Unit model SU700 no IPs found WWPNs: 00C90FF003000000 0100000000000000 5000000000000000 7061737377640000 B84F030000000000 E0C70FF000000000 E0D17D16627F0000 F02B9F17627F0000 F8F0F040C1F040F0 no IQNs found
Output for hosts with
–format medium
storcfg host –show –name d* -format medium
D021ZE01 WWPNs:00C90FF003000000,0100000000000000,5000000000000000
Output for hosts with
–format xmlp
storcfg host –show –name d* -format xmlp
<Response> <ReturnCode> <Code>STORMAN_OK</Code> <CodeNumber>0</CodeNumber> <Text>successful</Text> <SubCode>0</SubCode> <SubCodeText>STORMAN_SUB_NONE</SubCodeText> <AdditionalInformation/> <MessageID>4307</MessageID> <ConnectionID>55525B9BAC7A3</ConnectionID> </ReturnCode> <Result> <Hosts> <Host> <HostName>D021ZE01</HostName> <HostType>SU390</HostType> <HostModel>SE SERVER SU700</HostModel> <HostOs>BS2000 OSD/BC V11.0A</HostOs> <HostFQDN>D021ZE01.abg.fsc.net</HostFQDN> <HostSEServer>SE-Server-2</HostSEServer> <HostSEModel>SE700</HostSEModel> <SeUnitModel>SU700</SeUnitModel> <HostSEEnsemble/> <IsInternalCim>false</IsInternalCim> <IsActionAllowed>true</IsActionAllowed> <IPs> </IPs> <WWPNs> <WWPN>00C90FF003000000</WWPN> <WWPN>0100000000000000</WWPN> <WWPN>5000000000000000</WWPN> <WWPN>7061737377640000</WWPN> <WWPN>B84F030000000000</WWPN> <WWPN>E0C70FF000000000</WWPN> <WWPN>E0D17D16627F0000</WWPN> <WWPN>F02B9F17627F0000</WWPN> <WWPN>F8F0F040C1F040F0</WWPN> </WWPNs> <IQNs> </IQNs> <ConnectedStorageSystems> </ConnectedStorageSystems> </Host> </Hosts> </Result> </Response>