Sponsored Content
Operating Systems AIX AIX Monitoring Tool - under preparing Post 302416223 by wfavorite on Sunday 25th of April 2010 04:50:54 PM
Old 04-25-2010
I, like many of the other replies, am not fully understanding what you are trying to do here. This data is available via existing tools.

But... if you are interested in rolling your own* you can write against the PerfStat API. Virtually all the performance stats on AIX come from this source. It is really easy to write against and the documentation on InfoCenter should be sufficient for anyone who can read/write C.

[* Insert disclaimer here: "Those who do not know of a Unix utility are destined to re-write it, badly."]

There is some sample source for the (netinterface portion of) LibPerfStat API here:

ifstat

(See a link to the source at the very bottom of the page)

The page also includes some commentary on syntax problems in the AIX supplied header files for LibPerfStat as encountered with GCC.
 

10 More Discussions You Might Find Interesting

1. IP Networking

squid monitoring tool

hello everybody how are u all. this is mine first post on such a great and big forum. and probably in a wrong section :confused: i need to know about any squid monitoring tool for *.nix. i will be very greatful for ur reply. (2 Replies)
Discussion started by: usman156
2 Replies

2. UNIX for Dummies Questions & Answers

Monitoring Tool

Hi guys, I have 8 Tru64 machines here and i want to monitor them. What open source tool i can use? Like i want to monitor the hard disk space,memory,connectivity etc. Before im using Nagios, is this applicable to UNIX? tnx. jeff (1 Reply)
Discussion started by: jefferson
1 Replies

3. AIX

AIX and monitoring tool "SMARTS"

Has anyone here had experience with a product called "SMARTS" from EMC? I am told by the SMARTS admin that he is having trouble gathering SNMP info from these AIX boxes (which are running AIX 5.3.8), because AIX uses SNMPv3 by default. We had to switch it to SNMPv1 just to get SMARTS to... (0 Replies)
Discussion started by: Kent Stevens
0 Replies

4. Infrastructure Monitoring

Unix Monitoring tool

Hi all, Please let me know the most using, perfect unix monitoring tool and the link for downloading the tool. It should have network server monitoring on all aspect(working users, memory usage, working services, disk space etc). Thanks Rath (3 Replies)
Discussion started by: ratheeshp
3 Replies

5. Solaris

Network monitoring tool for Solaris 10

Hi All, I was wondering if there is any Network Monitoring Tool for Solaris 10 to monitor a network having hybrid operating systems. I just googled it without success. Hope, experts will guide me to get it. Thanks, Deepak (0 Replies)
Discussion started by: naw_deepak
0 Replies

6. Infrastructure Monitoring

Network monitoring tool for Solaris 10

Hi All, I was wondering if there is any Network Monitoring Tool for Solaris 10 to monitor a network having hybrid operating systems. I just googled it without success. Hope, experts will guide me to get it. Thanks, Deepak (7 Replies)
Discussion started by: naw_deepak
7 Replies

7. Red Hat

Linux network monitoring tool

Hello, Please let me know the best and descriptive network monitoring tools available for a linux enviornment. (3 Replies)
Discussion started by: mitchnelson
3 Replies

8. Infrastructure Monitoring

what is the best free monitoring tool?

hello everybody, please could you tell me what is the best monitoring tool "Free" to monitoring sun servers in my DC. BR, (1 Reply)
Discussion started by: maxim42
1 Replies

9. AIX

Is nagios monitoring tool supported on AIX 7.1 ?

Hi, is any one using nagios monitoring solution on AIX ? if yes, is it supported on AIX 7.1 TL 03 as well ? I tried to search online and unix.com , could not find it. Thank you (5 Replies)
Discussion started by: aaron8667
5 Replies

10. UNIX for Advanced & Expert Users

Suggestion for System Monitoring Tool

We have AIX and RHEL. Need suggestion for system monitoring tool for AIX and RHEL. Free or paid is fine as I would like to compare. Thank you (3 Replies)
Discussion started by: kiasu
3 Replies
IFSTAT(1)                                                        System Utilities                                                        IFSTAT(1)

