Operating System - HP-UX
1829103 Members
2273 Online
109986 Solutions
New Discussion

checking for snmp service

 
shock_anu
New Member

checking for snmp service

i want to check whether SNMP service is running in udp port 161 of host machine through c++ program.how shud i do this?? i tried using bind(),recvfrom() and sendto() functions..but its not working...please help me with this

Thanks in advance
2 REPLIES 2
Taifur
Respected Contributor

Re: checking for snmp service



Hi Shock

For check snmp status

#/etc/init.d/snmpd status

For more details you can check below link as follows

http://docs.hp.com/en/5991-2731/ch05s04.html


Rgds//
Taifur
shock_anu
New Member

Re: checking for snmp service

Thanks for ur reply....but i am using UDP socket programming to check this...sorry forgot to mention that...i wrote a code for that...its getting hanged at recvfrom() function...port is getting binded with bind() function..Im also using ICMP