Rstat-Client

 view release on metacpan or  search on metacpan

Client.pm  view on Meta::CPAN

  $stats->{'cp_time'}->[0]     = shift @reply;
  $stats->{'cp_time'}->[1]     = shift @reply;
  $stats->{'cp_time'}->[2]     = shift @reply;
  $stats->{'cp_time'}->[3]     = shift @reply;

  $stats->{'dk_xfer'}->[0]     = shift @reply;
  $stats->{'dk_xfer'}->[1]     = shift @reply;
  $stats->{'dk_xfer'}->[2]     = shift @reply;
  $stats->{'dk_xfer'}->[3]     = shift @reply;

  $stats->{'v_pgpgin'}         = shift @reply;
  $stats->{'v_pgpgout'}        = shift @reply;
  $stats->{'v_pswpin'}         = shift @reply;
  $stats->{'v_pswpout'}        = shift @reply;
  $stats->{'v_intr'}           = shift @reply;
  $stats->{'if_ipackets'}      = shift @reply;
  $stats->{'if_ierrors'}       = shift @reply;
  $stats->{'if_oerrors'}       = shift @reply;
  $stats->{'if_collisions'}    = shift @reply;
  $stats->{'v_swtch'}          = shift @reply;

  $stats->{'avenrun'}->[0]     = (shift @reply) / 256;

Client.pm  view on Meta::CPAN

  
    # time when the system was booted
    'boottime.tv_sec' => '1021781411',
    'boottime.tv_usec' => '0',
  
    # pages swapped in/out
    'v_pswpin' => 1,
    'v_pswpout' => '0',
  
    # pages paged in/out
    'v_pgpgin' => 43155,
    'v_pgpgout' => 64266,
  
    # interrupts and context switches
    'v_intr' => 11150229,
    'v_swtch' => 23174363,
  
    # network statistics (sum over all interfaces)
    'if_ipackets' => 43238686,
    'if_ierrors' => 71633,
    'if_opackets' => '87451',
    'if_oerrors' => '0',



( run in 1.435 second using v1.01-cache-2.11-cpan-df04353d9ac )