--- Dave Shield <[EMAIL PROTECTED]> wrote:

> On 11/12/2007, PoWah Wong <[EMAIL PROTECTED]>
> wrote:
> > > Please try with
> > >
> > >    /usr/local/sbin/snmpd -f -Le -Dread_config
> 
> > I will post the entire output even though it is
> quite long:
> 
> Thanks, that was useful.
> I spotted a couple of problems with the two
> "trapsess" lines:
> 
> > read_config: /usr/local/share/snmp/snmpd.conf:6
> > examining: trapsess -v 3 -u test_MD5_AES -l
> authPriv
> >    -a MD5 -A 12345678 -x AES -X 87654321 -e
> >    0x800000000102030405060708 172.20.11.58
> 
> This entry ought to work, but I know we've had
> problems
> with implicitly specifying the default port.
>    It would be worth tweaking this line to end  
> "... 172.20.11.58:162"
> 
> 
> > read_config: /usr/local/share/snmp/snmpd.conf:9
> > examining: trapsess 172.20.10.149:162 -u
> >   "adminwindows" -a MD5 -A "12345678" -x DES -X
> >    "87654321" -v 3 -l authPriv
> 
> This line won't work, because you've got the trap
> destination *before* the various options.  Try
> moving
> this to the end of the line (as with the first
> entry).
> 
> 
> Then restart the agent.
> Does this send traps to your two trap destinations?
> 
> 
> If not, then please start the agent using
> 
>    snmpd -f -Le -Dtrap -d
> 
> and post the output.
> 
> Dave
> 
>
Killing snmpd generate a trap but snmptrapd still does
not receive it.
# ps -ef|grep snmp
root      6620  3110  1 09:25 pts/1    00:00:00 snmpd
-f -Le -Dtrap -d
root      6993  4313  0 09:25 pts/0    00:00:00 grep
snmp
# kill -HUP  6620

# snmpd -f -Le -Dtrap -d
registered debug token trap, 1
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed
agent_registry.c:535 netsnmp_subtree_load()
trap: adding callback trap sink
trapsess: adding to trap table
trap: adding callback trap sink
trapsess: adding to trap table
trap: send_trap 0 0 NET-SNMP-MIB::netSnmpAgentOIDs.10
trap: sending trap type=167, version=3

Sending 190 bytes to UDP: [172.20.11.58]:162
0000: 30 81 BB 02  01 03 30 11  02 04 67 16  C6 11 02
03    0.....0...g.....
0016: 00 FF E3 04  01 03 02 01  03 04 3D 30  3B 04 0D
80    ..........=0;...
0032: 00 1F 88 80  6A 19 93 7B  D3 C7 55 47  02 01 39
02    ....j..{..UG..9.
0048: 01 00 04 0C  74 65 73 74  5F 4D 44 35  5F 41 45
53    ....test_MD5_AES
0064: 04 0C EE 56  70 87 53 BF  93 36 02 39  77 DA 04
08    ...Vp.S..6.9w...
0080: B7 E6 DF 54  9B 52 18 86  04 64 55 0C  7F 2C 50
63    ...T.R...dU..,Pc
0096: 4C 97 85 5F  F7 DC E0 C0  95 4A 19 7D  C6 45 F2
14    L.._.....J.}.E..
0112: 25 27 7A 62  57 3F 53 26  39 8A 6B BA  3D 6E 04
53    %'zbW?S&9.k.=n.S
0128: A6 2B F2 FA  77 0E 09 47  B1 40 BF 57  82 CF 8E
8C    [EMAIL PROTECTED]
0144: E3 46 1F 0B  54 E1 D4 7A  B6 0F 0E 3E  CC 1D 1C
E1    .F..T..z...>....
0160: F0 92 BF 4A  72 95 1F 57  49 5E 0F 9D  2F 79 5F
50    ...Jr..WI^../y_P
0176: 65 26 BD 21  EF 21 E9 0C  99 C4 51 D1  93 E6    
     e&.!.!....Q...

trap: sending trap type=167, version=3

