Common commands for querying device information on S series switches

17

For S series switches (except the S1700), you can find the common commands to view the device information in the section" Displaying the Device Status" in "Configuration Guide �?Device Management".
For example, for the S12700 V200R007, you can refer to the section " Displaying the Device Status" in S12700 V200R007C00 Configuration Guide - Device Management.

Other related questions:
Check DHCP information on S series switches
Method to check DHCP information on S series switches: - Run the display ip pool [ name ip-pool-name [ start-ip-address [ end-ip-address ] | all | conflict | expired | used ] ] command to check address allocation in interface address pool mode. - Run the display ip pool [ name ip-pool-name [ start-ip-address [ end-ip-address ] | all | conflict | expired | used ] ] command to check address allocation in global address pool mode. - Run the display dhcp server database command to check the names and directories of files in which DHCP data is saved. - Run the display nat-policy template [ template-name ] command to check the configuration of the DHCP Option template. - Run the display dhcp relay { all | interface interface-type interface-number } command to check DHCP server or DHCP server group information on the interface configured with the DHCP relay function. - Run the display dhcp server group [ group-name ] command to check the configuration of the DHCP server group. - Run the display dhcp client command to check information about DHCP clients. - Run the display dhcp server statistics command to check statistics on received and sent DHCP packet by the switch used as the DHCP server. - Run the display dhcp relay statistics command to check statistics on received and sent DHCP packet by the switch used as the DHCP relay agent. - Run the display dhcp client statistics [ interface interface-type interface-number ] command to check statistics on received and sent DHCP packet by the switch used as the DHCP client. - Run the display dhcp statistics command to check statistics on received and sent DHCP packet by the switch.

Commands for checking basic OSPF information on S series switches
You can run the following commands on an S series switch supporting OSPF to check basic OSPF information: display ospf abr-asbr The command output displays all entries of routes to the ABR and ASBR. If you run this command on a device in a stub or an NSSA area, information about the ASBR is not displayed. display ospf asbr-summary The command output displays summarization information about OSPF imported routes. If no IP address or mask is specified, summarization information about all OSPF imported routes is displayed. display ospf brief The command output displays brief OSPF information. display ospf cumulative The command output displays statistics on an OSPF process. display ospf error The command output displays OSPF errors. display ospf interface The command output displays OSPF interface information. display ospf lsdb The command output displays information about an LSDB of OSPF. You can select parameters to check LSDB information, such as summary information, information about the LSA of a specified type, the originating device, and the spontaneous LSA. display ospf nexthop The command output displays next-hop information. display ospf peer The command output displays information about an OSPF neighbor. You can troubleshoot OSPF faults and verify the configuration of the OSPF neighbor based on the command output. You can also check whether graceful restart (GR) is enabled on the neighbor. display ospf request-queue The command output displays information about the OSPF request message list. You can locate and rectify OSPF faults based on the command output. display ospf retrans-queue The command output displays information about the OSPF retransmission list. display ospf routing The command output displays OSPF routing table entries. You can select parameters to check information about routes to a specified interface or next-hop address. display ospf vlink The command output displays information about OSPF virtual links. display ospf sham-link The command output displays information about and attributes of all sham links in a specified OSPF process or area. debugging ospf event The command output displays OSPF events. debugging ospf lsa-originate The command output displays the origination information about LSAs. debugging ospf packet The command output displays information about sent and received OSPF packets. Packet types include ACK, DD, Hello, Request, and Update. If no packet type is specified, information about all OSPF packets is displayed. debugging ospf spf The command output displays SPF details, including information about the tunnel interface for IGP shortcuts and forwarding adjacency.

Common NQA query commands on the AR router
Common NQA query commands on the AR router: Run the display nqa-parameter command in the NQA view to check parameter settings of the NQA test instance. Run the display nqa history command in any view to check historical statistics about the NQA test instance. Run the display nqa results command in any view to check NQA test instance results.

Commands for querying routing table information on the firewall
Run the following commands to display routing table information on the firewall: -Display the abstract information about the active routes in the routing table. display ip routing-table -Display the detailed information about the routing table. display ip routing-table verbose -Display the detailed information about the routing table. display ip routing-table verbose -Display the route to the specified destination IP address. display ip routing-table ip-address [ mask | mask-length ] [ longer-match ] [ verbose ]

Common configuration commands of S series switches for Ethernet features of other vendors
The followings are common configuration commands of S series switches (except the S1700) for Ethernet features of other vendors: 1. Configure the STP mode. [HUAWEI] stp mode stp 2. Disable MAC address learning - Disable MAC address learning on an interface. [HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] mac-address learning disable - Disable MAC address learning on a VLAN [HUAWEI] vlan 2 [HUAWEI-vlan2] mac-address learning disable 3. Configure a blackhole MAC address. [HUAWEI] vlan batch 5 [HUAWEI] mac-address blackhole 0004-0004-0004 vlan 5 For other configuration commands, refer to Common Operation Guide.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top