Re: how to get a standard mib object's value from within codes

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 28/11/06, jing lu <[email protected]> wrote:
> Hi, I am trying to get the standard mibII object sysName from within my
> agent codes. Is there any library function/API I can use?

Not really, no.
The value of 'sysName' is taken from a variable of the same name,
within the file 'agent/mibgroup/mibII/system_mib.c'.  But the way
that this variable is initialised will differ from one O/S to another.
And there isn't really a standard API to retrieve it.

All you can really do is refer to this array as an external structure.
See the code file  'agent/mibgroup/mibII/system_mib.c' for details.

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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.