03-06-2018 02:01 PM - edited 03-01-2019 06:26 PM
Hello everybody,
I prepared a template for configuring a username and password in several routers, I have made some tests and the template is deploying correctly.
However, when I tried to deploy a template for deleting the usernames I created with the previous template, I found that the job was running for some minutes and after that, it is displayed with a status of Failure.
The error the PI gives me is:
Error : Connnection timed out while executing the command Current output : no username username
This operation will remove all username related configurations with same name.Do you want to continue? [confirm]
Current expects : (Router-Name.{0,30}|Router-Name)([^)]+)#s*z
Router-Name#s*z
[y/n]
ACCEPT? (yes/[no]):
It seems that the problem is that when the router receives the command no username, it wants to receive a confirmation that the PI is not sending.
If I enter the command in the CLI of the router, a simple return provides the confirmation.
Does someone know how to send that "return" or confirmation with the PI in the template?
Thanks!
Solved! Go to Solution.
05-04-2022 07:34 AM
I solved the issue by using multi line commands in the fix CLI section of the policy. see example below
<MLTCMD>
no username testuser1
y
no username testuser2
y
username testuser3 privilege 15 secret 9 $34tdsvg43tgfve.jvHhyb3PUlX42.PBbRObkTY1aIqH06P5J0yegA2
</MLTCMD>
05-04-2022 06:47 AM
Did you find a solution to your problem? I'm having the same issue with Prime 3.9
05-04-2022 07:34 AM
I solved the issue by using multi line commands in the fix CLI section of the policy. see example below
<MLTCMD>
no username testuser1
y
no username testuser2
y
username testuser3 privilege 15 secret 9 $34tdsvg43tgfve.jvHhyb3PUlX42.PBbRObkTY1aIqH06P5J0yegA2
</MLTCMD>
08-17-2023 05:15 PM
Thank you Ilyas,
I didn't get the notification of your reply in the post and didn't post the solution that I found (months later).
Indeed, as you mentioned, the solution is to use the multiline commands.
Best!
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