Display | { Begin | Exclude | Include - HP FlexFabric 12900 series Command Reference Manual

Hide thumbs Also See for FlexFabric 12900 series:
Table of Contents

Advertisement

For example, if you configure the alias siprt for display ip routing-table, you can enter siprt to execute the
display ip routing-table command. If you configure the alias ship for display ip, you can use ship to
execute all commands starting with display ip:
Enter ship routing-table to execute the display ip routing-table command.
Enter ship interface to execute the display ip interface command.
The command string can include up to nine parameters. Each parameter starts with the dollar sign ($)
and a sequence number in the range of 1 to 9. For example, you can configure the alias shinc for the
display ip $1 | include $2 command. Then, to execute the display ip interface | include
GigabitEthernet0/0/1 command, you only need to enter shinc interface GigabitEthernet0/0/1.
Examples
# Configure the alias shiprt for the display ip routing-table command and verify the configuration.
<Sysname> system-view
[Sysname] alias shiprt display ip routing-table
[Sysname] shiprt
Destinations : 12
Destination/Mask
0.0.0.0/32
3.3.3.3/32
127.0.0.0/8
127.0.0.0/32
127.0.0.1/32
127.255.255.255/32 Direct
169.254.0.0/24
169.254.0.0/32
169.254.0.188/32
169.254.0.255/32
192.168.57.0/24
224.0.0.0/4
224.0.0.0/24
255.255.255.255/32 Direct
# Configure the alias shinc for display ip $1 | include $2.
[Sysname] alias shinc display ip $1 | include $2
# Use the alias shinc to display all static routes.
[Sysname] shinc routing-table Static
3.3.3.3/32
# Use the alias shinc to display all RIP routes.
[Sysname] shinc routing-table RIP
192.168.57.0/24
Related commands
display alias

display | { begin | exclude | include }

Use display | { begin | exclude | include } to filter the output from a display command with a regular
expression.
Routes : 12
Proto
Pre Cost
Direct
0
0
Static
60
0
Direct
0
0
Direct
0
0
Direct
0
0
0
0
Direct
0
0
Direct
0
0
Direct
0
0
Direct
0
0
RIP
100 1
Direct
0
0
Direct
0
0
0
0
Static
60
0
RIP
100 1
NextHop
127.0.0.1
192.168.1.62
127.0.0.1
127.0.0.1
127.0.0.1
127.0.0.1
169.254.0.188
169.254.0.188
127.0.0.1
169.254.0.188
192.168.1.62
0.0.0.0
0.0.0.0
127.0.0.1
192.168.1.62
192.168.1.62
2
Interface
InLoop0
GE0/0
InLoop0
InLoop0
InLoop0
InLoop0
GE0/0
GE0/0
InLoop0
GE0/0
GE0/0
NULL0
NULL0
InLoop0
GE0/0
GE0/0

Advertisement

Table of Contents
loading

Table of Contents