cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1322
Views
0
Helpful
1
Replies

Need to schedule switch reboots, but CLI template fails

JohnW63
Level 1
Level 1

We need to reboot a host of switches and I thought the CLI "Reboot" would be the thing to use. I tried using it on a test switch and the first time, the job finished with Success but the switch did nothing. I thought that perhaps it was expecting a password to get into Enable mode so I added our default one. Later attempts now just fail with this error:

 

Error: Connection closed while executing the command #MODE_ENABLE write memory #INTERACTIVE reload in 001yes/nonoProceedyes #ENDS_INTERACTIVE #MODE_END_ENABLE Response:

 

1) How does the CLI template actually get in Enable mode to reload the switch if the enable secret is not provided in the CLI ?

 

2) Why would I get a Success in the Jobs screen but the switch did nothing ? I selected this switch manually , so I know it went to the right one.

 

 

1 Reply 1

JohnW63
Level 1
Level 1

Just to clarify, I am using the CLI template provided in Prime Infrastructure.  The Template looks like this:

 


#MODE_ENABLE
write memory
#INTERACTIVE
reload <IQ>yes/no<R>no<IQ>Proceed<R>yes <timeout>${waittimeout}</timeout>
#ENDS_INTERACTIVE
#MODE_END_ENABLE

 

The template runs, and PI shows it as successfully deployed, but the switch does nothing.