PDA

View Full Version : Can anybody help with the pipe command?


gopal
07-10-2011, 01:04 PM
Hi everybody

I am using 2811 router and also a generic router in my packet tracer simulator to practice configuration. But why I cannot use pipe (|) command successfully?

Here is the copy of the result that I got:



Gopal#config t
Enter configuration commands, one per line. End with CNTL/Z.
Gopal(config)#sh run | ?
% Unrecognized command
Gopal(config)#do sh run |
sh run |
^
% Invalid input detected at '^' marker.


Thanks//

gopal
07-10-2011, 01:35 PM
Also, why I am not getting Serial interfaces by "int serial 0/0/0" command in global config mode?

bs_kwaj
07-10-2011, 05:11 PM
I've tried using the | in Packet Tracer. But, I think I tried using it like:

R1#sho run | begin route

I think the | just isn't supported in Packet Tracer.

Also, I think the 'do' command is not supported.

I'll double check that when I get to work.


Does 'sho run' list a s0/0/0 in your configuration?

bs_kwaj
07-10-2011, 07:17 PM
OK, let's see what we have. This is Packet Tracer 5.3.1.0044.


//////////////////////////////////////////////////
R1#sho run
Building configuration...

Current configuration : 1366 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1

[output cut]

enable secret 5 $1$mERr$ifXf4nR9I6O7sEgUlBOEM/

[output cut]

no ip domain-lookup

[output cut]

interface FastEthernet0/0
description Connection to Finance PC
ip address 192.168.10.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
description Connection to Marketing PC
ip address 192.168.20.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0/0

description 1st Connection to the Corp Router
ip address 10.1.2.2 255.255.255.0
clock rate 2000000
!
interface Serial0/1/0
description 2nd Connection to the Corp Router
ip address 10.1.3.2 255.255.255.0
!
interface Vlan1
no ip address
shutdown
!
router rip
network 10.0.0.0
network 192.168.10.0
network 192.168.20.0
!
[ output cut]

//////////////////////////////////////////////////

R1#sho run | begin router
^
% Invalid input detected at '^' marker.

R1#

//////////////////////////////////////////////////

R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#do sho run
Building configuration...

Current configuration : 1366 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!

[output cut]

//////////////////////////////////////////////////

R1(config)#do sho run | ?
LINE <cr>

R1(config)#do sho run | begin router
sho run | begin router
^
% Invalid input detected at '^' marker.

R1(config)#

//////////////////////////////////////////////////

So, looks like 'do' works, but not the pipe | .


.
Edit: bolded my reply in case it was missed. :rolleyes:

Lion66six
07-11-2011, 01:46 AM
The do command does work with packet tracer, version 5.3.0.0088. I suspect for the serial commands, your just being too exact with it.

If I place down a 2811 router, and then add an NM-4A/S module, it gives me 4 serial ports. This gives Serial 1/0 to 1/3, but not 0/0/0 etc in the format you have given. Hope that helps.

elphrank0
07-11-2011, 10:00 PM
more then likely the simulator doesn't understand |
secondly, check your interfaces and make sure they are in fact s0/0/0 by doing a show int.
This will probably lead you to your issue.

gopal
07-12-2011, 11:37 PM
Thanks everybody for replies