sys::statistics::linux::sockstats(3pm) [debian man page]
Sys::Statistics::Linux::SockStats(3pm) User Contributed Perl Documentation Sys::Statistics::Linux::SockStats(3pm)NAME
Sys::Statistics::Linux::SockStats - Collect linux socket statistics.
SYNOPSIS
use Sys::Statistics::Linux::SockStats;
my $lxs = Sys::Statistics::Linux::SockStats->new;
my $stat = $lxs->get;
DESCRIPTION
Sys::Statistics::Linux::SockStats gathers socket statistics from the virtual /proc filesystem (procfs).
For more information read the documentation of the front-end module Sys::Statistics::Linux.
SOCKET STATISTICS
Generated by /proc/net/sockstat.
used - Total number of used sockets.
tcp - Number of tcp sockets in use.
udp - Number of udp sockets in use.
raw - Number of raw sockets in use.
ipfrag - Number of ip fragments in use (only available by kernels > 2.2).
METHODS
new()
Call "new()" to create a new object.
my $lxs = Sys::Statistics::Linux::SockStats->new;
It's possible to set the path to the proc filesystem.
Sys::Statistics::Linux::SockStats->new(
files => {
# This is the default
path => '/proc',
sockstat => 'net/sockstat',
}
);
get()
Call "get()" to get the statistics. "get()" returns the statistics as a hash reference.
my $stat = $lxs->get;
EXPORTS
No exports.
SEE ALSO proc(5)REPORTING BUGS
Please report all bugs to <jschulz.cpan(at)bloonix.de>.
AUTHOR
Jonny Schulz <jschulz.cpan(at)bloonix.de>.
COPYRIGHT
Copyright (c) 2006, 2007 by Jonny Schulz. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-03-09 Sys::Statistics::Linux::SockStats(3pm)
Check Out this Related Man Page
Sys::Statistics::Linux::LoadAVG(3pm) User Contributed Perl Documentation Sys::Statistics::Linux::LoadAVG(3pm)NAME
Sys::Statistics::Linux::LoadAVG - Collect linux load average statistics.
SYNOPSIS
use Sys::Statistics::Linux::LoadAVG;
my $lxs = Sys::Statistics::Linux::LoadAVG->new;
my $stat = $lxs->get;
DESCRIPTION
Sys::Statistics::Linux::LoadAVG gathers the load average from the virtual /proc filesystem (procfs).
For more information read the documentation of the front-end module Sys::Statistics::Linux.
LOAD AVERAGE STATISTICS
Generated by /proc/loadavg.
avg_1 - The average processor workload of the last minute.
avg_5 - The average processor workload of the last five minutes.
avg_15 - The average processor workload of the last fifteen minutes.
METHODS
new()
Call "new()" to create a new object.
my $lxs = Sys::Statistics::Linux::LoadAVG->new;
It's possible to set the path to the proc filesystem.
Sys::Statistics::Linux::LoadAVG->new(
files => {
# This is the default
path => '/proc',
loadavg => 'loadavg',
}
);
get()
Call "get()" to get the statistics. "get()" returns the statistics as a hash reference.
my $stat = $lxs->get;
EXPORTS
No exports.
SEE ALSO proc(5)REPORTING BUGS
Please report all bugs to <jschulz.cpan(at)bloonix.de>.
AUTHOR
Jonny Schulz <jschulz.cpan(at)bloonix.de>.
COPYRIGHT
Copyright (c) 2006, 2007 by Jonny Schulz. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-03-09 Sys::Statistics::Linux::LoadAVG(3pm)
Hi,
I am new to Linux programming. As part of learning, I need to create a *.c program where we call certain /proc files (i.e. such as meminfo, version, uptime, etc...) from our program. Can anyone point me to a simple program on how one would do this (i.e. can you directly call uptime() or... (4 Replies)
Hi, my name is wesly. I an IT tech at the Junior Level. I have a bachelors degree in Computer Information Systems. I would like to fully become a Unix Sys Admin. Can anyone please tell me what I have to do. Do I have to set up a Unix or Linux server. How about Apache. Please give me clues and tips... (1 Reply)
I have a Shell Scritp named "Statistics" which has a Infinate Wille Loop Running
I want to restart this Srcipt "Statistics" when i try to run other srcipt Ex "ABC"
so i want to kill the "Statistics" script in "ABC"
so for this I what to know the PID for that Script "Statistics" which is... (7 Replies)
I read it was possible to distinguish if UNIX system on the machine is derivated from Sys V or BSD. The instruction said:
ps -ef ... is functional on Sys V
ps ax ... is functional on BSD
But since I don't have any UNIX machine (just Linux) I can't tell how I may use this knowledge in my... (5 Replies)
Hi
Reqmt: I am working on Sys 1 and passes a command to Sys2 using a utility which has ssh coded in it. Is there any way to get the process id of the command in Sys 2 from my Sys1 ? Note: The utility is not editable, so you cannot get it through it and I am not logged in in Sys2.
Thanks... (2 Replies)
Hello
If there is a way to get a statistics from Aix box server from a month.
cpu use, memory, disc use, etc.
Maybe via smitty or I need to do a script.
The os is Aix 5.3
Greetings (8 Replies)
/proc/net/sockstat has mem value, Is it memory used for network buffers?
Is it KB or MB?
$ cat /proc/net/sockstat
sockets: used 8278
TCP: inuse 1090 orphan 2 tw 18 alloc 1380 mem 851
UDP: inuse 6574
RAW: inuse 1
FRAG: inuse 0 memory 0
or any other command to montior network... (3 Replies)
Hi,
We Perfrom Loads to the database through a Perl script which generates a statistics file. I need to read the statistics. the Statistics file looks something like below:
Process Beginning - 08-26-2010-23.41.47
DB2 CONNECTION SUCCESSFUL!
Ready to process and load file: FILENAME
# of... (2 Replies)
Hi,
I need to install Sys::HostAddr inorder to run the following command:
perl -le 'use Sys::Hostaddr; print Sys::HostAddr->new->main_ip'
I tried installing this package using CPAN by using the following command:
$ sudo perl -MCPAN -e shell
cpan> install Sys::HostAddr
But still I am... (2 Replies)
Hi,
Am doing an enhancements related to monitoring a Linux disk I/O statistics.
The /proc/diskstats file is used to get the each disk I/O statistics. But, It returns the raw value.
How to calculate the Disk Queue Length and Disk Busy time from the raw values.
Guide me. (1 Reply)
I've searched previous forums but could not find the answer to my question.
What determines how the "Work space used (bytes)" line item in the SyncSort Statistics appears? For instance I have some that show:
Records read: 3,273,645 Data read (bytes): ... (2 Replies)
Discussion started by: mango
2 Replies
12. Post Here to Contact Site Administrators and Moderators
Hi!
I'm new to the site, and today I clicked on "Banking", curious as to what that was about. Aside from being able to "buy" things with these points, it appears there are some games available, on which you can wager your points. While I could access the "high scores", I could not find the... (14 Replies)