Sunday, June 19, 2011

Brocade Switch basic Commands

1)Switchshow:

switch26:admin> switchshow
switchName:     switch26
switchType:     27.2
switchState:    Online
switchMode:     Native
switchRole:     Subordinate
switchDomain:   26
switchId:       fffc1a
switchWwn:      10:00:00:05:1e:34:ff:ab
zoning:         ON (cfg4)
switchBeacon:   ON
Area Port Media Speed State     Proto
=====================================
  0   0   id    N1   Online           L-Port  9 public
  1   1   id    N2   No_Light
  2   2   id    2G   No_Light
  3   3   id    N2   No_Light
  4   4   id    N2   No_Light
  5   5   id    N1   Online           E-Port  10:00:00:60:69:c0:7e:c4 "switch24"
 (upstream)
  6   6   id    N2   No_Light
  7   7   id    N1   Online           E-Port  10:00:00:60:69:c0:7e:c4 "switch24"
switch26:admin>

2)portshow :

switch26:admin> portshow
Usage:
  portshow [<SlotNumber>/]<PortNumber>
  OR
  portshow [ipif|arp|iproute|fciptunnel|iscsi|mode]
           [<SlotNumber>/]ge<PortNumber> [<Args>] [<Optional Args>]
Args:    all|<tunnel_id> - Show All/<tunnel_id> FCIP tunnels on this GigE port.
Optional Args:   -perf   Additional performance information.
                         Valid for portshow fciptunnel only.
                 -params Connection parameter information.
                         Valid for portshow fciptunnel only.
                 -ipsec  IKE and IPSec policy information
                         on IPSec enabled tunnels.
                         Valid for portshow fciptunnel only.



3)nsshow  :

NAME
     nsShow - Displays local Name Server information.
SYNOPSIS
     nsshow [ -r -t ]
DESCRIPTION
     Use  this  command  to display local Name Server information
     about devices connected to this switch.
     The following message is displayed if there is  no  informa-
     tion in this switch:
         There is no entry in the Local Name Server
     The   nsAllShow   command   displays  information  from  all
     switches.
        Each line of output displays:
          Type      U for unknown, N for N_Port, NL for NL_Port.
          Pid       24-bit Fibre Channel address.
          COS       List of classes of service supported by device.
          PortName  Device port World Wide Name.
          NodeName  Device node World Wide Name.
          TTL       Time-to-live (in seconds) for cached entries, or
                    'NA' (not-applicable) if the entry is local. This is
                    displayed if "-r" option is not given.
          SCR       State change registration of the device. This is
                    displayed if "-r" option is given.
          Device type    Device type if "-t" option is given.
          Permanent Port Name Physical N_Port or NL_Port World Wide Name.
          Port Index     The port index this device is attached to.
          Shared Area    Whether this device shares an area with other devices.
          Device Shared in Other AD     Whether device is shared in other AD.
     There might be additional lines if the device has registered
     any  of  the following information (the switch automatically
     registers SCSI inquiry data for FCP target devices):



4)portcfgshow  :

switch26:admin>
switch26:admin> portcfgshow
Ports of Slot 0    0  1  2  3    4  5  6  7
-----------------+--+--+--+--+----+--+--+--
Speed             AN AN 2G AN   AN AN AN AN
Trunk Port        ON ON ON ON   ON ON ON ..
Long Distance     .. .. .. ..   .. .. .. ..
VC Link Init      .. .. .. ..   .. .. .. ..
Locked L_Port     .. ON .. ..   ON .. .. ..
Locked G_Port     .. .. ON ..   .. ON .. ..
Disabled E_Port   ON ON .. ..   .. .. .. ..
ISL R_RDY Mode    .. .. .. ..   .. .. .. ..
RSCN Suppressed   .. .. .. ..   .. .. .. ..
Persistent Disable.. .. .. ..   .. .. .. ..
NPIV capability   .. .. .. ..   .. .. .. ..
                  where AN:AutoNegotiate, ..:OFF, ??:INVALID,
                  SN:Software controlled AutoNegotiation.
                        LM:L0.5
switch26:admin>

     
5)ipaddrshow  :


