HP Switch Commands

Someh helpful commands from my colleague Mitch Vaughan at AdvizeX

 

·       show running-config

 

o   this will show the current running configuration of the device

 

·       show config status

 

o   This will indicate if the running configuration differs from the startup configuration

 

·       write memory

 

o   Copy the running-configuration to the startup-configuration

 

·       show version

 

o   show the current firmware running on the device

 

·       show module

 

o   show hardware related informations

 

·       Product ID / Serial Number

 

·       Model information

 

·       Installed components (Stacking modules, etc.)

 

·       show log

 

o   Show the log entries of the device

 

o   show log -r will display the log with the most recent events listed first

 

·       show int port-utilization | i [0-9][1-9]\.

 

o   Show the utilization of all ports that are at least 1% utilized

 

·       show interfaces queues B12 | i Counters for port|Rx Drop Packets|Tx Drop packets

 

o   Show interface queue dropped packet statistics

 

·       show int a1-a8 | i Port Counters for port|Bytes Rx| Bytes Tx|Drops Tx|FCS Rx|Total Rx Errors|Discard Rx|Utilization

 

o   Show interface dropped packet and usage statistics

 

·       show redundancy

 

o   In the chassis, show the status of the management and fabric modules

 

·       no spanning-tree A5 bpdu-protection admin-edge-port

 

o   disable BPDU-Protection and Edge Port configuration from an interface that you’d like to plug a switch into.

 

·       copy tftp flash X.X.X.X SoftwareName.swi primary

 

o   This will copy a updated firmware from the specified TFTP server over to the switch

 

o   Once the switch has finished downloading and verifying the new image, a manual reload is required

 

·       show int brief

 

o   show a brief status of all interfaces

 

·       Enabled: This indicates if the interface is currently enabled. If it is “No” then the interface has been administratively shutdown using the “disable” command. Or it has been shut down due to an error or protection mechanism (such as bpdu-protection)

 

·       Status: Indicates if the interface is currently Up or Down

 

·       Mode: The current operating mode of the port (1 Gb Full, 100Mb Full/half, etc…)

 

·       show ip

 

o   show the IP addresses configured on the switch

 

·       show mac-address

 

o   show the current MAC address table of the switch

 

o   helpful command is to run “show mac-address | i xxxx” where xxxx is the last four characters of the MAC address you are looking for. This can help pinpoint what port a device is plugged into on the switch.

 

·       sometimes when you run this command the MAC will show as being known on a port that goes to another switch, this just means that the device is plugged into another downstream/upstream switch. if you follow the chain long enough you will find the port the device is plugged into.

 

·       show arp

 

o   Displays the ARP table of the device

 

o   This is great for determining the IP address of a machine that you know the MAC address of

 

o   Best to run this at the L3 gateway to get the most meaningful output

 

·       show vlan

 

o   show the vlans currently configured on the switch

 

·       show vlan X

 

o   shows what ports the specified vlan is “tagged” or “untagged” on

 

·       show spanning-tree

 

o   this will show the spanning-tree status from the perspective of the switch

 

o   The important part of this command is that all switch interconnects are forwarding

 

o   The only time a switch interconnect should not be forwarding is if it has a redundant connection to another switch, or completes a loop topology, and then the port which completed the loop will be “blocking” or “discarding”

 

·       show ip route

 

o   show the routing table of the device

 

·       conf t

 

o   This enters configuration mode on the switch

 

·       vlan x tagged|untagged X

 

o   If tagged, then any frames in the specified VLAN are tagged as they traverse the port

 

o   if Untagged, then any untagged frames are placed into the specified VLAN when they enter the port. This becomes the native VLAN of the port.

 

 

 

 

 

 

 

Permanent link to this article: https://daherlabs.mywire.org/wordpress/?p=439

Leave a Reply

Your email address will not be published.