Sending 194 bytes to UDP: [172.20.10.149]:162
0000: 30 81 BF 02  01 03 30 11  02 04 67 16  C6 11 02
03    0.....0...g.....
0016: 00 FF E3 04  01 03 02 01  03 04 3D 30  3B 04 0D
80    ..........=0;...
0032: 00 1F 88 80  6A 19 93 7B  D3 C7 55 47  02 01 39
02    ....j..{..UG..9.
0048: 01 00 04 0C  61 64 6D 69  6E 77 69 6E  64 6F 77
73    ....adminwindows
0064: 04 0C 2D 2B  D4 DB 04 36  1F 57 36 9B  5B D6 04
08    ..-+...6.W6.[...
0080: 00 00 00 39  6B D7 F1 E2  04 68 0F ED  65 77 7D
88    ...9k....h..ew}.
0096: 34 52 77 F2  71 0D B1 64  3B 5E 8D 40  0F 2F F9
9A    4Rw.q..d;[EMAIL PROTECTED]/..
0112: 49 EB 7A A8  9A B1 8F B7  44 A6 68 D8  E1 99 85
A2    I.z.....D.h.....
0128: 19 47 2E 6D  9F BC A2 59  EA 08 63 77  0E 2C B0
2F    .G.m...Y..cw.,./
0144: 20 AA 30 C5  E8 90 25 8F  8B 47 A0 DC  FB EB AA
B1     .0...%..G......
0160: 51 F3 AC 82  7F E5 5B 64  65 87 33 71  79 38 4D
9D    Q.....[de.3qy8M.
0176: 7E B9 10 0E  74 46 F9 1A  50 59 1B 97  18 40 7B
26    [EMAIL PROTECTED]&
0192: A3 D9                                           
     ..

NET-SNMP version 5.4.1
Reconfiguring daemon
NET-SNMP version 5.4.1 restarted
trap: adding callback trap sink
trapsess: adding to trap table
trap: adding callback trap sink
trapsess: adding to trap table
trap: send_trap 6 3
NET-SNMP-MIB::netSnmpNotificationPrefix
trap: sending trap type=167, version=3

Sending 190 bytes to UDP: [172.20.11.58]:162
0000: 30 81 BB 02  01 03 30 11  02 04 67 16  C6 12 02
03    0.....0...g.....
0016: 00 FF E3 04  01 03 02 01  03 04 3D 30  3B 04 0D
80    ..........=0;...
0032: 00 1F 88 80  6A 19 93 7B  D3 C7 55 47  02 01 3A
02    ....j..{..UG..:.
0048: 01 1E 04 0C  74 65 73 74  5F 4D 44 35  5F 41 45
53    ....test_MD5_AES
0064: 04 0C E1 B6  29 BF BB 4C  5C E9 5A 90  13 85 04
08    ....)..L\.Z.....
0080: B7 E6 DF 54  9B 52 18 87  04 64 CF 74  C5 5B F1
5A    ...T.R...d.t.[.Z
0096: CD 9C A1 F7  6B CC 7F 79  7A E1 72 52  82 24 FF
96    ....k..yz.rR.$..
0112: D6 03 E1 83  10 77 4C C5  D5 1D 3C 1A  C9 7E F6
1B    .....wL...<..~..
0128: 29 71 46 53  6A D2 5D 55  51 FA 20 79  FE 27 BF
B2    )qFSj.]UQ. y.'..
0144: F1 D4 1C E5  59 9C 3D 0F  10 00 3B 42  F1 16 7D
9C    ....Y.=...;B..}.
0160: 73 DD 43 72  5E 8E 2C 81  51 76 E6 32  4C 78 32
55    s.Cr^.,.Qv.2Lx2U
0176: 18 00 31 7B  55 DF 7A D3  94 3B 91 48  9C A4    
     ..1{U.z..;.H..

trap: sending trap type=167, version=3

Sending 194 bytes to UDP: [172.20.10.149]:162
0000: 30 81 BF 02  01 03 30 11  02 04 67 16  C6 12 02
03    0.....0...g.....
0016: 00 FF E3 04  01 03 02 01  03 04 3D 30  3B 04 0D
80    ..........=0;...
0032: 00 1F 88 80  6A 19 93 7B  D3 C7 55 47  02 01 3A
02    ....j..{..UG..:.
0048: 01 1E 04 0C  61 64 6D 69  6E 77 69 6E  64 6F 77
73    ....adminwindows
0064: 04 0C 2D 64  97 F6 6C 01  72 44 5B 10  56 8E 04
08    ..-d..l.rD[.V...
0080: 00 00 00 3A  6B D7 F1 E3  04 68 34 E3  89 3B A4
0D    ...:k....h4..;..
0096: 7C 54 89 AD  6C E9 67 55  43 05 5F A1  13 B3 F8
00    |T..l.gUC._.....
0112: C1 3D 6C 28  B2 B7 3A 70  F4 04 23 EB  24 C3 FC
74    .=l(..:p..#.$..t
0128: B9 C2 17 03  B6 37 3B 9B  3A F3 B2 B9  79 F7 A1
00    .....7;.:...y...
0144: 5D EB 61 BC  B0 58 A6 87  02 DC EB DF  EA 2D 1C
83    ].a..X.......-..
0160: 18 6B D3 50  AC 19 DB D8  C8 93 E8 41  6D AC ED
84    .k.P.......Am...
0176: 5D 59 48 4F  F7 53 C4 75  DF 8E 18 D7  68 BA 17
6E    ]YHO.S.u....h..n
0192: 6F 5E                                           
     o^

                                                      
                   




      Connect with friends from any web browser - no download required. Try the 
new Yahoo! Canada Messenger for the Web BETA at 
http://ca.messenger.yahoo.com/webmessengerpromo.php

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to