Infrequently used or dangerous commands

Commands

View Switch Model

fcsw2-03:admin> chassisname
SilkWorm4024

View Fabric Topology

fcsw2-03:admin> fabricshow
Switch ID   Worldwide Name           Enet IP Addr    FC IP Addr      Name
-------------------------------------------------------------------------
 21: fffc15 10:00:00:05:1e:02:75:c7 172.27.206.216  0.0.0.0        >"gy-fcsw2-01"
 22: fffc16 10:00:00:05:1e:04:95:07 172.27.208.152  0.0.0.0         "gy-fcsw2-02"
 23: fffc17 10:00:00:05:1e:04:94:d4 172.27.208.173  0.0.0.0         "gy-fcsw2-03"
 24: fffc18 10:00:00:05:33:2e:7d:ed 172.27.208.175  0.0.0.0         "gy-fcsw2-04"

The Fabric has 4 switches

The > indicates the Fabric Principal.

View SFP information

Use sfpshow to see information about sfp tranceivers,

fcsw2-01:admin> sfpshow
Port  0: id (sw) Vendor: FINISAR CORP.    Serial No: U9E0GEL 
.... edited ....

To see more detail, specify the sfp number or use the -all switch:-

fcsw2-01:admin> sfpshow 0
Identifier:  3    SFP
Connector:   7    LC
Transceiver: 150c402001000000 100,200,400_MB/s M5,M6 sw Inter_dist
Encoding:    1    8B10B
Baud Rate:   42   (units 100 megabaud)
Length 9u:   0    (units km)
Length 9u:   0    (units 100 meters)
Length 50u:  15   (units 10 meters)
Length 62.5u:7    (units 10 meters)
Length Cu:   0    (units 1 meter)
Vendor Name: FINISAR CORP.
Vendor OUI:  00:90:65
Vendor PN:   FTLF8524P2BNV
Vendor Rev:  A
Wavelength:  850  (units nm)
Options:     0032 Loss_of_Sig,Tx_Disable
BR Max:      0
BR Min:      0
Serial No:   U9E0GEL
Date Code:   060410
Temperature: 37 Centigrade
Current:     8.242 mAmps
Voltage:     3319.7 mVolts
RX Power:    369.8 uWatts
TX Power:    369.5 uWatts
fcsw2-01:admin>

Set Fabric Principal

To elect new principle switch, do “fabricprincipal 1”, which means during next fabric rebuild (e.g. zoning change) this switch will be elected principal. To force this operation use “fabricprincipal -f 1”.
This should not be necessary in normal operation as the principal should be set at install time.

asp-fcsw01:admin> fabricprincipal -f 1
Principal Selection Mode enabled (Forcing fabric rebuild)

Change Switch name

This will require a reboot and is disruptive to the fabric.

fcsw1-03:admin> switchname
fcsw1-03
fcsw1-03:admin> switchname gy-fcsw2-03
Committing configuration...
Done.
2011/11/01-06:34:28, [IPAD-1002], 5184, CHASSIS, INFO, SilkWorm4024, Switchname has been successfully changed to gy-fcsw2-03
fcsw1-03:admin>

fcsw1-03:admin> reboot

Broadcast message from root (ttyS0) Tue Nov  1 06:47:16 2011...

The system is going down for reboot NOW !!
INIT: Switching to runlevel: 6
INIT: Sending processes the TERM signal
fcsw1-03:admin> chassis:0-pdm: Image-incomplete event
2011/11/01-06:47:19, [FW-1424], 5192, FID 128, WARNING, gy-fcsw2-03, Switch status changed from HEALTHY to MARGINAL.
2011/11/01-06:47:19, [FW-1439], 5193, FID 128, WARNING, gy-fcsw2-03, Switch status change contributing factor Switch offline.
netlogin(pam_unix)[4612]: session closed for user admin
##exiting due to signal: 19, pending signals: 0x0, 0x0
Stopping diagnostics
Unmounting all filesystems.
Please stand by while rebooting the system...
Restarting system.
.
<NULL>


