See SNMP::translateObj()

will convert a text obj tag to an OID and vice-versa.

Cheers
Medi

On Mon, May 31, 2010 at 8:59 AM, Joao Ferreira gmail <
[email protected]> wrote:

> Hello all,
>
> I did not find a function in the Perl API to obtain
> the .number.number.number representation of a given OID...
>
> so I wrote my own function....
>
> -------------------------------------
> sub oid2numeric {
>    my ($oid) = shift;
>    my @vals = $oid->to_array();
>    my $joined = join('.',@vals);
>    $joined = '.' . $joined;
>    debug_log_hv('oid2txt |' . "$oid". '|' . "$joined" . '|');
>    return $joined;
> }
> --------------------------------------
>
> but I guess there should be such a function somewhere...
>
> any pointers ?
>
> Thanks
>
> Joao
>
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> 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
>
------------------------------------------------------------------------------

_______________________________________________
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