Q-Logic FC HBA CLI Output in XML Format, To create a virtual port with an automatic WWPN, type

Models: FC HBA CLI

1 280
Download 280 pages 22.31 Kb
Page 181
Image 181

A

5Non-interactive Commands Command Summary

Where:

HBA Instance = HBA number (use -gcommand to find) HBA WWPN = World wide port name of the HBA vport WWPN = World wide port name of the virtual port

vport hex = World wide port name of the virtual port with the two hex digits in byte three supplied by the user

To list a specific virtual port on a physical HBA port, type:

#scli -vp (<HBA Instance> : <HBA WWPN>) list <vport wwpn>

To create a virtual port with an automatic WWPN, type:

#scli -vp (<HBA Instance> : <HBA WWPN>) create auto

To create a virtual port with a specific WWPN, type:

#scli -vp (<HBA Instance> : <HBA WWPN>) create <vport hex>

When prompted, enter two hexadecimal digits. The system checks these digits to be sure they are unique and, if they are, puts them into byte 3 of the WWPN.

To delete all virtual ports on a physical HBA port, type:

#scli -vp (<HBA Instance> : <HBA WWPN>) delete all

To delete a particular virtual port on a physical HBA port, type:

# scli -vp (<HBA Instance> : <HBA WWPN>) delete <vport wwpn>

5.3.34

-x

(Output in XML Format 1)

NOTE:

This option is valid only in non-interactive mode.

You can use this option with all non-interactive mode options that have a corresponding interactive mode option (see Table 5-1). This option must be the first or last command in the command line.

When you use this option, the system shows all result and status messages in XML format 1, a legacy format. These formats are described in Appendix A. This option is usually combined with the -ooption (see section 5.3.23) to create a text file with XML output so that it can be parsed by an XML-compliant utility. For example to show HBA general information and output it to an XML file named output.xml:

# scli -i all -x -o output.xml

SN0054614-00 F

5-41

Page 181
Image 181
Q-Logic FC HBA CLI manual Output in XML Format, To create a virtual port with an automatic WWPN, type