CiscoCMD auto reply prompt question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2022 07:57 AM
Hi there,
I would like to use automation a job using this command: "install remove inactive" with ciscoCMD
in multiple switches, however the program is stuck when prompt the question "Do you want to remove above files?" waiting for user insert "yes" or "y", is there a way using ciscocmd to auto reply yes o y without user interaction?
I followed the steps from this ticket https://community.cisco.com/t5/network-management/prime-infrastructure-cli-template-clean-ios-xe-not-working/m-p/4391897#M139777 without any help as user is using PI 3.9 Patch 1
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 04:32 PM
Hello @Murciarules,
I'm not a CiscoCMD expert. I was noticed in the doc Cisco Command The Ultimate Little Tool that it only runs on UNIX and Windows.
Perhaps you can run a command in it with one of the following, depending on your OS:
- yes (Unix) - https://en.wikipedia.org/wiki/Yes_(Unix)
- Auto Answer “Yes/No” to Prompt – PowerShell & CMD - https://www.shellhacks.com/auto-answer-yes-no-prompt-powershell-cmd/
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 10:43 PM - edited 03-28-2022 10:44 PM
Thanks @Alexander Stevenson . i will have a look.
