1833781 Members
2202 Online
110063 Solutions
New Discussion

the command of bdf

 
zhqiang
Occasional Advisor

the command of bdf

when i use the command of bdf,
i get the result of
'
> bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 409600 409600 0 100% /
/dev/vg00/lvol1 311296 178264 132032 57% /stand
/dev/vg00/lvol8 4718592 1413168 3288424 30% /var
/dev/vg00/lvol7 4505600 2596752 1893944 58% /usr
/dev/vg00/lvol4 1048576 121264 920784 12% /tmp
/dev/vg00/oracle 10240000 6859251 3169798 68% /oracle
/dev/vg00/lvol6 3555328 2185928 1358968 62% /opt
/dev/vg00/lvol5 32768 8968 23672 27% /home
/dev/vg00/lvdata 16384000 10925178 5118721 68% /data
/dev/vgoradata/lvoradata
40960000 4689800 34003378 12% /oradata
/dev/vgcimdata/lvcimdata
81920000 15872442 61919650 20% /cimdata
/dev/vgdata/lvdata 40960000 612966 37829997 2% /data/users/osa/adm
'
how can i get all the information of one device in a line?
6 REPLIES 6
zhqiang
Occasional Advisor

Re: the command of bdf

for example,the result of
'/dev/vgoradata/lvoradata
40960000 4689800 34003378 12% /oradata
/dev/vgcimdata/lvcimdata
81920000 15872442 61919650 20% /cimdata
' is not what i want to get.

Re: the command of bdf

Get Bill's bdfmegs script from here:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1124262

Look near the bottom for the latest version.

HTH

Duncna

I am an HPE Employee
Accept or Kudo
zhqiang
Occasional Advisor

Re: the command of bdf

Bill's bdfmegs script is good,but I don't be allowed to install it on the customer's machine.How can i do it?

Re: the command of bdf

Then just use the bit of code that checks for multi-line bdf output in your own code:

bdf | while read FS TOT USED AVAIL PERCENT MNT
do
if [ $FS != "Filesystem" ]
then
if [ "$TOT" = "" ]
then
read TOT USED AVAIL PERCENT MNT
fi
echo $FS $TOT $USED $AVAIL $PERCENT $MNT
fi
done

No doubt someone will post a shorter way orf acheiving this...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Johnson Punniyalingam
Honored Contributor

Re: the command of bdf

Hi,

you no need to Install .. ,

down the file , and copy to your "HOME DIR"

or /tmp folder of test Server @ Custumer place , you should have given atleast login access for login "directory" you can just copy that file and try running IT,

other wise you need creat by yourself .. :)

# cd /tmp

# ./bdfmegs

Thanks,
Johnson



Problems are common to all, but attitude makes the difference
Suraj K Sankari
Honored Contributor

Re: the command of bdf

Hi,

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1124262
or download the Bill's nice script

or

bdf|awk '{ if (NF == 1) { a=$0;getline;print a $0} else print $0}'

Suraj