Creating a Hostmonitor Script

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Alberto Manrique
Posts: 5
Joined: Thu Oct 25, 2007 3:19 am

Creating a Hostmonitor Script

Post by Alberto Manrique »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
Post Reply