Snmpwalk On Interface Other Than Loopback Results In Timeout
search cancel

Snmpwalk On Interface Other Than Loopback Results In Timeout

book

Article ID: 269962

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

After configuring snmp on our gateway 11.0 install we are unable to successfully execute a snmpwalk command to the gateway on any interface other than the loopback.  Attempting to execute snmpwalk to another interface results in the following error:

snmpwalk: Timeout

Environment

CA API Gateway 11.0

Cause

Our gateway 11 appliance is configured such that the SNMP agent only listens on the loopback interface on UDP port 161 by default. To enable another interface, you need to define a non-loopback interface IP address. On a debian OS the listening interface is defined by the agentaddress directive within the /etc/snmp/snmpd.conf file

 

Resolution

You can look to make the following kind of change within the snmpd.conf file:

agentaddress 127.0.0.1

to

agentaddress udp:161

The above change would tell the SNMP Daemon to listen on UDP port 161 on every IPv4 interface. 

 

You would need to recycle the snmp service for the change to take effect by executing the following:

systemctl restart snmpd