"SNMP OID Problem Can u help me"

Frank Fock Frank.Fock____t-online.de
Sat Oct 6 02:33:02 CEST 2001


Hi,

Please use Oidx::from_string to convert a string into an OID.

Regards,
Frank

"Rao K. N. M." wrote:

>
>
> Dear Friends,
>
> I have a MIB table with the index as string.
>
> So when I construct the OID  : 1.3.6.1.4.1.2011.2.17.6.2.1.19.Key.
>
> (Key = TR1);
>
> In my code :
>
>         Oid oid(" 1.3.6.1.4.1.2011.2.17.6.2.1.19.TR1");
>         cout <<  oid.get_printable() << endl;
>
> Doesn't print anything.
>
> The following also doesn't work.
>
>         Vb ovb("1.3.6.1.4.1.2011.2.17.6.2.1.19");
>         oid1+="TR1";
>
>         cout << "OID T3" << oid1.get_printable() << endl;
>         cout << "OID TEST ENDS " << endl;
>
> But the following works.
>
> Oid oid1("1.3.6.1.4.1.2011.2.17.6.2.1.19");
> cout << "OID T1 " << oid1.get_printable() << endl;
>
> So how can I specify the Key as index to the OID.
>
> Can anybody help me please.
>
> Regards,
> KNM Rao.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.agentpp.org/pipermail/agentpp/attachments/20011006/7b916d44/attachment.htm 


More information about the AGENTPP mailing list