01-10-2007
With tools like this, the errors tend to occur on the first output line and once in a blue moon otherwise. You might want to consider deleting these lines rather than making something up.
These tools read kernel counters, each second or so. They subtract the current value from the previous value to see what happened during the past second. But the first time, the previous counters are all zero, so the first line is often silly. Sometimes a counter wraps around back to zero also producing garbage results, although a very smart tool could actually cope with that.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a file with three fields, where the first two fields are of fixed length, left justified, and right padded with spaces. The third field is truncated to the length of the data (max length 5), and possibly contains a single letter. Each field is separated by an additional space. How can I... (1 Reply)
Discussion started by: Duckman
1 Replies
2. UNIX for Dummies Questions & Answers
Hi there I'am new here and could use some help. I probably haven't used the correct terms but have tried my best.
I work for a newspaper who run a database for their classifieds.
All the adds are input on an atex system and then each day dumped into three files. (*.eps *.srt *.prn)
I'am trying... (1 Reply)
Discussion started by: StiCKmaN
1 Replies
3. Shell Programming and Scripting
num desc ind code
11 hi,feather y food
121 edible,oil y food
100 meal-pack y food
010 health,prod
120 ... (5 Replies)
Discussion started by: thumsup9
5 Replies
4. Shell Programming and Scripting
Hi, was hoping someone may be able to help me with a script solution to move one line to another line from my log file:
My log file currently looks like this:
01:21:12:383 Request
01:21:12:639 Response
01:21:12:386 Request
01:21:12:639 Response
01:21:12:389 Request
01:21:12:640 Response... (8 Replies)
Discussion started by: jimbobla
8 Replies
5. Shell Programming and Scripting
Hi ! I'm working into my first bash script to make some xml modification and it's going to make me crazy lol .. so I decide to try into this forum to take some ideas from people that really know about this!
This is my situation I've and xml file with a lots of positional values with another tags... (9 Replies)
Discussion started by: juampal
9 Replies
6. Programming
Hi, I want to read a file from the command line and remove all the spaces, tabs in it, replacing it with comma(,), and write it to a new file. can you help me out with this scenario. (1 Reply)
Discussion started by: sudhanshu12788
1 Replies
7. Shell Programming and Scripting
Hi,
I thought I am getting pretty good with sed and awk, but now I dont have a way out of this question.
I have a table 0.5 16
1.3 14
0.25 15
0.85 16
I want to make a column 3 which contains values that are (corresponding $2 value/sum of all $2).
Please help me out here.
Thanks. (6 Replies)
Discussion started by: jamie_123
6 Replies
8. Shell Programming and Scripting
Below am trying to separate FA-7A:1, In output file it should display 7A 1
Command am using
Gives same output as below format:
22B7 10000000c9720873 0
22B7 10000000c95d5d8b 0
22BB 10000000c97843a2 0
22BB 10000000c975adbd 0
Not showing FA ports as required format... (5 Replies)
Discussion started by: aix_admin_007
5 Replies
9. UNIX for Dummies Questions & Answers
Hi,
After looking at the differents post on this forum, I am convinced that I will benefit from the experience of advanced Unix user on some script I have already done for an aeronautical study. Here is one of them :
Step 1 :
sed -e "s/??/00/g" Base_Awk.txt > Awk_Cut_00.txt4;
sed... (11 Replies)
Discussion started by: Marc_Camoc
11 Replies
10. Shell Programming and Scripting
Hi All
I am having a file as shown below
File1#
modyle 1 {
test jsj
hhsjh 13e3
jsjjs
}
memP(dbg_trace) {
ajjs
jsjs
jsjs
Test(claer) {
jsjs (7 Replies)
Discussion started by: kshitij
7 Replies
vzubc(8) Containers vzubc(8)
NAME
vzubc - show User Beancounters in a human-readable format
SYNOPSIS
vzubc [option ...] [CTID ...]
DESCRIPTION
This utility aims to show current values for User Beancounter in a human-readable format. Values that are in pages are converted into
bytes, then long values are converted into kilo-, mega- gigabytes etc. For held and maxheld, it shows how close the values are to the bar-
rier and to the limit. Zero and unlimited values are shown as -.
One or several CTIDs can be specified to limit the output to the given containers. Each CTID can be either a name or a numeric ID. Note
that names can only be used if there is a container on the system with that name (vzlist -o ctid name command is used for name to ID con-
version). Unknown CTIDs are ignored.
The utility can also be used from inside the container, in this case it only shows the values for that container (and it doesn't make sense
to specify CTID argument).
OPTIONS
-w, --watch
Watch mode: run itself under watch(1), redisplaying the output every 2 seconds (by default) until interrupted by Ctrl-C.
-wd Make watch(1) highlight the differences between current and previous output (corresponds to watch -d option).
-wn time
Refresh interval for watch(1), in seconds (corresponds to watch -n time).
-q, --quiet
Quiet mode. In this mode, vzubc only shows beancounters with fails and those with held/maxheld values close to limits.
-qh ratio
Quiet threshold for held to limit ratio. Default is 0.5 (50%).
-qm ratio
Quiet threshold for maxheld to limit ratio. Default is 0.8 (80%).
-r, --relative
Relative mode: for fail counters, instead of showing the absolute value, calculate the difference from the previous run. This mode
is denoted by a + sign before the FAIL column header.
-rd dir
Set a directory for saving fail counters to dir (default is /tmp/vzubc.store).
-rc Clear all saved fail counter data.
-i, --incremental
Incremental mode. Shows an additional column with a difference in held value from the previous run. This option also affects quiet
mode: all lines with changed held values are shown. Held data is saved to the same directory as fail counter data.
-id dir
A synonym for -rd.
-ic Clear all saved held data.
-c, --color
Enable color highlighting. Not compatible with --watch. Same thresholds as for quiet mode are used to highlight "more important"
lines, plus the lines with non-zero fail counters are highlighted.
-f | --file filename
Read User Beancounters from filename. By default this is /proc/bc/resources or, if that one is not available, /proc/user_beancoun-
ters. Use - to read from standard input.
EXAMPLES
vzubc 101 web dns
Show all beancounters for CTID 101 and for CTs named web and dns.
vzubc -w -wd -wn 10 101
Display beancounters for CT 101 every 10 seconds, highlighting the changes. Interrupt with Control-C.
vzubc -q -c
Show beancounters with held or maxheld close to limits, plus those with non-zero fail counters, with colors.
vzubc -q -qh 0.8 -qm 1
Show beancounters with held value equal to or more than 80% of a limit, and/or with maxheld value equal or more than a limit, plus
those with non-zero fail counters.
vzubc -w -q -r
Display beancounters with held and maxheld close to limits, plus those with increasing fail counters.
vzubc -r -q -qh 2 -qm 2
Only show beancounters with increased (since the last run) fail counters.
vzubc -rc -ic
Show all beancounters, and clear all saved data for relative and incremental mode (i.e. saved values for fail counter and held).
FILES
/proc/bc/resources
/proc/user_beancounters
/tmp/vzubc.store/ubc.*
EXIT STATUS
Returns 0 upon successful execution, 1 otherwise.
SEE ALSO
watch(1), vzlist(8), vzmemcheck(8), vzcfgvalidate(8), http://wiki.openvz.org/UBC.
LICENSE
Copyright (C) 2011, Parallels, Inc. Licensed under GNU GPL.
OpenVZ 3 Jun 2011 vzubc(8)