On 9/28/05, Thomas Anders <[EMAIL PROTECTED]> wrote:
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
aakansha rajvi wrote:
> I *replaced persistDir with "persistentDir"*.. But even then *the
> same warning is displayed*...
warning message is
2005-09-28 17:22:41 /var/net-snmp/agent1/snmpd.conf: line 1: Warning: Unknown to
ken: persistentDir.
ken: persistentDir.
Tell us the exact warning, please. Also, what's the output of "snmpd -H
2>&1 | grep -i persistentDir"?
2>&1 | grep -i persistentDir"?
Output of "snmpd -H 2>&1 | grep -i persistentDir"?
2005-09-28 17:31:31 /usr/local/share/snmp/agent1/snmpd.conf: line 1: Warning: Un
known token: persistentDir.
2005-09-28 17:31:31 persistentDir string
known token: persistentDir.
2005-09-28 17:31:31 persistentDir string
> export
> SNMPCONFPATH=/usr/local/share/snmp/agent1:/usr/local/share/snmp:/var/net-snmp/agent1
>
> echo "persistentDir /var/net-snmp/agent1" > /var/net-snmp/agent1/snmpd.conf
I'd recommend
echo "persistentDir /var/net-snmp/agent1" >
/usr/local/share/snmp/agent1/snmpd.conf
When tried with the above said option,
Follwoing message is displayed when the agent is started in a specific port
2005-09-28 17:32:23 /usr/local/share/snmp/agent1/snmpd.conf: line 1: Warning: Un
known token: persistentDir.
known token: persistentDir.
instead. Not sure why Robert's FAQ says differently. I think it shouldn't.
If it still doesn't work, run the agent(s) with "-Dread_config" and post
the output here.
If it still doesn't work, run the agent(s) with "-Dread_config" and post
the output here.
Output with -Dread_config
read_config: /usr/local/share/snmp/agentx.conf: No such file or directory
read_config: /usr/local/share/snmp/agentx.local.conf: No such file or directory
read_config: /var/net-snmp/agent1/agentx.conf: No such file or directory
read_config: /var/net-snmp/agent1/agentx.local.conf: No such file or directory
read_config: config path used:/usr/local/share/snmp/agent1:/usr/local/share/snmp
:/var/net-snmp/agent1
read_config: Reading configuration /usr/local/share/snmp/agent1/snmp.conf
read_config: /usr/local/share/snmp/agent1/snmp.conf:21 examining: defaultport 1
61
read_config: /usr/local/share/snmp/agent1/snmp.conf:27 examining: defversion 2c
read_config: /usr/local/share/snmp/agent1/snmp.conf:35 examining: defcommunity
public
read_config: /usr/local/share/snmp/agent1/snmp.conf:48 examining: dodebugging 0
read_config: Found a parser. Calling it: dodebugging / 0
2005-09-28 17:29:11 MODULE-IDENTITY MACRO (lines 55..79 parsed and ignored).
2005-09-28 17:29:11 OBJECT-IDENTITY MACRO (lines 81..103 parsed and ignored).
2005-09-28 17:29:11 OBJECT-TYPE MACRO (lines 212..298 parsed and ignored).
2005-09-28 17:29:11 NOTIFICATION-TYPE MACRO (lines 302..334 parsed and ignored).
2005-09-28 17:29:11 TEXTUAL-CONVENTION MACRO (lines 8..48 parsed and ignored).
2005-09-28 17:29:11 OBJECT-TYPE MACRO (lines 25..39 parsed and ignored).
2005-09-28 17:29:11 /usr/local/share/snmp/agent1/snmpd.conf: line 1: Warning: Un
known token: persistentDir.
2005-09-28 17:29:11 snmpd: send_trap: Timeout
2005-09-28 17:29:11 NET-SNMP version 5.2.1
read_config: /usr/local/share/snmp/agentx.local.conf: No such file or directory
read_config: /var/net-snmp/agent1/agentx.conf: No such file or directory
read_config: /var/net-snmp/agent1/agentx.local.conf: No such file or directory
read_config: config path used:/usr/local/share/snmp/agent1:/usr/local/share/snmp
:/var/net-snmp/agent1
read_config: Reading configuration /usr/local/share/snmp/agent1/snmp.conf
read_config: /usr/local/share/snmp/agent1/snmp.conf:21 examining: defaultport 1
61
read_config: /usr/local/share/snmp/agent1/snmp.conf:27 examining: defversion 2c
read_config: /usr/local/share/snmp/agent1/snmp.conf:35 examining: defcommunity
public
read_config: /usr/local/share/snmp/agent1/snmp.conf:48 examining: dodebugging 0
read_config: Found a parser. Calling it: dodebugging / 0
2005-09-28 17:29:11 MODULE-IDENTITY MACRO (lines 55..79 parsed and ignored).
2005-09-28 17:29:11 OBJECT-IDENTITY MACRO (lines 81..103 parsed and ignored).
2005-09-28 17:29:11 OBJECT-TYPE MACRO (lines 212..298 parsed and ignored).
2005-09-28 17:29:11 NOTIFICATION-TYPE MACRO (lines 302..334 parsed and ignored).
2005-09-28 17:29:11 TEXTUAL-CONVENTION MACRO (lines 8..48 parsed and ignored).
2005-09-28 17:29:11 OBJECT-TYPE MACRO (lines 25..39 parsed and ignored).
2005-09-28 17:29:11 /usr/local/share/snmp/agent1/snmpd.conf: line 1: Warning: Un
known token: persistentDir.
2005-09-28 17:29:11 snmpd: send_trap: Timeout
2005-09-28 17:29:11 NET-SNMP version 5.2.1
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders