12-10-2024 04:52 AM
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.
12-10-2024 05:35 AM
what device model you are running these command against, does the command run on the device (using cli) - before you run from Prime.
=====Preenayamo Vasudevam=====
***** Rate All Helpful Responses *****
12-10-2024 07:40 AM
Try this way. But, I not sure | inc will be accepted
#MODE_ENABLE show run int Gi0/0/1 | inc band #MODE_END_ENABLE
12-10-2024 08:48 AM
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#]]>
12-10-2024 09:03 AM
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
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