Viewing or clearing CDP statistics
You can view the CDP statistics for the cluster and non-cluster ports on each node to detect potential network connectivity issues. CDP statistics are cumulative from the time they were last cleared.
About this task
Because CDP is always enabled for cluster ports, CDP statistics are always displayed for traffic on those ports. CDP must be enabled on non-cluster ports for statistics to appear for those ports.
If you want to... | Enter... |
---|---|
View the CDP statistics | run -node node_name cdpd show-stats |
Clear the CDP statistics | run -node node_name cdpd zero-stats |
Example of showing and clearing statistics
The following command shows the CDP statistics before they are cleared. The output displays the total number of packets that have been sent and received since the last time the statistics were cleared.
cluster-1::> run -node node1 cdpd show-stats
RECEIVE
Packets: 9116 | Csum Errors: 0 | Unsupported Vers: 4561
Invalid length: 0 | Malformed: 0 | Mem alloc fails: 0
Missing TLVs: 0 | Cache overflow: 0 | Other errors: 0
TRANSMIT
Packets: 4557 | Xmit fails: 0 | No hostname: 0
Packet truncated: 0 | Mem alloc fails: 0 | Other errors: 0
OTHER
Init failures: 0
The following command clears the CDP statistics:
cluster-1::> run -node node1 cdpd zero-stats
The following command shows the statistics after they are cleared:
cluster-1::> run -node node1 cdpd show-stats
RECEIVE
Packets: 0 | Csum Errors: 0 | Unsupported Vers: 0
Invalid length: 0 | Malformed: 0 | Mem alloc fails: 0
Missing TLVs: 0 | Cache overflow: 0 | Other errors: 0
TRANSMIT
Packets: 0 | Xmit fails: 0 | No hostname: 0
Packet truncated: 0 | Mem alloc fails: 0 | Other errors: 0
OTHER
Init failures: 0
After the statistics are cleared, they begin to accumulate after the next CDP advertisement is sent or received.