06-01-2016
Dear RudiC,
Thanks for pointing out the possibilities in quick time.
The script works fine now with only one change:
Instead of NF==2, I used NF==3 and now am able to print both cpu statistics as well as Device statistics
Best Regards,
Gopi
10 More Discussions You Might Find Interesting
1. Solaris
Hi all, hope you are having a nice day, its nice and warm today in Canberra Australia.
iostat -e / -E reports soft and hard errors. Any idea what these are exactly? All I hear are I/O's failing and needing to retry, but no cause as to why they fail.
My SUN guru tells me its our EMC SAN... (1 Reply)
Discussion started by: scottman
1 Replies
2. UNIX for Advanced & Expert Users
Hi all,
i have run iostat -em, and get below result. Can i know what is this output meaning, and how to fix that problem.
iostat -em
---- errors ---
device s/w h/w trn tot
sd7 0 1 0 1
sd8 1 1 0 2
sd9 0 1 0 1
sd10 0 ... (2 Replies)
Discussion started by: foongkt5220
2 Replies
3. Shell Programming and Scripting
So I use Cacti for monitoring IO statistics on my servers, now originally I couldnt monitor Multipath deviced servers as they have alot of /dev/sdxx and /dev/emcpowerxx, I have devised a method of trimming them down to just the actual devices but the issue is the output looks like so.
# iostat... (0 Replies)
Discussion started by: RiSk
0 Replies
4. Shell Programming and Scripting
Friends,
Need some help.
On linux i have to run iostat command and in each iteration have to print the greatest value in each column.
e.g
iostat -dt -kx 2 2 | awk ' !/sd/ &&!/%util/ && !/Time/ && !/Linux/ {print $12}'
4.38
0.00
0.00
0.00
WHhat i would like to... (15 Replies)
Discussion started by: achak01
15 Replies
5. Shell Programming and Scripting
Hello,
I used the following script to conect to cisco router:
#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Long;
use Opsware::NAS::Connect;
my($host, $port, $user, $pass) = ('localhost','$tc_proxy_telnet_port$','$tc_user_username$','$tc_user_password$');
my $device =... (5 Replies)
Discussion started by: ahmed_zaher
5 Replies
6. Filesystems, Disks and Memory
Hi Guys,
I've been having some arguments with my colleagues about one thing. Always my thought was that as as far as disk performance is concern by looking at the output of the iostat command (AIX) you would be able to identify if you have a hot disk and then by moving some files out that disk... (3 Replies)
Discussion started by: arizah
3 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I need help on the following req.
I am getting output of a command as follows:
16377612 total memory
3802460 used memory
2827076 active memory
681948 inactive memory
12575152 free memory
477452 buffer memory
I want to compute used... (1 Reply)
Discussion started by: mailsara
1 Replies
8. Solaris
My scheduled collection of statistics is giving very large output because of an high number of ssd device not associated to any disk
The iostat -x command is collecting statistics from them and the output is very large.
I.g.
if a run
iostat -x|tail +3|awk '{print $1}'>f0.txt.$$
iostat... (5 Replies)
Discussion started by: sun-mik
5 Replies
9. Solaris
Noticed that asvc_t values in iostat command outputs are mostly more than 100 in our previous iostat analysis.
Also found the following detail from an alternate site IO Bottleneck - Disk performance issue - UnixArena
----
1. asvc_t average service time of active transactions, in... (2 Replies)
Discussion started by: saraperu
2 Replies
10. Shell Programming and Scripting
Hi,
I have a requirement where parsed output from various linux commands like top, netstat, iostat, etc. will be the input for one javascript with the parsed output from these commands converted to JSON format
For "iostat" command, since there are two outputs - one w.r.t CPU utilization and... (2 Replies)
Discussion started by: gopivallabha
2 Replies
LEARN ABOUT HPUX
mailstats
mailstats(1) General Commands Manual mailstats(1)
NAME
mailstats - print mail traffic statistics
SYNOPSIS
cffile] stfile]
DESCRIPTION
reads and interprets the statistics file, and then prints out the mail traffic statistics. The statistics file is the one set by the
option in the The default statistics file is If the statistics file exists, collects statistics about your mail traffic and stores them in
that file. This file does not grow.
Statistics are gathered on a per-mailer basis for each mailer defined in the configuration file. Statistics are kept on the number of mes-
sages and the number of bytes for all inbound and outbound traffic.
The utility displays the time at which statistics collection was started on the first line. Then, the statistics of each mailer is dis-
played on a single line, each with the following white space separated fields (see the "EXAMPLES" section below):
The mailer number.
Number of messages from the mailer.
Kbytes from the mailer.
Number of messages to the mailer.
Kbytes to the mailer.
Number of messages rejected.
Number of messages discarded.
The name of the mailer.
After this display, a line totaling the values for all of the mailers is displayed, separated from the previous information by a line con-
taining only equals (``='') characters.
Note
can be used by privileged users only.
Options
The options are as follows:
Read the specified
cffile instead of the default file.
Read the specified statistics file,
stfile, instead of the statistics file specified in the file.
Do not display the name of the mailer in the output.
Output information in program-readable mode and clear statistics.
To clear the statistics file, execute, as root:
RETURN VALUE
The utility exits with 0 on success, and >0 if an error occurs.
DIAGNOSTICS
generates error messages if the statistics file is not accessible or if the size of the statistics file has changed. Error messages are:
Either statistics-file is zero length, meaning that no mail has been transferred since it was cleared out, or its size has changed.
Since the size of this file is supposed to remain constant, any change in size means that the file is invalid.
The statistics file does not exist.
The statistics file's permissions are set so that you cannot read it.
EXAMPLES
Here is a typical example of output:
=============================================================
This example shows that mailers 0, 3 and 5 have handled the given amounts of mail traffic since Thursday, Jul 11th. Specifically, has sent
11 messages containing 11 kilobytes via mailer esmtp (M 5), but has 4 messages rejected via mailer esmtp (M 5).
AUTHOR
was developed by the University of California, Berkeley.
FILES
default mail traffic statistics file
sendmail configuration file
SEE ALSO
sendmail(1M).
mailstats(1)