--===============1302537234==
Content-Type: multipart/alternative; boundary="0-142003922-1179508609=:80253"
Content-Transfer-Encoding: 8bit

--0-142003922-1179508609=:80253
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

The configuration file I created is located at the following location:

/export/home/myname/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf

..... and has only one line in it as follows:

rocommunity mycommunity_ro


I started the agent using the following:

../ocStbHostAVInterfaceTable -f -L -Dread_config -M localhost:1161 &


The output when starting the agent using the "-Dread_config" option is provided below. Not really sure what to make of it. I see that my configuration file is being read in whcih is nice, however, when I try to do the "snmpwalk", it still times out:

[root@dhcp-201-187 ocStbHostAVInterfaceTable]# ./ocStbHostAVInterfaceTable -f -L -Dread_config -M localhost:1161 &
[1] 30276
[root@dhcp-201-187 ocStbHostAVInterfaceTable]# No log handling enabled - turning on stderr logging
registered debug token read_config, 1
read_config: reading premib configuration tokens
read_config: config path used for ocStbHostAVInterfaceTable:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: Reading configuration /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf:31 examining: rocommunity mycommunity_ro
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: /root/.snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /root/.snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: config path used for ocStbHostAVInterfaceTable:/var/net-snmp (persistent path:/var/net-snmp)
read_config: /var/net-snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /var/net-snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: config path used for agentx:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/agentx.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/agentx.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/agentx.local.conf: No such file or directory
read_config: /root/.snmp/agentx.conf: No such file or directory
read_config: /root/.snmp/agentx.local.conf: No such file or directory
read_config: config path used for agentx:/var/net-snmp (persistent path:/var/net-snmp)
read_config: /var/net-snmp/agentx.conf: No such file or directory
read_config: /var/net-snmp/agentx.local.conf: No such file or directory
read_config: config path used for snmp:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/snmp.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/snmp.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/snmp.local.conf: No such file or directory
read_config: /root/.snmp/snmp.conf: No such file or directory
read_config: /root/.snmp/snmp.local.conf: No such file or directory
read_config: config path used for snmp:/var/net-snmp (persistent path:/var/net-snmp)
read_config: /var/net-snmp/snmp.conf: No such file or directory
read_config: /var/net-snmp/snmp.local.conf: No such file or directory
read_config: reading normal configuration tokens
read_config: config path used for ocStbHostAVInterfaceTable:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: Reading configuration /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf:31 examining: rocommunity mycommunity_ro
read_config: Found a parser. Calling it: rocommunity / mycommunity_ro
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: /root/.snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /root/.snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: config path used for ocStbHostAVInterfaceTable:/var/net-snmp (persistent path:/var/net-snmp)
read_config: /var/net-snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /var/net-snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: config path used for agentx:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/agentx.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/agentx.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/agentx.local.conf: No such file or directory
read_config: /root/.snmp/agentx.conf: No such file or directory
read_config: /root/.snmp/agentx.local.conf: No such file or directory
read_config: config path used for agentx:/var/net-snmp (persistent path:/var/net-snmp)
read_config: /var/net-snmp/agentx.conf: No such file or directory
read_config: /var/net-snmp/agentx.local.conf: No such file or directory
read_config: config path used for snmp:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/snmp.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/snmp.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/snmp.local.conf: No such file or directory
read_config: /root/.snmp/snmp.conf: No such file or directory
read_config: /root/.snmp/snmp.local.conf: No such file or directory
read_config: config path used for snmp:/var/net-snmp (persistent path:/var/net-snmp)
read_config: /var/net-snmp/snmp.conf: No such file or directory
read_config: /var/net-snmp/snmp.local.conf: No such file or directory








Dave Shield wrote: On 18/05/07, Need Help wrote:
> When I execute the "snmpwalk" command, it no longer has a problem with the
> syntax used (as was my original problem), but instead it now produces the
> following response after waiting two second or so:
>
> "Timeout: No Response from localhost:1161"
>
>
> Any idea why this timeout might be occurring?


What is in the config file?
If you're not sure which config file(s) are being read in,
try adding "-Dread_config" when starting the agent.


> I am using "1161" because
> that is what was in the tutorial. Am I making a dumb mistake by simply
> using this "1161" value or should it work for me on my system?


That ought to work - as long as whatever you specify when starting
the agent matches the destination in the snmpwalk command.

Dave



---------------------------------
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
--0-142003922-1179508609=:80253
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

The configuration file I created is located at the following location:

/export/home/myname/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf

.... and has only one line in it as follows:

    rocommunity  mycommunity_ro


I started the agent using the following:

./ocStbHostAVInterfaceTable -f -L -Dread_config -M localhost:1161 &


The output when starting the agent using the "-Dread_config" option is provided below.   Not really sure what to make of it.  I see that my configuration file is being read in whcih is nice, however, when I try to do the "snmpwalk", it still times out:

