Download pdf - FOScmdsV7.2

Transcript
Page 1: FOScmdsV7.2

Fabric OS Commands v7.2Quick Reference Guide

© 2013 Brocade Last Updated 11/15/13

aaaconfig Manage RADIUS & LDAP configurationad Specify all Admin Domain-level operationsag Enable/manage Access gateway operationsagautomapbalance Control auto remapping of F_Ports in AGagshow Display fabric registered Access Gateway infoaliadd Add a member to a zone aliasalicreate Create a zone aliasalidelete Delete a zone aliasaliremove Remove a zone aliasalishow Display zone alias informationapploginhistory Display the history of HTTP login sessionsaptpolicy Change/display the Adv Perf Tuning policyauditcfg Modify/display audit log filter configurationauditdump Display/clear the audit logauthutil Display/set authentication configurationbannerset Set the login banner textbannershow Display the login banner textbcastshow Display broadcast routing informationbladecfggemode Configure 1 or 10 GbE port on FX8-24 bladebladedisable Disable all user ports on a bladebladeenable Enable all user ports on a bladebladeswap Swap area numbers for matching port pairsbootluncfg Transparently configure HBA boot LUNbottleneckmon Monitor/report F_Port latency/bottlenecksbufopmode Change/display Buffer Optimized Modecfgactvshow Display effective zone configuration informationcfgadd Add a member to a zone configurationcfgclear Clear all zone configurationscfgcreate Create a zone configurationcfgdelete Delete a zone configurationcfgdisable Disable a zone configurationcfgenable Enable a zone configurationcfgremove Remove a member from a zone configurationcfgsave Save zone configuration to non-volatile memorycfgshow Display zone configuration informationcfgsize Display size of zone databasecfgtransabort Abort the current zoning transactioncfgtransshow Display details about current zoning transactionchassisbeacon Display/set chassis beaconing modechassisdisable Disable all user ports in a chassischassisdistribute Distribute IP filter policieschassisenable Enable all user ports in a chassischassisname Display/set the chassis namechassisshow Display all field replaceable units (FRUs)

classconfig Display RBAC class permissionsclihistory Display switch command historycmsh Open CEE command shellconfigdefault Reset subset of configuration to defaultsconfigdownload Load switch configuration from a serverconfiglist List uploaded configuration files to USB deviceconfigremove Delete a saved configuration fileconfigshow Display switch configuration parametersconfigupload Save switch configuration to a serverconfigure Set switch configuration parametersconfigurechassis Change chassis-level system config settingscreditrecovmode Enable credit loss recover on back-end portscryptocfg Perform encryption configuration & managementdate Display/set the switch date and timedefzone Activate/deactivate/show default zone configdiagdisablepost Disable POST execution at next rebootdiagenablepost Enable POST execution at next rebootdiagshow Display diagnostics status for blades or portsdistribute Distribute security policy data to all switchesdlsreset Disable the dynamic load sharing (DLS) optiondlsset Enable the dynamic load sharing optiondlsshow Display setting of dynamic load sharing optiondnsconfig Display/set/remove switch DNS parametersenclosureshow Display attributes of the switch enclosureerrclear Clear error log entries for all switch instanceserrdelimiterset Set start/end delimiters for error messageserrdump Display error log messages without paginationerrfilterset Set a filter for an error log destinationerrmoduleshow Display all defined error log moduleserrshow Display error log messages with paginationexit Logout from a shell sessionfabretryshow Display retry count of the fabric commandsfabretrystats Display/manage retry count of fabric commandsfabriclog Display or manipulate the fabric logfabricname Configure the fabric namefabricprincipal Set the principal switch selection modefabricshow Display fabric membership infofabstatsshow Display fabric statisticsfandisable Disable a fan unitfanenable Enable a fan unitfanshow Display fan status and speedfapwwn Manage fabric-assigned port world wide namesfastboot Reboot the CP, bypassing POSTfciphelp Display FCIP command informationfcoe Manage/display the FCoE configurationfcoelogincfg Manage/display the FCoE login configurationfcoelogingroup Create/manage the FCoEfcping Send an FC ELS ECHO request to a pair of portsfcplogclear Clear the FCPD debug information logfcplogdisable Disable the FCPD debug information logfcplogenable Enable the FCPD debug information logfcplogshow Display the FCPD debug information logfcpprobeshow Display the FCP probe informationfcprlsshow Display FCP read link status informationfcrbcastconfig Display/set broadcast frame forwarding optionfcrconfigure Set FC Router configuration parametersfcredgeshow Display the FIDs of all configured EX_Portsfcrfabricshow Display FC Routers on a backbone fabric

