Digging deep into Unified Communications from Spain.

Nowadays any way to save some time it is always welcome, indeed if it is a repetitive task. Because of that, I have written a script based on Expect, which “talks” with other interactive programs through a script. In my case I have used it with a SSH connection against the CUCM CLI.

The Expect package, is available just for Linux. I am using a Windows machine where I have other admin tools, so I installed it together with Cygwin.

The script that I want to share with you, connect us to the CUCM CLI and it executes the commands that we have implemented. For instance, with the script below I am able to restart one node just typing a user, a password and an IP. You can do whatever you can imagine.

Continue reading…