Table of Contents

QLogic Fibre Channel Switch CLI Commands



Example

FC Switch #> admin start
FC Switch (admin) #> config edit
  The config named default is being edited.
FC Switch (admin-config) #> 


FC Switch (admin-config) #> config save
The config named default has been saved.
SN6000 FC Switch (admin) #> config activate
  The currently active configuration will be activated.
  Please confirm (y/n): [n] y
  Alarm Msg: [Sat Jul 12 13:04:38.895 UTC 2014][A][1004.0030][Topology change, lost route to switch with domain ID 1]
FC Switch (admin) #>
FC Switch (admin) #> admin stop
FC Switch #>

Commands

Check

Operation
Check Swich Parameter FC Switch #>show switch
show log FC Switch #>show log

Port

show port status FC Switch #>show port
show WWN FC Switch #>show topology
FC Switch #>show topology 11
Disable Port FC Switch #>set port 0 state down
Enable Port FC Switch #>set port 0 state online

Zoning

edit zone FC Switch (admin) #> zone edit
create zoneset FC Switch (admin-zoning) #> zoneset create test-zoneset1
create zone FC Switch (admin-zoning) #> zone create test1_Zone
save zone FC Switch (admin-zoning) #> zone save
add ponrt to zone FC Switch (admin-zoning) #> zone add test1_Zone 11,1 11,2
add zone to zoneset FC Switch (admin-zoning) #> zoneset add test-zoneset1 test1_Zone
activate zoneset FC Switch (admin-zoning) #> zoneset activate test-zoneset1
delete zone from zoneset FC Switch (admin-zoning) #> zoneset remove test-zoneset1 test1_Zone
delete member from zone FC Switch (admin-zoning) #> zone remove test-zoneset1 test1_Zone 11,1
delete zone FC Switch (admin-zoning) #> zone delete test1_Zone
rename zone FC Switch (admin-zoning) #> zone rename OLD_Zone NEW_Zone

Add Zone

test-fcsw1_1 #> zoning list

test-fcsw1_1 #> admin start
test-fcsw1_1 (admin) #> zoning edit

test-fcsw1_1 (admin-zoning) #> zone create test-server1_Zone
test-fcsw1_1 (admin-zoning) #> zone create test-server2_Zone

test-fcsw1_1 (admin-zoning) #> zone add test-server1_Zone 12,0 12,4 12,16
test-fcsw1_1 (admin-zoning) #> zone add test-server2_Zone 12,0 12,4 12,17

test-fcsw1_1 (admin-zoning) #> zoneset add test_zoneset1 test-server1_Zone
test-fcsw1_1 (admin-zoning) #> zoneset add test_zoneset1 test-server2_Zone

test-fcsw1_1 (admin-zoning) #> zoning list   <- for final check

test-fcsw1_1 (admin-zoning) #> zoning save
test-fcsw1_1 (admin) #> zoneset activate test_zoneset1

test-fcsw1_1 (admin) #> zoning list
test-fcsw1_1 (admin) #> exit
Good bye.

Configuration

Backup

Crate Backup File

FC Switch #> config backup
C:\>ftp 192.168.xx.xx
User (192.168.xx.xx:(none)): images
331 Please specify the password.
Password:
230 Login successful.
ftp> bin
200 Switching to Binary mode.
ftp> get configdata
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for configdata (139830 bytes).
226 File send OK.
ftp> quit
221 Goodbye.

Restore

appload config file

C:\>ftp 192.168.xx.xx
220 (vsFTPd 2.0.5)
User (192.168.xx.xx:(none)): images
331 Please specify the password.
Password:
230 Login successful.
ftp> bin
200 Switching to Binary mode.
ftp> put configdata
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 File receive OK.
ftp> quit
221 Goodbye.
C:\>
test-fcsw1_1 #> admin start 
test-fcsw1_1 (admin) #> config restore 

  The switch will be reset after restoring the configuration.
  This process will cause a disruption to I/O traffic.
  Please confirm (y/n): [n] y





Hardware