[AGENT++] How to separate instance id from Complete OID

Frank Fock fock at agentpp.com
Mon Apr 16 09:27:22 CEST 2007


Hi,

The method MibTable::index does what you are looking for:
http://www.agentpp.com/doc3.x/classMibTable.html#a34

Best regards,
Frank

shylaja.siddappa at wipro.com wrote:
> Hi All,
> 
>  
> 
>  We are implementing SNMP agent using agent++ According to our
> requirement we need to split the index part from the total OID.
> 
> For example if users wants to query the  3rd instance of ifDescr .So the
> OID user will be sending  1.3.6.1.2.1.2.2.1.2.3   (1.3.6.1.2.1.2.2.1.2
> is the OID of   ifDesc and  3 is the row index).
> 
>  
> 
>  
> 
> My question is  there any way/api(provided by agent++ ) to separate
> 1.3.6.1.2.1.2.2.1.2 and 3 
> 
>  
> 
> Please help        
> 
>  
> 
>  
> 
> Thanks,
> 
> Shylaja
> 
> 
> 
> 
> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 
> 
> WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
>  
> www.wipro.com
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the AGENTPP mailing list