01-15-2015 06:33 AM
HI,ALL
when I use show command with pipe on the CRS-1,the command invalid
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |errors
^
% Invalid input detected at '^' marker.
========================================================
But Previously on the cisco 7609,I can use the show command
GZ-DM-SR-1.MAN.7609#show int | include line |err
Vlan1 is down, line protocol is down
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 interface resets
Vlan11 is administratively down, line protocol is down
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 interface resets
Vlan99 is down, line protocol is down
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 interface resets
Solved! Go to Solution.
01-15-2015 06:39 AM
This is how multipipe works on IOS-XR:
(extract from: http://www.cisco.com/c/en/us/td/docs/routers/crs/software/crs_r4-1/getting_started/configuration/guide/gs41crs/gs41cli.html#wp1289885)
Multipipe Support
The multipipe feature supports the multiple pipes on the CLI. With this feature, the output can be processed by an enhanced utility set. Using various combination of utilities, it is possible to gather, filter, and format the output of any show command. An arbitrary limit of eight pipes is supported on CLI with this limit superseded by the limit of characters that can be typed on the single line (1024) if the individual commands specified with pipes are long enough.
In addition, if you want to give pipe character (|) as a pattern, you must give it in double quotes. For example:
RP/0/RP1/CPU0:single8-hfr# show running-config|include "bgp|ospf"|file disk0:/usr/a.log
Refer to this document for more detailed help:
https://www.cisco.com/c/en/us/td/docs/routers/crs/software/crs_r4-1/getting_started/configuration/guide/gs41crs/gs41cli.pdf
01-15-2015 06:37 AM
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |errors
^
% Invalid input detected at '^' marker.
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |?
|
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line | |?
^
% Invalid input detected at '^' marker.
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line | ?
begin Begin with the line that matches
exclude Exclude lines that match
file Save the configuration
include Include lines that match
utility A set of common unix utilities
<cr>
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |
% Incomplete command.
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |errors
^
% Invalid input detected at '^' marker.
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line | ?
begin Begin with the line that matches
exclude Exclude lines that match
file Save the configuration
include Include lines that match
utility A set of common unix utilities
<cr>
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |?
|
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line | include er$
Thu Jan 15 22:36:24.120 GMT
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line
Thu Jan 15 22:37:05.013 GMT
Loopback0 is up, line protocol is up
Loopback1 is up, line protocol is up
Loopback6 is up, line protocol is up
Null0 is up, line protocol is up
POS0/0/0/0 is up, line protocol is up (APS not Configured )
POS0/0/1/0 is up, line protocol is up (APS not Configured )
TenGigE0/0/4/0 is up, line protocol is up
01-15-2015 06:39 AM
This is how multipipe works on IOS-XR:
(extract from: http://www.cisco.com/c/en/us/td/docs/routers/crs/software/crs_r4-1/getting_started/configuration/guide/gs41crs/gs41cli.html#wp1289885)
Multipipe Support
The multipipe feature supports the multiple pipes on the CLI. With this feature, the output can be processed by an enhanced utility set. Using various combination of utilities, it is possible to gather, filter, and format the output of any show command. An arbitrary limit of eight pipes is supported on CLI with this limit superseded by the limit of characters that can be typed on the single line (1024) if the individual commands specified with pipes are long enough.
In addition, if you want to give pipe character (|) as a pattern, you must give it in double quotes. For example:
RP/0/RP1/CPU0:single8-hfr# show running-config|include "bgp|ospf"|file disk0:/usr/a.log
Refer to this document for more detailed help:
https://www.cisco.com/c/en/us/td/docs/routers/crs/software/crs_r4-1/getting_started/configuration/guide/gs41crs/gs41cli.pdf
01-15-2015 07:04 AM
thanks very mutch,I got it!!!
RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include "line|err"
Thu Jan 15 23:02:41.682 GMT
Loopback0 is up, line protocol is up
Loopback1 is up, line protocol is up
Loopback6 is up, line protocol is up
Null0 is up, line protocol is up
POS0/0/0/0 is up, line protocol is up (APS not Configured )
476875542 input errors, 4128386 CRC, 14396 frame, 0 overrun, 0 ignored, 0 abort
0 output errors, 0 underruns, 0 applique, 0 resets
POS0/0/1/0 is up, line protocol is up (APS not Configured )
84286 input errors, 22518 CRC, 44 frame, 0 overrun, 0 ignored, 0 abort
0 output errors, 0 underruns, 0 applique, 0 resets
TenGigE0/0/4/0 is up, line protocol is up
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 output errors, 0 underruns, 0 applique, 0 resets
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide