Sponsored Content
Operating Systems HP-UX bdf , /etc/fstab , /etc/mnttab Post 302148384 by Perderabo on Saturday 1st of December 2007 11:03:52 AM
Old 12-01-2007
It occurred to me that a non-general solution is very easy. All you need is a control file with line numbers. You paste the control file on to the output from bdf, sort, then cut away the line numbers. I am not on an HP-UX system, so to demo this, first I need an ersatz bdf command.
Code:
$ export PATH=$PATH:.
$ cat bdf
#! /usr/bin/sed 1d
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3     524288  211800  310104   41% /
/dev/vg00/lvol1    1048576  792464  254216   76% /stand
/dev/vg00/lvol7    4194304 2111048 2066992   51% /var
/dev/vg00/lvol6    5275648 4324952  943312   82% /usr
/dev/vg00/lvolu3   30736384 3901997 25157825   13% /u03
/dev/vg00/lvolu2   27033600 21665312 5034033   81% /u02
/dev/vg00/lvolu1   20480000 16962500 3298935   84% /u01
/dev/vg00/lvol5     229376  103248  125280   45% /tmp
/dev/vg00/lvol4    4620288 3775088  838648   82% /opt
/dev/vg00/lvol8    1048576  141744  899856   14% /home
/dev/vg00/lvolu4   5144576 2148221 2809135   43% /u04
$
$
$
$ cat control
01
02
03
04
05
11
10
09
06
07
08
12
$
$
$
$ bdf
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3     524288  211800  310104   41% /
/dev/vg00/lvol1    1048576  792464  254216   76% /stand
/dev/vg00/lvol7    4194304 2111048 2066992   51% /var
/dev/vg00/lvol6    5275648 4324952  943312   82% /usr
/dev/vg00/lvolu3   30736384 3901997 25157825   13% /u03
/dev/vg00/lvolu2   27033600 21665312 5034033   81% /u02
/dev/vg00/lvolu1   20480000 16962500 3298935   84% /u01
/dev/vg00/lvol5     229376  103248  125280   45% /tmp
/dev/vg00/lvol4    4620288 3775088  838648   82% /opt
/dev/vg00/lvol8    1048576  141744  899856   14% /home
/dev/vg00/lvolu4   5144576 2148221 2809135   43% /u04
$
$
$
$ bdf | paste control - | sort -n | cut -f2
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3     524288  211800  310104   41% /
/dev/vg00/lvol1    1048576  792464  254216   76% /stand
/dev/vg00/lvol7    4194304 2111048 2066992   51% /var
/dev/vg00/lvol6    5275648 4324952  943312   82% /usr
/dev/vg00/lvol5     229376  103248  125280   45% /tmp
/dev/vg00/lvol4    4620288 3775088  838648   82% /opt
/dev/vg00/lvol8    1048576  141744  899856   14% /home
/dev/vg00/lvolu1   20480000 16962500 3298935   84% /u01
/dev/vg00/lvolu2   27033600 21665312 5034033   81% /u02
/dev/vg00/lvolu3   30736384 3901997 25157825   13% /u03
/dev/vg00/lvolu4   5144576 2148221 2809135   43% /u04
$

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

BDF test for > 90%

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. UNIX for Advanced & Expert Users

/etc/mnttab is zero length - I have done a silly thing

Being the clever-clogs that I am, I have managed to clobber the contents of /etc/mnttab. It started when I tried to unmount all the volumes in a prticular veritas disk group and neglected to include a suitable grep in my command line, thus attempting to unmount _all_ the filesystems on the... (7 Replies)
Discussion started by: Smiling Dragon
7 Replies

3. Linux

veritas hasf /etc/mnttab

Hi All, Where is now the /etc/mnttab if you are in veritas sfha for red hat es 4? Thanks in advance for any comments. (2 Replies)
Discussion started by: itik
2 Replies

4. UNIX for Dummies Questions & Answers

/etc/vfstab vs /etc/mnttab

what is the difference between the /etc/vfstab and /etc/mnttab? when i check both files, the content is almost the same. can you enlighten me? what i know is /etc/vfstab is used for hard mounts. (4 Replies)
Discussion started by: hrist
4 Replies

5. Solaris

My /etc/mnttab file is showing ro permission for /usr

Hi All, My current /usr utilization is 100%.As i don't have another harddisk i decided to delete some unnecessary files under /usr.But,while deleteing it is giving error "it is a readonly filesystem".I checked /etc/mnttab file it is showing the following entry /dev/lofi/1 /usr hsfs ... (3 Replies)
Discussion started by: navjotmannan
3 Replies

6. Solaris

what is the difference between /etc/mnttab and /etc/vfstab

what is the difference between /etc/mnttab and /etc/vfstab???? what are these files used for one time i removed mnttab file from my solaris box. infact i renamed it and my solaris box was not booting properly. (12 Replies)
Discussion started by: chidori
12 Replies

7. Solaris

MNTTAB and NFS questions

SunOS 5.10 Generic_142900-15 sun4u sparc SUNW,SPARC-Enterprise I have been asked to move all file from /CV to /EABATCH looking at our mnttab I see these two entries. wdcprodhome:/eabatch/EABATCH /EABATCH nfs nodevices,bg,intr,xattr,zone=cbp011,dev=5500010 1288539528 ... (0 Replies)
Discussion started by: Harleyrci
0 Replies

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

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. UNIX for Dummies Questions & Answers

/etc/mnttab empty UNIXware 7.1.3

Hi Guys New to this forum so apologies if posted in wrong place. Got a unixware 7.1.3 system (I know !). df -k produces no output which I believe is because /etc/mnttab is empty. Can /etc/mnttab be re-built ? Thanks (2 Replies)
Discussion started by: deel
2 Replies
ucs2any(1)						      General Commands Manual							ucs2any(1)

NAME
ucs2any - generate BDF fonts containing subsets of ISO 10646-1 codepoints SYNOPSIS
ucs2any [ +d | -d ] source-name { mapping-file registry-encoding } ... DESCRIPTION
ucs2any allows one to generate from an ISO 10646-1 encoded BDF font other BDF fonts in any possible encoding. This way, one can derive from a single ISO 10646-1 master font a whole set of 8-bit fonts in all ISO 8859 and various other encodings. OPTIONS
+d puts DEC VT100 graphics characters in the C0 range (default for upright, character-cell fonts). -d omits DEC VT100 graphics characters from the C0 range (default for all font types except upright, character-cell fonts). OPERANDS
source-name is the name of an ISO 10646-1 encoded BDF file. mapping-file is the name of a character set table like those at <ftp://ftp.unicode.org/Public/MAPPINGS/>. These files can also typically be found installed in the /usr/X11R6/lib/X11/fonts/util/ directory. registry-encoding are the CHARSET_REGISTRY and CHARSET_ENCODING field values for the font name (XLFD) of the target font, separated by a hyphen. Any number of mapping-file and registry-encoding operand pairs may be specified. EXAMPLE
The command ucs2any 6x13.bdf 8859-1.TXT iso8859-1 8859-2.TXT iso8859-2 will generate the files 6x13-iso8859-1.bdf and 6x13-iso8859-2.bdf. FUTURE DIRECTIONS
Hopefully a future release will have a facility similar to ucs2any built into the server, and reencode ISO 10646-1 on the fly, because storing the same fonts in many different encodings is clearly a waste of storage capacity. SEE ALSO
bdftruncate(1) AUTHOR
ucs2any was written by Markus Kuhn. Branden Robinson wrote this manual page, originally for the Debian Project. X Version 11 font-util 1.1.1 ucs2any(1)
All times are GMT -4. The time now is 07:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy