cancel
Showing results for 
Search instead for 
Did you mean: 

snmpd.conf empty

Fauziah Mahdan
Super Advisor

snmpd.conf empty

Hi all,
I want to set the community string from public to something else. The problem is when I open the snmpd.conf file it was empty. Why this happened? Can I copy the same files from other server with same spec?
5 REPLIES
TTr
Honored Contributor

Re: snmpd.conf empty

> when I open the snmpd.conf file it was empty. Why this happened?

Where is the snmpd.conf file and for which snmp product? The HP-UX supplied one is in /etc/snmpd.conf which is a symbolic link to /etc/SnmpAgent.d/snmpd.conf. Check if these are in place. There is also an open source snmp package that comes with internet express and is available from HP as well. This one installs under /opt. Other open source snmp packages may install under /usr/local.
Yes you can copy it from another server and set it for this server as you need. You should also check the integrity of the snmp package in case something is wrong with it.
Fauziah Mahdan
Super Advisor

Re: snmpd.conf empty

Yes this is the one I mention empty
/etc/snmpd.conf which is a symbolic link to /etc/SnmpAgent.d/snmpd.conf.
TTr
Honored Contributor

Re: snmpd.conf empty

Is the SNMP package installed? Are all the files there? You can check with

swlist -l fileset OVSNMPAgent

swlist -l file OVSNMPAgent

If averything else is there, you can copy the file from another server. I don't think anybody can tell you how the file got deleted, maybe a typo during editing the file, or accidental deletion by the administrator.
Fauziah Mahdan
Super Advisor

Re: snmpd.conf empty

I have check the file installed.
BTW if I want to copy from other server should I put in /etc folder or /etc/SnmpAgent.d

# cd etc
# ll snmpd*
lr-xr--r-T 1 root sys 15 Apr 14 2006 snmpd -> /usr/sbin/snmpd
lrwxr-xr-x 1 root sys 27 Apr 14 2006 snmpd.conf -> /etc/SnmpAgent.d/snmpd.conf
# cat snmpd.conf
# swlist -l fileset OVSNMPAgent
# Initializing...
# Contacting target "cgcapp7d"...
#
# Target: cgcapp7d:/
#

# OVSNMPAgent B.11.23 HP-UX_SNMP_Agent_Product
OVSNMPAgent.MASTER B.11.23 MASTER
OVSNMPAgent.SNMP-ENG-A-MAN B.11.23 OVSNMPAgent Manual Pages for HP-UX
OVSNMPAgent.SNMP-JPN-E-MAN B.11.23 OVSNMPAgent Manual Pages for HP-UX
OVSNMPAgent.SNMP-JPN-S-MAN B.11.23 OVSNMPAgent Manual Pages for HP-UX
OVSNMPAgent.SUBAGT-HPUNIX B.11.23 SUBAGT-HPUNIX
OVSNMPAgent.SUBAGT-MIB2 B.11.23 SUBAGT-MIB2
TTr
Honored Contributor

Re: snmpd.conf empty

In your case you should copy the file in /etc/SnmpAgent/snmpd.conf

The filesets look like they are in place. Did you check the files? You don't have to post the long file listing.