cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5884
Views
5
Helpful
6
Replies

Prime Infrastructure CLI Template Clean IOS-XE Not Working

Shrimpy
Level 1
Level 1

I'm currently using PI 3.9 Patch 1, to send an interactive command to all my switches (9300 & 3850) but it fails every time. I usually have less issues when I perform "install remove inactive" on all my switches before upgrading them with prime. I was hoping to use prime to send that command, so I can make it easy. However, it keeps failing. 

 

My CLI template:

#INTERACTIVE	
install remove inactive<IQ>Do you want to remove the above files? [y/n]<R>y
#ENDS_INTERACTIVE

Error message:

Error occured while executing the command install remove inactive.Command Output : install remove inactive
^
% Invalid input detected at '^' marker.

9300 - 16.12.04
3850 -  16.9.6

 

 

Any one have anyluck with using prime to "clean" switches?

 

 

 

 

1 Accepted Solution

Accepted Solutions

yajimene
Cisco Employee
Cisco Employee

 

By default commands will run on config mode. In this case, this command should be entered under Priv EXEC mode (enable).  So you need to add an additional tag to let Prime Infrastructure know this command will be configured on "enable" mode:

 

#MODE_ENABLE

#INTERACTIVE	
install remove inactive<IQ>Do you want to remove the above files? [y/n]<R>y
#ENDS_INTERACTIVE

#MODE_END_ENABLE

 

That should do the trick.

View solution in original post

6 Replies 6

yajimene
Cisco Employee
Cisco Employee

 

By default commands will run on config mode. In this case, this command should be entered under Priv EXEC mode (enable).  So you need to add an additional tag to let Prime Infrastructure know this command will be configured on "enable" mode:

 

#MODE_ENABLE

#INTERACTIVE	
install remove inactive<IQ>Do you want to remove the above files? [y/n]<R>y
#ENDS_INTERACTIVE

#MODE_END_ENABLE

 

That should do the trick.

Yajimene,

 

Thank you, sure enough that did the trick. I feel dumb now, but thank you. Funny story, just got done manually cleaning a ton of switches, but this works for the future!

I am getting error when using the script that reads 'Error : Connnection timed out while executing the command'

 

Any idea why this error is happening?

Was having the same issue, had to modify the CLI so that the IQ section was strictly the text within the brackets, like this:

#MODE_ENABLE
#INTERACTIVE
install remove inactive<IQ>y/n<R>y
#ENDS_INTERACTIVE
#MODE_END_ENABLE

This worked for me in Prime 3.10, update 01.

Hi @yajimene 

I get the same error like @Drachiri :

 

Error : Connnection timed out while executing the command

 

we have added the Hosts with the DNS Name on the PI.

 

@Shrimpy does it work for you like that?

 

 

Was having the same issue, see my response to Drachiri above for the solution.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: