Re: conversion of oid from "1,3,16,15,1" to "1.3.16.15.1"

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAKoMtGZXm0TOw-GigjhvDnLOvc_STLg1u+-GrkFfxCPbJVjx4g@mail.gmail.com>
On 16 December 2011 06:15, Kumar Sanjay-XJD784
<[email protected]> wrote:
> Is there any function in net-snmp code to convert the OID from
> "1,3,16,15,1" to "1.3.16.15.1"

Is this a string comma-based representation,
or the contents of an oid[] array?

The APIs for displaying the value of an OID array are described
in the netsnmp_mib_api(3) man page.   Look at print_objid
and related routines.

There isn't a function to work with strings of comma-separated OIDs,
as far as I know.   This isn't a representation that's commonly used
within SNMP.   The only time we would generate such a string
would be as part of generating a code file, to initialise the contents
of an oid[] array.

Dave

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.