Operating System - HP-UX
1825662 Members
3665 Online
109686 Solutions
New Discussion

Re: SNMP not listening on port 161

 
SOLVED
Go to solution
Jean Samarani
Frequent Advisor

SNMP not listening on port 161

Hello.

When I check the processes running using ps -ef I am able to see the SNMP process /usr/sbin/snmpdm However, there is no process listening on port 161. ( Netstat -na )

Could you please advise what could be the issue ?

Any idea ?

Thanks.
4 REPLIES 4
sarfaraj ahmad
Trusted Contributor
Solution

Re: SNMP not listening on port 161

hi,

what is mentioned in /etc/services file.
which port has been assigned for snmp?
Jean Samarani
Frequent Advisor

Re: SNMP not listening on port 161

It's not the default value 161.

snmp 163/udp snmpd # Simple Network Management Protocol Agent


Is it possible to change to the default value ??

Re: SNMP not listening on port 161

if you are connecting snmp to some of netowrk monitoring tool then u need to define the community enry in /etc/snmpd.conf check with ur network admin and the define the same entry in that file then it can be added to any snmp based monitoring application like NNM.
Matti_Kurkela
Honored Contributor

Re: SNMP not listening on port 161

> snmp 163/udp snmpd # Simple Network Management Protocol Agent

Looks like someone has changed your /etc/services to a non-default value, and /usr/sbin/snmpdm uses the port number found in /etc/services.

Fix your /etc/services to the correct value 161 and restart your SNMP service(s).

Typically:
# /sbin/init.d/SnmpMaster stop
# /sbin/init.d/SnmpMaster start

More info about restarting snmpd:
http://h30499.www3.hp.com/t5/Workload-Resource-Management/Starting-Stopping-snmp-agents-on-HP-UX-11-0/m-p/2688170#M709
MK

MK