Changeset 863

Show
Ignore:
Timestamp:
03/30/05 01:59:25 (5 years ago)
Author:
ilmari
Message:

Added get_single() to Munin::Node::SNMP.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • people/ilmari/modularisation-branch/node/SNMP.pm.in

    r498 r863  
    9393} 
    9494 
     95=head2 get_single 
     96 
     97  $result = $session->get_single($oid); 
     98 
     99This method fetches the value of $oid. 
     100 
     101=cut 
     102 
     103sub get_single { 
     104    my ($self, $oid) = @_; 
     105    print "# Getting single $oid...\n" if $DEBUG; 
     106     
     107    my $response = $self->get_request($oid); 
     108     
     109    return $response->{$oid}; 
     110} 
     111 
    95112=head2 get_hash() - retrieve a table as a hash of hashes 
    96113