Operating System - HP-UX
1833875 Members
1985 Online
110063 Solutions
New Discussion

snmp community names - how to...

 
SOLVED
Go to solution
Jeff Hoevenaar
Frequent Advisor

snmp community names - how to...

HP-UX 11i

How do I change the snmp community name?

How do I know what it is set to currently?

What else do I need to change to eliminate the public/private default names?

Thanks.
5 REPLIES 5
Uday_S_Ankolekar
Honored Contributor

Re: snmp community names - how to...

Configuration file is under /etc called snmpd.conf
This has current community setup and trap destinations etc..
-USA
Good Luck..
DCE
Honored Contributor

Re: snmp community names - how to...

The configuration file is /etc/snmpd.conf. It contains all of your current settings, as well as a very good description as to how to configure the file.

You can also do a man on snmpd.conf for further details

Dave
Rick Garland
Honored Contributor
Solution

Re: snmp community names - how to...

Changes take place in the /etc/snmpd.conf file.

Towards the bottom of the file you will find the get-community-name, set-community-name, contact, location, etc... These are the values you would change. By default the get-community-name is 'public'. Once the change(s) have been made need to stop/start the snmp;

# /sbin/init.d/emsa stop
emsagent stopped
# /sbin/init.d/SnmpHpunix stop
# /sbin/init.d/SnmpMaster stop
snmpdm stopped

# /sbin/init.d/SnmpMaster start
SNMP Research SNMP Agent Resident Module Version 14.2.1.7
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 SNMP
Research, Inc.
# /sbin/init.d/SnmpHpunix start
# /sbin/init.d/emsa start



Are you using EMS? If so, check these documents - KBRC00012590 &
UXEMSKBRC00003120

When a change is made to snmp there is an impact to EMS. You will get "resources not available" or "resources not configured".
These 2 documents will detail the why's and the howto's of resolving this.
Jeff Hoevenaar
Frequent Advisor

Re: snmp community names - how to...

Thanks for the replies.

Other than looking in the snmpd.conf file is there an easy way for me to confirm the name has changed? Perhaps a command?
Rick Garland
Honored Contributor

Re: snmp community names - how to...

If you have some OV applications (i.e. NNM, ITO) then you would have some of the snmp tools that would allow you to do the 'snmpwalk' command against the system.

If you have the snmp tools, here is an example;

snmpwalk

snmpwalk -v1 -c $HOST system
doing an snmpwalk on the system '$HOST' using snmp version 1 and a getcommunityname of ''

only getting the MIB info the the iod=system, to get all of the oid info do not use the system option at end of command


Other than viewing the snmpd.conf file, I do not know of a command to view the community names.