Comandos Switch SAN Brocade

05/08/2010 16:01

 

Comandos de Ajuda

 

Visualizar todos os Comandos do brocade.

 

> help

 

Para listar os comandos do Brocade relativos a gerenciamento de Zonas.

 

> zonehelp

 

Para exibir a sintaxe de um determinado comando.

 

> help

 

Comandos Diversos

 

Criar Banner de aviso, este banner será escrito antes de logar no brocade

 

> bannerset

 

Visualizar Banner ativo no Brocade

 

> bannershow

 

Alterar Password do usuário admin

 

> passwd

 

Criação de Alias, Zona, cfg

 

Listar Zonas e Alias ativos (em Produção)

 

> alishow

 

Criando alias

 

Para criação de alias deve ser usar o comando alicreate:

 

 

Criar Alias e associar um WWN ao mesmo.

 

> aliCreate "", ""

> cfgsave

 

 

 

exemplo:  # alicreate “a_servidor_HBA0”,”00:11:22:33:44:55:66:77:88:99”

 

 

 

 

 

Adicionar um WWN a um alias ja criado.

Obs: Apenas em caso de se utilizar 2 ou mais WWW no mesmo alias.

 

> aliAdd "", ""

>cfgsave

 

 

Para descobrir qual o nome da configuração que esta ativa utilize o comando:

# switchshow | grep zoning

 

 

 

Criação de Zona

 

Para a criação da zona deve se especificar o servidor e depois o storage conforme mostrado abaixo.

 

 

Criar uma Zona e Associar um alias a zona

Obs: Para adicionar mais de um alias ao mesmo tempo basta separá-los por ”;”

 

> zoneCreate "", ""

> cfgsave

 

exemplo: # zonecreate “z_servidor_destino”, “a_servidor_HBA0;a_destino”

 

Adicionar um alias a uma Zona.

 

> zoneAdd "", ""

> cfgsave

 

Adicionando zona na configuração

 

Após a zona criada esta devera ser efetivada para isso deve se usar o comando cfgadd:

 

 

Adicionar uma Zona a uma configuração

 

> cfgadd ", ""

> cfgsave

 

exemplo:

# cfgadd “cfgativa”,”z_nomedazona”

 

 

 

 

Efetivar zonas associadas a uma configuração para produção.

 

> cfgEnable ""

 

 

 

Removendo Zona

 

Remover uma Zona da cfg,

Obs: Ao dar este comando o será retirada a zona da configuração assim a tirando de producao

 

> cfgRemove "", ""

> cfgsave

> cfgEnable "

 

Este é o primeiro comando que deve ser usado ao se remover algum ambiente de produção. Para remover uma zona primeiro deve se remover da configuração utilizando o comando cfgremove.

 

exemplo: # cfgremove “nomedacfg”,”z_servidor_destino”

 

 

 

 

 

Remove um Alias de uma Zona.

Obs: Não remove a zona no caso de mais de 2 ou mais alias associados a zona.

 

> zoneRemove "", ""

> cfgsave

 

Salvando configuração

 

Para salvar as configurações utilize o comando cfgsave, este comando apenas irá salvar as zonas e alias criadas e adicionadas a configuração este comando NÃO irá efetivar as mudanças colocando-as em produção, para isso use o comando cfgenable.

 

# cfgsave

 

 

 

 

Deletar uma zona com todos os alias associados

 

> zoneDelete ""

> cfgsave

 

Remover um WWN de um alias

 

> aliRemove "", ""

> cfgsave

 

Removendo alias

 

Para a remoção de alias é utilizado o alidelete porem o alias NÃO pode pertencer a mais nenhuma zona caso isso ocorra remova as zonas antes.

 

Deletar um alias com todos os WWNs

 

 

> aliDelete ""

> cfgsave

 

exemplo: # alidelete “a_servidor_HBA0”,”00:11:22:33:44:55:66:77:88:99”

 

Habilitando configurações

 

Para habilitar as configurações deve se executar o comando cfgenable como mostra abaixo:

 

# cfgenable “nomedacfg”

 

 

 

Atualizacao de Firmware

 

Backup das Configurações do Brocade

 

> configupload "172.16.32.70","anonymous","/upload/config.txt","teste@teste.com"

 

Atualizacao do Firmware

 

> firmwaredownload "172.16.32.70","anonymous","/upload/261/261","anonymous"

> reboot

Lista de Comandos Brocade

 

agtcfgSet Set SNMP agent configuration

agtcfgShow Print SNMP agent configuration

agtcfgDefault Reset SNMP agent to factory default

aliasShow Print Alias Server information

backSpace Set/clear alternate backspace char

bannerShow Display security banner

bannerSet Set security banner

bsn Displays Brocade serial number

configure Set switch config parameters

configShow Print switch config parameters

configDefault Reset config to factory default

configDownload Load switch config from a server

configUpload Save switch config to a server

date Print/set the system date and time

errDisplayFilter Print/set level of error filtering

errDump Print error log (no page breaks)

errShow Print error log

faShow Display Fabric Assist info

