1Unix::Statgrab::sg_netwUosrekr_iCoo_nsttraitbsu(t3e)d PeUrnlixD:o:cSutmaetngtraatbi:o:nsg_network_io_stats(3)
2
3
4

NAME

6       Unix::Statgrab::sg_network_io_stats - container for libstatgrab network
7       I/O statistics
8

DESCRIPTION

10       "Unix::Statgrab::sg_network_io_stats" is a Perl package name providing
11       accessors to bundled libstatgrab sg_network_io_stats <http://www.i-
12       scream.org/libstatgrab/docs/sg_get_network_io_stats.3.html> network I/O
13       statistics.
14

METHODS

16   nentries
17       Returns the number of entries in the container.
18
19   systime
20       Returns the seconds since Epoch (0:00:00 on January, 1st 1970) of the
21       time measure the network I/O statistics.
22
23   as_list
24       Deprecated alias of "fetchall_hash"
25
26   fetchall_hash
27       Returns all records from sg_network_io_stats <http://www.i-
28       scream.org/libstatgrab/docs/sg_get_network_io_stats.3.html> container
29       as list of hash containing each datum name as key and the datum as
30       value.
31
32   fetchall_array
33       Returns all records from sg_network_io_stats <http://www.i-
34       scream.org/libstatgrab/docs/sg_get_network_io_stats.3.html> container
35       as list of arrays containing the values in following order:
36
37         (interface_name tx rx ipackets opackets ierrors oerrors collisions systime)
38
39       in that order without leading headline.
40
41   fetchall_table
42       Returns all records from sg_network_io_stats <http://www.i-
43       scream.org/libstatgrab/docs/sg_get_network_io_stats.3.html> container
44       as list of arrays containing the values in following order:
45
46         (interface_name tx rx ipackets opackets ierrors oerrors collisions systime)
47
48       in that order including leading headline.
49
50   fetchrow_arrayref($row = 0)
51       Returns one row as array containing values as above.
52
53   fetchall_arrayref
54       Returns all records from sg_network_io_stats <http://www.i-
55       scream.org/libstatgrab/docs/sg_get_network_io_stats.3.html> container
56       as array of arrays without header.
57
58   fetchrow_hashref($row = 0)
59       Returns one row as hash containing "{ interface_name =>
60       $self.interface_name($row), tx => ... }".
61
62   fetchall_hashref
63       Returns all records from sg_network_io_stats <http://www.i-
64       scream.org/libstatgrab/docs/sg_get_network_io_stats.3.html> container
65       as array of hashes.
66
67   colnames
68       Returns list of column names: "(interface_name tx rx ipackets opackets
69       ierrors oerrors collisions systime)"
70
71   interface_name
72       The name known to the operating system. (e.g. on linux it might be
73       eth0, on AIX en0 and on FreeBSD fxp0)
74
75   tx
76       The number of bytes transmitted.
77
78   rx
79       The number of bytes received.
80
81   ipackets
82       The number of packets received.
83
84   opackets
85       The number of packets transmitted.
86
87   ierrors
88       The number of receive errors.
89
90   oerrors
91       The number of transmit errors.
92
93   collisions
94       The number of collisions.
95
96   get_network_io_stats_diff
97       Provides the difference between the last measurement and the recent
98       one.
99
100         $recent->get_network_io_stats_diff($last);
101

AUTHOR

103       Jens Rehsack, <rehsack AT cpan.org>
104
106       Copyright (C) 2012-2018 by Jens Rehsack
107
108       This library is free software; you can redistribute it and/or modify it
109       under the terms of the GNU Lesser General Public License as published
110       by the Free Software Foundation; either version 2.1 of the License, or
111       (at your option) any later version.
112
113
114
115perl v5.32.0                      2020-07U-n2i8x::Statgrab::sg_network_io_stats(3)
Impressum