On Sep 9, 3:36 am, [EMAIL PROTECTED] (Gregory Machin) wrote:
> 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.
>
> Any tips on doing this ?
Instead of using ssh yo could create a perl script on a webserver that
runs those commands and show them as a webpage, thttpd should work.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to