First I have an old HP-UX box(11.21) for which I need to implement file-system utilization monitoring. I choosed to use bdf and a simple for loop. However sometimes the output of bdf is as this one(this is actually form linux but the idea is the same)
My question is how can I extract only the value of Use%?
The loop is something like:
I tried awk print but since we have an line with one column less this didn`t work, I have also tried cut but I cannot find universal enough delimiter as the device might be named /dev/vx/ for example or HOST:SHARE.
Any help will be greatly appreciated since I am banging my head with this almost 3h.
p.s. The power of perl is also welcome
Last edited by click; 06-13-2012 at 08:16 AM..
Reason: Solved
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)
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)
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)
Hi All.
Using /usr/bin/ksh on a HP-UX B.11.23 ia64 system.
Executing the following ... ` bdf -t vfxs | grep "/" `
The output comes out like (in part) ...
/dev/vg00/lvol3 516096 229448 284480 45% /
/dev/vg00/lvol1 516096 211200 302560 41% /stand
/dev/vg00/lvol8 ... (5 Replies)
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)
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)
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)
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)
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
LEARN ABOUT DEBIAN
update-xfonts-traditional
UPDATE-XFONTS-TRADITIONAL(8) chiark utilities UPDATE-XFONTS-TRADITIONAL(8)NAME
update-xfonts-traditional - generate traditional ASCII fixed-with fonts
SYNOPSIS
update-xfonts-traditional --bdf-filter
update-xfonts-traditional --process-pcf in.pcf.gz out.pcf.gz
update-xfonts-traditional --process-fontdirs fontdir ...
update-xfonts-traditional --process-fonttrees fonttree ...
DESCRIPTION
update-xfonts-traditional generates versions of X11 PCF fonts which have been edited to restore compatibility with traditional versions of
US-ASCII, and to restore some of the glyphs to more traditional appearance.
MODES --bdf-filter
Takes a BDF on standard input and tries to generate an edited BDF on standard output.
--process-pcf
Takes to PCF filename arguments; the input PCF is uncompressed, decompiled to a BDF, processed, recompiled to a PCF and recom-
pressed.
--process-fontdirs
In each fontdir all files font.pcf.gz are processed, to generate where applicable corresponding trad--font.pcf.gz files. The mtime,
ctime and inode number of the input files are recorded so that reprocessing the same directory later will be fast.
--process-fonttrees
Each fonttree is searched for font directories which are processed as above.
--update
Each built in font tree location is searched for font directories which are processed as above.
OPTIONS
-R|--rules-path rulespath
Prepend rulespath to the path of directories from which to load glyph editing rules.
--share-dir share-dir
Use share-dir instead of /usr[/local]/share/xfonts-traditional.
--parallel|-j cpus
Use up to cpus cores for processing fonts. The default is all the cpus available.
--always-reprocess
When scanning font directories, always reprocess all the fonts, regardless of whether we think they have been done already.
--no-tolerate-bad-fonts
Treat bad input fonts (eg, ones for which pcf2bdf crashes, or ones with other problems) as a fatal error. Normally they just pro-
duce a warning.
FILES
xfonts-traditional.done
In each font directory, records information about processed fonts, so as to optimise away unnecessary reprocessing.
xfonts-traditional.log
In each font directory, records a lot of which fonts were processed and to a certain extent if not why not.
/usr/share/fonts/X11 /usr/local/share/fonts/X11
Default font tree paths for --update.
trad--font.pcf.gz
In any font directory, our output files. Any other files matching this pattern may be overwritten or deleted.
EXIT STATUS
0 All went well and there were no warnings.
2 With --bdf-filter and --process-pcf only, indicates that the input font did not need to be edited, or was not suitable for editing,
and has not been written out, so the output is incomplete, but this is not an error.
any other
There were problems.
BUGS
Only the 6x13 font conventionally called supported. This package comes too late to rescue Unix from an incompatible change to its charac-
ter set.
Greenend 2012 UPDATE-XFONTS-TRADITIONAL(8)