fcrlsan Configure and display LSAN policiesfcrlsancount Display/set the maximum LSAN countfcrpathbwconfig Enable/disable ICL bandwidth monitorfcrphydevshow Display FC Router physical device informationfcrproxyconfig Display/configure proxy devices of an FC Routerfcrproxydevshow Display FC Router proxy device informationfcrresourceshow Display FC Router physical resource usagefcrrouteshow Display FC Router route informationfcrxlateconfig Display/configure an xlate domain IDfddcfg Manage fabric data distribution config parametersfdmicacheshow Display remote FDMI device info by domain IDfdmishow Display detailed FDMI device informationficoncfg Configure the specified FICON databaseficonclear Clear records from a specified FICON databaseficoncupset Set FICON-CUP parameters for a switchficoncupshow Display FICON-CUP parameters for a switchficonshow Display contents of a specified FICON databasefipscfg Configure FIPS modefirmwarecommit Commit firmware update to secondary partitionfirmwaredownload Download firmware into the switchfirmwaredownloadstatus Display the status of a firmware downloadfirmwarekeyshow Display the public key for signed firmwarefirmwarerestore Restore the former active firmware imagefirmwareshow Display FOS versions in all flash partitionsflow Create/manage/display flows in Flow Visionfmmonitor Manage frame monitor configurationfosconfig Display/modify FOS featuresfosexec Execute a cmd in a specified logical sw contextframelog Display information about discarded framesfspfshow Display FSPF protocol informationfwalarmsfilterset Enable/disable alarms for Fabric Watchfwalarmsfiltershow Display alarm filtering for Fabric Watchfwclassinit Initialize all classes under Fabric Watchfwconfigreload Reload the Fabric Watch configurationfwfrucfg Display or modify FRU state alert configurationfwmailcfg Display/configure Fabric Watch email alertsfwportdetailshow Display port information for specified user portsfwsamshow Display switch availability monitor informationfwset Set the parameters controlled by Fabric Watchfwsettocustom Set custom Fabric Watch alarms/boundariesfwsettodefault Reset Fabric Watch alarms/boundaries to defaultgeporterrshow Display GbE port error statisticsh Display shell historyhadisable Disable the High Availability feature in the switchhadump Display High Availability status informationhaenable Enable the High Availability feature in the switchhafailover Initiate the control processor failover mechanismhashow Display control processor statushasyncstart Enable the HA state synchronizing processhasyncstop Disable the HA state synchronizing processhelp Display help information for commandshistorylastshow Display the latest FRU history log entryhistorymode Display the mode of the FRU history loghistoryshow Display the entire FRU history logi Display a process summaryiclcfg Enable/disable inter-chassis linksifmodeset Set link operating mode for a network interfaceifmodeshow Display link op mode for a network interface

iflshow Display IFL informationinterfaceshow Display FSPF interface informationiodreset Turn off the in-order delivery optioniodset Enable the in-order delivery optioniodshow Display the in-order delivery option settingipaddrset Set IP address details for a switch or CPipaddrshow Display IP address details for a switch or CPipfilter Manage the IP filter policiesipsecconfig Configure IPsec policies for Ethernet interfacesislshow Display current connections & ISL statusitemlist List parameter syntax informationkilltelnet Terminate an open telnet sessionldapcfg Maps LDAP server AD roles to switch roleslfcfg Configure/display logical fabricslicenseadd Add a license key to a switchlicenseshow Display commands used to administer licenseslicenseidshow Display system license IDlicenseport Manage Dynamic POD license assignmentlicenseremove Remove a license key from a switchlicenseshow Display current license keyslicenseslotcfg Display/configure slot-based license featureslinkcost Set or display the FSPF cost of a linklogicalgroup Create/mange groups of monitored elementslogin Login as a new userlogout Logout from telnet, serial or rlogin sessionlsanzoneshow Display logical SAN zone informationlscfg Configure.manage a logical switchlsdbshow Display the FSPF link state databasemapsconfig Enable and set MAPS configurationsmapsdb View summary of events/rules on dashboardmapshelp Get Monitoring and Alerting Policy Suite helpmapspolicy Create/manage MAPS monitoring policiesmapsrule Create/manage MAPS monitoring rulesmapssam Generate/clear port availability monitor reportmemshow Display the amount of free and used memorymotd Set the banner on a chassismyid Display current login session detailsnbrstateshow Display FSPF neighbor’s statenbrstatsclear Reset FSPF interface countersnodefind Display NS entries matching a WWN, PID or aliasnsaliasshow Display local Name Server info with aliasesnsallshow Display global Name Server informationnscamshow Display remote devices in the NS cachensdevlog Manage device history loggingnsshow Display local Name Server informationnszonemember Info about online devices zoned with given devicepasswd Change the password for a specified userpasswdcfg Manage the password policiespathinfo Display routing/statistics info along a pathpdshow Display data from a panic dump fileperfaddeemonitor Add an end-to-end monitor to a portperfcfgclear Clear saved perf configuration settings in flashperfcfgrestore Restore perf configuration settings from flashperfcfgsave Save perf configuration settings to flashperfclearalpacrc Clear CRC count for a port and AL_PAperfdeleemonitor Delete an end-to-end perf monitor on a portperfmonitorclear Clear performance statistics counters on a portperfmonitorshow Display all monitors on a port

