nv-l
[Top] [All Lists]

Re: [nv-l] RedHat Snmpd ?

To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] RedHat Snmpd ?
From: Mark Sklenarik <marksk@us.ibm.com>
Date: Mon, 4 Apr 2005 13:04:49 -0400
Delivery-date: Mon, 04 Apr 2005 18:05:26 +0100
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
In-reply-to: <1A5AB46AA116114FB0EF78BBE5AA14A1015BC50C@CP2K3TLCEMLV1.capitol.local>
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com

Catalina,
If the /usr/OV/bin/snmpwalk is timing out, more than likely agent is not recognizing the community script being send by command.

Below are two sample snmpd.conf files I have used with Red Hat 3.0.
SAMPLE 1 , I found to work with Red Hat 3.0 Update 4 applied
SAMPLE 2 , Works with Red Hat 3.0 Update 3.

Also there is a note in FIX PACK 2 Readme under "Software required for the new full image Linix CD", in regards to the version of net-snmp found to work with NetView  net-snmp 5.0.9-2.30  It was found that earlier version had a indexing problem between the ip and interface mib tables.

************************ SAMPLE 1 ************************************
rocommunity communityname1
************************ SAMPLE 1 ************************************


************************ SAMPLE 2 ************************************
#       sec.name        source          community
com2sec nvreadonly      default         communityname1
com2sec nvreadwrite     localhost       communityname1
com2sec localro         pit-rhas-21k    communityname1
com2sec localro         127.0.0.1       communityname1
com2sec localrw         localhost       private
# Second, map the security names into group names:
#               sec.model  sec.name
group nvrogroup v1  nvreadonly
group nvrogroup v2c nvreadonly
group nvrwgroup v1  nvreadwrite
group nvrwgroup v2c nvreadwrite
group localrogp v1  localro
group localrogp v2c localro
group localrwgp v1  localrw
group localrwgp v2c localrw
# Third, create a view for us to let the groups have rights to:
#           incl/excl subtree                          mask
view all    included  .1                               80
# Finally, grant the 2 groups access to the 1 view with different
# write permissions:
#                context sec.model sec.level match  read   write  notif
access nvrogroup ""      any       noauth    exact  all    none   none
access nvrwgroup ""      any       noauth    exact  all    all    all
access localrogp ""      any       noauth    exact  all    none   none
access localrwgp ""      any       noauth    exact  all    all    all
#
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat
************************ SAMPLE 2 ************************************

Mark F Sklenarik  
IBM SWG Tivoli Solutions  Quality Assurance   Business Impact Management and Event Correlation  Software Quality Engineer

 


"Catalina Martinez" <Catalina.Martinez@tlc.state.tx.us>
Sent by: owner-nv-l@lists.us.ibm.com

04/04/2005 12:28 PM
Please respond to
nv-l

To
<nv-l@lists.us.ibm.com>
cc
Subject
[nv-l] RedHat Snmpd ?





Hello List,
 
I am running Netview 7.1.4 FP2 on AIX 5.2 ML04.
 
I have several linux servers and they are all show up as non-snmp.  I have call opened with Red Hat.  These servers are running RedHat ES3. I've checked the snmpd.conf file on linux servers (and made a few changes per RH tech). I do an snmpwalk from the Netview and it just times out. I check the /var/log/messages on linux and it shows the requests coming in from Netview but nothing is returned/replied.
 
Another strange thing is the messages are only logged when I restart snmpd (and then I do an smpwalk from Netview). So If I restart snmpd (linux server), then I do an snmpwalk from Netview, the message file shows "Received SNMP packet..", then it times out. I do another snmpwalk (also times out) and I do not get another "received snmp" in the /log/message file.
 
Any suggestions?
 
INS2/etc/snmp:tail /var/log/messages
Apr  4 10:45:28 INS2 snmpd[28224]: Received TERM or STOP signal...  shutting down...
Apr  4 10:45:28 INS2 snmpd: snmpd shutdown succeeded
Apr  4 10:45:28 INS2 snmpd: snmpd startup succeeded
Apr  4 10:45:28 INS2 snmpd[28260]: NET-SNMP version 5.0.9
Apr  4 10:45:38 INS2 snmpd[28260]: Received SNMP packet(s) from 10.33.1.100
Apr  4 11:11:26 INS2 snmpd[28260]: Received TERM or STOP signal...  shutting down...
Apr  4 11:11:26 INS2 snmpd: snmpd shutdown succeeded
Apr  4 11:11:26 INS2 snmpd: snmpd startup succeeded
Apr  4 11:11:27 INS2 snmpd[28323]: NET-SNMP version 5.0.9
Apr  4 11:11:29 INS2 snmpd[28323]: Received SNMP packet(s) from 10.33.1.100

<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web