I try to do a automatic backup of our Avocent Console server.
Content of backup.cmd
:
putty.exe -ssh root@acs01.NULL.local -pw secretpw -m acs01.txt
Content of acs01.txt
:
cli
cd system_tools/
save_configuration
set ip_address=10.0.0.1
set path_and_filename=/avocent/acs01
set username=ftpacs01
set password=anothersecretpw
save
finish
exit
exit
All works fine, but I have one problem. PuTTY comes only to execute the command cli
, all other commands are not executed.
Is it possible to do a short break after each command?
Or is it because the cli
is a separate interface in the Avocent?
Thank you
cli
command starts its own pseudo-shell, then yes, this is the problem. The real shell is likely waiting for thecli
processes to complete before continuing with the other commands. If you were to exit thecli
application it would probably run the other commands.