SEA 1.0.3 snmpdx - no traps possible?

Hi list,

I'm struggling hard to implement an SNMP subagent using Solaris 8 SPARC and the SEA 1.0.3 SDK. I've applied patch 108869-18 to avoid difficulties.

Querying the mib subtree controlled by my subagent works fine. Unfortunately, I can not make the master agent (snmpdx) to forward the traps generated by my subagent.

The SEA 1.0.3 documentation on SNMP is very terse. It lacks examples, especially how to configure the /etc/snmp/conf files. It has some (buggy) grammar rules but the sample files contain commented out parameters that generate parsing errors when the parameters are actually used, e.g. the parameter trap-recipients in the acl-files. I'd also like to know what the parameters in the trap-block mean, especially trap-num. There's nothing in the docs... :-(

When I run master and subagent with -d 4 I can see that the subagent generate traps and the master agent receives them, but in the master agent I get

- cut here -

<< received 503 bytes from ichh2s101.faxdev.ic.47432

PACKET:

-

30 82 01 F3 02 01 00 04 06 70 75 62 6C 69 63 A4

82 01 E4 06 09 2B 06 01 04 01 93 0F 01 02 40 04

C0 A8 15 65 02 01 06 02 01 05 43 04 03 88 24 24

30 82 01 C3 30 17 06 0C 2B 06 01 04 01 93 0F 01

02 12 01 00 04 07 47 61 74 65 77 61 79 30 11 06

0C 2B 06 01 04 01 93 0F 01 02 12 02 00 02 01 65

30 16 06 0C 2B 06 01 04 01 93 0F 01 02 12 03 00

04 06 30 30 36 35 44 33 30 24 06 0C 2B 06 01 04

01 93 0F 01 02 12 04 00 04 14 50 72 6F 63 65 73

73 20 63 6F 6E 74 72 6F 6C 20 74 61 73 6B 30 1E

06 0C 2B 06 01 04 01 93 0F 01 02 12 05 00 04 0E

53 79 73 74 65 6D 20 77 61 72 6E 69 6E 67 30 12

06 0C 2B 06 01 04 01 93 0F 01 02 12 06 00 02 02

01 91 30 23 06 0C 2B 06 01 04 01 93 0F 01 02 12

07 00 04 13 32 30 30 32 2D 30 38 2D 31 33 2D 31

30 2E 35 32 2E 31 33 30 1E 06 0C 2B 06 01 04 01

93 0F 01 02 12 08 00 04 0E 4D 6F 64 75 6C 65 20

73 74 6F 70 70 65 64 30 46 06 0C 2B 06 01 04 01

93 0F 01 02 12 09 00 04 36 4D 6F 64 75 6C 65 20

68 61 73 20 62 65 65 6E 20 73 74 6F 70 70 65 64

20 62 79 20 6F 70 65 72 61 74 6F 72 20 28 6C 6F

63 61 6C 20 6F 72 20 72 65 6D 6F 74 65 29 2E 30

12 06 0C 2B 06 01 04 01 93 0F 01 02 12 0A 00 02

02 01 F5 30 81 81 06 0C 2B 06 01 04 01 93 0F 01

02 12 0B 00 04 71 44 6F 6D 61 69 6E 20 63 6F 6E

74 72 6F 6C 20 74 61 73 6B 20 69 6E 20 4D 6F 6E

69 74 6F 72 20 31 30 31 28 41 33 29 20 69 6E 69

74 69 61 74 65 64 20 73 68 75 74 64 6F 77 6E 20

28 4E 61 6D 65 3A 20 53 79 73 74 65 6D 20 4D 6F

6E 69 74 6F 72 2C 20 52 65 61 73 6F 6E 63 6F 64

65 3A 20 4E 6F 20 65 72 72 6F 72 20 6F 63 63 75

72 72 65 64 2E 29 2E

PDU:

-

version:0

community:public

type: TRP_MSG (0xa4)

enterprise:1.3.6.1.4.1.2447.1.2

IP agent addr: ichh2s101.faxdev.ic

generic:enterpriseSpecific(6)

specific:5

time stamp:59253796

--

name:1.3.6.1.4.1.2447.1.2.18.1.0

type:OCTET STRING (0x4)

length: 7

value:Gateway ( 47 61 74 65 77 61 79 )

--

name:1.3.6.1.4.1.2447.1.2.18.2.0

type:INTEGER (0x2)

length: 4

value:101

--

name:1.3.6.1.4.1.2447.1.2.18.3.0

type:OCTET STRING (0x4)

length: 6

value:0065D3 ( 30 30 36 35 44 33 )

--

name:1.3.6.1.4.1.2447.1.2.18.4.0

type:OCTET STRING (0x4)

length: 20

value:Process control task ( 50 72 6f 63 65 73 73 20 63 6f 6e 74 72 6f 6c 20 74 61 73 6b )

--

name:1.3.6.1.4.1.2447.1.2.18.5.0

type:OCTET STRING (0x4)

length: 14

value:System warning ( 53 79 73 74 65 6d 20 77 61 72 6e 69 6e 67 )

--

name:1.3.6.1.4.1.2447.1.2.18.6.0

type:INTEGER (0x2)

length: 4

value:401

--

name:1.3.6.1.4.1.2447.1.2.18.7.0

type:OCTET STRING (0x4)

length: 19

value:2002-08-13-10.52.13 ( 32 30 30 32 2d 30 38 2d 31 33 2d 31 30 2e 35 32 2e 31 33 )

--

name:1.3.6.1.4.1.2447.1.2.18.8.0

type:OCTET STRING (0x4)

length: 14

value:Module stopped ( 4d 6f 64 75 6c 65 20 73 74 6f 70 70 65 64 )

--

name:1.3.6.1.4.1.2447.1.2.18.9.0

type:OCTET STRING (0x4)

length: 54

value:Module has been stopped by operator (local or remote). ( 4d 6f 64 75 6c 65 20 68 61 73 20 62 65 65 6e 20 73 74 6f 70 70 65 64 20 62 79 20 6f 70 65 72 61 74 6f 72 20 28 6c 6f 63 61 6c 20 6f 72 20 72 65 6d 6f 74 65 29 2e )

--

name:1.3.6.1.4.1.2447.1.2.18.10.0

type:INTEGER (0x2)

length: 4

value:501

--

name:1.3.6.1.4.1.2447.1.2.18.11.0

type:OCTET STRING (0x4)

length: 113

value:Domain control task in Monitor 101(A3) initiated shutdown (Name: System Monitor, Reasoncode: No error occurred.). ( 44 6f 6d 61 69 6e 20 63 6f 6e 74 72 6f 6c 20 74 61 73 6b 20 69 6e 20 4d 6f 6e 69 74 6f 72 20 31 30 31 28 41 33 29 20 69 6e 69 74 69 61 74 65 64 20 73 68 75 74 64 6f 77 6e 20 28 4e 61 6d 65 3a 20 53 79 73 74 65 6d 20 4d 6f 6e 69 74 6f 72 2c 20 52 65 61 73 6f 6e 63 6f 64 65 3a 20 4e 6f 20 65 72 72 6f 72 20 6f 63 63 75 72 72 65 64 2e 29 2e )

--

BUG: SSAOidCmp(): oid1 is NULLSESSIONS:

NUMBER OF SESSIONS: 0

- cut here -

Is that a bug in snmpdx or is there a configuration problem?

This is what I get when I start snmpdx in debug mode, and since I don't know how to attach files to this posting (any tips?) I added this to this (now quite log) posting. So sorry for this...

- cut here -

root@ICHH2S101 /etc/snmp/conf >01 /etc/snmp/conf >/usr/lib/snmp/snmpdx -y -c /etc/snmp/conf -d 4

Local IP Addresss : 192.168.21.101

SUBTREES:

1.3.6.1.4.1.42.2.151 1 relay-agent161 1

AGENTS:

444C8 relay-agentlocalhost.161900000000130 0

MANAGERS:

*0

COMMUNITIES(READ_WRITE): private public

#EFILTER:

enterprise="1.3.6.1.4.1.2447.1.2"

trap-num=403community-string: public

ichh2s15 192.168.21.15

trap-num=401community-string: public

ichh2s15 192.168.21.15

trap-num=805community-string: public

ichh2s15 192.168.21.15

trap-num=301community-string: public

ichh2s15 192.168.21.15

trap-num=205community-string: public

ichh2s15 192.168.21.15

trap-num=32community-string: public

ichh2s15 192.168.21.15

trap-num=31community-string: public

ichh2s15 192.168.21.15

trap-num=30community-string: public

ichh2s15 192.168.21.15

trap-num=29community-string: public

ichh2s15 192.168.21.15

trap-num=28community-string: public

ichh2s15 192.168.21.15

trap-num=27community-string: public

ichh2s15 192.168.21.15

trap-num=26community-string: public

ichh2s15 192.168.21.15

trap-num=25community-string: public

ichh2s15 192.168.21.15

trap-num=24community-string: public

ichh2s15 192.168.21.15

trap-num=23community-string: public

ichh2s15 192.168.21.15

trap-num=22community-string: public

ichh2s15 192.168.21.15

trap-num=21community-string: public

ichh2s15 192.168.21.15

trap-num=20community-string: public

ichh2s15 192.168.21.15

trap-num=19community-string: public

ichh2s15 192.168.21.15

trap-num=18community-string: public

ichh2s15 192.168.21.15

trap-num=17community-string: public

ichh2s15 192.168.21.15

trap-num=16community-string: public

ichh2s15 192.168.21.15

trap-num=15community-string: public

ichh2s15 192.168.21.15

trap-num=14community-string: public

ichh2s15 192.168.21.15

trap-num=13community-string: public

ichh2s15 192.168.21.15

trap-num=12community-string: public

ichh2s15 192.168.21.15

trap-num=11community-string: public

ichh2s15 192.168.21.15

trap-num=10community-string: public

ichh2s15 192.168.21.15

trap-num=9community-string: public

ichh2s15 192.168.21.15

trap-num=8community-string: public

ichh2s15 192.168.21.15

trap-num=7community-string: public

ichh2s15 192.168.21.15

trap-num=6community-string: public

ichh2s15 192.168.21.15

trap-num=5community-string: public

ichh2s15 192.168.21.15

trap-num=4community-string: public

ichh2s15 192.168.21.15

trap-num=3community-string: public

ichh2s15 192.168.21.15

trap-num=2community-string: public

ichh2s15 192.168.21.15

trap-num=1community-string: public

ichh2s15 192.168.21.15

TRAP RECIPIENTS:

--

PDU:

-

version:0

community:public

type: GET_REQ_MSG (0xa0)

request id:0

error status: noError(0)

error index: 0

--

name:1.3.6.1.2.1.7

type:NULL (0x5)

length: 0

value:( )

--

PACKET:

-

30 24 02 01 00 04 06 70 75 62 6C 69 63 A0 17 02

01 00 02 01 00 02 01 00 30 0C 30 0A 06 06 2B 06

01 02 01 07 05 00

>> sent 38 bytes to ichh2s101.faxdev.ic.47228

Waiting for incoming SNMP requests on UDP port 161

SESSIONS:

NUMBER OF SESSIONS: 0

- cut here -

ichh2s15 (192.168.21.15) is the SNMP management station running HP OpenView listening for SNMP traps. From there, I can also query my mib subtree.

Please let me know if you need more information.

Many thanks in advance.

Michael Kwasigroch,

FaxPlus/Open Development

Intercope Hamburg Germany

[9646 byte] By [mkwasigr] at [2007-11-26 5:53:39]
# 1
Ok,:: shame on me ::adding the enterprise oid used in our traps to /etc/snmp/conf/enterprises.oid did the trick, now it works.However, does anybody have any clarification about the parameters in the *.acl files?Thanks in advance,- Michael
mkwasigr at 2007-7-6 13:05:50 > top of Java-index,Administration Tools,Solstice Enterprise Agents...