libstatgrab 0.16 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News libstatgrab 0.16 (Default branch)
# 1  
Old 03-18-2008
libstatgrab 0.16 (Default branch)

ImageThe libstatgrab library provides an easy-to-useinterface for accessing system statistics andinformation. Available statistics include CPU,Load, Memory, Swap, Disk I/O, and Network I/O. Itwas developed to work on Linux, FreeBSD, andSolaris. The package also includes two tools:saidar provides a curses-based interface forviewing live system statistics, and statgrab is asysctl-like interface to the statistics.License: GNU Lesser General Public License (LGPL)Changes:
Building on Solaris and the Debian "armel" port was fixed. Support for FreeBSD 8 was added and minor problems were fixed.Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
sg_get_network_iface_stats(3)				     Library Functions Manual				     sg_get_network_iface_stats(3)

NAME
sg_get_network_iface_stats - get network interface statistics SYNOPSIS
#include <statgrab.h> sg_network_iface_stats *sg_get_network_iface_stats(int *entries); DESCRIPTION
The sg_get_network_iface_stats function takes a pointer to an int, entries, which is filled with the number of network interfaces the machine has. This is needed to know how many sg_network_iface_stats structures have been returned. A pointer is returned to the first sg_network_iface_stats. sg_get_network_iface_stats returns statistics about the network interfaces in the machine. Specifically, it returns the speed of the inter- face, the duplex state, and whether it is currently up. RETURN VALUES
The sg_get_network_iface_stats returns a pointer to a structure of type sg_network_iface_stats. typedef enum{ SG_IFACE_DUPLEX_FULL, SG_IFACE_DUPLEX_HALF, SG_IFACE_DUPLEX_UNKNOWN }sg_iface_duplex; Note: The SG_IFACE_DUPLEX_UNKNOWN value could mean that duplex hasn't been negotiated yet. typedef struct{ char *interface_name; int speed; sg_iface_duplex duplex; int up; }sg_network_iface_stats; interface_name The name known to the operating system. (eg. on linux it might be eth0) speed The speed of the interface, in megabits/sec. duplex The duplex state the interface is in. See sg_iface_duplex for permitted values. up Whether the interface is up. SEE ALSO
statgrab(3) WEBSITE
http://www.i-scream.org/libstatgrab/ i-scream $Date: 2005/07/13 09:31:53 $ sg_get_network_iface_stats(3)