Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: Unix disk space reports

by halxd2 (Monk)
on Jan 02, 2001 at 19:43 UTC ( [id://49307]=note: print w/replies, xml ) Need Help??


in reply to Re: Unix disk space reports
in thread Unix disk space reports

I agree my script does limit general usage; however, I was working to get a report that had the format I wanted for my boss. As for keeping the temp files I usualy keep them until I'm very sure I'm getting everything I what out of the script. I guess I just live in debugland.

Replies are listed 'Best First'.
Re^3: Unix disk space reports
by Anonymous Monk on Feb 10, 2009 at 09:31 UTC
    I want the same kind of report which has the capablity of showing the diskpace status for the past month. Can some help?

      You could start by showing us where in your code you have difficulties. As the program currently just displays the status quo, I imagine you have to collect the disk space report over time. Then, create your report from that.

      Personally, I would store that data in a database, for example DBD::SQLite, and then create the reports from that database using Querylet. But you can get by without a relational database if you hardcode the reporting logic into your script.

        Thanks for replying me! Corion.
        for i in 1 2 3 4 5;do echo boxname$i;ssh lms@boxname$i df -kh | grep s +an; done > commandout.txt mail -s "Auto Diskspace check" emailid@xyz.com < output.txt
        Above the simple script which gives me report when i run it everyday, but now i need output for a month... Am sorry this could be simle but am ab handicap on shel scrpit.. need help.

        20090210 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://49307]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-25 11:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found