The system is coming up, please wait...
Read board ID of 0x88 from addr 0x23
Read extended model ID of 0x1c from addr 0x22
Matched board/model ID to platform index 10

Read board ID of 0x88 from addr 0x23
Read extended model ID of 0x1c from addr 0x22
Matched board/model ID to platform index 13
Checking system RAM - press any key to stop test

Checking memory address: 00100000

System RAM test using Default POST RAM Test succeeded.

Press escape within 4 seconds to enter boot interface.
Booting "Fabric Operating System" image.
Entry point at 0x01000000 ...

loading kernel

loaded at:     01000000 01400364
board data at: 013FE324 013FE364
relocated to:  01005110 01005150
zimage at:     0100597D 01172E3F
initrd at:     01173000 013FDC00
avail ram:     01401000 10000000

Linux/PPC load:
BootROM command line: quiet
Uncompressing Linux...done.
Now booting the kernel
PCI: Cannot allocate resource region 0 of device 0000:00:00.0
Installing Linux 2.6 Kernel
Attempting to find a root file system on hda2...
INIT: version 2.78 booting
Bypassing firmware validation.
INIT: Entering runlevel: 3
uptime: 4293889176; sup_qid: 0
2011/11/01-06:47:59, [HAM-1004], 5194, CHASSIS, INFO, SilkWorm4024, Processor rebooted - Reboot



Fabric OS (fcsw2-03)


fcsw2-03 console login: admin
Password: 

SNMP Research EMANATE/Lite Agent Version 16.2.0.9
Copyright 1989-2006 SNMP Research, Inc.

All service instances on Active

Broadcast message from root Tue Nov  1 06:48:25 2011...



*******************************************
Notice: System has changed state to active.
All active commands are available now.
*******************************************


POST1: Started running Tue Nov  1 06:48:29 GMT 2011
POST1: Test #1 - Running turboramtest
POST1: Script PASSED with exit status of 0 Tue Nov  1 06:48:31 GMT 2011 took (0:0:2)

POST2: Started running Tue Nov  1 06:48:32 GMT 2011
POST2: Test #1 - Running portloopbacktest (TXRX INTERNAL)

POST2: Running diagshow
POST2: Script PASSED with exit status of 0 Tue Nov  1 06:48:42 GMT 2011 took (0:0:10)
2011/11/01-06:48:43, [BL-1000], 5195, CHASSIS, INFO, SilkWorm4024, Initializing ports...
2011/11/01-06:48:43, [BL-1001], 5196, CHASSIS, INFO, SilkWorm4024, Port initialization completed.
2011/11/01-06:48:56, [SNMP-1008], 5197, FID 128, INFO, fcsw2-03,  The last device change happened at : Tue Nov  1 06:48:55 2011
2011/11/01-06:49:11, [SNMP-1008], 5198, FID 128, INFO, fcsw2-03,  The last device change happened at : Tue Nov  1 06:48:56 2011


fcsw2-03:admin>

Clear Zone Config

If a switch becomes segmented, either identify the conflicting zones or clear the config on the subordinate switch with:-

fcsw1-03: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] y
fcsw1-03:admin>  

fcsw1-03: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] y
sw0 Updating flash ...
2011/11/01-06:43:58, [ZONE-1042], 5191, FID 128, INFO, gy-fcsw2-03, The effective configuration has been disabled.
Updating flash ...
fcsw1-03:admin>

fcsw1-03:admin> cfgshow
Defined configuration:
 no configuration defined

Effective configuration:
 no configuration in effect

fcsw1-03:admin>
fcsw1-03:admin> zoneshow
Defined configuration:
 no configuration defined

Effective configuration:
 no configuration in effect

fcsw1-03:admin> alishow
Defined configuration:
 no configuration defined

Effective configuration:
 no configuration in effect

fcsw1-03:admin>

Change Switch Ipaddress

fcsw1-03:admin> ipaddrshow

