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