Page 2: FOScmdsV7.2

perfresourceshow Display perf monitor resources for a logical switchperfsetporteemask Set mask for end-to-end performance monitorsperfshowalpacrc Display CRC error count by port or AL_PAperfshowporteemask Display current address mask for port monitorsperfttmon Install Top Talker monitor in the specified modeportaddress Assign the lower 16 bits of the FCPort IDportalpashow Display the device AL_PAs attached to a portportbeacon Set port beaconing modeportbuffercalc Calculates the required buffers per portportbuffershow Display buffer usage information for switch portsportcamshow Display port-based filter CAM utilizationportcfg Enable or disable a port’s configurationportcfgalpa Configure the AL_PA offset on a specified portportcfgautodisable Enable/disable the port auto disable flagportcfgcreditrecovery Enable/disable credit recovery on a portportcfgdefault Restore the port configuration to default valuesportcfgdport Configure a port as a D_Portportcfgencrypt Configure a port for encryptionportcfgeport Enable/disable a port as an E_Portportcfgeportcredits Set normal distance E_Port buffer allocationportcfgexport Set a port to be an EX_Port; view parametersportcfgfaultdelay Configure fault delay for a single FC portportcfgfec Enable/disable Forward Error Correction flagportcfgfillword Configure fill word for a single 8 Gbps FC portportcfgfportbuffers Configure F_Port buffer allocationportcfggemediatype Set active ge0/ge1 ports ona Brocade 7800portcfggport Enable/disable a port as a G_Portportcfgislmode Enable/disable ISL R_RDY mode on a portportcfglongdistance Configure a port to support long-distance linksportcfglosstov Enable/disable de-bouncing of signal lossportcfglport Enable/disable a port as an L_Portportcfgnpivport Enable/disable N_Port ID virtualizationportcfgnport Enable/disable N_Port for Access Gateway portportcfgoctetspeedcombo Set port speed combination for a port octetportcfgpersistentdisable Disable a port persistentlyportcfgpersistentenable Enable a port persistentlyportcfgqos Enable/disable port QoS; set ingress rate limitportcfgshow Display port configuration settingsportcfgspeed Configure the port speed levelportcfgtrunkport Enable or disable a port for trunkingportcfgvexport Set port to be a VEX_Port; view parametersportcmd Ping a dest IP host from an intelligent GbE portportdebug Set debug and verbosity levels on a portportdecom Decommission & disable E_Ports; no frame lossportdisable Disable a specified portportdporttest Initiate/terminate a D_Port testportenable Enable a specified portporterrshow Display port error summaryportfencing Configure Fabric Watch port fencing featureportflagsshow Display port status bitmaps for all portsportlogclear Clear the port logportlogconfigshow Display the current port log configurationportlogdisable Disable the port log facilityportlogdump Display port log without breaksportlogdumpport Display port log of a specific port without breaksportlogenable Enable the port log facilityportlogeventshow Display information about port log eventsportloginshow Display port login status

