I try to do a automatic backup of our Avocent Console server.
putty.exe -ssh root@acs01.NULL.local -pw secretpw -m 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?
clicommand starts its own pseudo-shell, then yes, this is the problem. The real shell is likely waiting for the
cliprocesses to complete before continuing with the other commands. If you were to exit the
cliapplication it would probably run the other commands.