Help for this page

Select Code to Download


  1. or download this
    my ($handler, $registration_info, $request_info, $requests) = @_;
    
  2. or download this
    my $agent = new NetSNMP::agent(
        # searches for /etc/snmp/$agent_name.conf !!
    ...
    my $regoid = new NetSNMP::OID($reg_oid);
    $agent->register($agent_name, $regoid, \&request_handler);
    pdebug("SNMP agent registered");