Light-weight alternative to `df` (without SNMP)

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Infrastructure Monitoring Light-weight alternative to `df` (without SNMP)
# 1  
Old 07-17-2009
Light-weight alternative to `df` (without SNMP)

Overview:
I'm looking for a way to get usage data for all mount points (UFS,VxFS & NFS) on a Solaris system. I'm starting with `df` but would like to find something that might be more light-weight.

Background:
Using SNMP is not an option in this case, instead I need to use basic built-in commands to get the data. The commands must be present on SPARC and x86 platforms and our minimum release level is Solaris 8, newest is 10. I will be writing a script or program (don't need help with that) to get the disk usage statistics and then report on partitions that are low on space. The script will run automatically and on systems where mount points tend to hang or disappear without notice so I'll need to fork df for each mount. The additional processes, some which may get orphaned, might be a resource problem so I want to at least minimize the resource footprint of each command that is run.

I am fully ready to accept that`df` may already be the best way to approach this but I wanted to ping the community just in case.
# 2  
Old 07-17-2009
In you write in C or perl you can call statvfs() directly. For a shell script, df is the what I would use.
# 3  
Old 07-18-2009
That is a good suggestion, thank you. I'm going to try to not write new software at this point but if things get ugly I may not have a choice.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need to transfer all kernel logs (var/log/messages) to the snmp listener as snmp trap

i am working with embedded system -Dell DCS management sub system. my question is as below: currently we are using linux kernel 2.6.30 build and we have a kernel logs stored to the /var/log/messages path. now we have to transfer all this logs to the specified SNMP target as a part of SNMP... (4 Replies)
Discussion started by: vipul_prajapati
4 Replies

2. Shell Programming and Scripting

Building Light weight Distro

Don't know whether this is right category for this question. I request please consider it and advice correct cotegory if required. Here goes my question. I want to build a distribution using debian/ubuntu. Currently i'm refering LinuxFromScratch.org, which is asking me a space for around 10gb. I... (3 Replies)
Discussion started by: kg_gaurav
3 Replies

3. Solaris

How to simulate light weight process (LWP)?

Hello, We had a problem on a Solaris system (SunOS 5.10) that hit LWP limit and caused fork 11 error. Now we need to come up with a script to simulate and reproduce that scenario. What would be a simple and valid way to generate lots of Light Weight Processes? Thanks, Jay (1 Reply)
Discussion started by: seafan
1 Replies

4. Red Hat

Sending data from DELL OMSA SNMP and Custom SNMP MIB to same UDP port 161

Hi , Currently DELL OMSA SNMP sends data through default udp port 161.I want my custom SNMP MIB also to send data in the same udp port 161.Whether its possible.If yes where to configure .I tried starting my custom MIB in udp port 161,but it throws port already in use.Kindly guide. (1 Reply)
Discussion started by: prabakar4all
1 Replies

5. IP Networking

Sending data from DELL OMSA SNMP and Custom SNMP MIB to same UDP port 161

Hi , Currently DELL OMSA SNMP sends data through default udp port 161.I want my custom SNMP MIB also to send data in the same udp port 161.Whether its possible.If yes where to configure .I tried starting my custom MIB in udp port 161,but it throws port already in use.Kindly guide. (0 Replies)
Discussion started by: prabakar4all
0 Replies
Login or Register to Ask a Question