cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2286
Views
5
Helpful
1
Replies

Cisco Prime Infrastructure CLI template confirming Reload the entire shelf [confirm]

cbluhme
Level 1
Level 1

Hello

I am trying to make Prime perform a

write mem

redundancy reload shelf

on a VSS switch in order to restart both switches in the VSS

The switch asks for a confirmation - <enter> seems to be the only answer that does not abort the operation

VSS-test#
VSS-test#
VSS-test#wr
Building configuration...
Compressed configuration from 6650 bytes to 3329 bytes[OK]
VSS-test#
*Jun 14 10:48:18.251: %C4K_REDUNDANCY-5-CONFIGSYNC: The private-config has been successfully synchronized to the standby supervisor
*Jun 14 10:48:18.626: %C4K_REDUNDANCY-5-CONFIGSYNC: The startup-config has been successfully synchronized to the standby supervisor
VSS-test#
VSS-test#redundancy reload shelf
Reload the entire shelf [confirm]
VSS-test#
Preparing to reload this shelf

*Jun 14 10:48:28.509: %RF-5-RF_RELOAD: Shelf reload. Reason: Reload Shelf CLI
*Jun 14 10:48:28.557: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Shelf CLI.
*Jun 14 10:48:28.617: %IOSXE-3-PLATFORM: 11 process sysmgr: Reset/Reload requested by [console].
*Jun 14 10:48:28.557: %SYS-5-RELOAD: STANDBY:Reload requested by console. Reload Reason: Reload Shelf CLI.

My thoughts was a template like this:

#MODE_ENABLE
write memory
#INTERACTIVE
redundancy reload shelf
Reload the entire shelf <IQ>[confirm]<R>
#ENDS_INTERACTIVE
#MODE_END_ENABLE

But I cannot make it work so I have probably misunderstood the syntax or use.

Prime gives me this status:

Error : Connnection timed out while executing the command Current output : redundancy reload shelf
Reload the entire shelf [confirm]
Current expects : (VSS-test.{0,30}|VSS-test)([^)]+)#s*z
VSS-test#s*z

Has anyone developed a template that can reply an <enter> in interactive mode or is able to hint me what I am doing wrong, pls ?

Thanks

1 Reply 1

cbluhme
Level 1
Level 1

It turns out that <Enter> is not the only valid reply to the [confirm] question afterall.

"Yes" is not a valid answer for some reason, but "y" is, so the following template will do the job:

#MODE_ENABLE                
write memory
#INTERACTIVE
redundancy reload shelf&lt;IQ&gt;confirm&lt;R&gt;y
#ENDS_INTERACTIVE
#MODE_END_ENABLE