[root@dhcp-201-187 ocStbHostAVInterfaceTable]# ./ocStbHostAVInterfaceTable -f -L -Dread_config -M localhost:1161 &
[1] 30276
[root@dhcp-201-187 ocStbHostAVInterfaceTable]# No log handling enabled - turning on stderr logging
registered debug token read_config, 1
read_config: reading premib
configuration tokens
read_config:  config path used for ocStbHostAVInterfaceTable:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: Reading configuration /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf:31 examining: rocommunity  mycommunity_ro
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config:
/export/home/rosent1/snmp/usr/local/lib/snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: /root/.snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /root/.snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config:  config path used for ocStbHostAVInterfaceTable:/var/net-snmp (persistent path:/var/net-snmp)
read_config: /var/net-snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /var/net-snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config:  config path used for agentx:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config:
/export/home/rosent1/snmp/usr/local/etc/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/agentx.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/agentx.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/agentx.local.conf: No such file or directory
read_config: /root/.snmp/agentx.conf: No such file or directory
read_config: /root/.snmp/agentx.local.conf: No such file or directory
read_config:  config path used for agentx:/var/net-snmp (persistent path:/var/net-snmp)
read_config: /var/net-snmp/agentx.conf: No such file or directory
read_config: /var/net-snmp/agentx.local.conf: No such file or
directory
read_config:  config path used for snmp:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/snmp.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/snmp.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/snmp.local.conf: No such file or directory
read_config: /root/.snmp/snmp.conf: No such file or directory
read_config: /root/.snmp/snmp.local.conf: No such file or
directory
read_config:  config path used for snmp:/var/net-snmp (persistent path:/var/net-snmp)
read_config: /var/net-snmp/snmp.conf: No such file or directory
read_config: /var/net-snmp/snmp.local.conf: No such file or directory
read_config: reading normal configuration tokens
read_config:  config path used for ocStbHostAVInterfaceTable:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: Reading configuration /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf
read_config:
/export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.conf:31 examining: rocommunity  mycommunity_ro
read_config: Found a parser.  Calling it: rocommunity / mycommunity_ro
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config: /root/.snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config: /root/.snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config:  config path used for ocStbHostAVInterfaceTable:/var/net-snmp (persistent path:/var/net-snmp)
read_config: /var/net-snmp/ocStbHostAVInterfaceTable.conf: No such file or directory
read_config:
/var/net-snmp/ocStbHostAVInterfaceTable.local.conf: No such file or directory
read_config:  config path used for agentx:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/agentx.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/agentx.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/agentx.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/agentx.local.conf: No such file or directory
read_config: /root/.snmp/agentx.conf: No such file or
directory
read_config: /root/.snmp/agentx.local.conf: No such file or directory
read_config:  config path used for agentx:/var/net-snmp (persistent path:/var/net-snmp)
read_config: /var/net-snmp/agentx.conf: No such file or directory
read_config: /var/net-snmp/agentx.local.conf: No such file or directory
read_config:  config path used for snmp:/export/home/rosent1/snmp/usr/local/etc/snmp:/export/home/rosent1/snmp/usr/local/share/snmp:/export/home/rosent1/snmp/usr/local/lib/snmp:/root/.snmp (persistent path:/var/net-snmp)
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/etc/snmp/snmp.local.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/share/snmp/snmp.local.conf: No such file or directory
read_config:
/export/home/rosent1/snmp/usr/local/lib/snmp/snmp.conf: No such file or directory
read_config: /export/home/rosent1/snmp/usr/local/lib/snmp/snmp.local.conf: No such file or directory
read_config: /root/.snmp/snmp.conf: No such file or directory
read_config: /root/.snmp/snmp.local.conf: No such file or directory
read_config:  config path used for snmp:/var/net-snmp (persistent path:/var/net-snmp)
read_config: /var/net-snmp/snmp.conf: No such file or directory
read_config: /var/net-snmp/snmp.local.conf: No such file or directory








Dave Shield <D.T.Shield@csc.liv.ac.uk> wrote:
On 18/05/07, Need Help wrote:
> When I execute the "snmpwalk" command, it no longer has a problem with the
> syntax used (as was my original problem), but instead it now produces
the
> following response after waiting two second or so:
>
> "Timeout: No Response from localhost:1161"
>
>
> Any idea why this timeout might be occurring?

What is in the config file?
If you're not sure which config file(s) are being read in,
try adding "-Dread_config" when starting the agent.


> I am using "1161" because
> that is what was in the tutorial. Am I making a dumb mistake by simply
> using this "1161" value or should it work for me on my system?

That ought to work - as long as whatever you specify when starting
the agent matches the destination in the snmpwalk command.

Dave




Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
--0-142003922-1179508609=:80253--


--===============1302537234==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--===============1302537234==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--===============1302537234==--