Discussion Locked

Can a script tell network storage amts?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have hundreds of Unix servers (mostly Solaris) I need to get the storage totals off all of them. Used and Unused. To complicate matters they want to know the amounts of storage allocated versus used, and if the storage is internal VS. external!Please help!

5 replies

by cavedweller

One approach is to run a script using rsh and mail yourself the results. Here is an outline. You will have to adjust the syntax for your choice of shell. Of course this requires that rsh works on your network. A regular account is fine.

for SERVER in "list of servers"
do
rsh -n -l {account to run as} $SERVER df -{pick your options} | mail {accountname}
done

Another method would be to setup a cron job on each server to periodically report their disk usage. This means a lot of work to set it up but you only have to do it once.

by jjemelli

Thank for the ideas I will try both. The first quick fix now and the other when I (LOL) have time :)

by scottdo10

Do you already have SNMP running or any other types of Network Monitoring? UCD SNMP can be used to poll disk usage and also notify if above a certain percentage used.

by jjemelli

No network monitoring is is use. They find it to be more of a problem than a help thanks anyway.

This discussion is closed to new replies.