Hello,
Can someone please tell me which command to use to determine the available disk space on a given disk device?
I have to write a shell script that compresses files and stores them in a specific location but I am not sure how "conservative" I should be?
Thanks in advance!
Al. (4 Replies)
snmpget -v 1 -c COMMUNITYSTR hostname OID
what OIDs would I use to get information on all the processes and disk space information that are on a particular host.
where can i find out information on all of this?
thanks (3 Replies)
Are there any one-liners or short codes to separate 4-digit numbers into 2?
For example, input.txt:
1234
5678
3091
2851
Output.txt:
12 34
56 78
30 91
28 51 (7 Replies)
Ok, so i monitor disk space on remote machines using snmp. Works great for me. But whenever a particular partition happens to have Terabytes of data, snmp starts reporting negative values.
Can someone please tell me how to get around this problem?
The AllocationUnit is 512 bytes. Weird... (0 Replies)
Hello all,
I have a file with several lines like this:
(1,1) (4,10) (8,23) (17, 4) (6,8) etc.
and I need this:
( 1 , 1 ) ( 4 , 10 ) ( 8 , 23 ) ( 17 , 4 ) ( 6 , 8 )
How do I insert a space between the left parenthesis and the first number, between the first number and the comma,... (2 Replies)
Hi I have file which stores dates.
2008-09-12|2008-09-12<space1>00:00:12|<space2>2008-09-12
Some one please help me on how should I use the sub command to replace only the space which has numbers on both sides.
Expected output
2008-09-12|2008-09-1200:00:12|<space2>2008-09-12
--... (4 Replies)
This is really strange... my system's du is reporting file size smaller than it really is... and it is only happening on one of Solaris 10 I have...
#ls -lrt tracks.txt
-rw-r--r-- 1 oracle oinstall 2166525362 May 16 03:32 tracks.txt
# du -k tracks.txt
953805 tracks.txt
# du -h... (4 Replies)
Hi,
I have a file which looks like this
FORD|1333-1| 10000100010203| 100040507697|0002|356.45|5555| SSSSY|KKKKM|1000005|10| N096|10043| C987
I need the output to look like this
FORD|1333-1|10000100010203|100040507697|0002|356.45|5555| SSSSY|KKKKM|1000005|10| N096|10043| C987
The leading... (8 Replies)
username=cogiz
#!/bin/bash
shuffle() #@ USAGE: shuffle
{ #@ TODO: add options for multiple or partial decks
Deck=$(
printf "%s\n" {2,3,4,5,6,7,8,9,T,J,Q,K,A}{H,S,D,C} |
awk '## Seed the random number generator
BEGIN { srand() }
## Put a random number in front... (4 Replies)
Discussion started by: cogiz
4 Replies
LEARN ABOUT SUNOS
snmpdf
snmpdf(1M) System Administration Commands snmpdf(1M)NAME
snmpdf - get a listing of disk space usage on a remote machine by means of SNMP
SYNOPSIS
/usr/sfw/bin/snmpdf [common options] [-Cu] agent
DESCRIPTION
The snmpdf command is a networked verison of the df(1M) command. It checks the disk space on the remote machine by examining the HOST-
RESOURCES-MIB's hrStorageTable or the UCD-SNMP-MIB's dskTable. By default, the hrStorageTable is preferred, as it typically contains more
information than the dskTable. However, the -Cu argument can be passed to snmpdf to force the usage of dskTable.
The agent operand identifies a target SNMP agent, which is instrumented to monitor specified objects. At its simplest, the agent specifica-
tion consists of a host name or an IPv4 address. In this situation, the command attempts communication with the agent using UDP/IPv4 to
port 161 of the target host.
See the snmpcmd(1M) manual page for a full list of the possible formats for agent.
See the snmpd.conf(4) manual page for guidance on setting up dskTable using the disk directive in the snmpd.conf file.
OPTIONS
The following options are supported:
common options
See snmpcmd(1M) for a list of possible values for common options, as well as their descriptions.
-Cu
Forces the command to use dskTable in UCD-SNMP-MIB instead of the default to determine the storage information. Generally, the default
use of hrStorageTable in HOST-RESOURCES-MIB is preferred because it usually contains more information than dskTable.
EXAMPLES
Example 1: Obtaining Disk Usage of a Remote System
The following command returns a display of the disk usage of a remote system.
Description size (kB) Used Available Used%
/ 7524587 2186910 5337677 29%
/proc 0 0 0 0%
/etc/mnttab 0 0 0 0%
/var/run 1223088 32 1223056 0%
/tmp 1289904 66848 1223056 5%
/cache 124330 2416 121914 1%
/vol 0 0 0 0%
Real Memory 524288 447456 76832 85%
Swap Space 1420296 195192 1225104 13%
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsmcmd |
+-----------------------------+-----------------------------+
|Interface Stability |External |
+-----------------------------+-----------------------------+
EXIT STATUS
0
Successful completion.
1
A usage syntax error. A usage message is displayed. Also used for timeout errors.
2
An error occurred while executing the command. An error message is displayed.
SEE ALSO df(1M), snmpcmd(1M), snmp.conf(4), snmpd.conf(4), attributes(5)SunOS 5.10 20 Jan 2004 snmpdf(1M)