portlogpdisc Set/clear the debug_pdisc_flagportlogreset Enable the port log facilityportlogresize Resize the port log to a number of entriesportlogshow Display the port logportlogshowport Display port log for a specific port with breaksportlogtypedisable Disable the port log of a specified typeportlogtypeenable Enable the port log of a specified typeportloopbacktest Performfunctional test of port N->N pathportmirror Add/delete/show mirror connectionsportname Assign or display a port nameportperfshow Display port throughput in bytes, KB or MBportrouteshow Display routing tables for a specified portportshow Display port statusportstats64show Display 64-bit hardware statistics for a portportstatsclear Clear hardware statistics for a specified portportstatsshow Display port hardware statisticsportswap Swap area numbers of two portsportswapdisable Disable the portswap featureportswapenable Enable the portswap featureportswapshow Display the state of the portswap featureporttest Run a functional test of a switch in a live fabricporttestshow Display information from porttest commandportthconfig Configure Fabric Watch event thresholds per portporttrunkarea Add/remove trunk area from port or trunk groupportzoneshow Display the enforced zone type for F/FL_Portspowerofflistset Set slot power-off list orderpowerofflistshow Display slot power-off list orderpsshow Display power supply statusrasadmin Configure RASlog message generationrasman Display RASlog message text and documentationreboot Reboot 1 control processor or an entire switchrelayconfig Set/display the relay host IP addressroleconfig Manage user-defined rolessecactivesize Display the size of the active security databasesecauthsecret Manage DH-CHAP secret key informationseccertutil Manage 3rd party PKI-based certificates in switchsecdefinesize Display the size of the defined security databasesecglobalshow Display current security state informationsecpolicyabort Abort unsaved changes to security databasesecpolicyactivate Apply defined policy set to all switchessecpolicyadd Add members to an existing policysecpolicycreate Create a new security policysecpolicydelete Delete an existing security policysecpolicydump Display all members of existing policiessecpolicyfcsmove Move a member in the FCS policysecpolicyremove Remove members from an existing policysecpolicysave Save a defined policy to flash on all switchessecpolicyshow Display an existing security policysecstatsreset Reset security statistics to zero for policiessecstatsshow Display one or all security statisticssensorshow Display sensor readingssetcontext Set logical switch context to a specified FIDsetverbose Set verbosity level for a modulesfpshow Display serial ID SFP informationshellflowcontroldisable Disable XON/XOFF flow control on serial portsshellflowcontrolenable Enable XON/XOFF flow control to the shell taskslotpoweroff Remove power from a slotslotpoweron Restore power to a slot

slotshow Display slot statussnmpconfig Manage the SNMP agent configurationsnmptraps Sends or displays SNMP trapsspinfab Test switch-to-switch ISL and trunk linkssshutil Manage public key authenticationstatsclear Clear port and diagnostics statisticsstopporttest Terminate the running porttestsupportffdc Modify/display first-fault data capture daemonsupportftp Set/clear/display support FTP parameterssupportsave Save info for RASLOG, TRACE & supportshowsupportshow Display information for switch debuggingsupportshowcfgdisable Disable a group of commands in supportshowsupportshowcfgenable Enable a group of commands in supportshowsupportshowcfgshow Display commands enabled in supportshowswitchbeacon Set switch beaconing mode on or offswitchcfgpersistentdisable Disable switch persistentlyswitchcfgpersistentenable Enable switch persistentlyswitchcfgspeed Configure all ports on switch to a particular speedswitchcfgtrunk Enable or disable trunking on a switchswitchdisable Disable the switchswitchenable Enable the switchswitchname Set or display switch nameswitchshow Display switch and port statusswitchstatuspolicyset Set policy parameters for overall switch statusswitchstatuspolicyshow Print policy parameters for overall switch statusswitchstatusshow Display overall switch statusswitchuptime Display how long the switch has been operatingswitchviolation Dump DCC violations on a switchsyslogdfacility Change the syslog facilitysyslogdipadd Add syslog daemon IP addresssyslogdipremove Remove syslog daemon IP addresssyslogdipshow Display all syslog daemon IP addressessysmonitor Configure Fabric Watch thresholdssysshutdown Do a graceful shutdown of switch file systemstempshow Display temperature readingsthconfig Configure FW thresholds for SFP, fabric, filter, security and EE monitor classesthmonitor Enable monitoring of SFPstimeout Set/show idle timeout value for a login sessiontopologyshow Display the unicast fabric topologytracedump Display, initiate or remove a trace dumptrunkdebug Debug a trunk link failuretrunkshow Display trunking informationtsclockserver Display/set the NTP server addresststimezone Display/set system time zoneuptime Display how long switch has been operationalurouteshow Display unicast routing informationusbstorage Manage data files on attached USB deviceuserconfig Manage user accountsversion Display firmware version informationwwn Displays a switch WWNwwnaddress Bind an FC Port ID to a device WWNzone Perform zone-related operationszoneadd Add a member to the zonezonecreate Create a zonezonedelete Delete a zonezoneobjectcopy Copy a zone objectzoneobjectexpunge Expunge a zone object

zoneobjectrename Rename a zone objectzoneobjectreplace Replace one zone member with anotherzoneremove Remove a member from a zonezoneshow Display zone information

Command Line Hints

The TAB key allows for command auto-completionThe END key will take you to the end of the lineThe HOME key will take you to the beginning of the lineThe LEFT- and RIGHT-ARROW keys will let you move on the command lineThe UP- and DOWN-ARROW keys will step through command historyThe INSERT key allows insertion of a character atthe cursorThe DELETE key delets the character at the cursorThere are command line editing utilities:• | (pipe)• grep• more