PDA

View Full Version : The | Pipe command


milanchatterjee
02-04-2010, 06:10 AM
Hi All
In my case the Pipe command is not working. The sequence is as follows

Router2#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
Router2#sh run | begin interface
^
% Invalid input detected at '^' marker.

Router2#

It is giving an error. I am using PT5.2 simulator.

Thanks and regards.............

Milan Chatterjee

TheDon
02-04-2010, 11:16 AM
I just ran the command on my 2610XM and it worked fine, however, do note that simulators don't carry the full list of commands on a live router.

R1#sh run | begin interface
interface FastEthernet0/0
description Primary FastEthernet 0/0 interface.
ip address 1.1.1.1 255.255.255.0
duplex auto
speed auto

milanchatterjee
02-04-2010, 08:11 PM
Hi Don
I am not unduly bothered regarding the | command, but it is well to know that I can use it in real life. The only very minor shortfall is that, I have to search through the entire #sh int output result. I was just curious, why it was showing an error.

Milan

Fuzz
02-05-2010, 03:00 AM
Packet tracer doesn't support pipe.