SWITCH
Ethernet IP Address: 172.27.208.172
Ethernet Subnetmask: 255.255.255.0
Gateway IP Address: 172.27.208.1
DHCP: Off
fcsw1-03:admin>

fcsw1-03:admin> ipaddrset
Ethernet IP Address [172.27.208.172]:172.27.208.126
Ethernet Subnetmask [255.255.255.0]:
Gateway IP Address [172.27.208.1]:
DHCP [Off]:
IP address is being changed...Done.
fcsw1-03:admin>

Change Domain ID

To configure the switch domain ID from a command prompt. As with the fabric principal, this should not be required apart from install time.

  1. Disable switch.
  2. Configure switch.
    1. yes to fabric
    2. input domain ID required
    3. don't change anything else ( Unless you know what it does)
  3. Enable switch.
asp-fcsw02:admin> switchdisable
asp-fcsw02:admin> configure

Configure...

  Fabric parameters (yes, y, no, n): [no] y

    Domain: (1..239) [6] 21
    R_A_TOV: (4000..120000) [10000] 

All other parameters remain unchanged.

WARNING: The domain ID will be changed. The port level zoning may be affected

asp-fcsw02:admin> switchenable

The warning above relates to zones which have members configured with hard zoning, wwwn configured zones will be unaffected.

Auto Logout

Auto logout is set to 10 mins default. To change it, use the timeout system command:-

fcsw2-01:FID128:admin> timeout
Current IDLE Timeout is 10 minutes
fcsw2-01:FID128:admin> timeout 60
IDLE Timeout Changed to 60 minutes
The modified IDLE Timeout will be in effect after NEXT login

Editing Configs

If the config fails to load due to a config error, you may need to delete a zone and add a new one. This is an overview of how to do this:-

fcsw2-01:FID128:admin> cfgenable gi_fcsw2_01_2011_05_13
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 'gi_fcsw2_01_2011_05_13' configuration  (yes, y, no, n): [no] y
"ZA_mgmt" not found

Zone ZA_mgmt does not exist on this fabric because it is part of Fabric A not Fabric B.

fcsw2-01:FID128:admin> cfgshow
defined configuration:
cfg:   B_cfg_050411_mag
              ZB_mgmt
cfg:   gi_fcsw2_01_2011_05_13
              ZA_mgmt; z_rgsdb01_eva01; z_rgsdb02_eva01; z_rgsdb03_eva01;
              z_rgsdb04_eva01
zone:  ZB_mgmt gi_eva01_afp2; gi_eva01_afp4; gi_eva01_bfp2; gi_eva01_bfp4;
              gi_sma01_h2

We need to remove ZA_mgmt from config gi_fcsw2_01_2011_05_13 and add ZB_mgmt:-

fcsw2-01:FID128:admin> cfgremove "gi_fcsw2_01_2011_05_13", "ZA_mgmt"
fcsw2-01:FID128:admin> cfgadd "gi_fcsw2_01_2011_05_13", "ZB_mgmt"

fcsw2-01:FID128:admin> cfgshow gi_fcsw2_01_2011_05_13
 cfg:   gi_fcsw2_01_2011_05_13
                z_rgsdb01_eva01; z_rgsdb02_eva01; z_rgsdb03_eva01;
                z_rgsdb04_eva01; ZB_mgmt

Since the saved config is now wrong, we need to save the updated config. As there can only be one defined config in memory, the are no arguments to cfgsave.

fcsw2-01:FID128: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] y
Updating flash ...

We can now enable the saved config, as there can be several saved configs, we have to specify which to load:-

fcsw2-01:FID128:admin>  cfgenable gi_fcsw2_01_2011_05_13
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 'gi_fcsw2_01_2011_05_13' configuration  (yes, y, no, n): [no] y
zone config "gi_fcsw2_01_2011_05_13" is in effect
Updating flash ...
fcsw2-01:FID128:admin>
 
rb/sanconfig-infrequent.txt · Last modified: 10/10/2013 14:21 by 127.0.0.1