0
votes

I was configuring my SNMP agent on a Linux machine, below is the user-defined settings which I have included in the default snmpd.conf settings.

rwuser bootstrap priv
rwuser prateek priv

createUser bootstrap SHA temp_password AES

I then restarted the SNMP service and then tried to perform SNMP GET on sysDescr OID and was able to perform is successful.

screenshot 1

I then tried to same with snmpget CLI command,

snmpget -v 3 -u bootstrap -l authPriv -a SHA -x AES -A temp_password -X temp_password 127.0.0.1:161 1.3.6.1.2.1.1.1.0

but I get the below error.

Timeout: No Response from 127.0.0.1:161

NOTE: SNMP client and agent are running on same host.

Can anyone explain to me why I am unable to perform the same operation which I am able to perform using MIB browser?

1
You'd better run the agent on another machine, so that you can use tools like Wireshark to easily analyze network packets.Lex Li

1 Answers

0
votes

The address 127.0.0.1 means you MUST be running the SNMPGET on the same system as the agent, and you have not proven that.

Also, the error message should be "127.0.0.1:161", so either the edit is mistaken, or the command is mistaken. Inconsistencies like this usually points to user error.