cancel
Showing results for 
Search instead for 
Did you mean: 

configure net snmp

roka_1
Occasional Contributor

configure net snmp

we installing netsnmp from depot package, we configure netsnmp in hp-ux to send the host resources. as the following

1- stop all snmp daemon in the Hp-UX system.

2- create the snmpd.conf file with rocommunity public.

3- disable the prot number for snmp in /etc/services and enable the netsnmp
#snmp 161/udp snmpd # Simple Network Management Protocol Agent
netsnmp 161/udp # Simple Network Management Protocol Agent

4- add this line in inetd.conf
netsnmp stream udp nowait root /opt/iexpress/net-snmp/sbin/snmpd -c /opt/iexpress/net-snmp/etc/snmp/snmpd.conf

5- refresh the inetd with /usr/sbin/inetd -c

6- runing netsnmp with /opt/iexpress/net-snmp/sbin/snmpd -c /opt/iexpress/net-snmp/etc/snmp/snmpd.conf

- the problem when we are runing snmpwalk from the localhost

snmpwalk -v 1 -c public 127.0.0.1 we get the host resources but is very slow when it appear in the screen, then i get message no response from 127.0.0.1,
.

system >> HP-UX B.11.31 U ia64 1115960583 unlimited-user license.

netsnmp >> ixNet-SNMP A.15.00-5.5.001 Simple Network Monitoring protocol.

please advice

Thanks
5 REPLIES
Earl_Crowder
Trusted Contributor

Re: configure net snmp

Greetings,

From your description, step 6 is unnecessary and may cause problems.

1) First, check for any running snmpd and kill it. Inetd will start it when a request comes in on udp 161.

2) Try your snmpwalk again.

If it's still slow, try removing it from inetd and starting it manually using the command in step 6.

Earl
roka_1
Occasional Contributor

Re: configure net snmp

thanks for your replay Earl Crowder,

i make the two steps and the same issue.
when running snmpwalk from another machine or from the same machine the result is be solw,
and in last i get the timeout

IF-MIB::ifInDiscards.45 = Counter32: 0
IF-MIB::ifInDiscards.46 = Counter32: 0
IF-MIB::ifInDiscards.47 = Counter32: 0
IF-MIB::ifInDiscards.48 = Counter32: 0
Timeout: No Response from 127.0.0.1


please advice
grahamswilson
Trusted Contributor

Re: configure net snmp

It's not really an answer for you I know, but for what it's worth I played around with this ages ago and had very similar results. In fact, in the end I found it too "unstable" so implemented the hosts MIB another way (using a 3rd party product)...

I can certainly go into more details if you want...
roka_1
Occasional Contributor

Re: configure net snmp

thanks graham,


please can you tell us about this solution and the result from it.


grahamswilson
Trusted Contributor

Re: configure net snmp

Sure...here is a link to a previous related thread to also help :- http://h30499.www3.hp.com/t5/Networking/HP-UX-Host-Resource-MIB/m-p/5049627#M52027


In summary, there is another product from SNMP Research called Emanate - a version of this is already bundled with HP-UX for SNMP, but it doesn't contain the host MIB.

If you buy the full product, you can then simply run the host MIB sub-agent on top of the out-the-box HP-UX SNMP...it's very easy, works well and is stable.