I would like to make a Hostmonitor script with the following sentences.
In the first time I want to connect to server via telnet, to write user and password, then to write user and password of administrator changing with su - root command, to execute a command ./command.sh and finally to desconnect to telnet. Thanks ¡¡¡¡
telnet 192.168.*.*
usuario: xxxxxx
password: yyyyyy
su - root
usuario: *******
password: yyyyyy
./comando.sh
exit
exit
Creating a Hostmonitor Script
HostMonitor cannot do that directly.
If you want to perform some test on remote system, you may use SSH server and SSH test method. HostMonitor may login to the server (SSH protocol not Telnet), execute script and check result
http://www.ks-soft.net/hostmon.eng/mfra ... htm#chkssh
If you need to use Telnet protocol to execute some script without checking result, you need 3rd party telnet client with command line interface and script support. So you can store script in the file and use "Execute external program" action to start telnet client with a script.
http://www.ks-soft.net/hostmon.eng/mfra ... htm#actPrg
Another solution - install RMA on remote system and execute script using the same "Execute external program" action. In such case you will use RMA instead of telnet client.
http://www.ks-soft.net/hostmon.eng/rma-unix/index.htm
Regards
Alex
If you want to perform some test on remote system, you may use SSH server and SSH test method. HostMonitor may login to the server (SSH protocol not Telnet), execute script and check result
http://www.ks-soft.net/hostmon.eng/mfra ... htm#chkssh
If you need to use Telnet protocol to execute some script without checking result, you need 3rd party telnet client with command line interface and script support. So you can store script in the file and use "Execute external program" action to start telnet client with a script.
http://www.ks-soft.net/hostmon.eng/mfra ... htm#actPrg
Another solution - install RMA on remote system and execute script using the same "Execute external program" action. In such case you will use RMA instead of telnet client.
http://www.ks-soft.net/hostmon.eng/rma-unix/index.htm
Regards
Alex