On Mon, 2005-12-05 at 20:29 +0800, Zax wrote:
> 1 
> in agent\mibgroup\system_mib.c
> var_system()  
> Is this function old code style for querying? 

Yes.

> 2
> in snmplib\default_store.c
>  
> static int
> netsnmp_ds_integers[NETSNMP_DS_MAX_IDS][NETSNMP_DS_MAX_SUBIDS];
> static char
> netsnmp_ds_booleans[NETSNMP_DS_MAX_IDS][NETSNMP_DS_MAX_SUBIDS/8];
> static char
> *netsnmp_ds_strings[NETSNMP_DS_MAX_IDS][NETSNMP_DS_MAX_SUBIDS]; 
> static void
> *netsnmp_ds_voids[NETSNMP_DS_MAX_IDS][NETSNMP_DS_MAX_SUBIDS];
>  
> what do these arrays do? what do these arrays mean?

They are used for storing various internal defaults.
(ports to listen on, OID output format, default version, etc).
See 'include/net-snmp/library/default_store.h' for the full list.

 
> 3
> mib2-system-sysName
>  
> after I set it , I use 'hostname' to watch the machine name.
> But it is not changed.

No - this is the *SNMP* identification of the system.
It doesn't propogate back to the underlying O/S.


> How does the agent store the name?

There an internal configuration directive that's used to
remember the value across reboots, and a private buffer
within 'system_mib.c'.

Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to