01-07-2013
Thx!
Is there a way to calculate the differences between this? I mean with a script.
Last edited by djmental; 01-09-2013 at 04:58 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to write a script that will allow me to do a bdf then do a test for a percentage that is 90% or greater. If the test is true then i want to send a message to myself and one other person.
Any suggestions ? ? ?
Thanks.
....svp (6 Replies)
Discussion started by: svp4444
6 Replies
2. HP-UX
I've recently had some space problems on one of our old HP9000 machines. I archived/moved/compressed/trashed some stuff to free up some space on one rather large (and important) logical volume.
As one would expect, when `df -b` is executed some space is shown as free:
/opt ... (2 Replies)
Discussion started by: sam_pointer
2 Replies
3. Shell Programming and Scripting
Hi,
I have written a funtion which taken bdf output and put's in a file.
The idea is to grep a areas which greater then 80% and echo the same on the system. However the script I have written fails with the error :-
+ awk $0 !~ /^F/
+ awk {print $5"\t" $6}
+ sed s/%//
+ 1> /tmp/bdflist}... (3 Replies)
Discussion started by: kpatel786
3 Replies
4. UNIX for Advanced & Expert Users
Hi all
i am working on script which uses "bdf" output to create excel sheet now when i check "Total" "Used" & "Available" i found that except root everywhere
used + available != total
here is example :
part from bdf output :
filesystem-total-used-available-%used-Mounted on
... (4 Replies)
Discussion started by: zedex
4 Replies
5. Shell Programming and Scripting
I have this line in a sh script:
bdf | grep /var/opt/vgdb | tr -s " " | cut -f4,6 -d" " | awk '{print $2" "$1}' > vgdb_free_space.txt
if I run that line in the shell it works fine
but when I ran the script got this error:
add_database_files.sh: line 83: bdf: command not found
also I tried... (4 Replies)
Discussion started by: C|KiLLeR|S
4 Replies
6. Shell Programming and Scripting
Here is my bdf output
#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2097152 217112 1865424 10% /
/dev/vg00/lvol1 1835008 329040 1494288 18% /stand
/dev/vg00/lvol7 10485760 7864080 2601240 75% /var
/dev/vg00/lvol8 8454144 486597 7469647 ... (5 Replies)
Discussion started by: indrajit_renu
5 Replies
7. Shell Programming and Scripting
Hello people.
First of all I googled my problem and even found answers in this forum. Unfortunatelly my problem is not solved.
When the lenght of the filesystem is too big the output of bdf wraps into another line. e.g.:
Filesystem kbytes used avail %used Mounted on... (5 Replies)
Discussion started by: drbiloukos
5 Replies
8. Shell Programming and Scripting
Hi,
I'm trying to use an old script I found of the internet a while back, I forget where its from. Its supposed to convert the bdf function and display filesystem size in MB's and line it up however it never worked...
Here is the error:
And here is the code:
#!/usr/bin/sh
echo... (3 Replies)
Discussion started by: zixzix01
3 Replies
9. Shell Programming and Scripting
I have another script which I found also on the net.
I keep getting an error:confused::
Here is the script for it:
{/usr/bin/bdf -l |awk '$0 !~ /^F/' |awk '{print $5"\t" $6}'| sed 's/'%'//' >/tmp/b
dflist}
panic ()
{while read percent dir; do
if ]
then ... (16 Replies)
Discussion started by: zixzix01
16 Replies
10. HP-UX
hi,
bdf command hangs but before it, it lists all the fstab content, so i cannot find the reason...
could anybody give me any clue??
thanks a lot for your attention.
regards
Pablo
i attach syslog
Jan 14 16:30:00 sv23 vmunix: hp_dlpi_wput:Received an unrecognized primitive: 101d... (7 Replies)
Discussion started by: pabloli150
7 Replies
bdf(1M) bdf(1M)
NAME
bdf - report number of free disk blocks (Berkeley version)
SYNOPSIS
type [filesystem|file] ... ]
DESCRIPTION
The command displays the amount of free disk space available either on the specified filesystem for example) or on the file system in which
the specified file (such as is contained. If no file system is specified, the free space on all of the normally mounted file systems is
printed. The reported numbers are in kilobytes.
Options
The command recognizes the following options:
Display information regarding file system swapping.
Report the number of used and free inodes.
Display information for local file systems only (for example,
HFS and CDFS file systems).
Do not sync the file system data on the disk before reporting the usage.
Note that the data reported by may not be up to date.
Report on the file systems of a given
type (for example, or
RETURN VALUE
The command returns 0 on success (able to get status on all file systems), or returns 1 on failure (unable to get status on one or more
file systems).
WARNINGS
If file system names are too long, the output for a given entry is displayed on two lines.
The command does not account for any disk space reserved for swap space, or used for the HFS boot block (8 KB, 1 per file system), HFS
superblocks (8 KB each, 1 per disk cylinder), HFS cylinder group blocks (1 KB - 8 KB each, 1 per cylinder group), and inodes (currently 128
bytes reserved for each inode). Non-HFS file systems may have other items not accounted for by this command.
AUTHOR
was developed by the University of California, Berkeley.
FILES
Static information about the file systems.
Mounted file system table.
File system devices.
SEE ALSO
df(1M), fstab(4), mnttab(4).
bdf(1M)