iscli—industry standard cli command...

744
Lenovo RackSwitch G8272 ISCLI—Industry Standard CLI Command Reference For Networking OS 8.2

Upload: ledieu

Post on 07-Jul-2018

229 views

Category:

Documents


0 download

TRANSCRIPT

  • LenovoRackSwitchG8272

    ISCLIIndustryStandardCLICommandReferenceForNetworkingOS8.2

  • Note:Beforeusingthisinformationandtheproductitsupports,readthegeneralinformationintheSafetyinformationandEnvironmentalNoticesandUserGuidedocumentsontheLenovoDocumentationCDandtheWarrantyInformationdocumentthatcomeswiththeproduct.

    FirstEdition(April2015)CopyrightLenovo2015PortionsCopyrightIBMCorporation2014.LIMITEDANDRESTRICTEDRIGHTSNOTICE:IfdataorsoftwareisdeliveredpursuantaGeneralServicesAdministrationGSAcontract,use,reproduction,ordisclosureissubjecttorestrictionssetforthinContractNo.GS35F05925.LenovoandtheLenovologoaretrademarksofLenovointheUnitedStates,othercountries,orboth.

  • Copyright Lenovo 2015 3

    ContentsPreface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15WhoShouldUseThisBook .......................16HowThisBookIsOrganized .......................17TypographicConventions ........................18

    Chapter 1. ISCLI Basics . . . . . . . . . . . . . . . . . . . . . 21ISCLICommandModes.........................22GlobalCommands ...........................26CommandLineInterfaceShortcuts....................29

    CLIListandRangeInputs......................29CommandAbbreviation .......................29TabCompletion...........................29

    UserAccessLevels ...........................30IdleTimeout ..............................31

    Chapter 2. Information Commands . . . . . . . . . . . . . . . . 33SystemInformation...........................34

    CLIDisplayInformation.......................35ErrorDisableandRecoveryInformation ................36SNMPv3SystemInformation .....................37

    SNMPv3USMUserTableInformation ...............38SNMPv3ViewTableInformation .................39SNMPv3AccessTableInformation ................40SNMPv3GroupTableInformation.................41SNMPv3CommunityTableInformation..............41SNMPv3TargetAddressTableInformation .............42SNMPv3TargetParametersTableInformation ...........43SNMPv3NotifyTableInformation.................43SNMPv3DumpInformation...................44

    GeneralSystemInformation .....................45ShowSpecificSystemInformation.................46

    ShowRecentSyslogMessages ....................47UserStatus .............................48

    Layer2Information ...........................49802.1XInformation .........................52FDBInformation ..........................54

    FDBMulticastInformation....................55ShowAllFDBInformation....................56ClearingEntriesfromtheForwardingDatabase ...........56

    LinkAggregationControlProtocolInformation .............57LinkAggregationControlProtocol ................58

    Layer2FailoverInformation .....................59Layer2FailoverInformation ...................60

    HotLinksInformation ........................61LLDPInformation..........................62

    LLDPRemoteDeviceInformation .................63UnidirectionalLinkDetectionInformation ...............64

  • 4 G8272 Command Reference for N/OS 8.2

    UDLDPortInformation ..................... 64802.1xDiscoveryInformation..................... 65

    802.1xPortInformation ..................... 65OAMDiscoveryInformation..................... 66

    OAMPortInformation...................... 66vLAGInformation......................... 67vLAGTrunkInformation...................... 68SpanningTreeInformation...................... 69PVRSTInformation ......................... 71SpanningTreeBridgeInformation .................. 73SpanningTreeRootInformation ................... 74MultipleSpanningTreeInformation ................. 75TrunkGroupInformation ...................... 77VLANInformation ......................... 78

    Layer3Information........................... 80IPRoutingInformation ....................... 84

    ShowAllIPRouteInformation.................. 85ARPInformation .......................... 87

    ARPAddressListInformation.................. 88ShowAllARPEntryInformation ................. 88

    BGPInformation.......................... 89BGPPeerInformation...................... 90BGPGroupInformation..................... 91BGPSummaryInformation .................... 92DumpBGPInformation ..................... 92

    OSPFInformation.......................... 93OSPFGeneralInformation.................... 95OSPFInterfaceInformation .................... 95OSPFLoopbackInformation ................... 96OSPFInformationRouteCodes .................. 96OSPFDatabaseInformation ................... 97

    OSPFv3Information ........................ 99OSPFv3InformationDump................... 101OSPFv3InterfaceInformation.................. 101OSPFv3DatabaseInformation ................. 102OSPFv3RouteCodesInformation................ 103

    RoutingInformationProtocol ................... 104RIPRoutesInformation.................... 105RIPInterfaceInformation ................... 105

    IPv6RoutingInformation ..................... 106IPv6RoutingTableInformation ................. 107

    IPv6NeighborCacheInformation.................. 108IPv6NeighborCacheInformation................ 108

    IPv6NeighborDiscoveryPrefixInformation ............. 109ECMPStaticRouteInformation................... 110IGMPInformation ........................ 111

    IGMPQuerierInformation ................... 113IGMPGroupInformation ................... 114IGMPMulticastRouterInformation ............... 114IPMCGroupInformation ................... 115

  • Copyright Lenovo 2015 Contents 5

    MLDInformation .........................116VRRPInformation ........................118InterfaceInformation.......................120IPv6InterfaceInformation.....................121IPv6PathMTUInformation....................122IPInformation ..........................123IKEv2Information ........................125

    IKEv2InformationDump....................126IPSecurityInformation ......................127

    IPsecManualPolicyInformation ................128DHCPSnoopingBindingTableInformation.............129PIMInformation.........................130

    PIMComponentInformation ..................131PIMInterfaceInformation ...................131PIMNeighborInformation ...................132PIMMulticastRouteInformationCommands...........133PIMMulticastRouteInformation ................134

    QualityofServiceInformation.....................135802.1pInformation........................136WREDandECNInformation....................137

    AccessControlListInformation ....................138AccessControlListInformation ...................139AccessControlIPv6ListInformation ................141

    NATInformation ...........................142NATStatusInformation ......................142NATTranslationsInformation ...................143

    OpenFlowInformation........................144OpenFlowGlobalConfigurationInformation.............145OpenFlowFlowAllocationInformation ...............147OpenFlowGroupInformation ...................149OpenFlowConfigurationInformation ................150OpenFlowTableInformation....................152

    RMONInformationCommands ....................154RMONHistoryInformation....................155RMONAlarmInformation .....................156RMONEventInformation .....................157

    LinkStatusInformation ........................158PortInformation ...........................159PortTransceiverStatus........................160VMReadyInformation ........................162

    VMInformation .........................163VMCheckInformation ......................164VMwareInformation.......................164

    VMwareHostInformation ...................165EVBInformation...........................166UFPInformation...........................167

    PortInformation.........................169CDCPInformation ........................169QoSInformation.........................170TLVStatusInformation......................170

  • 6 G8272 Command Reference for N/OS 8.2

    VirtualPortInformation...................... 171VLANInformation ........................ 172TLVInformation......................... 173

    ConvergedEnhancedEthernetInformation ............... 175DCBXInformation........................ 176DCBXControlInformation..................... 177DCBXFeatureInformation ..................... 178DCBXETSInformation...................... 179DCBXPFCInformation ...................... 181DCBXApplicationProtocolInformation............... 182ETSInformation......................... 184PFCInformation ......................... 185

    FCoEInitializationProtocolSnoopingInformation............ 186FIPSnoopingFCoEForwarderInformation ............. 186

    FCoEForwarderInformation ..................... 188FabricLoginDatabaseInformation ................. 190FibreChannelNameServerDatabaseInformation .......... 190FabricDeviceManagementInterfaceDatabaseInformation ...... 191RegisteredStateChangeNotificationInformation ........... 192ZoneInformation ......................... 192

    PythonScriptingInformation ..................... 193SchedulerJobInformation ..................... 194

    InformationDump .......................... 196

    Chapter 3. Statistics Commands . . . . . . . . . . . . . . . . . 197PortStatistics ............................ 198

    802.1XAuthenticatorStatistics ................... 201802.1XAuthenticatorDiagnostics .................. 202BootStrapProtocolRelayStatistics ................. 205BridgingStatistics......................... 206EthernetStatistics ......................... 207InterfaceStatistics......................... 210InterfaceProtocolStatistics ..................... 213LinkStatistics .......................... 213RMONStatistics ......................... 214QoSQueueCounterBasedStatistics................. 217QoSQueueRateBasedStatistics .................. 219

    TrunkGroupStatistics ........................ 221Layer2Statistics ........................... 222

    FDBStatistics........................... 224LACPStatistics.......................... 225HotlinksStatistics ......................... 226LLDPPortStatistics ........................ 227OAMStatistics .......................... 228vLAGStatistics .......................... 229

    vLAGISLStatistics ...................... 230Layer3Statistics ........................... 231

    IPv4Statistics .......................... 236IPv6Statistics .......................... 238

  • Copyright Lenovo 2015 Contents 7

    IPv4RouteStatistics ........................243IPv6RouteStatistics ........................244ARPstatistics ...........................245DNSStatistics ..........................246ICMPStatistics..........................247TCPStatistics ...........................249UDPStatistics ..........................251IGMPStatistics ..........................252MLDStatistics..........................254

    MLDGlobalStatistics.....................255OSPFStatistics ..........................257

    OSPFGlobalStatistics .....................258OSPFv3Statistics.........................262

    OSPFv3GlobalStatistics ....................263VRRPStatistics ..........................267PIMStatistics ...........................268RoutingInformationProtocolStatistics................269DHCPStatistics ..........................270

    DHCPSnoopingStatistics ...................270OpenFlowStatistics ..........................271ManagementProcessorStatistics....................287

    MPPacketStatisticsCommands...................288MPPacketStatistics ........................289LoggedPacketStatistics ......................293TCPStatistics ...........................297UDPStatistics ..........................298CPUStatistics...........................299CPUStatisticsHistory .......................300

    QoSStatistics.............................301AccessControlListStatistics ......................303

    ACLStatistics...........................304VMAPStatistics..........................304

    FCoEInitializationProtocolSnoopingStatistics ..............305FCoEForwarderStatistics.......................306SNMPStatistics ...........................308NTPStatistics ............................312PTPStatistics.............................314NATStatistics ............................315StatisticsDump............................316

  • 8 G8272 Command Reference for N/OS 8.2

    Chapter 4. Configuration Commands . . . . . . . . . . . . . . . 317ViewingandSavingChanges ..................... 319

    SavingtheConfiguration ..................... 319SystemConfiguration ......................... 320

    SystemErrorDisableandRecoveryConfiguration .......... 325LinkFlapDampeningConfiguration............... 326

    SystemHostLogConfiguration................... 327SSHServerConfiguration ..................... 331RADIUSServerConfiguration ................... 333TACACS+ServerConfiguration .................. 335LDAPServerConfiguration .................... 340NTPServerConfiguration ..................... 342SystemSNMPConfiguration .................... 345SNMPv3Configuration ...................... 348

    UserSecurityModelConfiguration ............... 350SNMPv3ViewConfiguration .................. 351ViewbasedAccessControlModelConfiguration......... 352SNMPv3GroupConfiguration ................. 353SNMPv3CommunityTableConfiguration ............ 354SNMPv3TargetAddressTableConfiguration........... 355SNMPv3TargetParametersTableConfiguration......... 356SNMPv3NotifyTableConfiguration .............. 357

    SystemAccessConfiguration .................... 358ManagementNetworkConfiguration .............. 359NETCONFConfiguration ................... 361NETCONFoverSSHConfiguration ............... 361

    UserAccessControlConfiguration ................. 362SystemUserIDConfiguration ................. 363StrongPasswordConfiguration................. 364HTTPSAccessConfiguration .................. 365

    CustomDaylightSavingTimeConfiguration ............. 368sFlowConfiguration ....................... 369

    sFlowPortConfiguration ................... 370ServerPortConfiguration ..................... 371

    PortConfiguration.......................... 372PortErrorDisableandRecoveryConfiguration ............ 377

    PortLinkFlapDampeningConfiguration ............ 377PortLinkConfiguration ...................... 378TemporarilyDisablingaPort .................... 378UniDirectionalLinkDetectionConfiguration ............. 379PortOAMConfiguration ..................... 380PortACLConfiguration ...................... 381PortWREDConfiguration ..................... 382

    PortWREDTransmitQueueConfiguration ............ 383QualityofServiceConfiguration .................... 384

    802.1pConfiguration ....................... 384DSCPConfiguration ....................... 385ControlPlaneProtection ...................... 386WeightedRandomEarlyDetectionConfiguration........... 388WREDTransmitQueueConfiguration................ 389

  • Copyright Lenovo 2015 Contents 9

    AccessControlConfiguration .....................390AccessControlListConfiguration ..................391

    ACLMirroringConfiguration ..................392EthernetFilteringConfiguration .................392IPv4FilteringConfiguration ..................394TCP/UDPFilteringConfiguration................395ACLMeteringConfiguration..................397ACLReMarkConfiguration ..................398

    ACLIPv6Configuration ......................400IPv6FilteringConfiguration ..................401IPv6TCP/UDPFilteringConfiguration ..............402IPv6ReMarkConfiguration..................404IPv6MeteringConfiguration ..................406

    ACLLogConfiguration ......................407ACLGroupConfiguration .....................408ManagementACLConfiguration..................409

    MACLIPv4FilteringConfiguration ...............409MACLTCP/UDPFilteringConfiguration .............411

    VMAPConfiguration .......................412PortMirroring............................418

    PortMirroringConfiguration ....................418Layer2 Configuration .........................419

    802.1XConfiguration.......................419802.1XGlobalConfiguration..................420802.1XGuestVLANConfiguration ...............422802.1XPortConfiguration ...................423

    SpanningTreeConfiguration....................425MSTPConfiguration ......................428RSTP/PVRSTConfiguration...................431

    ForwardingDatabaseConfiguration .................435StaticMulticastMACConfiguration ...............436StaticFDBConfiguration....................437

    ECPConfiguration........................439LLDPConfiguration ........................440

    LLDPPortConfiguration ....................441LLDPOptionalTLVconfiguration ................442

    TrunkConfiguration .......................444TrunkHashConfiguration .....................445

    Layer2TrunkHash......................446Layer3TrunkHash......................447

    VirtualLinkAggregationGroupConfiguration ............448vLAGHealthCheckConfiguration ...............450vLAGISLConfiguration ....................451

    LinkAggregationControlProtocolConfiguration...........452LACPPortConfiguration....................453

    Layer2FailoverConfiguration...................455FailoverTriggerConfiguration.................455FailoverManualMonitorPortConfiguration ...........456FailoverManualMonitorControlConfiguration..........457

    HotLinksConfiguration......................458HotLinksTriggerConfiguration ................459

  • 10 G8272 Command Reference for N/OS 8.2

    HotLinksMasterConfiguration................. 460HotLinksBackupConfiguration................ 461

    VLANConfiguration ....................... 462ProtocolBasedVLANConfiguration .............. 463PrivateVLANConfiguration .................. 465FloodingVLANConfigurationMenu .............. 466

    Layer3 Configuration......................... 467IPInterfaceConfiguration..................... 469IPv6NeighborDiscoveryConfiguration ............... 472DefaultGatewayConfiguration................... 475IPMulticastRouteConfiguration .................. 476ARPConfiguration........................ 477

    ARPLocalProxyConfiguration ................. 477ARPStaticConfiguration.................... 478

    IPForwardingConfiguration .................... 479NetworkAddressTranslationConfiguration ............. 480NetworkFilterConfiguration.................... 484RoutingMapConfiguration .................... 485

    IPAccessListConfiguration .................. 488PolicyBasedRoutingConfiguration............... 489AutonomousSystemFilterPathConfiguration .......... 491

    RoutingInformationProtocolConfiguration ............. 492RIPInterfaceConfiguration................... 493RIPRouteRedistributionConfiguration ............. 495

    OpenShortestPathFirstConfiguration............... 496AreaIndexConfiguration ................... 497OSPFSummaryRangeConfiguration .............. 499OSPFInterfaceConfiguration .................. 500OSPFVirtualLinkConfiguration ................ 502OSPFHostEntryConfiguration ................. 504OSPFRouteRedistributionConfiguration............ 505OSPFMD5KeyConfiguration................. 505

    OpenShortestPathFirstVersion3Configuration ........... 506OSPFv3AreaIndexConfiguration................ 508OSPFv3SummaryRangeConfiguration ............. 511OSPFv3ASExternalRangeConfiguration ............ 512OSPFv3InterfaceConfiguration................. 513OSPFv3overIPSecConfiguration ................ 516OSPFv3VirtualLinkConfiguration............... 518OSPFv3overIPSecforVirtualLinkConfiguration ......... 519OSPFv3HostEntryConfiguration ................ 520OSPFv3RedistributeEntryConfiguration............ 521OSPFv3RedistributeConfiguration............... 522

    BorderGatewayProtocolConfiguration ............... 523BGPPeerConfiguration .................... 525BGPAggregationConfiguration ................ 528BGPNeighborRedistributionConfiguration ........... 529BGPPeeringGroupConfiguration ............... 530BGPNeighborGroupRedistributionConfiguration........ 534

    IGMPConfiguration ....................... 536IGMPSnoopingConfiguration ................. 537

  • Copyright Lenovo 2015 Contents 11

    IGMPv3Configuration .....................538IGMPRelayConfiguration...................539IGMPRelayMulticastRouterConfiguration ...........540IGMPStaticMulticastRouterConfiguration ...........541IGMPFilteringConfiguration..................542IGMPAdvancedConfiguration .................544IGMPQuerierConfiguration ..................545

    IKEv2Configuration .......................548IKEv2PreshareKeyConfiguration................548IKEv2ProposalConfiguration..................549IKEv2IdentificationConfiguration ...............550

    IPsecConfiguration ........................551IPsecTransformSetConfiguration ................551IPsecTrafficSelectorConfiguration ...............552IPsecDynamicPolicyConfiguration ...............553IPsecManualPolicyConfiguration ...............554

    DomainNameSystemConfiguration................556BootstrapProtocolRelayConfiguration...............558

    BOOTPRelayBroadcastDomainConfiguration ..........558Option82Configuration....................559

    VRRPConfiguration........................560VirtualRouterConfiguration..................561VirtualRouterPriorityTrackingConfiguration ..........564VirtualRouterGroupConfiguration ...............565VRRPInterfaceConfiguration ..................568VRRPTrackingConfiguration..................569

    ProtocolIndependentMulticastConfiguration ............570PIMComponentConfiguration.................571RPCandidateConfiguration..................572RPStaticConfiguration ....................572PIMInterfaceConfiguration ..................573

    IPv6DefaultGatewayConfiguration ................576IPv6StaticRouteConfiguration ...................577IPv6NeighborDiscoveryCacheConfiguration............577IPv6PathMTUConfiguration ...................578IPv6NeighborDiscoveryPrefixConfiguration ............578IPv6PrefixPolicyTableConfiguration ................580IPLoopbackInterfaceConfiguration.................581DHCPSnooping .........................582

    ConvergedEnhancedEthernetConfiguration ..............583ETSGlobalConfiguration.....................584

    ETSGlobalPriorityGroupConfiguration .............584PriorityFlowControlConfiguration .................585

    GlobalPriorityFlowControlConfiguration ............585802.1pPFCConfiguration ...................586

    DCBXPortConfiguration .....................587FCoEInitializationProtocolSnoopingConfiguration...........588

    FIPSPortConfiguration ......................589FCoEForwarderConfiguration .....................590

    FCoEVLANConfiguration.....................591ZoneConfiguration ........................592

  • 12 G8272 Command Reference for N/OS 8.2

    ZonesetConfiguration....................... 593FCAliasConfiguration...................... 594

    RemoteMonitoringConfiguration ................... 595RMONHistoryConfiguration ................... 595RMONEventConfiguration.................... 596RMONAlarmConfiguration .................... 597

    VMReadyConfiguration ....................... 599VMPolicyBandwidthManagement ................. 600VMGroupConfiguration ..................... 601VMCheckConfiguration ..................... 604VMProfileConfiguration ..................... 605VMWareConfiguration...................... 607MiscellaneousVMreadyConfiguration............... 608

    UFPConfiguration .......................... 609EdgeVirtualBridgeConfiguration................... 611

    EdgeVirtualBridgeVSITypeDatabaseConfiguration......... 612EdgeVirtualBridgeVSITypeProfileConfiguration .......... 614

    OpenFlowConfiguration ....................... 615StaticFlowsConfiguration..................... 625

    PrecisionTimeProtocolConfiguration ................. 629MicroburstDetection ......................... 631ConfigurationDump......................... 632SavingtheActiveSwitchConfiguration ................. 633RestoringtheActiveSwitchConfiguration................ 634USBCopy.............................. 635

    CopytoUSB ........................... 635CopyfromUSB.......................... 635

    PythonScriptingConfiguration .................... 636PythonScriptsManagementandExecution ............. 636SchedulerJobsManagement .................... 638RunningJobMonitor ....................... 640

  • Copyright Lenovo 2015 Contents 13

    Chapter 5. Operations Commands . . . . . . . . . . . . . . . . . 641OperationsLevelPortCommands ...................642OperationsLevelNATCommands ...................643OperationsLevelVRRPCommands...................644VMwareOperations .........................645VMwareDistributedVirtualSwitchOperations..............647

    VMwareDistributedPortGroupOperations .............648EdgeVirtualBridgeOperations.....................649

    Chapter 6. Boot Options . . . . . . . . . . . . . . . . . . . . . 651ScheduledRebootoftheSwitch.....................652NetbootConfiguration ........................653

    MachineTypeModelConfiguration.................654USBBootConfiguration ........................655UpdatingtheSwitchSoftwareImage ..................656

    LoadingNewSoftwaretoYourSwitch ................657SelectingaSoftwareImagetoRun..................658UploadingaSoftwareImagefromYourSwitch ............658

    SelectingaConfigurationBlock.....................659SettinganEntitlementSerialNumber ..................660RebootingtheSwitch .........................661ChangingtheSwitchProfile ......................662UsingtheBootManagementMenu...................663

    BootRecoveryMode .......................664RecoverfromaFailedImageUpgradeusingTFTP...........665RecoveringfromaFailedImageUpgradeusingXModemDownload ..667PhysicalPresence .........................669

    Chapter 7. Maintenance Commands . . . . . . . . . . . . . . . . 671ForwardingDatabaseMaintenance ...................673DebuggingCommands ........................674IPsecDebugging...........................676BGPDebugging ...........................677BGPMaintenance...........................678DCBXMaintenance..........................679LLDPCacheManipulation .......................680ARPCacheMaintenance........................681IPRouteManipulation ........................682IGMPSnoopingMaintenance .....................683IGMPMulticastRoutersMaintenance ..................684IPv6NeighborCacheManipulation...................685IPv6RouteMaintenance ........................686FCoEForwarderMaintenance .....................687UuencodeFlashDump........................688TFTP,SFTPorFTPSystemDumpCopy .................689ClearingDumpInformation......................690UnscheduledSystemDumps ......................691

  • 14 G8272 Command Reference for N/OS 8.2

    Appendix A. Lenovo N/OS System Log Messages . . . . . . . . . . 693LOG_ALERT ............................ 694LOG_CRIT ............................. 698LOG_ERR.............................. 699LOG_INFO ............................. 702LOG_NOTICE ............................ 706LOG_WARNING.......................... 715

    Appendix B. Getting help and technical assistance. . . . . . . . . . 719

    Appendix C. Notices . . . . . . . . . . . . . . . . . . . . . . 721Trademarks............................. 723ImportantNotes........................... 724RecyclingInformation......................... 725ParticulateContamination ....................... 726TelecommunicationRegulatoryStatement................ 727ElectronicEmissionNotices ...................... 728

    FederalCommunicationsCommission(FCC)Statement........ 728IndustryCanadaClassAEmissionComplianceStatement ....... 728AvisdeConformitlaRglementationdIndustrieCanada...... 728AustraliaandNewZealandClassAStatement ............ 728EuropeanUnionEMCDirectiveConformanceStatement........ 728GermanyClassAStatement .................... 729JapanVCCIClassAStatement................... 730JapanElectronicsandInformationTechnologyIndustriesAssociation(JEITA) Statement......................... 731KoreaCommunicationsCommission(KCC)Statement......... 731

    RussiaElectromagneticInterference(EMI)ClassAstatement ....... 732PeoplesRepublicofChinaClassAelectronicemissionstatement...... 733TaiwanClassAcompliancestatement.................. 734

    Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 735

  • Copyright Lenovo 2015 15

    PrefaceTheLenovoRackSwitchG8272ISCLIIndustryStandardCLICommandReferenceforNetworkingOS8.2describeshowtoconfigureandusetheLenovoN/OS8.2softwarewithyourRackSwitchG8272(referredtoasG8272throughoutthisdocument).Thisguidelistseachcommand,togetherwiththecompletesyntaxandafunctionaldescription,fromtheISCommandLineInterface(ISCLI).

    Fordocumentationoninstallingtheswitchesphysically,seetheInstallationGuideforyourRackSwitchG8272.FordetailsaboutconfigurationandoperationofyourG8272,seetheLenovoN/OS8.2ApplicationGuide.

  • 16 G8272 Command Reference for N/OS 8.2

    Who Should Use This BookThisbookisintendedfornetworkinstallersandsystemadministratorsengagedinconfiguringandmaintaininganetwork.TheadministratorshouldbefamiliarwithEthernetconcepts,IPaddressing,SpanningTreeProtocolandSNMPconfigurationparameters.

  • Copyright Lenovo 2015 Preface 17

    How This Book Is OrganizedChapter 1,ISCLIBasics,describeshowtoconnecttotheswitchandaccesstheinformationandconfigurationcommands.Thischapterprovidesanoverviewofthecommandsyntax,includingcommandmodes,globalcommands,andshortcuts.

    Chapter 2,InformationCommands,showshowtoviewswitchconfigurationparameters.

    Chapter 3,StatisticsCommands,showshowtoviewswitchperformancestatistics.

    Chapter 4,ConfigurationCommands,showshowtoconfigureswitchsystemparameters,ports,VLANs,SpanningTreeProtocol,SNMP,PortMirroring,PortTrunking,andmore.

    Chapter 5,OperationsCommands,showshowtousecommandswhichaffectswitchperformanceimmediately,butdonotalterpermanentswitchconfigurations(suchastemporarilydisablingports).Thecommandsdescribehowtoactivateordeactivateoptionalsoftwarefeatures.

    Chapter 6,BootOptions,describestheuseoftheprimaryandalternateswitchimages,howtoloadanewsoftwareimageandhowtoresetthesoftwaretofactorydefaults.

    Chapter 7,MaintenanceCommands,showshowtogenerateandaccessadumpofcriticalswitchstateinformation,howtoclearit,andhowtoclearpartoralloftheforwardingdatabase.

    AppendixA,LenovoN/OSSystemLogMessages,showsalistingofsyslogmessages.

    AppendixB,Gettinghelpandtechnicalassistance,liststheresourcesavailablefromLenovotoassistyou.

    AppendixC,Notices,displaysLenovolegalinformation.

    Indexincludespointerstothedescriptionofthekeywordsusedthroughoutthebook.

  • 18 G8272 Command Reference for N/OS 8.2

    Typographic ConventionsThefollowingtabledescribesthetypographicstylesusedinthisbook.

    Table 1. TypographicConventions

    Typeface or Symbol Meaning

    plainfixedwidthtext

    Thistypeisusedfornamesofcommands,files,anddirectoriesusedwithinthetext.Forexample:

    Viewthereadme.txtfile.

    Italsodepictsonscreencomputeroutputandprompts.

    boldfixedwidthtext

    Thisboldtypeappearsincommandexamples.Itshowstextthatmustbetypedinexactlyasshown.Forexample:

    showsysinfo

    boldbodytext Thisboldtypeindicatesobjectssuchaswindownames,dialogboxnames,andicons,aswellasuserinterfaceobjectssuchasbuttons,andtabs.

    italicizedbodytext Thisitalicizedtypeindicatesbooktitles,specialterms,orwordstobeemphasized.

    anglebrackets Indicateavariabletoenterbasedonthedescriptioninsidethebrackets.Donottypethebracketswhenenteringthecommand.

    Example:Ifthecommandsyntaxisping

    youenterping192.32.10.12

    braces{} Indicaterequiredelementsinsyntaxdescriptionswherethereismorethanoneoption.Youmustchooseonlyoneoftheoptions.Donottypethebraceswhenenteringthecommand.

    Example:Ifthecommandsyntaxisshowportchannel{|hash|information}

    youenter:show portchannel or

    showportchannelhash

    or

    showportchannelinformation

  • Copyright Lenovo 2015 Preface 19

    brackets[] Indicateoptionalelementsinsyntaxdescriptions.Donottypethebracketswhenenteringthecommand.

    Example:Ifthecommandsyntaxisshowinterfaceip []youentershowinterfaceip

    orshowinterfaceip

    verticalline| Separateschoicesforcommandkeywordsandarguments.Enteronlyoneofthechoices.Donottypetheverticallinewhenenteringthecommand.

    Example:Ifthecommandsyntaxisshowportchannel{|hash|information}

    youmustenter:show portchannel or

    showportchannelhash

    or

    showportchannelinformation

    Table 1. TypographicConventions(continued)

    Typeface or Symbol Meaning

  • 20 G8272 Command Reference for N/OS 8.2

  • Copyright Lenovo 2015 21

    Chapter 1. ISCLI BasicsYourRackSwitchG8272isreadytoperformbasicswitchingfunctionsrightoutofthebox.Someofthemoreadvancedfeatures,however,requiresomeadministrativeconfigurationbeforetheycanbeusedeffectively.

    ThisguidedescribestheindividualISCLIcommandsavailablefortheG8272.

    TheISCLIprovidesadirectmethodforcollectingswitchinformationandperformingswitchconfiguration.Usingabasicterminal,theISCLIallowsyoutoviewinformationandstatisticsabouttheswitch,andtoperformanynecessaryconfiguration.

    ThischapterexplainshowtoaccesstheISCommandLineInterface(ISCLI)fortheswitch.

  • 22 G8272 Command Reference for N/OS 8.2

    ISCLI Command Modes TheISCLIhasthreemajorcommandmodeslistedinorderofincreasingprivileges,asfollows:

    UserEXECmodeThisistheinitialmodeofaccess.Bydefault,passwordcheckingisdisabledforthismode,onconsole.

    PrivilegedEXECmodeThismodeisaccessedfromUserEXECmode.Thismodecanbeaccessedusingthefollowingcommand:enable

    GlobalConfigurationmodeThismodeallowsyoutomakechangestotherunningconfiguration.Ifyousavetheconfiguration,thesettingssurviveareloadoftheG8272.SeveralsubmodescanbeaccessedfromtheGlobalConfigurationmode.Formoredetails,seeTable 2.Thismodecanbeaccessedusingthefollowingcommand:configureterminal

    Eachmodeprovidesaspecificsetofcommands.Thecommandsetofahigherprivilegemodeisasupersetofalowerprivilegemodealllowerprivilegemodecommandsareaccessiblewhenusingahigherprivilegemode.

    ThefollowingtableliststheISCLIcommandmodes.

    Table 2. ISCLICommandModes

    Command Mode/Prompt Command used to enter or exit

    UserEXEC

    G 8272>

    Defaultmode,enteredautomaticallyonconsole

    Exit:exitorlogout

    PrivilegedEXEC

    G 8272#

    EnterPrivilegedEXECmode,fromUserEXECmode:enable

    ExittoUserEXECmode:disable

    QuitISCLI:exitorlogout

    GlobalConfiguration

    G 8272(config)#

    EnterGlobalConfigurationmode,fromPrivilegedEXECmode:configureterminal

    ExittoPrivilegedEXEC:endorexit

    InterfaceIP

    G 8272(configipif)#

    EnterInterfaceIPConfigurationmode,fromGlobalConfigurationmode:interfaceip

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    Interfaceloopback

    G 8272(configiploopback)#

    EnterInterfaceLoopbackConfigurationmode,fromGlobalConfigurationmode:interfaceloopback

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

  • Copyright Lenovo 2015 Chapter 1: ISCLI Basics 23

    Interfaceport

    G 8272(configif)#

    EnterPortConfigurationmode,fromGlobalConfigurationmode:interfaceport

    ExittoPrivilegedEXECmode:exit

    ExittoGlobalConfigurationmode:end

    InterfacePortChannel

    G 8272(configPortChannel)#

    EnterPortChannel(trunkgroup)Configurationmode,fromGlobalConfigurationmode:interfaceportchannel{|lacp}

    ExittoPrivilegedEXECmode:exit

    ExittoGlobalConfigurationmode:end

    VLAN

    G 8272(configvlan)#

    EnterVLANConfigurationmode,fromGlobalConfigurationmode:vlan

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    RouterOSPF

    G 8272(configrouterospf)#

    EnterOSPFConfigurationmode,fromGlobalConfigurationmode:routerospf

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    RouterOSPFv3

    G 8272(configrouterospf3)#

    EnterOSPFv3Configurationmode,fromGlobalConfigurationmode:ipv6routerospf

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    RouterBGP

    G 8272(configrouterbgp)#

    EnterBGPConfigurationmode,fromGlobalConfigurationmode:routerbgp

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    RouterRIP

    G 8272(configrouterrip)#

    EnterRIPConfigurationmode,fromGlobalConfigurationmode:routerrip

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    Table 2. ISCLICommandModes(continued)

    Command Mode/Prompt Command used to enter or exit

  • 24 G8272 Command Reference for N/OS 8.2

    RouteMap

    G 8272(configroutemap)#

    EnterRouteMapConfigurationmode,fromGlobalConfigurationmode:routemap

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    RouterVRRP

    G 8272(configvrrp)#

    EnterVRRPConfigurationmode,fromGlobalConfigurationmode:routervrrp

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    PIMComponent

    G 8272(configippimcomp)#

    EnterProtocolIndependentMulticast(PIM)ComponentConfigurationmode,fromGlobalConfigurationmode:ippimcomponent

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    IKEv2Proposal

    G 8272(configikev2prop)#

    EnterIKEv2ProposalConfigurationmode,fromGlobalConfigurationmode:ikev2proposal

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    MLDConfiguration

    G 8272(configroutermld)#

    EnterMulticastListenerDiscoveryProtocolConfigurationmode,fromGlobalConfigurationmode:ipv6mld

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    MSTConfiguration

    G 8272(configmst)#

    EnterMultipleSpanningTreeProtocolConfigurationmode,fromGlobalConfigurationmode:spanningtreemstconfiguration

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    OpenFlowInstance

    G 8272(configopenflowinstance)#

    EnterOpenFlowInstanceConfigurationmode,fromGlobalConfigurationmode:openflowinstance

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    Table 2. ISCLICommandModes(continued)

    Command Mode/Prompt Command used to enter or exit

  • Copyright Lenovo 2015 Chapter 1: ISCLI Basics 25

    VSIDatabase

    G 8272(confvsidb)#

    EnterVirtualStationInterfaceDatabaseConfigurationmode,fromGlobalConfigurationmode:virtevbvsidb

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    EVBProfile

    G 8272(confevbprof)#

    EnterEdgeVirtualBridgingVSITypeProfileConfigurationmode,fromGlobalConfigurationmode:virtevbprofile

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    UFPVirtualPortConfiguration

    G 8272(config_ufp_vport)#

    EnterUnifiedFabricPortVirtualPortConfigurationmode,fromGlobalConfigurationmode:ufpportvport

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    SchedulerJob

    G 8272(configjob)#

    EnterPythonScriptingSchedulerJobConfigurationmode,fromGlobalConfigurationmode:schedulerjobname

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    FCZoneConfiguration

    G 8272(configzone)#

    EnterFibreChannelZoneConfigurationmode,fromGlobalConfigurationmode:zonenamevlan

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    FCZonesetConfiguration

    G 8272(configzoneset)#

    EnterFibreChannelZonesetConfigurationmode,fromGlobalConfigurationmode:zonesetnamevlan

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    FCAliasConfiguration

    G 8272(configfcalias)#

    EnterFibreChannelFCAliasConfigurationmode,fromGlobalConfigurationmode:fcaliasnamevlan

    ExittoGlobalConfigurationmode:exit

    ExittoPrivilegedEXECmode:end

    Table 2. ISCLICommandModes(continued)

    Command Mode/Prompt Command used to enter or exit

  • 26 G8272 Command Reference for N/OS 8.2

    Global CommandsSomebasiccommandsarerecognizedthroughouttheISCLIcommandmodes.Thesecommandsareusefulforobtainingonlinehelp,navigatingthroughtheinterface,andforsavingconfigurationchanges.

    Forhelponaspecificcommand,typethecommand,followedbyhelp.

    Table 3. DescriptionofGlobalCommands

    Command Action

    ? Providesmoreinformationaboutaspecificcommandorlistscommandsavailableatthecurrentlevel.

    list Liststhecommandsavailableatthecurrentlevel.

    exit Gouponelevelinthecommandmodestructure.Ifalreadyatthetoplevel,exitfromthecommandlineinterfaceandlogout.

    copyrunningconfigstartupconfig

    Writeconfigurationchangestononvolatileflashmemory.

    logout Exitfromthecommandlineinterfaceandlogout.

  • Copyright Lenovo 2015 Chapter 1: ISCLI Basics 27

    ping Usethiscommandtoverifystationtostationconnectivityacrossthenetwork.Theformatisasfollows:

    ping|[n][w][l][s][i][v][f][t][m|mgt|d|data]

    Where: n:Setsthenumberofattempts(optional). w:Setsthenumberofmillisecondsbetween

    attempts(optional). l:Setsthepingrequestpayloadsize

    (optional). s:SetstheIPsourceaddressfortheIPpacket

    (optional). i:SetstheTimetoliveintheIPheader. v:SetstheTypeofServicebitsintheIPheader. f:SetsthedontfragmentbitintheIPheader

    (onlyforIPv4addresses). t:Pingscontinuously(sameasn0).

    Bydefault,themormgtoptionformanagementportisused.Tousedataports,specifythedordataoption.

    traceroute Usethiscommandtoidentifytherouteusedforstationtostationconnectivityacrossthenetwork.Theformatisasfollows:

    traceroute|[[]][m|mgt|d|data]

    Wherehostname/IPaddressisthehostnameorIPaddressofthetargetstation,maxhops(optional)isthemaximumdistancetotrace(132devices),andmsecdelay(optional)isthenumberofmillisecondstowaitfortheresponse.Bydefault,themormgtoptionformanagementportisused.Tousedataports,specifythedordataoption.

    Aswithping,theDNSparametersmustbeconfiguredifspecifyinghostnames.

    Table 3. DescriptionofGlobalCommands

    Command Action

  • 28 G8272 Command Reference for N/OS 8.2

    telnet ThiscommandisusedtoformaTelnetsessionbetweentheswitchandanothernetworkdevice.Theformatisasfollows:

    telnet{|}[]

    WhereIPaddressorhostnamespecifiesthetargetstation.UseofahostnamerequiresDNSparameterstobeconfiguredontheswitch.

    PortisthelogicalTelnetportorservicenumber.

    Bydefault,themormgtoptionformanagementportisused.Tousedataports,specifythedordataoption.

    showhistory Thiscommanddisplaysthelasttenissuedcommands.

    showwho Displaysalistofuserswhoarecurrentlyloggedin.

    showline Displaysalistofuserswhoarecurrentlyloggedin,intableformat.

    Table 3. DescriptionofGlobalCommands

    Command Action

  • Copyright Lenovo 2015 Chapter 1: ISCLI Basics 29

    Command Line Interface ShortcutsThefollowingshortcutsallowyoutoentercommandsquicklyandeasily.

    CLI List and Range InputsForVLANandportcommandsthatallowanindividualitemtobeselectedfromwithinanumericrange,listsandrangesofitemscannowbespecified.Forexample,thevlancommandpermitsthefollowingoptions:

    Thenumbersinarangemustbeseparatedbyadash:

    Multiplerangesorlistitemsarepermittedusingacomma:,

    Donotusespaceswithinlistandrangespecifications.

    Rangescanalsobeusedtoapplythesamecommandoptiontomultipleitems.Forexample,toaccessmultipleportswithonecommand:

    Command AbbreviationMostcommandscanbeabbreviatedbyenteringthefirstcharacterswhichdistinguishthecommandfromtheothersinthesamemode.Forexample,considerthefollowingfullcommandandavalidabbreviation:

    or:

    Tab CompletionByenteringthefirstletterofacommandatanypromptandpressing,theISCLIdisplaysallavailablecommandsoroptionsthatbeginwiththatletter.Enteringadditionallettersfurtherrefinesthelistofcommandsoroptionsdisplayed.Ifonlyonecommandfitstheinputtextwhenispressed,thatcommandissuppliedonthecommandline,waitingtobeentered.

    Ifmultiplecommandssharethetypedcharacters,whenyoupress,theISCLIcompletesthecommonpartofthesharedsyntax.

    G 8272(config)#vlan1,3,4094 (accessVLANs1,3,and4094)G 8272(config)#vlan120 (accessVLANs1through20)G 8272(config)#vlan15,9099,40904094(accessmultipleranges)G 8272(config)#vlan15,19,20,40904094(accessamixoflistsandranges)

    G 8272(config)#interfaceport14 (Accessports1though4)

    G 8272(config)#showmacaddresstableinterfaceport12

    G 8272(config)#shmaip12

  • 30 G8272 Command Reference for N/OS 8.2

    User Access LevelsToenablebetterswitchmanagementanduseraccountability,threelevelsorclassesofuseraccesshavebeenimplementedontheG8272.LevelsofaccesstoCLI,Webmanagementfunctions,andscreensincreaseasneededtoperformvariousswitchmanagementtasks.Conceptually,accessclassesaredefinedasfollows: user

    InteractionwiththeswitchiscompletelypassivenothingcanbechangedontheG8272.Usersmaydisplayinformationthathasnosecurityorprivacyimplications,suchasswitchstatisticsandcurrentoperationalstateinformation.

    operOperatorscanmaketemporarychangesontheG8272.Thesechangesarelostwhentheswitchisrebooted.Operatorshaveaccesstotheswitchmanagementfeaturesusedfordailyswitchoperations.Becauseanychangesanoperatormakesareundonebyarebootoftheswitch,operatorscannotseverelyimpactswitchoperation.

    adminAdministratorsaretheonlyonesthatmaymakepermanentchangestotheswitchconfigurationchangesthatarepersistentacrossarebootoftheswitch.AdministratorscanaccessswitchfunctionstoconfigureandtroubleshootproblemsontheG8272.Becauseadministratorscanalsomaketemporary(operatorlevel)changesaswell,theymustbeawareoftheinteractionsbetweentemporaryandpermanentchanges.

    Accesstoswitchfunctionsiscontrolledthroughtheuseofuniquesurnamesandpasswords.OnceyouareconnectedtotheswitchvialocalTelnet,remoteTelnet,orSSH,youarepromptedtoenterapassword.Thedefaultusernames/passwordforeachaccesslevelarelistedinthefollowingtable.Note: Itisrecommendedthatyouchangedefaultswitchpasswordsafterinitialconfigurationandasregularlyasrequiredunderyournetworksecuritypolicies.

    Note: Withtheexceptionoftheadminuser,accesstoeachuserlevelcanbedisabledbysettingthepasswordtoanemptyvalue.

    Table 4. UserAccessLevels

    User Account Description and Tasks Performed Password

    User TheUserhasnodirectresponsibilityforswitchmanagement.Heorshecanviewallswitchstatusinformationandstatistics,butcannotmakeanyconfigurationchangestotheswitch.

    Operator TheOperatorcanmaketemporarychangesthatarelostwhentheswitchisrebooted.Operatorshaveaccesstotheswitchmanagementfeaturesusedfordailyswitchoperations.

    Administrator

    ThesuperuserAdministratorhascompleteaccesstoallcommandmodes,information,andconfigurationcommandsontheRackSwitchG8272,includingtheabilitytochangeboththeuserandadministratorpasswords.

    admin

  • Copyright Lenovo 2015 Chapter 1: ISCLI Basics 31

    Idle TimeoutBydefault,theswitchwilldisconnectyourTelnetsessionaftertenminutesofinactivity.Thisfunctioniscontrolledbythefollowingcommand,whichcanbesetfrom1to60minutes,ordisabledwhensetto0:

    systemidle

    Commandmode:GlobalConfiguration

  • 32 G8272 Command Reference for N/OS 8.2

  • Copyright Lenovo 2015 33

    Chapter 2. Information CommandsYoucanviewconfigurationinformationfortheswitchinboththeuserandadministratorcommandmodes.Thischapterdiscusseshowtousethecommandlineinterfacetodisplayswitchinformation.

    Table 5. InformationCommands

    Command Syntax and Usage

    showinterfacestatusDisplaysconfigurationinformationabouttheselectedport(s),including: Portaliasandnumber Portspeed Duplexmode(half,full,orauto) Flowcontrolfortransmitandreceive(no,yes,orboth) Linkstatus(up,down,ordisabled) PortdescriptionFordetails,seepage 158.Commandmode:All

    showinterfacetrunkDisplaysportstatusinformation,including: Portaliasandnumber WhethertheportusesVLANTaggingornot PortVLANID(PVID) Portdescription VLANmembership FDBLearningstatus FloodingstatusFordetails,seepage 159.Commandmode:All

    showinterfacetransceiver

    Displaysthestatusoftheporttransceivermoduleoneachport.Fordetails,seepage 160.Commandmode:All

    showinformationdump

    Dumpsallswitchinformationavailable(10Kormore,dependingonyourconfiguration).Ifyouwanttocapturedumpdatatoafile,setyourcommunicationsoftwareonyourworkstationtocapturesessiondatapriortoissuingthedumpcommands.Commandmode:All

  • 34 G8272 Command Reference for N/OS 8.2

    System InformationTheinformationprovidedbyeachcommandoptionisbrieflydescribedinthefollowingtable,withpointerstowheredetailedinformationcanbefound.

    Table 6. SystemInformationOptions

    Command Syntax and Usage

    showsysinfo

    Displayssysteminformation,including: Systemdateandtime Switchmodelnameandnumber Switchnameandlocation Timeoflastboot MACaddressoftheswitchmanagementprocessor IPaddressofmanagementinterface Hardwareversionandpartnumber Softwareimagefileandversionnumber Configurationname Loginbanner,ifoneisconfigured Internaltemperatures Fanstatus PowersupplystatusFordetails,seepage 45.Commandmode:All

    showlogging[severity][reverse]Displaysthecurrentsyslogconfiguration,followedbythemostrecent2000syslogmessages,asdisplayedbytheshowloggingmessagescommand.Fordetails,seepage 47.Commandmode:All

    showaccessuser

    Displaysconfiguredusernamesandtheirstatus.Commandmode:AllexceptUserEXEC

  • Copyright Lenovo 2015 Chapter 2: Information Commands 35

    CLI Display InformationThesecommandsallowyoutodisplayinformationaboutthenumberoflinesperscreendisplayedintheCLI.

    Table 7. CLIDisplayInformationOptions

    Command Syntax and Usage

    showterminallength

    DisplaysthenumberoflinesperscreendisplayedintheCLIforthecurrentsession.Avalueof0meanspagingisdisabled.Commandmode:All

    showlineconsolelength

    DisplaysthenumberoflinesperscreendisplayedintheCLIbydefaultforconsolesessions.Avalueof0meanspagingisdisabled.Commandmode:All

    showlinevtylength

    DisplaysthenumberoflinesperscreendisplayedintheCLIbydefaultforTelnetandSSHsessions.Avalueof0meanspagingisdisabled.Commandmode:All

  • 36 G8272 Command Reference for N/OS 8.2

    Error Disable and Recovery InformationThesecommandsallowyoutodisplayinformationabouttheErrorDisableandRecoveryfeatureforinterfaceports.

    Table 8. ErrorDisableInformationOptions

    Command Syntax and Usage

    showerrdisableinformation

    DisplaysallErrorDisableandRecoveryinformation.Commandmode:All

    showerrdisablelinkflap[information]

    Displaysportsthathavebeendisabledduetoexcessivelinkflaps.Commandmode:All

    showerrdisablerecovery

    DisplaysalistportswiththeirErrorRecoverystatus.Commandmode:All

    showerrdisabletimers

    Displaysalistofactiverecoverytimers,ifapplicable.Commandmode:All

  • Copyright Lenovo 2015 Chapter 2: Information Commands 37

    SNMPv3 System InformationSNMPversion3(SNMPv3)isanextensibleSNMPFrameworkthatsupplementstheSNMPv2frameworkbysupportingthefollowing:

    anewSNMPmessageformat

    securityformessages

    accesscontrol

    remoteconfigurationofSNMPparameters

    FormoredetailsontheSNMPv3architecturepleaserefertoRFC2271toRFC2276.

    Table 9. SNMPv3InformationOptions

    Command Syntax and Usage

    showsnmpserverv3

    DisplaysalltheSNMPv3information.Toviewasample,seepage 44.Commandmode:All

    showsnmpserverv3access

    DisplaysViewbasedAccessControlinformation.Toviewasample,seepage 40.Commandmode:All

    showsnmpserverv3community

    Displaysinformationaboutthecommunitytableinformation.Toviewasample,seepage 41.Commandmode:All

    showsnmpserverv3group

    Displaysinformationaboutthegroup,includingthesecuritymodel,usernameandgroupname.Toviewasample,seepage 41.Commandmode:All

    showsnmpserverv3notify

    DisplaystheNotifytableinformation.Toviewasample,seepage 43.Commandmode:All

    showsnmpserverv3targetaddress

    DisplaystheTargetAddresstableinformation.Toviewasample,seepage 42.Commandmode:All

    showsnmpserverv3targetparameters

    DisplaystheTargetparameterstableinformation.Toviewasample,seepage 43.Commandmode:All

  • 38 G8272 Command Reference for N/OS 8.2

    SNMPv3 USM User Table InformationTheUserbasedSecurityModel(USM)inSNMPv3providessecurityservicessuchasauthenticationandprivacyofmessages.ThissecuritymodelmakesuseofadefinedsetofuseridentitiesdisplayedintheUSMusertable.ThefollowingcommanddisplaysSNMPv3userinformation:

    showsnmpserverv3user

    Commandmode:All

    TheUSMusertablecontainsthefollowinginformation: theusername asecuritynameintheformofastringwhoseformatisindependentofthe

    SecuityModel anauthenticationprotocol,whichisanindicationthatthemessagessenton

    behalfoftheusercanbeauthenticated theprivacyprotocol

    showsnmpserverv3user

    DisplaysUserSecurityModel(USM)tableinformation.Toviewthetable,seepage 38.Commandmode:All

    showsnmpserverv3view

    Displaysinformationaboutview,subtrees,maskandtypeofview.Toviewasample,seepage 39.Commandmode:All

    Table 9. SNMPv3InformationOptions(continued)

    Command Syntax and Usage

    EngineID=80:00:4F:4D:03:08:17:F4:8C:E8:00

    usmUserTable:UserNameProtocoladminmd5HMAC_MD5,DESPRIVACYadminshaHMAC_SHA,DESPRIVACYv1v2onlyNOAUTH,NOPRIVACYadminshaaesHMAC_SHA,AESPRIVACY

    Table 10. USMUserTableInformationParameters

    Field Description

    UserName Astringrepresentingtheusernameyoucanusetoaccesstheswitch.

    Protocol Whethermessagessentfromthisuserareprotectedfromdisclosureusingaprivacyprotocol.LenovoN/OSsupportsDESalgorithmforprivacyandtwoauthenticationalgorithms:MD5andHMACSHA.

  • Copyright Lenovo 2015 Chapter 2: Information Commands 39

    SNMPv3 View Table InformationTheusercancontrolandrestricttheaccessallowedtoagrouptoonlyasubsetofthemanagementinformationinthemanagementdomainthatthegroupcanaccesswithineachcontextbyspecifyingthegroupsrightsintermsofaparticularMIBviewforsecurityreasons.

    ThefollowingcommanddisplaystheSNMPv3ViewTable:

    showsnmpserverv3view

    Commandmode:All

    ViewNameSubtreeMaskTypeiso1.3includedv1v2only1.3includedv1v2only1.3.6.1.6.3.15excludedv1v2only1.3.6.1.6.3.16excludedv1v2only1.3.6.1.6.3.18excluded

    Table 11. SNMPv3ViewTableInformationParameters

    Field Description

    ViewName Displaysthenameoftheview.

    Subtree DisplaystheMIBsubtreeasanOIDstring.AviewsubtreeisthesetofallMIBobjectinstanceswhichhaveacommonObjectIdentifierprefixtotheirnames.

    Mask Displaysthebitmask.

    Type DisplayswhetherafamilyofviewsubtreesisincludedorexcludedfromtheMIBview.

  • 40 G8272 Command Reference for N/OS 8.2

    SNMPv3 Access Table InformationTheaccesscontrolsubsystemprovidesauthorizationservices.

    ThevacmAccessTablemapsagroupname,securityinformation,acontext,andamessagetype,whichcouldbethereadorwritetypeofoperationornotificationintoaMIBview.

    TheViewbasedAccessControlModeldefinesasetofservicesthatanapplicationcanuseforcheckingaccessrightsofagroup.Thisgroupsaccessrightsaredeterminedbyareadview,awriteviewandanotifyview.Thereadviewrepresentsthesetofobjectinstancesauthorizedforthegroupwhilereadingtheobjects.Thewriteviewrepresentsthesetofobjectinstancesauthorizedforthegroupwhenwritingobjects.Thenotifyviewrepresentsthesetofobjectinstancesauthorizedforthegroupwhensendinganotification.

    ThefollowingcommanddisplaysSNMPv3accessinformation:

    showsnmpserverv3access

    Commandmode:All

    GroupNameModelLevelReadVWriteVNotifyVv1v2grpsnmpv1noAuthNoPrivisoisov1v2onlyadmingrpusmauthPrivisoisoiso

    Table 12. SNMPv3AccessTableInformation

    Field Description

    GroupName Displaysthenameofgroup.

    Model Displaysthesecuritymodelused,forexample,SNMPv1,orSNMPv2orUSM.

    Level Displaystheminimumlevelofsecurityrequiredtogainrightsofaccess.Forexample,noAuthNoPriv,authNoPriv,orauthPriv.

    ReadV DisplaystheMIBviewtowhichthisentryauthorizesthereadaccess.

    WriteV DisplaystheMIBviewtowhichthisentryauthorizesthewriteaccess.

    NotifyV DisplaystheNotifyviewtowhichthisentryauthorizesthenotifyaccess.

  • Copyright Lenovo 2015 Chapter 2: Information Commands 41

    SNMPv3 Group Table InformationAgroupisacombinationofsecuritymodelandsecuritynamethatdefinestheaccessrightsassignedtoallthesecuritynamesbelongingtothatgroup.Thegroupisidentifiedbyagroupname.

    ThefollowingcommanddisplaysSNMPv3groupinformation:

    showsnmpserverv3group

    Commandmode:All

    SNMPv3 Community Table InformationThefollowingcommanddisplaystheSNMPv3communitytableinformationstoredintheSNMPengine:

    showsnmpserverv3community

    Commandmode:All

    AllactiveSNMPv3groupsarelistedbelow:SecModelUserNameGroupNamesnmpv1v1v2onlyv1v2grpusmadminmd5admingrpusmadminshaadmingrpusmadminshaaesadmingrp

    Table 13. SNMPv3GroupTableInformationParameters

    Field Description

    SecModel Displaysthesecuritymodelused,whichisanyoneof:USM,SNMPv1,SNMPv2,andSNMPv3.

    UserName Displaysthenameforthegroup.

    GroupName Displaystheaccessnameofthegroup.

    IndexNameUserNameTagtrap1publicv1v2onlyv1v2trap

    Table 14. SNMPv3CommunityTableInformationParameters

    Field Description

    Index Displaystheuniqueindexvalueofarowinthistable

    Name Displaysthecommunitystring,whichrepresentstheconfiguration.

    UserName DisplaystheUserSecurityModel(USM)username.

    Tag Displaysthecommunitytag.ThistagspecifiesasetoftransportendpointsfromwhichacommandresponderapplicationacceptsmanagementrequestsandtowhichacommandresponderapplicationsendsanSNMPtrap.

  • 42 G8272 Command Reference for N/OS 8.2

    SNMPv3 Target Address Table InformationThefollowingcommanddisplaysSNMPv3targetaddressinformationstoredintheSNMPengine:

    showsnmpserverv3targetaddress

    Commandmode:All

    NameTransportAddrPortTaglistParamstrap147.81.25.66162v1v2trapv1v2param

    Table 15. SNMPv3TargetAddressTableInformationParameters

    Field Description

    Name Displaysthelocallyarbitrary,butuniqueidentifierassociatedwiththissnmpTargetAddrEntry.

    TransportAddr

    Displaysthetransportaddresses.

    Port DisplaystheSNMPUDPportnumber.

    Taglist ThiscolumncontainsalistoftagvalueswhichareusedtoselecttargetaddressesforaparticularSNMPmessage.

    Params ThevalueofthisobjectidentifiesanentryinthesnmpTargetParamsTable.TheidentifiedentrycontainsSNMPparameterstobeusedwhengeneratingmessagestobesenttothistransportaddress.

  • Copyright Lenovo 2015 Chapter 2: Information Commands 43

    SNMPv3 Target Parameters Table InformationThefollowingcommanddisplaysSNMPv3targetparametersinformation:

    showsnmpserverv3targetparameters

    Commandmode:All

    SNMPv3 Notify Table InformationThefollowingcommanddisplaystheSNMPv3NotifyTable:

    showsnmpserverv3notify

    Commandmode:All

    NameMPModelUserNameSecModelSecLevelv1v2paramsnmpv2cv1v2onlysnmpv1noAuthNoPriv

    Table 16. SNMPv3TargetParametersTableInformation

    Field Description

    Name Displaysthelocallyarbitrary,butuniqueidentifierassociatedwiththissnmpTargeParamsEntry.

    MPModel DisplaystheMessageProcessingModelusedwhengeneratingSNMPmessagesusingthisentry.

    UserName DisplaysthesecurityName,whichidentifiestheentryonwhosebehalfSNMPmessageswillbegeneratedusingthisentry.

    SecModel DisplaysthesecuritymodelusedwhengeneratingSNMPmessagesusingthisentry.ThesystemmaychoosetoreturnaninconsistentValueerrorifanattemptismadetosetthisvariabletoavalueforasecuritymodelthesystemdoesnotsupport.

    SecLevel DisplaysthelevelofsecurityusedwhengeneratingSNMPmessagesusingthisentry.

    NameTagv1v2trapv1v2trap

    Table 17. SNMPv3NotifyTableInformation

    Field Description

    Name Thelocallyarbitrary,butuniqueidentifierassociatedwiththissnmpNotifyEntry.

    Tag ThisrepresentsasingletagvaluewhichisusedtoselectentriesinthesnmpTargetAddrTable.AnyentryinthesnmpTargetAddrTablethatcontainsatagvalueequaltothevalueofthisentry,isselected.Ifthisentrycontainsavalueofzerolength,noentriesareselected.

  • 44 G8272 Command Reference for N/OS 8.2

    SNMPv3 Dump InformationThefollowingcommanddisplaysSNMPv3information:

    showsnmpserverv3

    Commandmode:All

    EngineID=80:00:4F:4D:03:08:17:F4:8C:E8:00

    usmUserTable:UserNameProtocoladminmd5HMAC_MD5,DESPRIVACYadminshaHMAC_SHA,DESPRIVACYv1v2onlyNOAUTH,NOPRIVACYadminshaaesHMAC_SHA,AESPRIVACY

    vacmAccessTable:GroupNameModelLevelReadVWriteVNotifyVv1v2grpsnmpv1noAuthNoPrivisoisov1v2onlyadmingrpusmauthPrivisoisoiso

    vacmViewTreeFamilyTable:ViewNameSubtreeMaskTypeiso1includedv1v2only1includedv1v2only1.3.6.1.6.3.15excludedv1v2only1.3.6.1.6.3.16excludedv1v2only1.3.6.1.6.3.18excluded

    vacmSecurityToGroupTable:AllactiveSNMPv3groupsarelistedbelow:SecModelUserNameGroupNamesnmpv1v1v2onlyv1v2grpusmadminmd5admingrpusmadminshaadmingrpusmadminshaaesadmingrp

    snmpCommunityTable:IndexNameUserNameTagtrap1publicv1v2onlyv1v2trap

    snmpNotifyTable:NameTagv1v2trapv1v2trap

    snmpTargetAddrTable:NameTransportAddrPortTaglistParamstrap147.81.25.66162v1v2trapv1v2param

    snmpTargetParamsTable:NameMPModelUserNameSecModelSecLevelv1v2paramsnmpv2cv1v2onlysnmpv1noAuthNoPriv

  • Copyright Lenovo 2015 Chapter 2: Information Commands 45

    General System InformationThefollowingcommanddisplayssysteminformation:

    showsysinfo

    Commandmode:All

    SystemInformationat3:49:06SunJun23,2014Timezone:NotimezoneconfiguredDaylightSavingsTimeStatus:Disabled

    LenovoRackSwitchG8272

    Switchhasbeenupfor4days,3hours,24minutesand45seconds.Lastboot:0:25:13WedJun19,2014(resetfromconsole)

    MACaddress:a8:97:dc:dd:ed:00IP(If1)address:192.168.49.50ManagementPortMACAddress:a8:97:dc:dd:ed:feManagementPortIPAddress(if128):10.241.31.134HardwareRevision:0HardwarePartNo:00CJ066SwitchSerialNo:Y052MV49Y009Manufacturingdate:14/40

    MTMValue:7159HCVESN:MM01008

    SoftwareVersion8.2.1(FLASHimage1),activeconfiguration.Bootkernelversion8.2.1

    USBBoot:disabled

    TemperatureCPULocal:29CTemperatureAmbient:27CTemperatureHotSpot:38CTemperatureAsicMax:55C

    SystemWarningat85C/Shutdownat95C/SetPointis70C

    Fan1Module1:3865rpm60pwm(23%)FrontToBackFan2Module1:4176rpm60pwm(23%)FrontToBackFan3Module2:3843rpm60pwm(23%)FrontToBackFan4Module2:4063rpm60pwm(23%)FrontToBackFan5Module3:4134rpm60pwm(23%)FrontToBackFan6Module3:4299rpm60pwm(23%)FrontToBackFan7Module4:4084rpm60pwm(23%)FrontToBackFan8Module4:4383rpm60pwm(23%)FrontToBack

    SystemFanAirflow:FrontToBack

    PowerSupply1:FrontToBack[DPS460KBC]PowerSupply2:FrontToBack[DPS460KBC]

    PowerFaults:PS2PwrFanFaults:NoneServiceFaults:TooFewPS

  • 46 G8272 Command Reference for N/OS 8.2

    Note: Thedisplayoftemperaturewillcomeuponlyifthetemperatureofanyofthesensorsexceedsthetemperaturethreshold.Therewillbeawarningfromthesoftwareifanyofthesensorsexceedsthistemperaturethreshold.Theswitchwillshutdownifthepowersupplyoverheats.

    Systeminformationincludes:

    Systemdateandtime

    Switchmodel

    Switchnameandlocation

    Timeoflastboot

    MACaddressoftheswitchmanagementprocessor

    Softwareimagefileandversionnumber,andconfigurationname.

    IPaddressofthemanagementinterface

    Hardwareversionandpartnumber

    Loginbanner,ifoneisconfigured

    Internaltemperatures

    Fanstatus

    Powersupplystatus

    Show Specific System InformationThefollowingtablelistscommandsusedfordisplayingspecificentriesfromthegeneralsysteminformationscreen.

    Sampleoutputforcommandshowversionbrief:

    Displaysthesoftwareversionnumber,imagefileandconfigurationname.

    Table 18. SpecificSystemInformationOptions

    Command Syntax and Usage

    showenvironmentfan

    Displaysinformationaboutinternaltemperaturesandfanstatus.Commandmode:All

    showenvironmentpower

    Displaysinformationaboutpowersupplystatus.Commandmode:All

    showversionbrief

    Displaysthesoftwareversionnumber,imagefileandconfigurationname.Forasampleoutput,seebelow.Commandmode:All

    SoftwareVersion8.2.1(FLASHimage2),activeconfiguration.

  • Copyright Lenovo 2015 Chapter 2: Information Commands 47

    Show Recent Syslog MessagesThefollowingcommanddisplayssystemlogmessages:

    showlogging[messages][severity][reverse]

    Commandmode:All

    Eachsyslogmessagehasaseveritylevelassociatedwithit,includedintextformasaprefixtothelogmessage.Oneofeightdifferentprefixesisused,dependingontheconditionthattheadministratorisbeingnotifiedof,asshownhere. EMERG Indicatesthesystemisunusable ALERT Indicatesactionshouldbetakenimmediately CRIT Indicatescriticalconditions ERR Indicateserrorconditionsorerroredoperations WARNING Indicateswarningconditions NOTICE Indicatesanormalbutsignificantcondition INFO Indicatesaninformationmessage DEBUG Indicatesadebuglevelmessage

    Theseverityoptionfiltersonlysyslogmessageswithaspecificseveritylevelbetween0and7,fromEMERGtoDEBUGcorrespondingly.

    Thereverseoptiondisplaystheoutputinreverseorder,fromthenewestentrytotheoldest.

    Currentsyslogconfiguration:host0.0.0.0viaMGTport,severity7,facility0host20.0.0.0viaMGTport,severity27,facility20consoleenabledseveritylevelofconsoleoutput6severitylevelofwritetoflash7sysloggingallfeaturesSyslogsourceloopbackinterfacenotset

    Nov25:49:53172.25.254.19INFOconsole:Systemlogclearedbyuseradmin.Nov25:51:23172.25.254.19CRITsystem:FanMod4RemovedNov25:54:27172.25.254.19CRITsystem:****MAXTEMPERATURE(61)ABOVEFAILTHRESH****Nov25:54:27172.25.254.19CRITsystem:****PLATFORMTHERMALSHUTDOWN****Nov26:02:060.0.0.0NOTICEsystem:linkuponmanagementportMGTNov26:02:060.0.0.0INFOsystem:bootedversion0.0.0fromFLASHimage2,activeconfigurationNov26:02:090.0.0.0NOTICEsystem:SRSFP+insertedatport63isApprovedNov26:02:120.0.0.0NOTICEsystem:1mDACinsertedatport64isAcceptedNov26:22:54172.25.254.19NOTICEmgmt:admin(admin)loginonConsoleNov26:33:00172.25.254.19NOTICEmgmt:admin(admin)idletimeoutfromConsole

  • 48 G8272 Command Reference for N/OS 8.2

    User StatusThefollowingcommanddisplaysuserstatusinformation:

    showaccessuser

    Commandmode:AllexceptUserEXEC

    Thiscommanddisplaysthestatusoftheconfiguredusernames.

    Usernames:userenabledofflineoperdisabledofflineadminAlwaysEnabledonline1sessionCurrentUserIDtable:1:namepaul,dis,cosuser,passwordvalid,offlineCurrentstrongpasswordsettings:strongpasswordstatus:disabled

  • Copyright Lenovo 2015 Chapter 2: Information Commands 49

    Layer 2 InformationThefollowingcommandsdisplayLayer2information:

    Table 19. Layer2InformationCommands

    Command Syntax and Usage

    showdot1xinformation

    Displays802.1XInformation.Fordetails,seepage 52.Commandmode:All

    showfailovertriggerinformationDisplaysLayer2Failoverinformation.Fordetails,seepage 59.Commandmode:All

    showhotlinksinformation

    DisplaysHotLinksinformation.Fordetails,seepage 61.Commandmode:All

    showlayer2information

    DumpsallLayer2switchinformationavailable(10Klinesormore,dependingonyourconfiguration).Ifyouwanttocapturedumpdatatoafile,setyourcommunicationsoftwareonyourworkstationtocapturesessiondatapriortoissuingthedumpcommands.Commandmode:All

    showlldpinformation

    DisplaysLinkLayerDiscoveryProtocol(LLDP)information.Fordetails,seepage 62.Commandmode:All

    showportchannelinformation

    Displaysthestateofeachportinthevarioustrunkgroups.Fordetails,seepage 77.Commandmode:All

  • 50 G8272 Command Reference for N/OS 8.2

    showspanningtree

    DisplaysSpanningTreeinformation,includingthestatus(onoroff),SpanningTreemode(RSTP,PVRST,orMSTP),andVLANmembership.InadditiontoseeingifSTGisenabledordisabled,youcanviewthefollowingSTGbridgeinformation: Priority Hellointerval Maximumagevalue Forwardingdelay AgingtimeYoucanalsoseethefollowingportspecificSTGinformation: Portaliasandpriority Cost StateCommandmode:All

    showspanningtreeblockedports

    ListstheportsblockedbyeachSTPinstance.Commandmode:All

    showspanningtreemstconfiguration

    DisplaysthecurrentMSTPsettings.Commandmode:All

    showspanningtreemstinformationDisplaysSpanningTreeinformationforthespecifiedinstance.0isusedforCIST.CISTbridgeinformationincludes: Priority Hellointerval Maximumagevalue Forwardingdelay Rootbridgeinformation(priority,MACaddress,pathcost,rootport)CISTportinformationincludes: Portnumberandpriority Cost StateFordetails,seepage 75.Commandmode:All

    Table 19. Layer2InformationCommands(continued)

    Command Syntax and Usage

  • Copyright Lenovo 2015 Chapter 2: Information Commands 51

    showspanningtreeroot

    DisplaysrootbridgeIDforeveryspanningtreeinstanceandthepathcostassociatedtoit.Fordetails,seepage 74.Commandmode:All

    showspanningtreestpinformationDisplaysinformationaboutaspecificSpanningTreeGroup.Fordetails,seepage 69.Commandmode:All

    showvlaginformation

    DisplaysvLAGInformation.Fordetails,seepage 67.Commandmode:All

    showvlan

    DisplaysVLANconfigurationinformationforallconfiguredVLANs,including: VLANNumber VLANName Status PortmembershipoftheVLANFordetails,seepage 78.Commandmode:All

    Table 19. Layer2InformationCommands(continued)

    Command Syntax and Usage

  • 52 G8272 Command Reference for N/OS 8.2

    802.1X InformationThefollowingcommanddisplays802.1Xinformation:

    showdot1xinformation

    Commandmode:All

    ThefollowingtabledescribestheIEEE802.1Xparameters.

    Systemcapability:AuthenticatorSystemstatus:disabledProtocolversion:1GuestVLANstatus:disabledGuestVLAN:noneAuthenticatorBackendAssignedPortAuthModeAuthStatusPAEStateAuthStateVLAN*1forceauthunauthorizedinitializeinitializenone*2forceauthunauthorizedinitializeinitializenone*3forceauthunauthorizedinitializeinitializenone

    Table 20. 802.1XParameterDescriptions

    Parameter Description

    Port Displayseachportsalias.

    AuthMode DisplaystheAccessControlauthorizationmodefortheport.TheAuthorizationmodecanbeoneofthefollowing:

    forceunauth

    auto

    forceauth

    AuthStatus Displaysthecurrentauthorizationstatusoftheport,eitherauthorizedorunauthorized.

    AuthenticatorPAEState

    DisplaystheAuthenticatorPortAccessEntityState.ThePAEstatecanbeoneofthefollowing:

    initialize

    disconnected

    connecting

    authenticating

    authenticated

    aborting

    held

    forceAuth

  • Copyright Lenovo 2015 Chapter 2: Information Commands 53

    BackendAuthState

    DisplaystheBackendAuthorizationState.TheBackendAuthorizationstatecanbeoneofthefollowing:

    initialize

    request

    response

    success

    fail

    timeout

    idle

    AssignedVLAN DisplayscorrespondingVLANassociatedwiththeport.

    Table 20. 802.1XParameterDescriptions(continued)

    Parameter Description

  • 54 G8272 Command Reference for N/OS 8.2

    FDB InformationTheforwardingdatabase(FDB)containsinformationthatmapsthemediaaccesscontrol(MAC)addressofeachknowndevicetotheswitchportwherethedeviceaddresswaslearned.TheFDBalsoshowswhichotherportshaveseenframesdestinedforaparticularMACaddress.Note: Themasterforwardingdatabasesupportsupto128KMACaddressentriesontheMPperswitch.

    Table 21. FDBInformationOptions

    Command Syntax and Usage

    showmacaddresstable

    DisplaysallentriesintheForwardingDatabase.Commandmode:All

    showmacaddresstableall

    DisplaysallunicastandmulticastentriesintheForwardingDatabase.Commandmode:All

    showmacaddresstableaddressDisplaysasingledatabaseentrybyitsMACaddress.YouarepromptedtoentertheMACaddressofthedevice.EntertheMACaddressusingtheformat,xx:xx:xx:xx:xx:xx.Forexample,08:00:20:12:34:56.YoucanalsoentertheMACaddressusingtheformat,xxxxxxxxxxxx.For example,080020123456.Commandmode:All

    showmacaddresstableconfiguredstatic

    DisplaysallconfiguredstaticMACentriesintheFDB.Commandmode:All

    showmacaddresstableinterfaceportDisplaysallFDBentriesforaparticularport.Commandmode:All

    showmacaddresstablemulticast

    DisplaysallstaticmulticastMACentriesintheFDB.Fordetails,seepage 55.Commandmode:All

    showmacaddresstableportchannelDisplaysallFDBentriesforaparticulartrunkgroup(portchannel).Commandmode:All

    showmacaddresstableprivatevlanDisplaysallFDBentriesonasingleprivateVLAN.Commandmode:All

  • Copyright Lenovo 2015 Chapter 2: Information Commands 55

    FDB Multicast InformationThefollowingcommandsdisplayFDBmulticastinformation.

    showmacaddresstablestate{unknown|forward|trunk}

    DisplaysallFDBentriesforaparticularstate.Commandmode:All

    showmacaddresstablestatic

    DisplaysallstaticunicastMACentriesintheFDB.Commandmode:All

    showmacaddresstablevlanDisplaysallFDBentriesonasingleVLAN.Commandmode:All

    Table 21. FDBInformationOptions(continued)

    Command Syntax and Usage

    Table 22. MulticastFDBInformationOptions

    Command Syntax and Usage

    showmacaddresstablemulticast

    DisplaysallMulticastMACentriesintheFDB.Commandmode:All

    showmacaddresstablemulticastaddressDisplaysasinglemulticastentrybyitsMACaddress.YouarepromptedtoentertheMACaddressofthedevice.EntertheMACaddressusingtheformat,xx:xx:xx:xx:xx:xx.Forexample,08:00:20:12:34:56.YoucanalsoentertheMACaddressusingtheformat,xxxxxxxxxxxx.Forexample,080020123456.Commandmode:All

    showmacaddresstablemulticastinterfaceportDisplaysallmulticastentriesforaparticularport.Commandmode:All

    showmacaddresstablemulticastvlanDisplaysallmulticastentriesonasingleVLAN.Commandmode:All

  • 56 G8272 Command Reference for N/OS 8.2

    Show All FDB InformationThefollowingcommanddisplaysForwardingDatabaseinformation:

    showmacaddresstable

    Commandmode:All

    Anaddressthatisintheforwarding(FWD)state,meansthatithasbeenlearnedbytheswitch.Wheninthetrunking(TRK)state,theportfieldrepresentsthetrunkgroupnumber.Ifthestatefortheportislistedasunknown(UNK),theMACaddresshasnotyetbeenlearnedbytheswitch,buthasonlybeenseenasadestinationaddress.

    Whenanaddressisintheunknownstate,nooutboundportisindicated,althoughportswhichreferencetheaddressasadestinationarelistedunderReferenceports.

    Clearing Entries from the Forwarding DatabaseTocleartheentireFDB,refertoForwardingDatabaseMaintenanceonpage 673.

    MacaddressAgingTime:300

    MACaddressVLANPortTrnkStatePermanentOpenflow00:90:fa:75:0e:c412FWDN00:90:fa:75:0e:c8114FWDNa8:97:dc:d1:f8:00114FWDN

  • Copyright Lenovo 2015 Chapter 2: Information Commands 57

    Link Aggregation Control Protocol InformationUsethesecommandstodisplayLACPstatusinformationabouteachportontheG8272.

    Table 23. LACPInformationOptions

    Command Syntax and Usage

    showlacp

    DisplaysthecurrentLCAPconfiguration.Commandmode:All

    showlacpaggregatorDisplaysdetailedinformationabouttheLACPaggregator.Commandmode:All

    showlacpinformation

    DisplaysasummaryofLACPinformation.Fordetails,seepage 58.Commandmode:All

    showlacpinformationstate{down|off|up}

    DisplaysasummaryofLACPinformationfortheinterfacesthataredown,offorup.Commandmode:All

    showinterfaceportlacp[information]DisplaysLACPinformationabouttheselectedport.Commandmode:All

  • 58 G8272 Command Reference for N/OS 8.2

    Link Aggregation Control ProtocolThefollowingcommanddisplaysLACPinformation:

    showlacpinformation

    Commandmode:All

    LACPdumpincludesthefollowinginformationforeachportintheG8272:

    mode DisplaystheportsLACPmode(active,passive,oroff).

    adminkey Displaysthevalueoftheportsadminkey.

    operkey Showsthevalueoftheportsoperationalkey.

    selected IndicateswhethertheporthasbeenselectedtobepartofaLinkAggregationGroup.

    prio Showsthevalueoftheportpriority.

    aggr Displaystheaggregatorassociatedwitheachport.

    trunk ThisvaluerepresentstheLACPtrunkgroupnumber.

    status DisplaysthestatusofLACPontheport(upordown).

    minlinks DisplaystheminimumnumberofactivelinksintheLACPtrunk.

    portmodeadminkeyoperkeyselectedprioaggrtrunkstatusminlinks1active6553565535yes32768165up12active6553565535yes32768165up13active6553565535individual32768down14active6553565535yes32768165up15active6553565535yes32768165up16active6553565535yes32768165up17active6553565535yes32768165up18active6553565535yes32768165up19active10001000suspended32768down110active10001000suspended32768down1...(*)LACPPortChannelisstaticallyboundtotheadminkey

  • Copyright Lenovo 2015 Chapter 2: Information Commands 59

    Layer 2 Failover InformationThefollowingcommandsdisplayLayer2Failoverinformation:

    Table 24. Layer2FailoverInformationOptions

    Command Syntax and Usage

    showfailovertrigger[information]

    DisplaysasummaryofLayer2Failoverinformation.Fordetails,seepage 60.Commandmode:All

    showfailovertrigger[information]DisplaysdetailedinformationabouttheselectedLayer2Failovertrigger.Commandmode:All

  • 60 G8272 Command Reference for N/OS 8.2

    Layer 2 Failover InformationThefollowingcommanddisplaysLayer2Failoverinformation:

    showfailovertriggerinformation

    Commandmode:All

    AmonitorportsFailoverstatusisOperationalonlyifallthefollowingconditionsholdtrue:

    Portlinkisup.

    IfSpanningTreeisenabled,theportisintheForwardingstate.

    IftheportisamemberofanLACPtrunkgroup,theportisaggregated.

    Ifanyoftheseconditionsarenottrue,themonitorportisconsideredtobefailed.

    AcontrolportisconsideredtobeoperationalifthemonitortriggerstateisUp.EvenifaportslinkstatusisDown,SpanningTreestatusisBlocking,andtheLACPstatusisNotAggregated,fromateamingperspectivetheportstatusisOperational,sincethetriggerisUp.

    AcontrolportsstatusisdisplayedasFailedonlyifthemonitortriggerstateisDown.

    Failover:On

    Trigger1ManualMonitor:EnabledTrigger1limit:0MonitorState:UpMemberStatus17OperationalControlState:AutoControlledMemberStatusPhysicalports1Operational

    Trigger2:Disabled

    Trigger3:Disabled

    Trigger4:Disabled

    Trigger5:Disabled

    Trigger6:Disabled

    Trigger7:Disabled

    Trigger8:Disabled

  • Copyright Lenovo 2015 Chapter 2: Information Commands 61

    Hot Links InformationThefollowingcommanddisplaysHotLinksinformation:

    showhotlinksinformation

    Commandmode:All

    HotLinksinformationincludesthefollowing: HotLinksstatus(onoroff) StatusofBPDUfloodoption StatusofFDBsendoption StatusandconfigurationofeachHotLinkstrigger

    HotLinksInfo:Trigger

    CurrentglobalHotLinkssetting:ONHotLinksBPDUflood:disabledHotLinksFDBupdate:disabledFDBupdaterate(pps):200

    CurrentTrigger1setting:enabledname"Trigger1",preemptenabled,fdelay1sec

    Activestate:None

    Mastersettings:port1Backupsettings:port2

  • 62 G8272 Command Reference for N/OS 8.2

    LLDP InformationThefollowingcommandsdisplayLLDPinformation.

    Table 25. LLDPInformationOptions

    Command Syntax and Usage

    showlldp

    DisplaysthecurrentLinkLayerDiscoveryProtocol(LLDP)configuration.Commandmode:All

    showlldpinformation

    DisplaysallLLDPinformation.Commandmode:All

    showlldpport[]DisplaysLLDPinformationforallportsoraspecificport.Commandmode:All

    showlldpporttlvevbDisplaysEdgeVirtualBridge(EVB)typelengthvalue(TLV)informationforthespecifiedport.Commandmode:All

    showlldpportvporttlvevbDisplaysEdgeVirtualBridge(EVB)typelengthvalue(TLV)informationforthespecifiedvirtualportontheselectedport.Commandmode:All

    showlldpreceive

    DisplaysinformationabouttheLLDPreceivestatemachine.Commandmode:All

    showlldpremotedevice[|detail]DisplaysinformationreceivedfromLLDPcapabledevices.Formoreinformation,seepage 63.Commandmode:All

    showlldpremotedeviceportDisplaysinformationreceivedfromLLDPcapabledevicesforaspecificport.Alistofportsneedstobedelimitedby,andarangeofportsdelimitedby.Commandmode:All

    showlldptransmit

    DisplaysinformationabouttheLLDPtransmitstatemachine.Commandmode:All

  • Copyright Lenovo 2015 Chapter 2: Information Commands 63

    LLDP Remote Device InformationThefollowingcommanddisplaysLLDPremotedeviceinformation:

    showlldpremotedevice

    Commandmode:All

    LLDPremotedeviceinformationprovidesasummaryofinformationaboutremotedevicesconnectedtotheswitch.Toviewdetailedinformationaboutadevice,asshownbelow,followthecommandwiththeindexnumberoftheremotedevice.Toviewdetailedinformationaboutalldevices,usethedetailoption.

    LLDPRemoteDevicesInformationLegend(possiblevaluesinDMACcolumn):NBNearestBridge0180C200000ENnTBNearestnonTPMRBridge0180C2000003NCBNearestCustomerBridge0180C2000000Totalnumberofcurrententries:9

    LocalPort|Index|RemoteChassisID|RemotePort|RemoteSystemName|DMAC|||||1|1|0000c9e547e3|0000c9e547e3||NB1|2|0000c9e547e3|0000c9e547e3||NnTB2|3|0090fa750ec5|0090fa750ec5||NB14|4|a897dcd1f800|60||NB14|5|a897dcd1f800|60||NnTB15|6|a897dcd1f800|80||NB15|7|a897dcd1f800|80||NnTB18|8|0090fa3d4849|0090fa3d4849||NBMGT|9|749975c50800|6|G805254|NB

    LocalPortAlias:1RemoteDeviceIndex:15RemoteDeviceTTL:99RemoteDeviceRxChanges:falseChassisType:MacAddressChassisId:0018b1331d00PortType:LocallyAssignedPortId:23PortDescription:23

    SystemName:SystemDescription:LenovoRackSwitchG8296,LenovoNetworkingOS:version8.2.0.3,Bootimage:version8.2.0.3SystemCapabilitiesSupported:bridge,routerSystemCapabilitiesEnabled:bridge,router

    RemoteManagementAddress:Subtype:IPv4Address:10.100.120.181InterfaceSubtype:ifIndexInterfaceNumber:128ObjectIdentifier:

  • 64 G8272 Command Reference for N/OS 8.2

    Unidirectional Link Detection InformationThefollowingcommandsdisplayUDLDinformation:

    UDLD Port InformationThefollowingcommanddisplaysUDLDinformationfortheselectedport:

    showinterfaceportudld

    Commandmode:All

    UDLDinformationincludesthefollowing:

    Status(enabledordisabled)

    Mode(normaloraggressive)

    Portstate(linkuporlinkdown)

    Bidirectionalstatus(unknown,unidirectional,bidirectional,TXRXloop,neighbormismatch)

    Table 26. UDLDInformationOptions

    Command Syntax and Usage

    showudld

    DisplaysallUDLDinformation.Commandmode:All

    showinterfaceportudldDisplaysUDLDinformationabouttheselectedport.Commandmode:All

    UDLDinformationonport1Portenableadministrativeconfigurationsetting:EnabledPortadministrativemode:normalPortenableoperationalstate:linkupPortoperationalstate:advertisementPortbidirectionalstatus:bidirectionalMessageinterval:15Timeoutinterval:5Neighborcache:1neighbordetected

    Entry#1Expirationtime:31secondsDeviceName:DeviceID:00:da:c0:00:04:00PortID:1

  • Copyright Lenovo 2015 Chapter 2: Information Commands 65

    802.1x Discovery InformationThefollowingcommandsdisplay802.1xinformation:

    802.1x Port InformationThefollowingcommanddisplays802.1xinformationfortheselectedport:

    showinterfaceportdot1x

    Commandmode:All

    802.1xportdisplayshowsinformationabouttheselectedportandthepeertowhichthelinkisconnected.

    Table 27. 802.1xDiscoveryInformationOptions

    Command Syntax and Usage

    showinterfaceportdot1xDisplays802.1xinformationabouttheselectedport.Commandmode:All

    showdot1x

    Displaysall802.1xinformation.Commandmode:All

    showdot1xDisplays802.1xinformationforspecifiedport.Commandmode:All

    QuietTxMaxSuppServerReAuthReAuthVLANPortAuthModePeriodPeriodReqTimeoutTimeoutStatusPeriodAssignGforceauth603023030off3600off1forceauth603023030off3600offGGlobalportconfiguration

  • 66 G8272 Command Reference for N/OS 8.2

    OAM Discovery InformationThefollowingcommandsdisplayOAMinformation:

    OAM Port InformationThefollowingcommanddisplaysOAMinformationfortheselectedport:

    showinterfaceportoam

    Commandmode:All

    OAMportdisplayshowsinformationabouttheselectedportandthepeertowhichthelinkisconnected.

    Table 28. OAMDiscoveryInformationOptions

    Command Syntax and Usage

    showinterfaceportoamDisplaysOAMinformationabouttheselectedport.Commandmode:All

    showoam

    DisplaysallOAMinformation.Commandmode:All

    OAMinformationonport1StateenabledModeactiveLinkupSatisfiedYesEvaluatingNo

    Remoteportinformation:ModeactiveMACaddress00:da:c0:00:04:00StableYesStatevalidYesEvaluatingNo

  • Copyright Lenovo 2015 Chapter 2: Information Commands 67

    vLAG InformationThefollowingcommandsdisplayVirtualLinkAggregationGroup(vLAG)information:

    Table 29. vLAGInformationOptions

    Command Syntax and Usage

    showvlag

    DisplaysthecurrentvLAGconfiguration.Commandmode:All

    showvlagadminkeyDisplaysvLAGLACPinformation.Commandmode:All

    showvlagadminkeyinformationDisplaysallvLAGLACPinformation.Commandmode:All

    showvlaginformation

    DisplaysallvLAGinformation.Commandmode:All

    showvlagisl

    DisplaysvLAGInterSwitchLink(ISL)information.Commandmode:All

    showvlagportchannelDisplaysvLAGstatictrunkgroupinformation.Commandmode:All

    showvlagportchannelinformationDisplaysallvLAGstatictrunkgroupinformation.Commandmode:All

  • 68 G8272 Command Reference for N/OS 8.2

    vLAG Trunk InformationThefollowingcommanddisplaysvLAGinformationforthetrunkgroup:

    showvlagportchannel

    Commandmode:All

    vLAGisenabledontrunk13ProtocolStaticCurrentsettings:enabledports:13CurrentL2trunkhashsettings:smacdmacCurrentL3trunkhashsettings:sipdipCurrentingressporthash:disabledCurrentL4porthash:disabled

  • Copyright Lenovo 2015 Chapter 2: Information Commands 69

    Spanning Tree InformationThefollowingcommanddisplaysSpanningTreeinformation:

    showspanningtreestpinformation

    Commandmode:All

    TheswitchsoftwareusesthePerVLANRapidSpanningTreeProtocol(PVRST)spanningtreemode,withIEEE802.1D(2004)RapidSpanningTreeProtocol(RSTP)orIEEE802.1Q(2003)MultipleSpanningTreeProtocol(MSTP),asalternatives.

    Thefollowingportspecificinformationisalsodisplayed:

    SpanningTreeGroup1:On(RSTP)VLANs:1104095

    CurrentRoot:PathCostPortHelloMaxAgeFwdDel800000:25:03:49:29:000022015

    Parameters:PriorityHelloMaxAgeFwdDelAging3276822015300

    PortPrioCostStateRoleDesignatedBridgeDesPortType1(pc12)128490!+FWDDESG800000:25:03:49:29:008026P2P2(pc12)128490!+FWDDESG800000:25:03:49:29:008026P2P3(pc12)128490!+FWDDESG800000:25:03:49:29:008026P2P4(pc12)128490!+FWDDESG800000:25:03:49:29:008026P2PMGT00FWD**=STPturnedoffforthisport.!=Automaticpathcost.+=Portchannelcost,nottheindividualportcost.

    Table 30. PVRST/RSTP/MSTPPortParameterDescriptions

    Parameter Description

    Priority(port)

    ThePortPriorityparameterhelpsdeterminewhichbridgeportbecomesthedesignatedport.Inanetworktopologythathasmultiplebridgeportsconnectedtoasinglesegment,theportwiththelowestportprioritybecomesthedesignatedportforthesegment.

    Cost ThePortPathcostparameterisusedtohelpdeterminethedesignatedportforasegment.Generallyspeaking,thefastertheport,thelowerthepathcost.Asettingof0indicatesthatthecostwillbesettotheappropriatedefaultafterthelinkspeedhasbeenautonegotiated.

    State TheStatefieldshowsthecurrentstateoftheport.TheStatefieldcanbeoneofthefollowing:Discarding(DISC),Learning(LRN),orForwarding(FWD).

    Role TheRolefieldshowsthecurrentroleofthisportintheSpanningTree.Theportrolecanbeoneofthefollowing:Designated(DESG),Root(ROOT),Alternate(ALTN),Backup(BKUP).

  • 70 G8272 Command Reference for N/OS 8.2

    DesignatedBridge

    TheDesignatedBridgeshowsinformationaboutthebridgeconnectedtoeachport,ifapplicable.Informationincludesthepriority(inhexadecimalnotation)andMACaddressoftheDesignatedBridge.

    DesignatedPort

    TheDesignatedPortfieldshowstheportontheDesignatedBridgetowhichthisportisconnected.

    Type Typeoflinkconnectedtotheport,andwhethertheportisanedgeport.LinktypevaluesareAUTO,P2P,orSHARED.

    Table 30. PVRST/RSTP/MSTPPortParameterDescriptions(continued)

    Parameter Description

  • Copyright Lenovo 2015 Chapter 2: Information Commands 71

    PVRST InformationThefollowingcommanddisplaysPVRSTinformation:

    showspanningtreestpinformation

    Commandmode:All

    YoucanconfiguretheswitchsoftwaretousetheIEEE802.1D(2004)RapidSpanningTreeProtocol(RSTP),theIEEE802.1Q(2003)MultipleSpanningTreeProtocol(MSTP)orPerVLANRapidSpanningTreeProtocol(PVRST).

    Thefollowingportspecificinformationisalsodisplayed:

    Pvst+compatibilitymodeenabled

    SpanningTreeGroup1:On(PVRST)VLANs:11274094

    CurrentRoot:PathCostPortHelloMaxAgeFwdDel800108:17:f4:8c:bc:0020002022015

    Parameters:PriorityHelloMaxAgeFwdDelAgingTopologyChangeCounts3276922015300254

    PortPrioCostStateRoleDesignatedBridgeDesPortType1128500!FWDDESG800108:17:f4:af:ae:008001P2P17(pc1)128990!+FWDDESG800108:17:f4:af:ae:008400P2P18(pc1)128990!+FWDDESG800108:17:f4:af:ae:008400P2P1900FWD*201282000!FWDROOT800108:17:f4:8c:bc:00801cP2P*=STPturnedoffforthisport.!=Automaticpathcost.+=Portchannelcost,nottheindividualportcost.

    Table 31.