04-22-2021 08:31 AM - edited 04-22-2021 08:32 AM
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?
Solved! Go to Solution.
04-22-2021 06:19 PM
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.
04-22-2021 06:19 PM
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.
04-23-2021 07:39 AM
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!
07-28-2021 11:10 AM
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?
08-01-2022 09:38 AM
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.
05-17-2022 03:41 AM
08-01-2022 09:39 AM
Was having the same issue, see my response to Drachiri above for the solution.
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