switch26:admin> ipaddrshow
SWITCH
Ethernet IP Address: 192.168.0.26
Ethernet Subnetmask: 255.255.255.0
Fibre Channel IP Address: none
Fibre Channel Subnetmask: none
Gateway IP Address: 192.168.0.254
DHCP: Off
switch26:admin>
   

ISL R_RDY Mode    .. .. .. ..   .. .. .. ..
RSCN Suppressed   .. .. .. ..   .. .. .. ..
Persistent Disable.. .. .. ..   .. .. .. ..
NPIV capability   .. .. .. ..   .. .. .. ..
                  where AN:AutoNegotiate, ..:OFF, ??:INVALID,
                  SN:Software controlled AutoNegotiation.
                        LM:L0.5

6)licenseshow  :

switch26:admin> licenseshow
RecbdezQeSgfdceI:
    Web license
    Zoning license
    Fabric license
    Remote Switch license
    Extended Fabric license
    Fabric Watch license
    Performance Monitor license
    Trunking license
switch26:admin>

7)timeout :


switch26:admin> timeout
Current IDLE Timeout is 15 minutes
switch26:admin> timeout 20
IDLE Timeout Changed to 20 minutes
The modified IDLE Timeout will be in effect after NEXT login
switch26:admin>

8)quietmode :

switch26:admin> quietmode
quietMode: Off
Usage: quietMode 0|1
         0: to turn it off
         1: to turn it on
switch26:admin>

9)psshow :


switch26:admin> psshow
Power Supply #1 is OK
switch26:admin>


10)fanshow :


Power Supply #1 is OK
switch26:admin> fanshow
Fan 1 is Ok, speed is 5443 RPM
Fan 2 is Ok, speed is 5443 RPM
Fan 3 is Ok, speed is 5443 RPM
switch26:admin>


11)tempshow :


switch26:admin> tempshow
Sensor  State           Centigrade     Fahrenheit
  ID
=================================================
  1     Ok          35             95
  2     Ok          33             91
  3     Ok          33             91
  4     Ok          30             86
switch26:admin>



12)Configure :


Configure...
  System services (yes, y, no, n): [no] y
  ssl attributes (yes, y, no, n): [no] y
        Certificate File. (filename or none): [none]
        CA Certificate File. (filename or none): [none]
        Select length of crypto key.
          (Valid values are 40, 56, and 128.): (40..128) [128]
  snmp attributes (yes, y, no, n): [no]
  rpcd attributes (yes, y, no, n): [no]
  cfgload attributes (yes, y, no, n): [no]

  webtools attributes (yes, y, no, n): [no]
  System  (yes, y, no, n): [no]
No changes.
switch26:admin>

13)portcfgspeed :

switch26:admin> portcfgspeed
Usage: portCfgSpeed PortNumber  Speed_Level
Speed_Level:    0 - Auto Negotiate
                1 - 1Gbps
                2 - 2Gbps
                4 - 4Gbps
switch26:admin>



14 )switchdisable & switchenable :



mnc:admin> switchdisable
mnc:admin> 0x101fede0 (tThad): Jun 19 17:57:28
    WARNING FW-STATUS_SWITCH, 3, Switch status changed from HEALTHY/OK to Margin
al/Warning

mnc:admin> switchenable
Command in progress . . . . . . . . . . . . . . . . done
mnc:admin> 0x101fede0 (tThad): Jun 19 17:57:44
    WARNING FW-STATUS_SWITCH, 3, Switch status changed from Marginal/Warning to
HEALTHY/OK
0x1020e270 (tFabric): Jun 19 17:57:53
    INFO FABRIC-SWITCH_ROLE, 4, Principal switch
0x1020e270 (tFabric): Jun 19 17:57:53
    INFO FABRIC-DOMAIN_INFO, 4, Domain 3

mnc:admin>

version  :

switch26:admin> version
Kernel:     2.6.14
Fabric OS:  v5.3.0
Made on:    Thu Jun 14 19:04:04 2007
Flash:      Thu Aug 9 20:28:44 2007
BootProm:   4.5.3
switch26:admin>


15)fastboot  :

switch26:admin> fastboot

Broadcast message from root (pts/0) Sun Jun 19 17:35:32 2011...
The system is going down for reboot NOW !!
switch26:admin>
Connection to host lost.
C:\Documents and Settings\admin>

No comments:

Post a Comment



Follow storageadmiins on Twitter Follow storageadmiins on Twitter