Operating System - HP-UX
1753776 Members
7327 Online
108799 Solutions
New Discussion юеВ

Re: Configuring SNMP on HP-uX

 
PRAKASHCKESAVAN_1
Occasional Advisor

Configuring SNMP on HP-uX

Hi,

Please find my system details.

I want to configure snmp on Hp-Ux. Please help.


[1] % model
9000/800/L1000-44
[2] % uname -a
HP-UX irhpbld1 B.11.00 A 9000/800 553756577 two-user license
[6] % /usr/sbin/swlist |grep -E -i BUNDLE
# Bundle(s):
B3901BA B.11.01.20 HP C/ANSI C Developer's Bundle for HP-UX 11.00 (S800)
BUNDLE B.11.00 Patch Bundle

NOTE: Please help me to find the proper software bundle with all dependencies.

Thanks
Prakash
7 REPLIES 7
Michal Kapalka (mikap)
Honored Contributor

Re: Configuring SNMP on HP-uX

hi,

what exactly do you like configure ???

SNMPD server or just only sending snmp trpaps to some destination ??

mikap
PRAKASHCKESAVAN_1
Occasional Advisor

Re: Configuring SNMP on HP-uX

Please find my configuration on linux boxes

[rpxk@cmbldocstg02 ~]$ cat /etc/snmp/snmpd.conf
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#

### Change the following for International or West Coast.
syscontact Sys-App-Unix
#syscontact Sys-App-Unix-INTL
#syscontact Sys-App-Unix-WC

###########################################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your running
# snmp agent.

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]

rocommunity emc-it 10.254.20.0/24
rocommunity emc-it 128.221.22.0/24
rocommunity emc-it 10.12.11.0/24
rocommunity emc-it 152.62.140.0/24


###########################################################################
# SECTION: Trap Destinations
#
# Here we define who the agent will send traps to.

# trapsink: A SNMPv1 trap receiver
# arguments: host [community] [portnum]

trapsink 128.221.22.25 emc-it
trapsink 10.254.20.25 emc-it

### Don't check NFS mounts
skipNFSInHostResources 1


------------------

Thanks
PRAKASHCKESAVAN_1
Occasional Advisor

Re: Configuring SNMP on HP-uX

It is sending snmp i believe

prakash
Matti_Kurkela
Honored Contributor

Re: Configuring SNMP on HP-uX

In HP-UX /etc/SnmpAgent.d/snmpd.conf uses a slightly different syntax and it won't allow specifying networks (e.g. 10.254.20.0/24) for SNMP access.

Normally the HP-UX /etc/snmpd.conf file has a lot of comments describing the file format. Did you read it?
If the comments have been removed, you'll find a factory default version of the file at /usr/newconfig/etc/SnmpAgent.d/snmpd.conf.

These settings in /etc/SnmpAgent.d/snmpd.conf would be the closest equivalent to your Linux snmpd.conf settings:
-----------------
get-community-name: emc-it
max-trap-dest: 2
trap-dest: 128.221.22.25
trap-dest: 10.254.20.25
contact: Sys-App-Unix
-----------------

If you need to restrict the agent so that only some hosts can send SNMP queries, you must list the IP addresses of the allowed hosts one by one. For example, to allow only your trap destination hosts to send SNMP queries, the get-community-name line would be:

get-community-name: emc-it IP: 128.221.22.25 10.254.20.25

MK
MK
PRAKASHCKESAVAN_1
Occasional Advisor

Re: Configuring SNMP on HP-uX

No Luck still it is not able to send the snmp packets to the server.

Does snmpwalk equivalent is available on the server.

Regards
Prakash
PRAKASHCKESAVAN_1
Occasional Advisor

Re: Configuring SNMP on HP-uX

No Luck still it is not able to send the snmp packets to the server.

Does snmpwalk equivalent is available on HP-UX

Regards
Prakash
Bhadresh
Trusted Contributor

Re: Configuring SNMP on HP-uX

>Does snmpwalk equivalent is available on HP-UX

Following query has details about snmpwalk location:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1198770

Regards,
Bhadresh