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)
Check Out this Related Man Page
statgrab(1) General Commands Manual statgrab(1)NAME
statgrab - sysctl-style interface to system statistics
SYNOPSIS
statgrab [OPTION]... [STAT]...
DESCRIPTION
statgrab provides a sysctl-style interface to all the system statistics available through libstatgrab. This is useful for applications that
don't want to make library calls, but still want to access the statistics.
An example of such an application is mrtg, for which scripts are provided to generate configuration files.
OPTIONS
The following options are supported.
-l Linux sysctl-style output (default)
-b BSD sysctl-style output
-m MRTG-compatible output
-u Plain output (only show values)
-n Display cumulative stats once (default)
-s Display stat differences repeatedly
-o Display stat differences once
-t DELAY
When repeating, wait DELAY seconds between updates (default 1)
-p Display CPU usage differences as percentages rather than absolute values
-f FACTOR
Display floating-point values as integers scaled by FACTOR
-K Display byte counts in kibibytes
-M Display byte counts in mebibytes
-G Display byte counts in gibibytes
If no STAT options are given, all will be displayed. Specify 'STAT.' to display all statistics starting with that prefix.
SEE ALSO statgrab-make-mrtg-config(1)statgrab-make-mrtg-index(1)saidar(1)statgrab(3)AUTHORS
This man page was derived from the man page written by Bartosz Fenski for the Debian GNU/Linux distribution.
WEBSITE
http://www.i-scream.org/libstatgrab/
i-scream $Date: 2005/04/25 12:37:22 $ statgrab(1)
Hello, everyone:
i encounter a problem these days , pls help me ,thanks in advance.
my env:
machine: ES40 A ES40 B
os: true64 Unix 4.0f
note: src.tar 8M network card speed 100M
my problem:
... (3 Replies)
I am using digital Unix and lpd. I have HP 4200n LaserJet TCP printer, but when I use lpr command, it always print duplex.
I can turn off duplex feature at the panel of the printer, but then other Windows computer cannot print duplex. How can I set up /etc/printcap file so that it will be... (2 Replies)
All,
I have a RedHat 9 box which I need to figure out how to get it to stay in full duplex mode after a reboot.
I have tried
ethtool -s eth0 speed 100 duplex full autoneg off
I have tried to add a line to the /etc/sysconfig/network-scripts/ifcfg-eth0 like this:
ETHTOOL_OPTS="speed... (4 Replies)
Hello everybody,
How can link network interface to the output of lspci -vv. Basicly i need to know who is the manufacturer of a specific interface, for example eth0 {Is it an Intel, or Broadcome, or something else}. Is there a way to find that out?
Thanx (5 Replies)
I have a TOSHIBA AS7000 B150 Sun Box
I wanted to run it with 100M/full duplex
I had added this to the /etc/system file to make to setting permenant So it would be set correctly on reboot.
set eri:eri_adv_100fdx_cap=1
set eri:eri_adv_100hdx_cap=0
set eri:eri_adv_autoneg_cap=0
But when I... (4 Replies)
How do I configure full duplex on suse 8.2
I tried
ethtool -s eth0 speed 100 duplex full autoneg off
the above works but when I reboot the machine the configure was lost.
How do I configure full duplex so that when the machine get rebooted the configuration will stay.
My interface... (4 Replies)
hai this is nagesh
when i was doing practical , i find some dought.
iam using solaris 9. how can i see the ethernet card speed , wheather it is halfduplex or full duplex.any body please help me (4 Replies)
:confused:hi all,
I run a virtual RedHat Linux 4.0 ES machine using VMWARE.I've allocated a RAM of 512Mb.Could you please provide suggestions/tips to get my machine to run faster..
Thanks in advance:) (4 Replies)
hi,
i have sunfire 280r sparc. i would like to know how to setup interface with command ndd line and put it in the file permanently.
my card is eri0 and speed can be 100mb or 1000mb full duplex.
thanks in advance. (3 Replies)
Hi,
I'm using ethtool to change network settings:
Just for the experiment, i want to change speed to 10, instead of 100,
I type:
ethtool -s eth0 speed 10 duplex full autoneg off
and to view settings i type:
ethtool eth0, and get this:
Settings for eth0:
Supported ports:
... (4 Replies)
Hi,
I would like to know how to change the speed of ethernet card in linux? as it is showing auto-neg using mii-tool -v eth0
and my requirement is 100mbps full duplex.
Regards,
Manoj (3 Replies)
I am able to use duplex printing with the -o duplex option. I am also printing landscape. It prints on the back of the page, however, I have to flip the page in order to see the other side right side up. Is there another option that will allow the duplex printing to print the right side up on front... (9 Replies)
Dear all,
Would you know how to measure the max speed of a WIFI connection between a router and a laptop for instance?
Many thanks for your help!
Regards, (3 Replies)