To answer my own question, I think the location for the mib files of an
application daemon running subagent has to be listed inside snmp.conf, and
even though the master agent probably would load it first, it doesn't
matter, and if a user changes the mib file of the application and restarts
the application running subagent, the newer version of the mib would be
loaded by the application running subagent to replace the old version mib
loaded previously by the master agent. My simple test seems to confirm my
assumption.
--
Shawn He
Online Technology
Office:858-824-5969 Fax: 858-824-5878
AIM: CivRealtor
Shawn He/SDPD/SCEA
11/05/2007 12:26 PM
To
[email protected]
cc
Subject
Re: question about agentx configure file
I have called init_snmp("example_subagent") in my subagent daemon code,
and created a example_subagent.conf under /user/local/shared/snmp. When I
run the subagent daemon, I got error messages of the following:
/usr/local/share/snmp/example_subagent.conf: line 1: Warning: Unknown
token: mibdirs.
/usr/local/share/snmp/example_subagent.conf: line 2: Warning: Unknown
token: mibs.
And here is the configure file content of example_subagent.conf that
causes the above error messages:
mibdirs +/home/she/snmpdemo/subagent/mibs
mibs ALL
What type of tokens in net-snmp are valid for a subagent if the above two
tokens are not valid?
Thanks.
--
Shawn He
Online Technology
Office:858-824-5969 Fax: 858-824-5878
AIM: CivRealtor
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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