General discussion

  • Creator
    Topic
  • #2123007

    Can a script tell network storage amts?

    Locked

    by jjemelli ·

    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!

All Comments

  • Author
    Replies
    • #3553854

      Can a script tell network storage amts?

      by cavedweller ·

      In reply to Can a script tell network storage amts?

      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.

      • #3555698

        Can a script tell network storage amts?

        by jjemelli ·

        In reply to Can a script tell network storage amts?

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

    • #3553851

      Can a script tell network storage amts?

      by scottdo10 ·

      In reply to Can a script tell network storage amts?

      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.

    • #3555697

      Can a script tell network storage amts?

      by jjemelli ·

      In reply to Can a script tell network storage amts?

      This question was closed by the author

Viewing 2 reply threads