HP StorageWorks Fabric OS 5.0.0 Command Reference Guide (AA-RW1MA-TE, May 2005)

288 Fabric OS commands
Sets the IP address details for a switch or control processor (CP).
Synopsis
ipaddrset [-cp number] [-sw number]
Availability
admin
Description
Use this command to set the IP addresses on the switch or CP. If no option is provided on a chassis-based
system, the command displays the usage. To set the CP IP address use -cp; to set the switch IP address use
-sw. When setting the switch, the command prompts for the Ethernet IP address, Ethernet subnetmask,
Fibre Channel IP address, and Fibre Channel subnetmask. When setting the CP, the command prompts for
the Ethernet IP address, Ethernet subnetmask, host name, and gateway IP address.
Valid switch and CP values depend on the platform from which the command is being run. For a
nonchassis-based switch, the command ignores all operands. The command prompts for the Ethernet IP
address, Ethernet subnetmask, Fibre Channel IP address, Fibre Channel subnetmask, and gateway IP
address.
Operands
This command has the following operands on a chassis-based system:
If no option is specified the command displays the usage.
Examples
To set the IP address details for logical switch 1 on a chassis-based system:
ipAddrSet
-cp number Valid options include:
0 sets the Ethernet IP address, Ethernet subnetmask, gateway
IP address, and host name of CP0.
1 sets the Ethernet IP address, Ethernet subnetmask, gateway
IP address, and host name of CP1.
-sw number Valid options include:
0 sets the Ethernet IP address, Ethernet subnetmask, Fibre
Channel IP address, and Fibre Channel subnetmask of
logical switch 0.
1 sets the Ethernet IP address, Ethernet subnetmask, Fibre
Channel IP address, and Fibre Channel Subnetmask of
logical switch 1.
switch:admin> ipaddrset -sw 1
Ethernet IP Address [192.168.166.148]:
Ethernet Subnetmask [255.255.255.0]:
Fibre Channel IP Address [none]:
Fibre Channel Subnetmask [none]:
Committing configuration...Done.
OK.