Operating System - HP-UX
1837979 Members
2909 Online
110124 Solutions
New Discussion

Re: Which process is using snmp service

 
SOLVED
Go to solution
ChuanH
Regular Advisor

Which process is using snmp service

Dear all,

My network device B is sending authentication traps to its management server A (HP openview NNM)saying: "HPUX C is polling me with the wrong community string", I used: ps -ef|grep snmp* in unixC, no output, so I am confuse.
Could you please tell me how can I find which process is using snmp service in this HPUX C?
Any response would be great appreciated!

Thank you!

ChuanH
Knowledge is Power
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: Which process is using snmp service

ps -ef | grep snmp

You should get a process listed.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Eric Antunes
Honored Contributor

Re: Which process is using snmp service

Hi,

In my server it's /usr/sbin/snmpdm that runs snmp servive.

Best Regards,

Eric
Each and every day is a good day to learn.
ChuanH
Regular Advisor

Re: Which process is using snmp service

Thanks Steven & Eric for your quick response!
This is what I got from ps -ef|grep snmp:
root 494 1 0 Sep 26 ? 1:15 /usr/sbin/snmpdm
root 22889 22873 0 Oct 2 ? 158:46 snmpCollect

How could I find the detail information about these 2 services? I would like to know which service is doing snmp query to B?

Best regards,

ChuanH
Knowledge is Power
Eric Antunes
Honored Contributor

Re: Which process is using snmp service

Hi,

I think it is the snmpCollect process since snmpdm is the snmp deamon.

Eric
Each and every day is a good day to learn.
A. Clay Stephenson
Acclaimed Contributor

Re: Which process is using snmp service

In any event what you need to do is set the get-community-name and set-community-name snmp strings. Those are stored in /etc/SnmpAgent.d/smnpd.conf.
If it ain't broke, I can fix that.
ChuanH
Regular Advisor

Re: Which process is using snmp service

Thanks a lot Steven, Eric and Mr.Stephenson!
The problem been fixed, a third party sw was polling B from HPUX C.

Merry Christmas and May you all have a prosperous 2005!

ChuanH
Knowledge is Power