1、 help
##help查看所有命令
## help | more 分页查看
## help | grep re 查看所有带re的命令
swd77:admin> perfhelp
perfaddeemonitor Add end-to-end monitor
perfaddipmonitor Add monitor for IP trafic frame count
perfaddreadmonitor Add filter-based monitor - SCSI Read
perfaddrwmonitor Add monitor - SCSI Read and Write
perfaddscsimonitor Add monitor for SCSI frame count
perfaddusermonitor Add filter-based monitor
perfaddwritemonitor Add filter-based monitor - SCSI Write
perfcfgclear Clear Performance settings from FLASH
perfcfgrestore Restore Performance configuration from FLASH
perfcfgsave Save Performance configuration to FLASH
perfclearalpacrc Clears the CRC error count associated with a port
and Arbitrated Loop Physical Address (AL_PA).
perfcleareemonitor Clears statistics counters of one or more
end-to-end performance monitors.
perfclearfiltermonitor Clears counters of one or more filter-based
performance monitors.
perfdeleemonitor Delete end-to-end monitor
perfdelfiltermonitor Delete filter-based monitor
perfhelp Print Performance Monitoring help info
perfmonitorclear Clear end-to-end/filter-based/ISL monitors
perfmonitorshow Show end-to-end/filter-based/ISL monitors
perfresourceshow Show monitor availability
perfsetporteemask Set overall mask for end-to-end monitors
perfshowalpacrc Get ALPA CRC count by port and ALPA
perfshoweemonitor Show user-defined end-to-end monitors
perfshowfiltermonitor Show filter-based monitors
perfshowporteemask Show the current end-to-end mask
perfttmon Configure bandwidth usage monitor
swd77:admin> routehelp
aptpolicy Get and set Advanced Performance Tuning policy
bcastshow Display broadcast routing information
dlsreset Turn off the dynamic load sharing (DLS) option
dlsset Turn on the dynamic load sharing (DLS) option
dlsshow Display the state of the dynamic load sharing
option
fspfshow Print FSPF global information
interfaceshow Display the FSPF (TM) interface information
ioddelayreset Configure in-order-delivery (IOD) delay parameter
ioddelayshow Configure in-order-delivery (IOD) delay parameter
iodreset Turn off the in-order delivery (IOD) option
iodset Manage the in-order delivery (IOD) option
iodshow Display the state of the in-order delivery option
linkcost Set or print the FSPF cost of a link
lsdbshow Displays the FSPF link state database
nbrstateshow Display FSPF (TM) neighbors' states
nbrstatsclear Reset the FSPF (TM) interface counters
topologyshow Display the unicast fabric topology
urouteconfig Configure a static route
urouteremove Remove a static route
urouteshow Display unicast routing information
swd77:admin> sechelp
fipscfg Configure FIPS mode operation
pkicreate Creates public key infrastructure (PKI) objects
pkiremove Removes existing public key infrastructure (PKI)
objects
pkishow Displays existing public key infrastructure (PKI)
objects
secactivesize Displays size of the active (security) database
secauthsecret Creates/Manages DHCHAP secret key details
seccertutil Creates/Manages/Displays third party PKI
certificates
secdefinesize Displays size of the defined (security) database
secglobalshow Displays current internal security state
information
secpolicyabort Aborts changes to defined policy
secpolicyactivate Activates all policy sets
secpolicyadd Adds members to an existing policy
secpolicycreate Creates a new policy
secpolicydelete Deletes an existing policy
secpolicydump Displays all members of existing policies
secpolicyfcsmove Moves a member in the FCS policy
secpolicyremove Removes members from an existing policy
secpolicysave Saves defined policy set and sends to all switches
secpolicyshow Shows members of one or more policies
secstatsreset Resets security statistics
secstatsshow Displays security statistics
sshutil Configure SSH authentication options
2、 supportshow ##采集信息
3、 version
swd77:admin> version
Kernel: 2.6.14.2
Fabric OS: v6.3.1a
Made on: Fri Feb 26 18:37:16 2010
Flash: Wed Aug 11 14:06:37 2010
BootProm: 1.0.9
4、 ipaddr
swd77:admin> ipaddrshow
SWITCH
Ethernet IP Address: 10.77.77.77
Ethernet Subnetmask: 255.255.255.0
Gateway IP Address: none
DHCP: Off
swd77:admin> ipaddrset
Ethernet IP Address [10.77.77.77]:
Ethernet Subnetmask [255.255.255.0]:
Gateway IP Address [none]:
DHCP [Off]:on
IP address is being changed...Done.
swd77:admin> 2020/05/13-03:24:18, [IPAD-1000], 741, CHASSIS, INFO, Brocade300, SW/0 Ether/0 IPv4 manual none/none DHCP On
5、 dns
swd77:admin> dnsconfig
Enter option
1 Display Domain Name Service (DNS) configuration
2 Set DNS configuration
3 Remove DNS configuration
4 Quit
Select an item: (1..4) [4]
6、 env
swd77:admin> psshow ##电源
Power Supply #1 is OK
swd77:admin> tempshow ##温度
Sensor State Centigrade Fahrenheit
ID
=================================================
1 Ok 29 84
2 Ok 27 80
3 Ok 27 80
swd77:admin> fanshow ##风扇
Fan 1 is Ok, speed is 6136 RPM
Fan 2 is Ok, speed is 6136 RPM
Fan 3 is Ok, speed is 5672 RPM
7、 top
swd77:admin> top
top - 03:33:24 up 17 min, 1 user, load average: 1.13, 0.93, 0.53
Tasks: 74 total, 1 running, 73 sleeping, 0 stopped, 0 zombie
Cpu(s): 30.5%us, 27.4%sy, 0.1%ni, 41.0%id, 0.8%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 504344k total, 181904k used, 322440k free, 3860k buffers
Swap: 0k total, 0k used, 0k free, 59340k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1741 root 16 0 95836 8800 6612 S 96.7 1.7 8:54.54 snmpd
2684 root 15 0 2168 904 732 R 3.9 0.2 0:00.04 top
1 root 16 0 1696 596 524 S 0.0 0.1 0:00.36 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
3 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/0
4 root 10 -5 0 0 0 S 0.0 0.0 0:00.01 khelper
5 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
25 root 10 -5 0 0 0 S 0.0 0.0 0:00.02 kblockd/0
8、 netstat
swd77:admin> netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost:32770 localhost:33917 ESTABLISHED
tcp 0 0 localhost:33917 localhost:32770 ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 6 [ ] DGRAM 274 /dev/log
unix 3 [ ] STREAM CONNECTED 2614 /tmp/ipadm-n-snmpd-1741-5ed31406b
unix 3 [ ] STREAM CONNECTED 1118 /tmp/ipadm-n-webd0-1695-41b1ad322
unix 3 [ ] STREAM CONNECTED 1129 /tmp/ipadm-n-cald0-1697-42b8277d8
unix 3 [ ] STREAM CONNECTED 1136 /tmp/ipadm-n-essd0-1698-42c307d83
unix 3 [ ] STREAM CONNECTED 1191 /tmp/ipadm-n-rpcd0-1731-457db5129
unix 3 [ ] STREAM CONNECTED 1197 /tmp/ipadm-n-secd0-1732-458a42027
unix 3 [ ] STREAM CONNECTED 685 /tmp/ipadm-n-telnetmond-1611-2a1ebf149
unix 2 [ ] STREAM CONNECTED 13851 /tmp/ipadm_getset
unix 2 [ ] DGRAM 13244
unix 3 [ ] STREAM CONNECTED 2616 /tmp/ipadm_notify
unix 3 [ ] STREAM CONNECTED 1199 /tmp/ipadm_notify
unix 3 [ ] STREAM CONNECTED 1193 /tmp/ipadm_notify
unix 3 [ ] STREAM CONNECTED 1138 /tmp/ipadm_notify
unix 3 [ ] STREAM CONNECTED 1131 /tmp/ipadm_notify
unix 3 [ ] STREAM CONNECTED 1120 /tmp/ipadm_notify
unix 2 [ ] DGRAM 766
unix 3 [ ] STREAM CONNECTED 687 /tmp/ipadm_notify
unix 2 [ ] DGRAM 285
9、 i
swd77:admin> i
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
4 S 0 1 0 0 76 0 - 424 - ? 00:00:00 init
1 S 0 2 1 0 94 19 - 0 - ? 00:00:00 ksoftirqd/0
1 S 0 3 1 0 70 -5 - 0 - ? 00:00:00 events/0
1 S 0 4 1 0 76 -5 - 0 - ? 00:00:00 khelper
1 S 0 5 1 0 70 -5 - 0 - ? 00:00:00 kthread
1 S 0 25 5 0 70 -5 - 0 - ? 00:00:00 kblockd/0
1 S 0 56 5 0 80 0 - 0 - ? 00:00:00 pdflush
1 S 0 57 5 0 75 0 - 0 - ? 00:00:00 pdflush
1 S 0 59 5 0 80 -5 - 0 - ? 00:00:00 aio/0
1 S 0 58 1 0 85 0 - 0 - ? 00:00:00 kswapd0
1 S 0 66 5 0 80 -5 - 0 - ? 00:00:00 kseriod
1 S 0 231 1 0 75 0 - 0 - ? 00:00:00 kjournald
1 S 0 248 1 0 -40 - - 419 - ? 00:00:00 wdtd
1 S 0 311 1 0 75 0 - 0 - ? 00:00:00 kjournald
5 S 1 478 1 0 76 0 - 422 - ? 00:00:00 portmap
5 S 0 495 1 0 82 0 - 529 - ? 00:00:00 inetd
1 S 0 518 1 0 76 0 - 486 - ? 00:00:00 syslogd
1 S 0 520 1 0 76 0 - 452 - ? 00:00:00 crond
5 S 0 527 1 0 76 0 - 425 - ? 00:00:00 klogd
1 S 0 539 1 0 75 0 - 0 - ? 00:00:00 RASLOGK_TH
1 S 0 1253 5 0 71 -5 - 0 - ? 00:00:00 kwt_nb_thread
1 S 0 1427 1 0 75 0 - 0 - ? 00:00:00 module-7-th
1 S 0 1493 1 0 79 0 - 0 - ? 00:00:00 kmtracer
5 S 0 1608 1 0 76 0 - 4837 - ? 00:00:00 ipadmd
1 S 0 1611 1 0 76 0 - 2739 - ? 00:00:00 telnetmond
0 S 0 1613 1 0 76 0 - 9275 - ? 00:00:00 superd
5 S 0 1650 1 0 80 0 - 1140 - ? 00:00:00 sshd
4 S 0 1651 1 0 78 0 - 7379 - ? 00:00:00 login
4 S 0 1652 1 0 78 0 - 430 - ttyS1 00:00:00 getty
5 S 0 1653 1613 0 76 0 - 11630 - ? 00:00:00 hasmd0
1 S 0 1657 1 0 75 0 - 0 - ? 00:00:00 FSSK_TH
5 S 0 1661 1653 0 76 0 - 13611 - ? 00:00:00 pdmd0
0 S 0 1662 1653 0 76 0 - 9802 - ? 00:00:00 lfmd
1 S 0 1660 1 0 75 0 - 0 - ? 00:00:00 ISCK_TH
4 S 0 1666 1653 0 76 0 - 15627 - ? 00:00:00 raslogd
4 S 0 1667 1653 0 76 0 - 8101 - ? 00:00:00 traced
5 S 0 1669 1653 0 76 0 - 23889 - ? 00:00:00 emd0
0 S 0 1671 1653 0 78 0 - 2977 - ? 00:00:00 porttestd
1 S 0 1665 1 0 75 0 - 0 - ? 00:00:00 RTEK_TH
5 S 0 1668 1653 0 76 0 - 9434 - ? 00:00:00 diagd0
1 S 0 1691 1 0 75 0 - 0 - ? 00:00:00 porttestd
5 S 0 1695 1653 0 76 0 - 17701 - ? 00:00:00 webd0
1 S 0 1696 1653 0 76 0 - 13534 - ? 00:00:00 arrd0
5 S 0 1697 1653 0 76 0 - 30274 - ? 00:00:04 cald0
5 S 0 1698 1653 0 76 0 - 20210 - ? 00:00:00 essd0
1 S 0 1699 1653 0 76 0 - 20099 - ? 00:00:00 evmd0
5 S 0 1700 1653 0 66 -10 - 18119 - ? 00:00:00 fabricd0
1 S 0 1701 1653 0 76 0 - 13999 - ? 00:00:00 fcpd0
5 S 0 1702 1653 0 76 0 - 17668 - ? 00:00:00 fdmid0
5 S 0 1703 1653 0 76 0 - 15889 - ? 00:00:00 ficud0
5 S 0 1716 1653 0 76 0 - 15908 - ? 00:00:00 fspfd0
5 S 0 1717 1653 0 93 18 - 15671 - ? 00:00:04 fwd0
5 S 0 1721 1653 0 76 0 - 23985 - ? 00:00:00 rcsd0
5 S 0 1722 1653 0 76 0 - 22391 - ? 00:00:00 msd0
5 S 0 1723 1653 0 76 0 - 23509 - ? 00:00:00 nsd0
5 S 0 1729 1653 0 76 0 - 22002 - ? 00:00:00 psd0
1 S 0 1731 1653 0 76 0 - 14241 - ? 00:00:00 rpcd0
5 S 0 1732 1653 0 76 0 - 22152 - ? 00:00:00 secd0
5 S 0 1724 1653 0 76 0 - 13610 - ? 00:00:00 pdmd0
1 S 0 1733 1653 0 76 0 - 15983 - ? 00:00:00 authd0
4 S 0 1741 1653 80 76 0 - 23257 - ? 00:35:11 snmpd
1 S 0 1742 1653 0 76 0 - 15620 - ? 00:00:00 trafd0
1 S 0 1743 1653 0 76 0 - 13935 - ? 00:00:00 tsd0
5 S 0 1744 1653 0 76 0 - 28046 - ? 00:00:00 zoned0
5 S 0 1764 1 0 76 0 - 2083 - ? 00:00:00 httpd.0
5 S 99 1765 1764 0 76 0 - 2124 - ? 00:00:00 httpd.0
5 S 99 1767 1764 0 76 0 - 2172 - ? 00:00:00 httpd.0
4 S 0 1768 1765 0 76 0 - 14963 - ? 00:00:00 0.weblinker.fc
5 S 99 1769 1764 0 76 0 - 2172 - ? 00:00:00 httpd.0
1 S 0 1781 1653 0 76 0 - 13610 - ? 00:00:00 agd0
4 S 0 2255 1651 0 75 0 - 1398 - ttyS0 00:00:00 rbash
4 S 0 2442 1608 0 75 0 - 394 - ? 00:00:00 dhcpcd
4 S 0 3736 2255 0 78 0 - 2741 - ttyS0 00:00:00 i
0 R 0 3739 3736 0 76 0 - 557 - ttyS0 00:00:00 ps
10、 switch
swd77:admin> switchshow
##No_Light表示插了模块但没亮,online表示已经连接了光纤
switchName: swd77
switchType: 71.2
switchState: Online
switchMode: Native
switchRole: Principal
switchDomain: 1
switchId: fffc01
switchWwn: 10:00:00:05:33:0a:bf:5f
zoning: OFF
switchBeacon: OFF
Index Port Address Media Speed State Proto
==============================================
0 0 011700 id N8 No_Light FC
1 1 011500 id N8 No_Light FC
2 2 011300 id N8 No_Light FC
3 3 011100 id N8 No_Light FC
4 4 011600 -- N8 No_Module FC
5 5 011400 -- N8 No_Module FC
6 6 011200 -- N8 No_Module FC
7 7 011000 -- N8 No_Module FC
8 8 010f00 -- N8 No_Module FC
9 9 010d00 -- N8 No_Module FC
10 10 010b00 -- N8 No_Module FC
11 11 010900 -- N8 No_Module FC
12 12 010e00 -- N8 No_Module FC
13 13 010c00 -- N8 No_Module FC
14 14 010a00 -- N8 No_Module FC
15 15 010800 -- N8 No_Module FC
16 16 010700 -- N8 No_Module FC (No POD License) Disabled
17 17 010500 -- N8 No_Module FC (No POD License) Disabled
18 18 010300 id N8 No_Light FC (No POD License) Disabled
19 19 010100 -- N8 No_Module FC (No POD License) Disabled
20 20 010600 -- N8 No_Module FC (No POD License) Disabled
21 21 010400 -- N8 No_Module FC (No POD License) Disabled
22 22 010200 -- N8 No_Module FC (No POD License) Disabled
23 23 010000 -- N8 No_Module FC (No POD License) Disabled
swd77:admin> switchdisable
2020/05/13-04:10:24, [SNMP-1007], 745, FID 128, INFO, swd77, The last fabric change happened at: Wed May 13 04:10:20 2020
2020/05/13-04:10:25, [FW-1424], 746, FID 128, WARNING, swd77, Switch status changed from HEALTHY to MARGINAL.
2020/05/13-04:10:25, [FW-1439], 747, FID 128, WARNING, swd77, Switch status change contributing factor Switch offline.
swd77:admin> switchshow
switchName: swd77
switchType: 71.2
switchState: Offline
switchMode: Native
switchRole: Disabled
switchDomain: 1 (unconfirmed)
switchId: fffc01
switchWwn: 10:00:00:05:33:0a:bf:5f
zoning: OFF
switchBeacon: OFF
Index Port Address Media Speed State Proto
==============================================
0 0 011700 id N8 No_Light FC Disabled
1 1 011500 id N8 No_Light FC Disabled
2 2 011300 id N8 No_Light FC Disabled
3 3 011100 id N8 No_Light FC Disabled
4 4 011600 -- N8 No_Module FC Disabled
5 5 011400 -- N8 No_Module FC Disabled
6 6 011200 -- N8 No_Module FC Disabled
7 7 011000 -- N8 No_Module FC Disabled
8 8 010f00 id N4 No_Light FC Disabled
9 9 010d00 -- N8 No_Module FC Disabled
10 10 010b00 -- N8 No_Module FC Disabled
11 11 010900 -- N8 No_Module FC Disabled
12 12 010e00 -- N8 No_Module FC Disabled
13 13 010c00 -- N8 No_Module FC Disabled
14 14 010a00 -- N8 No_Module FC Disabled
15 15 010800 -- N8 No_Module FC Disabled
16 16 010700 -- N8 No_Module FC (No POD License) Disabled
17 17 010500 -- N8 No_Module FC (No POD License) Disabled
18 18 010300 -- N8 No_Module FC (No POD License) Disabled
19 19 010100 -- N8 No_Module FC (No POD License) Disabled
20 20 010600 -- N8 No_Module FC (No POD License) Disabled
21 21 010400 -- N8 No_Module FC (No POD License) Disabled
22 22 010200 -- N8 No_Module FC (No POD License) Disabled
23 23 010000 -- N8 No_Module FC (No POD License) Disabled
swd77:admin> switchenable
swd77:admin> 2020/05/13-04:10:44, [FW-1425], 748, FID 128, INFO, swd77, Switch status changed from MARGINAL to HEALTHY.
swd77:admin> switchshow
switchName: swd77
switchType: 71.2
switchState: Online
switchMode: Native
switchRole: Principal
switchDomain: 1
switchId: fffc01
switchWwn: 10:00:00:05:33:0a:bf:5f
zoning: OFF
switchBeacon: OFF
Index Port Address Media Speed State Proto
==============================================
0 0 011700 id N8 No_Light FC
1 1 011500 id N8 No_Light FC
2 2 011300 id N8 No_Light FC
3 3 011100 id N8 No_Light FC
4 4 011600 -- N8 No_Module FC
5 5 011400 -- N8 No_Module FC
6 6 011200 -- N8 No_Module FC
7 7 011000 -- N8 No_Module FC
8 8 010f00 id N4 No_Light FC
9 9 010d00 -- N8 No_Module FC
10 10 010b00 -- N8 No_Module FC
11 11 010900 -- N8 No_Module FC
12 12 010e00 -- N8 No_Module FC
13 13 010c00 -- N8 No_Module FC
14 14 010a00 -- N8 No_Module FC
15 15 010800 -- N8 No_Module FC
16 16 010700 -- N8 No_Module FC (No POD License) Disabled
17 17 010500 -- N8 No_Module FC (No POD License) Disabled
18 18 010300 -- N8 No_Module FC (No POD License) Disabled
19 19 010100 -- N8 No_Module FC (No POD License) Disabled
20 20 010600 -- N8 No_Module FC (No POD License) Disabled
21 21 010400 -- N8 No_Module FC (No POD License) Disabled
22 22 010200 -- N8 No_Module FC (No POD License) Disabled
23 23 010000 -- N8 No_Module FC (No POD License) Disabled
11、 port
swd77:admin> portcfgshow
Ports of Slot 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-----------------+--+--+--+--+----+--+--+--+----+--+--+--+----+--+--+--
Speed AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN
Fill Word 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
AL_PA Offset 13 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Trunk Port ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON
Long Distance .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
VC Link Init .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Locked L_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Locked G_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Disabled E_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
ISL R_RDY Mode .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
RSCN Suppressed .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Persistent Disable.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
NPIV capability ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON
QOS E_Port AE AE AE AE AE AE AE AE AE AE AE AE AE AE AE AE
Mirror Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Rate Limit .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Credit Recovery ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON
Fport Buffers .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Port Auto Disable .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Ports of Slot 0 16 17 18 19 20 21 22 23
-----------------+--+--+--+--+----+--+--+--
Speed AN AN AN AN AN AN AN AN
Fill Word 0 0 0 0 0 0 0 0
AL_PA Offset 13 .. .. .. .. .. .. .. ..
Trunk Port ON ON ON ON ON ON ON ON
Long Distance .. .. .. .. .. .. .. ..
VC Link Init .. .. .. .. .. .. .. ..
Locked L_Port .. .. .. .. .. .. .. ..
Locked G_Port .. .. .. .. .. .. .. ..
Disabled E_Port .. .. .. .. .. .. .. ..
ISL R_RDY Mode .. .. .. .. .. .. .. ..
RSCN Suppressed .. .. .. .. .. .. .. ..
Persistent Disable.. .. .. .. .. .. .. ..
NPIV capability ON ON ON ON ON ON ON ON
QOS E_Port AE AE AE AE AE AE AE AE
Mirror Port .. .. .. .. .. .. .. ..
Rate Limit .. .. .. .. .. .. .. ..
Credit Recovery ON ON ON ON ON ON ON ON
Fport Buffers .. .. .. .. .. .. .. ..
Port Auto Disable .. .. .. .. .. .. .. ..
where AE:QoSAutoEnable, AN:AutoNegotiate, ..:OFF, NA:NotApplicable, ??:INVALID,
swd77:admin> portshow 1
portName:
portHealth: No Fabric Watch License
Authentication: None
portDisableReason: None
portCFlags: 0x0
portFlags: 0x4021 PRESENT U_PORT DISABLED LED
portType: 18.0
POD Port: Port is licensed
portState: 2 Offline
Protocol: FC
portPhys: 4 No_Light portScn: 0
port generation number: 0
state transition count: 0
portId: 011500
portIfId: 43020015
portWwn: 20:01:00:05:33:0a:bf:5f
portWwn of device(s) connected:
Distance: normal
portSpeed: N8Gbps
LE domain: 0
FC Fastwrite: OFF
Interrupts: 0 Link_failure: 0 Frjt: 0
Unknown: 0 Loss_of_sync: 0 Fbsy: 0
Lli: 2 Loss_of_sig: 2
Proc_rqrd: 5 Protocol_err: 0
Timed_out: 0 Invalid_word: 0
Rx_flushed: 0 Invalid_crc: 0
Tx_unavail: 0 Delim_err: 0
Free_buffer: 0 Address_err: 0
Overrun: 0 Lr_in: 0
Suspended: 0 Lr_out: 0
Parity_err: 0 Ols_in: 0
2_parity_err: 0 Ols_out: 0
CMI_bus_err: 0
Port part of other ADs: No
swd77:admin> portdisable 1,1
swd77:admin> switchshow
switchName: swd77
switchType: 71.2
switchState: Online
switchMode: Native
switchRole: Principal
switchDomain: 1
switchId: fffc01
switchWwn: 10:00:00:05:33:0a:bf:5f
zoning: OFF
switchBeacon: OFF
Index Port Address Media Speed State Proto
==============================================
0 0 011700 id N8 No_Light FC
1 1 011500 id N8 No_Light FC Disabled
2 2 011300 id N8 No_Light FC
3 3 011100 id N8 No_Light FC
4 4 011600 -- N8 No_Module FC
5 5 011400 -- N8 No_Module FC
6 6 011200 -- N8 No_Module FC
7 7 011000 -- N8 No_Module FC
8 8 010f00 id N4 No_Light FC
9 9 010d00 -- N8 No_Module FC
10 10 010b00 -- N8 No_Module FC
11 11 010900 -- N8 No_Module FC
12 12 010e00 -- N8 No_Module FC
13 13 010c00 -- N8 No_Module FC
14 14 010a00 -- N8 No_Module FC
15 15 010800 -- N8 No_Module FC
16 16 010700 -- N8 No_Module FC (No POD License) Disabled
17 17 010500 -- N8 No_Module FC (No POD License) Disabled
18 18 010300 -- N8 No_Module FC (No POD License) Disabled
19 19 010100 -- N8 No_Module FC (No POD License) Disabled
20 20 010600 -- N8 No_Module FC (No POD License) Disabled
21 21 010400 -- N8 No_Module FC (No POD License) Disabled
22 22 010200 -- N8 No_Module FC (No POD License) Disabled
23 23 010000 -- N8 No_Module FC (No POD License) Disabled
swd77:admin> portenable 1,1
swd77:admin> switchshow
switchName: swd77
switchType: 71.2
switchState: Online
switchMode: Native
switchRole: Principal
switchDomain: 1
switchId: fffc01
switchWwn: 10:00:00:05:33:0a:bf:5f
zoning: OFF
switchBeacon: OFF
Index Port Address Media Speed State Proto
==============================================
0 0 011700 id N8 No_Light FC
1 1 011500 id N8 No_Light FC
2 2 011300 id N8 No_Light FC
3 3 011100 id N8 No_Light FC
4 4 011600 -- N8 No_Module FC
5 5 011400 -- N8 No_Module FC
6 6 011200 -- N8 No_Module FC
7 7 011000 -- N8 No_Module FC
8 8 010f00 id N4 No_Light FC
9 9 010d00 -- N8 No_Module FC
10 10 010b00 -- N8 No_Module FC
11 11 010900 -- N8 No_Module FC
12 12 010e00 -- N8 No_Module FC
13 13 010c00 -- N8 No_Module FC
14 14 010a00 -- N8 No_Module FC
15 15 010800 -- N8 No_Module FC
16 16 010700 -- N8 No_Module FC (No POD License) Disabled
17 17 010500 -- N8 No_Module FC (No POD License) Disabled
18 18 010300 -- N8 No_Module FC (No POD License) Disabled
19 19 010100 -- N8 No_Module FC (No POD License) Disabled
20 20 010600 -- N8 No_Module FC (No POD License) Disabled
21 21 010400 -- N8 No_Module FC (No POD License) Disabled
22 22 010200 -- N8 No_Module FC (No POD License) Disabled
23 23 010000 -- N8 No_Module FC (No POD License) Disabled
swd77:admin> portcfgdefault 1,1
2020/05/13-04:11:03, [PORT-1006], 749, FID 128, INFO, swd77, Configuration changed for port (ID: 1) in No_Module or No_Light state
12、 alias
swd77:admin> alicreate "Testali","1,3"
swd77:admin> alishow
Defined configuration:
alias: Testali 1,3
Effective configuration:
no configuration in effect
swd77:admin> aliremove "Testali","1,3"
swd77:admin> alishow
Defined configuration:
no configuration defined
Effective configuration:
no configuration in effect
13、 zone
swd77:admin> zonecreate "Testzone","1,2"
swd77:admin> zonecreate "Testzone2","1,1;1,2"
swd77:admin> zoneshow
Defined configuration:
zone: Testzone
1,2
zone: Testzone2
1,1; 1,2
Effective configuration:
no configuration in effect
14、 cfg
swd77:admin> cfgcreate "Testcfg","Testzone;Testzone3"
swd77:admin> cfgcreate "Testcfg2","Testzone;Testzone2"
swd77:admin> cfgshow
Defined configuration:
cfg: Testcfg Testzone; Testzone3
cfg: Testcfg2
Testzone; Testzone2
zone: Testzone
1,2
zone: Testzone2
1,1; 1,2
zone: Testzone3
testali; 1,3; 1,4; 1,5
alias: Testali 1,3; 1,4
alias: Testali10 1,3; 1,4
Effective configuration:
no configuration in effect
swd77:admin> cfgenable "Testcfg2"
You are about to enable a new zoning configuration.
This action will replace the old zoning configuration with the
current configuration selected. If the update includes changes
to one or more traffic isolation zones, the update may result in
localized disruption to traffic on ports associated with
the traffic isolation zone changes
Do you want to enable 'Testcfg2' configuration (yes, y, no, n): [no] yes
sw0 Updating flash ...
2020/05/13-06:18:28, [ZONE-1022], 731, FID 128, INFO, swd77, The effective configuration has changed to Testcfg2.
zone config "Testcfg2" is in effect
Updating flash ...
swd77:admin> cfgsave
You are about to save the Defined zoning configuration. This
action will only save the changes on Defined configuration.
Any changes made on the Effective configuration will not
take effect until it is re-enabled.
Do you want to save Defined zoning configuration only? (yes, y, no, n): [no] yes
Nothing changed: nothing to save, returning ...
swd77:admin> cfgclear ##清除定义的配置
The Clear All action will clear all Aliases, Zones, FA Zones
and configurations in the Defined configuration.
cfgSave may be run to close the transaction or cfgTransAbort
may be run to cancel the transaction.
Do you really want to clear all configurations? (yes, y, no, n): [no] yes
swd77:admin> cfgshow
Defined configuration:
no configuration defined
Effective configuration:
cfg: Testcfg
zone: Testzone
1,2
zone: Testzone3
1,3
1,4
1,5
swd77:admin> cfgdisable ##清除当前配置
You are about to disable zoning configuration. This
action will disable any previous zoning configuration enabled.
Do you want to disable zoning configuration? (yes, y, no, n): [no] yes
sw0 Updating flash ...
2020/05/13-03:20:15, [ZONE-1042], 740, FID 128, INFO, swd77, The effective configuration has been disabled.
Updating flash ...
15、 userconfig
swd77:admin> userconfig --show
Account name: admin
Description: Administrator
Enabled: Yes
Password Last Change Date: Mon Nov 15 2010 (UTC)
Password Expiration Date: Not Applicable (UTC)
Locked: No
Role: admin
AD membership: 0-255
Home AD: 0
16、 urouteshow
swd77:admin> urouteshow
Local Domain ID: 1
In Port Domain Out Port Metric Hops Flags Next (Dom, Port)
----------------------------------------------------------------------------
17、 uptime/switchuptime
swd77:admin> uptime
03:30:58 up 14 min, 1 user, load average: 1.01, 0.80, 0.44
swd77:admin> switchuptime
3:37am: up for 21 mins
18、 topologyshow
swd77:admin> topologyshow
1 domain(s) in the fabric; Local Domain ID: 1
19、 sfpshow
swd77:admin> sfpshow
Port 0: id (sw) Vendor: HP-A BROCADE Serial No: UAA110256117941 Speed: 200,400,800_MB/s
Port 1: id (sw) Vendor: HP-A BROCADE Serial No: UAA110256117261 Speed: 200,400,800_MB/s
Port 2: id (sw) Vendor: HP-A BROCADE Serial No: UAA110256121571 Speed: 200,400,800_MB/s
Port 3: id (sw) Vendor: HP-A BROCADE Serial No: UAA110246010212 Speed: 200,400,800_MB/s
Port 4: --
Port 5: --
Port 6: --
Port 7: --
Port 8: id (sw) Vendor: BROCADE Serial No: VAF209300000DB3 Speed: 100,200,400_MB/s
Port 9: --
Port 10: --
Port 11: --
Port 12: --
Port 13: --
Port 14: --
Port 15: --
Port 16: --
Port 17: --
Port 18: --
Port 19: --
Port 20: --
Port 21: --
Port 22: --
Port 23: --