faStatsShow Display Fabric Assist Statistics

fabricShow Print fabric membership info

fanShow Print fan status

fastboot Reboot this switch, bypassing POST

firmwareDownload Download firmware into switch

gbicShow Print Serial ID GBIC information

h Print shell history

help Print this list

i Print task summary

ifModeSet Set network link operating mode

ifModeShow Print network link operating mode

ifShow Print network interface information

ipAddrSet Set ethernet and FC IP addresses

ipAddrShow Print ethernet and FC IP addresses

islTopoCheck Show ISL sgroup topology/status for this switch

islTopoShow Show ISL sgroup topology/status for sgroup

login Login as a new user

logout Logout from remote session

moreEnable Enable user input for page mode printouts

moreDisable Disable user input for page mode printouts

msConfigure Configure Management Server

msPlatShow Display Platform Management Server Database

msPlCapabilityShow Display Platform Management Server Capability

msPlClearDB Clear the Management Server Platform Database fabric-wise

msPlMgmtActivate Activate Platform Management Services

msPlMgmtDeactivate Deactivate Platform Management Services

msTdDisable Disable topology discovery feature

msTdEnable Enable topology discovery feature

nsAllShow Print global Name Server information

nsShow Print local Name Server information

nsAliasShow Print local Name Server information with Aliases

passwd Set usernames and passwords

portCfgFAport Set port as Fabric Assist Host port

portCfgLport Lock port as an L_Port

portCfgMcastLoopback Configure multicast loopback port

portCfgEport Disable a port from becoming an E_Port

portDisable Disable a specified port

portEnable Enable a specified port

portErrShow Print port error summary

portLogClear Clear port activity log

portLogDump Print port log (no page breaks)

portLogDumpPort Print port log (no page breaks)

portLogShow Print port activity log

portLogShowPort Print port activity log

portPerfShow Print port throughput numbers

portShow Print state of specified port

portStatsShow Print hardware statistics

psShow Print power supply status

quietMode Set/clear shell quiet mode

reboot Reboot this switch

sgroupDelete Delete an sgroup

sgroupRename Rename an sgroup

sgroupSet Set or Replace an sgroup

sgroupShow Display specified sgroup(s)

sgroupSupportShow Print all data of support show functions in a group

sgroupSwReplace Replace a member switch of an sgroup

snmpMibCapSet Set options for configuring SNMP Mib/Trap Capability

ssn Displays and sets soft serial number

switchBeacon Set switch beacon on or off

switchDisable Disable this switch

switchEnable Enable this switch

switchName Print/set this switch's name

switchShow Print switch and port status

switchStatusShow Print overall switch status

switchStatusPolicyShow Print policy parameters for overall switch status

switchStatusPolicySet Set policy parameters for overall switch status

syslogdIpAdd Add syslog daemon IP address

syslogdIpRemove Remove syslog daemon IP address

syslogdIpShow Print the syslog daemon targets

tempShow Print temperature readings

timeOut Set/clear telnet timeout value

uptime Print how long switch has been up

version Print firmware version

diagHelp Print diagnostic help info

licenseHelp Print license help info

qlHelp Print quick loop help info

routeHelp Print routing help info

secHelp Print secure fabric help info

trackChangesHelp Print Track Changes help info

tsHelp Print time service help info

zoneHelp Print zoning help info

 

Lista de Comandos de Zonning

 

aliAdd Add a member to a zone alias

aliCreate Create a zone alias

aliDelete Delete a zone alias

aliRemove Remove a member from a zone alias

aliShow Print zone alias information

cfgAdd Add a member to a configuration

cfgCreate Create a zone configuration

cfgDelete Delete a zone configuration

cfgRemove Remove a member from a configuration

cfgShow Print zone configuration information

qloopAdd Add a member to a qloop

qloopCreate Create a qloop

qloopDelete Delete a qloop

qloopRemove Remove a member from a qloop

qloopShow Print qloop information

zoneAdd Add a member to a zone

zoneCreate Create a zone

zoneDelete Delete a zone

zoneRemove Remove a member from a zone

zoneShow Print zone information

fazoneAdd Add a member to a fabric assist zone

fazoneCreate Create a fabric assist zone

fazoneDelete Delete a fabric assist zone

fazoneRemove Remove a member from a fabric assist zone

fazoneShow Print Fabric Assist Zone information

cfgClear Clear all zone configurations

cfgDisable Disable a zone configuration

cfgEnable Enable a zone configuration

cfgSave Save zone configurations in flash

cfgSize Print size details of zone database

cfgTransAbort Abort zone configuration transaction

cfgTransClearFlag Clear block new transaction flag

 

 

BEST PRACTICES

 

  1. Remover o zone da configuração de produção:

> cfgRemove "", ""

> cfgsave

> cfgEnable "

 

 

  1. Remover os zone com todos aliases inseridos:

> zoneDelete ""

> cfgsave

 

  1. Finalmente remover os aliases:

> aliRemove "", ""

> cfgsave

> cfgEnable

 

Voltar