script development to capture logs
Hi,
For our lab environment we need to develop a script to collect logs from all our lab components for troubleshooting purposes.
One of the element is ACME which we need to write a script to loginto acme and capture sipmsg.log
The idea is to execute the following and capture the data from the screen;
start-script:
ssh user@<IP Address>
<ACLI-user-password>
enable
<password>
tail-logfile-open sipd sipmsg.log
stop-script:
ssh user@<IP Address>
<ACLI-user-password>
enable
<password>
tail-logfile-close sipd sipmsg.log
When we execute startscript we receive the following;
remoteserver# ssh user@<IP Address>
<ACLI-user-password>
enable
<password>
tail-logfile-open sipd sipmsg.log