net-snmp ver 5.2.1..2, OS Linux redhat 9, Kernel 2.4.21-32.0.1.EL

I have a TK front end offering support for several MIBs, each MIB handled
by a different package.

The effect of the script is to call the "new agent" & "register" routines 
held in several separate packages :

    package A;  
    $agent = new NetSNMP::agent('Name' => 'mib_a_emulator','AgentX' => 1);
    $agent->register('mib_a_emulator',$regoid, \&snmp_handler_a);

    package B;  
    $agent = new NetSNMP::agent('Name' => 'mib_b_emulator','AgentX' => 1);
    $agent->register('mib_b_emulator',$regoid, \&snmp_handler_b);

    package C;  
    $agent = new NetSNMP::agent('Name' => 'mib_c_emulator','AgentX' => 1);
    $agent->register('mib_c_emulator',$regoid, \&snmp_handler_c);

The packages set up the OIDs they are interested in the their handlers.

The handlers seem to work okay and service incoming requests. I
would just like to be able to stop the handling of one mib branch
say the mib_b branch.

Andy

> -----Original Message-----
> From: Thomas Anders [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 15, 2005 4:50 PM
> To: [EMAIL PROTECTED]
> Cc: [email protected]
> Subject: Re: unregistering an agentX agent
> 
> 
> Andy Pearce wrote:
> >     I have a script that optionally registers several different AgentX 
> > handlers via the embeded perl.
> > I would also like to be able to deregister the handlers. Calling the 
> > agent->shutdown() seems
> > to shut all the agents down, is there a way of only 
> deregistering one of 
> > the handlers ?
> 
> Can you please clarify on how *exactly* you're using NetSNMP::agent? It 
> allows you to *either* implement an AgentX subagent *or* use the 
> predefined $agent object via embedded perl in the main agent, but not 
> "AgentX via embedded perl".
> 
> BTW, what net-snmp and OS version are you using?
> 
> 
> +Thomas
> 
> -- 
> Thomas Anders (thomas.anders at blue-cable.de)
> 


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to