Was you able to write a script to do this. I have a need to reboot our CUPS server on a schedule bases. I did write a script that will shh the server and login and issue the command Utils System restart. My issue is I can not get the script to pass the "yes" to the server when ask "are you sure you want to restart".
The Y does not need to be echoed once you answer Y once and let it write credentials to the registry in Local User. Then you can export these reg entries and use "reg add" and add these to your bat file so if other users need to use it they will not even get prompted for Y/N at login. Also for CUCM and UCCX to run multiple commands you will need hundreds of "enters" between the commands. So for example line 1 would be the CLI command, then 100-1000 enters, then second command. The amount of enters needed differs depending on the output. Usually 300 will work with anything, if not add more, I've had to use 1000+ before it runs the second command. Also you will need to run EXIT as the last command or plink will never finish. I use the following command below. This will parse out the extra Admin: prompts you will when using many enters. Also note the -m switch to run multiple commands doesn't work as advertised.Notice how I use the < symbol to redirect the .txt file with the commands into the plink.exe command. You can try adding the Echo Y^| at the beginning of the plink command to answer Y to login prompt, I had some luck, but importing the reg entry it adds automatically is the best solution. Cisco IOS doesn't seem to have these issues but with Cisco CUCM and CCX this is the only way it works.
for /f "tokens=*" %%a in ('plink 2^>nul -ssh -pw password -l username IP ^< ShowNetEth0.txt^|find /v "admin:"') do echo %%a
I made a small Python code which shuts down CUCM. It should be run on a separate server. You can use "pexpect" library to login to CUCM via SSH and send "utils system shutdown", than wait for "Enter (yes/no)?" and finally send "yes". Something like this:
SIP traces provide key information in troubleshooting SIP Trunks, SIP
endpoints and other SIP related issues. Even though these traces are in
clear text, these texts can be gibberish unless you understand fully
what they mean. This document attempts to br...
Please find the attached HTML document, download and open it on your PC.
This provides an easy to use form where you simply answer a few
questions and it will render the proper jabber-config.xml file for you
to copy/paste. There is built in logic to verif...
CUCM Database Replication is an area in which Cisco customers and
partners have asked for more in-depth training in being able to properly
assess a replication problem and potentially resolve an issue without
involving TAC. This document discusses the bas...