2008/9/9 Gregory Machin <[EMAIL PROTECTED]>: > Hi > I have a database with my servers details in .. I would like to write > a scripts to get the servers log on info ssh to the box and get basic > info using the following > > hostname > cat /etc/issue > cat /proc/cpuinfo | grep "model name" > cat /proc/meminfo | grep "MemTotal" > uname -s -r > squid -v > /usr/sbin/sendmail -v -d0.1 > > Then save the info to the database.
>From my thought, you can write a script on that host, which should update the database for the info you needed, and run it by crontab. If you really need to do a ssh operation in Perl, see "perldoc Net::SSH". For database oepration, see "perldoc DBI". -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/