Command Reference Guide

CLI Output Filtering Commands
CLI Command Reference
September 2014 Page 143
HP Moonshot Switch Module CLI Command Reference
show xxx|exclude “string
The command xxx is executed and the output is filtered to show all lines not containing the “string” match.
Output lines containing the “string” match are suppressed.
Example: The following shows an example of the CLI command.
(Routing) #show interface 1/0/1
Packets Received Without Error................. 0
Packets Received With Error.................... 0
Broadcast Packets Received..................... 0
Receive Packets Discarded...................... 0
Packets Transmitted Without Errors............. 0
Transmit Packets Discarded..................... 0
Transmit Packet Errors......................... 0
Collision Frames............................... 0
Time Since Counters Last Cleared............... 20 day 21 hr 30 min 9 sec
(Routing) #show interface 0/1 | exclude “Packets”
Transmit Packet Errors......................... 0
Collision Frames............................... 0
Time Since Counters Last Cleared............... 20 day 21 hr 30 min 9 sec
show xxx|begin “string
The command xxx is executed and the output is filtered to show all lines beginning with and following the first
line containing the “string” match. All prior lines are suppressed.
Example: The following shows an example of the CLI command.
(Routing) #show port all | begin “1/1”
1/1/1 Enable 10G Full Down Enable Enable long
1/1/2 Enable 10G Full Down Enable Enable long
1/1/3 Enable 10G Full Down Enable Enable long
1/1/4 Enable 10G Full Down Enable Enable long
1/1/5 Enable 10G Full Down Enable Enable long
1/1/6 Enable Detach Enable Enable long
2/0/1 Enable Auto Down Enable Enable long
2/0/2 Enable Auto Down Enable Enable long
2/0/3 Enable Auto Down Enable Enable long
...
...