cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
621
Views
0
Helpful
4
Replies

Prime Infrastructure CLI Show Command

lancerobinson
Level 1
Level 1

Thanks of the help in advance.

I am trying to do a simple show command with CLI Templates

#MOD_ENABLE
show run int Gi0/0/1 | inc band
#MOD_END_ENABLE

I keep getting the following error.

Error occured while executing the command show run int Gi0/0/1 | inc band.Command Output : show run int Gi0/0/1 | inc band
show run int Gi0/0/1 | inc band
^
% Invalid input detected at '^' marker.

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

what device model you are running these command against, does the command run on the device (using cli) - before you run from Prime.

 

BB

=====Preenayamo Vasudevam=====

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

@lancerobinson 

Try this way. But, I not sure | inc will be accepted

#MODE_ENABLE show run int Gi0/0/1 | inc band  #MODE_END_ENABLE

Works but goes into conf t?

configlet:
#MODE_ENABLE show run int Gi0/0/1 #MODE_END_ENABLE
response:
terminal width 0
config t
exit
router1#config t
Enter configuration commands, one per line. End with CNTL/Z.
router1(config)#exit
router1#]]>

 

 

Got it.

Show command is not supported. The templace is meant to change something on the device and not read from device

Try to trick the Prime by using "do"

#MODE_ENABLE do show run int Gi0/0/1 #MODE_END_ENABLE