NAME
ifstat - Report InterFace STATistics SYNOPSIS
ifstat [-a] [-l] [-z] [-n] [-v] [-h] [-t] [-i if0,if1,...] [-d drv[:opt]] [-s [comm@][#]host[/nn]] [-T] [-A] [-w] [-W] [-S] [-b] [-q] [delay[/delay] [count]] DESCRIPTION
Ifstat is a little tool to report interface activity, just like iostat/vmstat do for other system statistics. OPTIONS
ifstat accepts the following options: -l Enables monitoring of loopback interfaces for which statistics are available. By default, ifstat monitors all non-loopback interfaces that are up. -a Enables monitoring of all interfaces found for which statistics are available. -z Hides interface which counters are null, eg interfaces that are up but not used. -i Specifies the list of interfaces to monitor, separated by commas (if an interface name has a comma, it can be escaped with ''). Multi- ple instances of the options are added together. -s Equivalent to -d snmp:[comm@][#]host[/nn]] to poll a remote host through SNMP. See below for details. -h Displays a short help message. -n Turns off displaying the header periodically. -t Adds a timestamp at the beginning of each line. -T Reports total bandwith for all monitored interfaces. -A Disables use of interface indexes: by default, when polling mechanism is index based (snmp, ifmib), ifstat remembers indexes of moni- tored interfaces to poll only them. However, if interfaces indexes change often (new interfaces added, etc), you might loose some stats, hence this flag. Note that if you ask ifstat to monitor a non existent interface, it will poll all interfaces until it finds the requested one (regardless of this flag) so you can poll for an interface that goes up and down. -w Uses fixed width columns, instead of enlarging them if needed for interfaces names to fit. -W Wrap lines that are larger than the terminal width (implies -w). Wrapped lines are prefixed with a cycling letter to ease reading. -S Keep stats updated on the same line if possible (no scrolling nor wrapping). -b Reports bandwith in kbits/sec instead of kbytes/sec. -q Quiet mode, warnings are not printed. -v Displays version and the compiled-in drivers. -d Specifies a driver to use to gather stats and an eventual option for this driver separated of the driver name by a colon. If this is not specified, ifstat uses the first driver compiled in, with no options. The following drivers are available (depending on the operating system and compile-time options, not all of them might be present): proc This driver gets statistics from Linux's /proc/net/dev file. An alternate file name to get stats from can be passed as the option. ifmib This driver gets statistics from FreeBSD's ifmib sysctl. It doesn't accept any options. kstat This driver gets statistics from Solaris kstat interface. It doesn't accept any options. ifdata This driver gets statistics using SIOCGIFDATA ioctl under IRIX and OpenBSD (different semantics). It doesn't accept any options. route This driver gets statistics using routing sysctl on BSD based systems. It doesn't accept any options. kvm This driver gets statistics by reading the kernel live structures. It accepts an option specifying which files/devices to use in the following format : [execfile][,[corefile][,swapfile]] (see kvm_open(3) for details on those fields). If a null string is passed for a parameter, the system default will be used for it. Note that for this driver to work, ifstat needs to have read access to the system memory device. This is usually done by running it as root, or by installing setgid mem or kmem. ifstat will NOT install setgid by default; It is up to you to decide if you trust it. dlpi This driver gets statistics using the DLPI streams interface available on HP-UX. An alternate device to query statistics from can be passed as the option (default is /dev/dlpi). win32 This driver gets statistics using the GetIfTable interface available on Win32 systems. It doesn't accept any options. snmp This driver gets statistics through SNMP. The option, in the form [comm@][#]host[/nn]], specifies the host and eventual community to poll. Default community is public, but can be changed by prepending "comm@" to the hostname. If host starts by a #, interface names are generated from their index as `ifNN' (this is a workaround for some equipments that give all interfaces the same descrip- tion). Default host is localhost, and this will be used by default if snmp is the only available driver. The driver will try to poll several interfaces at once by grouping requests in SNMP packets. By default interfaces will be polled by group of 8. If this doesn't work well with your equipments, you can lower that number by suffixing the hostname with /nn, where nn is the number of interfaces to poll at once. You can also increase the number if you want to poll a large number of interfaces efficiently and if your server supports it. delay delay is the delay between updates in seconds, which defaults to 1. A decimal number can be specified for intervals shorter than a second. (minimum 0.1) A second delay can also be specified (separated from the first one by a '/'). In that case the first delay will be used for the first poll after start and the second one will be used for all following polls (This can be used to have a "fast" start when running for a long while with a big delay). count count is the number of updates before stopping. If not specified, it is unlimited. SEE ALSO
vmstat(1), iostat(1) AUTHOR
Gael Roualland, <gael.roualland@dial.oleane.com> ifstat 1.1 2003-11-22 IFSTAT(1)
All times are GMT -4. The time now is 03:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy