Sponsored Content
Operating Systems HP-UX To save the bdf information on all mounted directories Post 302248330 by jim mcnamara on Friday 17th of October 2008 10:06:42 AM
Old 10-17-2008
vbe is right - suppose the "old" filesystem was on a 50GB disk. New system is on a 100GB disk. Comparing free space on old vs free space on new makes no sense. So what are we trying to compare?

Are you worried you will lose files? If tar doesn't have errors you lost no files. If it does your new filesystem will have problems. And you will have to redo the operation. I really do not see what you are gaining by "5%" comparsion of anything. If you really want something useful try a checksum or a one-way hash on the "before" and the "after" datafiles, ignore the directories for now... if they match precisely, you won, if not you lose and have to try again.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
DUREP(1)						    Disk Usage Report Generator 						  DUREP(1)

NAME
durep - disk usage report generator SYNOPSIS
durep [OPTIONS]... [DIRECTORY] DESCRIPTION
durep creates disk usage reports with bar graphs, allowing one to easily deduce which directories are using the most space. Although durep can produce text output similar to du, its real power lies in the ability to store reports in a file, which can then be viewed as a web page with the supplied cgi script. OPTIONS
Options are grouped into three distinct sections. Text Output Options These options are for controlling the text report output. -td, --text-depth=N Limit text report on directories to depth N. No directories below this level will be shown in the report. -hs, --hide-size=N[bkmg] Do not display entries using N Bytes/KB/MB/GB or less (default Bytes). This is to reduce clutter in the reports. It allows you to remove small files from the text report. -sd, --show-date Display the modification date of the file or directory in the report. -ns, --nosort Do not sort results by size. Leaves results in the order in which they were scanned, which is highly dependent on the file system. -q, --quiet Do not produce text output. This stops the creation of a text report, and is useful when you are only interested in generating a save-file for use with the web report. File Options These options control load and save files. -sf, --save-file=FILE Save the results of the scan into this file. This can be loaded for a text report, but is generally used by the cgi script to display web reports. The filename should end in .ds (it is appended if it does not). -lf, --load-file=FILE Load the results of a scan from this file. This takes the place of scanning a directory. Inclusion options (described below) will not take effect if this option is used. -d, --desc=DESCRIPTION Give a description to be stored in the save-file. This is displayed on the web report summary page. -c, --collate==DIR Collate the save-files in the given directory. This creates a durep.cds file, which is used by the cgi script to manage and display save-files. See Web Reports section below for more detail. Inclusion Options These options control which directories and files should be included in the report. -f, --files Do not descend into sub-directories, only report files. -x, --one-file-system Do not traverse file systems. This is similar to the -x option for du, allowing easy checking of an entire file system such as /. -cp, --collapse-path=PATTERN Hide entries below paths that match PATTERN. This allows you to conceal the contents of certain directories in the report. You may wish perhaps to show home directories in a report but not show their content in which case you could use the option "-cp '/home'". -ep, --exclude-path=PATTERN Ignore paths that match PATTERN. This works in a similar manner to "-cp" above, except it excludes the directory from the scan itself. -cf, --coalesce-files==N[bkmg] Coalesces entries for files below the given size into one entry. This is useful for reducing clutter in reports. WEB REPORTS
Since version 0.9, durep no longer directly generates html files for its web reports. It now uses a cgi script that reads data from save- files. The script will handle multiple save-files, potentially from multiple hosts, so you can consolidate your reports into one place. Copying save-files from other hosts is left as an exercise for the reader. It is necessary to collate the save-files before viewing them via the cgi script. This process creates the file "durep.cds" which contains meta-data about all of the save-files. From this a summary page is shown where you can choose which report you wish to view. The collation must be done any time a save-file is added or overwritten. The cgi-script has some configurable variables at the top. These tell the script where to look for the css file and the graphic used for the bar graphs. There are also options to set whether the modification date, and/or the options used to create the save-file should be shown. These are both set to 1 by default. As always, you should take care when installing the cgi script. I've done my best, but I make no guarantees about its security. It would probably be unwise to allow this script to be accessed from the Internet at large. EXAMPLES
1. durep -td 2 This would print the directory tree starting from the current directory to depth 2. 2. durep -f /var/spool/mail This might be useful for keeping a check on the mail directory. The "-f" switch tells durep to just scan files and not descend into directories. 3. durep -x -cp "/(etc|usr/share)" -ep "/var" -sf /var/lib/durep/root.ds / This more complicated version does the following. It scans the root file system only, collapses the contents of any paths beginning /etc or /usr/share and skips the contents of the /var directory. It saves the output of this report into the file /var/lib/durep/root.ds. No text report is produced. 4. durep -lf /var/lib/durep/root.ds -hs 1m This reads the save-file /var/lib/durep/root.ds and produces a text report from it, hiding any files below 1 megabyte. 5. durep -c /var/lib/durep This collates any save-files in /var/lib/durep. SEE ALSO
du(1), perl(1) AUTHOR
Damian Kramer <psiren@hibernaculum.net> durep version 0.9 2012-05-12 DUREP(1)
All times are GMT -4. The time now is 10:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy