set up SNMP


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users set up SNMP
# 1  
Old 09-25-2008
set up SNMP

hi all Smilie

does anyone ever set up an SNMP?? security team asked me to configure or set up my SNMP since it was set by default or no one configure it. but I do not know how to do it, I try to search using google but its hardly to find the tutorial on how to setup this snmp

I read this information below about this snmp
Code:
 http://www.sans.org/resources/idfaq/snmp.php

the question is
1. how to check the snmp community string value (whether is there any configuration setting in this snmp)?
2.how to set up SNMP so it will be secure for my servers here.

I have read about how this snmp can effect my servers, I do some studying before I ask here, so please help me on this.

GBU
Thank You.

Last edited by flekzout; 09-25-2008 at 05:59 AM..
# 2  
Old 09-25-2008
Setting up snmp in not a big task, but what is your exact requirement ?
How you want to use snmp ?

There are 3 versions available in snmp which varies according to security.
There are currently three versions of SNMP.

1. SNMP Version 1: this version was designed to be a protocol to provide device statistics and error reporting without consuming a lot of system resources. It has limited security.

2. SNMP Version 2: The second version often referred to as v2c, expanded the number of supported error codes, increased the size of counters used to track data, and had the ability to do bulk queries that more efficiently loaded response packets with data.

3. SNMP Version 3: This version provides greater security and remote configuration capabilities than its predecessors. Access isn't limited to a single community string for read-only and read/write access, as usernames and passwords have been introduced.

Let me know what exactly your requirement is we can accordingly work on it.

Feel free to ping me on,
yahoo id - nilesh_patil82@yahoo.com
gmail id - nils.pat@gmail.com

- nilesh
# 3  
Old 09-25-2008
Hi,

You are really awesome, thanks for your explanation.

I check my snmpd.conf from /etc/snmp/snmpd.conf in one of my RHEL, I saw that my community string is set to 'rstuvw' I dont know who set it or do this previously.

Quote:
###com2sec notConfigUser default public
com2sec notConfigUser default rstuvw
currently I use RHEL and solaris 10.

I don't know which version that I'm using, maybe v2c.

the requirement? I do not know about requirement, but security team asked me not to use default string, but I guess I'm not using default string since is set to 'rstuvw'.. I guess SNMP v3 is better than the previous 2 versions right? do you have any guidance about how to install this snmp and maybe to check all the informations in the server related to this snmp?

hey thanks again for your reply, I mean it. thanks. GBU.
# 4  
Old 09-25-2008
On rhel system u need to have following snmp packages,
Quote:
- net-snmp,
- net-snmp-libs
- and net-snmp-utils
Original snmpd.conf is very complicated, so for testing you can keep minimum configuration in /etc/snmpd.conf file like,
Code:
rocommunity  rstuvw

Try this command after installation,
Code:
snmpwalk -v1 -c rstuvw localhost

It should show something like this......
Quote:
SNMPv2-MIB::sysDescr.0 = STRING: Linux Redhat 2.6.24-19-generic #1 SMP Wed Aug 20 17:53:40 UTC 2008
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (736024) 2:02:40.24
SNMPv2-MIB::sysContact.0 = STRING: root
SNMPv2-MIB::sysName.0 = STRING: ubuntu
SNMPv2-MIB::sysLocation.0 = STRING: Unknown
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
.
.
.
And yes Version 3 is better than previous 2 versions. Which provide you username/password feature.


Refer snmpd.conf file more details.

- nilesh
# 5  
Old 09-25-2008
Hi,

Thanks for your patient for teaching me man, appreciate it.

I got the output, I use the v2 as well, but the thing is that output is look like snmptrap, my boss told me that is not the one he is looking for. =(

I guess maybe he wants to see the configuration that see something like this?

Code:
 http://www.juniper.net/techpubs/software/junos/junos71/swconfig71-net-mgmt/html/snmp-config9.html

do you know how to see that configuration? and which directory has those configuration of this snmp? I only know the /etc/snmp/snmpd.conf

any command to determine everything that related to snmp?

Thanks for your help, I guess your answer will help lots of people when they looking after this snmp things in google search. GBU.
# 6  
Old 09-26-2008
You will find all snmp commands starting with snmp*
You can also list of commands by listing rpm package contents. Smilie
Code:
rpm -ql {package name}

- nilesh
# 7  
Old 09-26-2008
hi Nilesh,

Thanks, I already search it while waiting for your answer hehe and I noticed that Solaris and RHEL directory for this snmp having lots of differences. But, I get all those ideas now. btw, how to install the V3 of this snmp? any idea?

I checked this server has been setup before, it using different value which is 'rstuvw' instead of 'public' or 'private' which it supposed to be ok right? I mean at least it should protect from the outsiders to read on my snmp settings right?

Thanks nilesh. hehe Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need to transfer all kernel logs (var/log/messages) to the snmp listener as snmp trap

i am working with embedded system -Dell DCS management sub system. my question is as below: currently we are using linux kernel 2.6.30 build and we have a kernel logs stored to the /var/log/messages path. now we have to transfer all this logs to the specified SNMP target as a part of SNMP... (4 Replies)
Discussion started by: vipul_prajapati
4 Replies

2. Shell Programming and Scripting

Help needed with shell script to search and replace a set of strings among the set of files

Hi, I am looking for a shell script which serves the below purpose. Please find below the algorithm for the same and any help on this would be highly appreciated. 1)set of strings need to be replaced among set of files(directory may contain different types of files) 2)It should search for... (10 Replies)
Discussion started by: Amulya
10 Replies

3. Infrastructure Monitoring

SNMP traps to SNMP server

Dear Champs, I am new to unix, and need to configure linux server to send below traps to a SNMP server. Monitoring TRAP Disk Space Low Monitoring TRAP Memory Low Monitoring TRAP CPU high Monitoring TRAP Admin login/Logoff Please help me how to send this information to my SNMP server... (2 Replies)
Discussion started by: stavar
2 Replies

4. IP Networking

SNMP Problem - SNMP not getting to the agent.

I am having a problem with an SNMP event, and I am not sure where I should be looking to solve this problem. Description: There is an SNMP event in our system that for one reason or another is not getting sent out as an email because it is never getting to our SNMP agent. I see where the... (0 Replies)
Discussion started by: broberts
0 Replies

5. Programming

Perl SNMP set pdu with multiple values

Hi, I'm trying to set two OID's in the same PDU (so both OIDs and values are sent in the same packet) at present I am only able to send one at a time which does not trigger the hardware response as the two specific OID's need to be set simultaneously in order to work. I'm using perl along... (0 Replies)
Discussion started by: MCLASS
0 Replies

6. Red Hat

Sending data from DELL OMSA SNMP and Custom SNMP MIB to same UDP port 161

Hi , Currently DELL OMSA SNMP sends data through default udp port 161.I want my custom SNMP MIB also to send data in the same udp port 161.Whether its possible.If yes where to configure .I tried starting my custom MIB in udp port 161,but it throws port already in use.Kindly guide. (1 Reply)
Discussion started by: prabakar4all
1 Replies

7. IP Networking

Sending data from DELL OMSA SNMP and Custom SNMP MIB to same UDP port 161

Hi , Currently DELL OMSA SNMP sends data through default udp port 161.I want my custom SNMP MIB also to send data in the same udp port 161.Whether its possible.If yes where to configure .I tried starting my custom MIB in udp port 161,but it throws port already in use.Kindly guide. (0 Replies)
Discussion started by: prabakar4all
0 Replies

8. Infrastructure Monitoring

How to Set UP a Server of SNMP

Hi Gurus of UNIX, I am newbi in UNIX. I work in a company that work with a certain type of equipment of networking. I want to configure a SNMP server. I have a PC that had installed Opensolaris, Any want can help, step by step, how to configure a SNMP Server Or can send me the links where I can... (3 Replies)
Discussion started by: andresguillen
3 Replies

9. SCO

Want to set up SNMP with MIB on SCO OS5

Want to setup snmp with mib to track system issues on SCO OS5.0.5. Is there somewhere I can look that will give me insight in how to answer some of the questions the mkdev snmp asks? (0 Replies)
Discussion started by: herd5cusa
0 Replies
Login or Register to Ask a Question