To save the bdf information on all mounted directories


 
Thread Tools Search this Thread
Operating Systems HP-UX To save the bdf information on all mounted directories
# 1  
Old 10-14-2008
To save the bdf information on all mounted directories

Hi,

I want to write a script to save all the bdf information (disk usage) on all mounted directories in a file. Then I want to compare saved bdf info to current system within 5%. Please help me on this. I am using HP-UX.

Actually there is data center move and I need to run the script before moving and again I need to run the script after moving to new place.
# 2  
Old 10-14-2008
Code:
# run on old machine
bdf > filetokeep
# new machine
bdf> nextfiletokeep

If you can explain what compare to 5% means, then we can help you with that.
# 3  
Old 10-14-2008
Quote:
If you can explain what compare to 5% means, then we can help you with that.
I think OP means acceptable diff percentage between new one and the old one Smilie
# 4  
Old 10-14-2008
yes. I mean acceptable diff percentage between new one and the old one
# 5  
Old 10-14-2008
yes. I mean acceptable diff percentage between new one and the old one

Quote:
Originally Posted by jim mcnamara
Code:
# run on old machine
bdf > filetokeep
# new machine
bdf> nextfiletokeep

If you can explain what compare to 5% means, then we can help you with that.
yes. I mean acceptable diff percentage between new one and the old one
# 6  
Old 10-15-2008
please help on this.

Quote:
Originally Posted by matrixmadhan
I think OP means acceptable diff percentage between new one and the old one Smilie

please help on this.
# 7  
Old 10-16-2008
To save the bdf information on all mounted directories

Hi,

I want to get the bdf information on all mounted directories in unix server.
Actually there is a data center move and I wanted to write a script to compare the bdf information before data center move and after data center move. If the differnece is 5% then I can ignore and if the differnce is more than 5% it should notify. Please suggest me on this.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Save value from output of Corestat and save in a list for each core

I am trying to modify the "corestat v1.1" code which is in Perl.The typical output of this code is below: Core Utilization CoreId %Usr %Sys %Total ------ ----- ----- ------ 5 4.91 0.01 4.92 6 0.06 ... (0 Replies)
Discussion started by: Zam_1234
0 Replies

2. HP-UX

Bdf in HP-UX

Hi guys, I have to make an output of several databases we've got running on our system with the command bdf. This has to be done every 3 months. I want to put it in an scriptfile and trigger it in crontab. In the output it must display the differences in diskspace between these three monts. Any... (3 Replies)
Discussion started by: djmental
3 Replies

3. Shell Programming and Scripting

search information in multiple files and save in new files

hi everyone, im stuck in here with shell :) can you help me?? i have a directory with alot files (genbank files ... all ended in .gbk ) more than 1000 for sure ... and i want to read each one of them and search for some information and if i found the right one i save in new file with new... (6 Replies)
Discussion started by: andreia
6 Replies

4. HP-UX

bdf hangs

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

5. UNIX for Dummies Questions & Answers

Shell Scripts - Show all directories with full information ( and no files)

Hello all, i'm stumped.... I need to list all directories with all there info and exclude the files, then vice versa. I am not sure if I need to string several ls commands together or how to even do that. I believe I need to do some variation of ls -l but need to figure out how to take out the... (5 Replies)
Discussion started by: citizencro
5 Replies

6. UNIX for Dummies Questions & Answers

Help with retreiving files' information stored in different directories.

Dear All, I have a question. I have similarly named files stored in different directories and I'd like to retreive information from them remotely to perform other tasks. For example given: Folder 5 has files S5_SK1.chr01 S5_SK1.chr02 ....... Folder 6 has files S6_SK1.chr01 ... (3 Replies)
Discussion started by: pawannoel
3 Replies

7. Shell Programming and Scripting

Bdf output

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

8. Shell Programming and Scripting

Run a bash script, display on the screen and save all information in a file including error info

Hi all, How to: Run a bash script, display on the screen and save all information in a file including error information. For example: I have a bash script called test.sh now I want to run the test.sh and display the output on the screen and save the output including error info to a file. ... (1 Reply)
Discussion started by: Damon sine
1 Replies

9. Shell Programming and Scripting

bdf error

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

10. UNIX for Advanced & Expert Users

bdf question

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
Login or Register to Ask a Question