Re: trap handling

"Daniel Coelho" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi, thanks for getting back on this.

I received this when unplugging the network cable:

# snmpd -f -Le -d
2007-06-11 11:45:31
Sending 95 bytes to 172.18.50.92
2007-06-11 11:45:31 0000: 30 5D 02 01  01 04 06 70  75 62 6C 69  63 A7 50
02    0].....public.P.
2007-06-11 11:45:31 0016: 04 4F D2 BA  7C 02 01 00  02 01 00 30  42 30 0D
06    .O..|......0B0..
2007-06-11 11:45:31 0032: 08 2B 06 01  02 01 01 03  00 43 01 1C  30 17 06
0A    .+.......C..0...
2007-06-11 11:45:31 0048: 2B 06 01 06  03 01 01 04  01 00 06 09  2B 06 01
06    +...........+...
2007-06-11 11:45:31 0064: 03 01 01 05  01 30 18 06  0A 2B 06 01  06 03 01
01    .....0...+......
2007-06-11 11:45:31 0080: 04 03 00 06  0A 2B 06 01  04 01 BF 08  03 02
0A       .....+.........
2007-06-11 11:45:31
2007-06-11 11:45:31 NET-SNMP version 5.1.2
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
98                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GETNEXT message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.8
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 174 bytes to 172.18.50.92
2007-06-11 11:46:31 0000: 30 81 AB 02  01 01 04 06  70 75 62 6C  69 63 A7
81    0.......public..
2007-06-11 11:46:31 0016: 9D 02 04 4F  D2 BA 7E 02  01 00 02 01  00 30 81
8E    ...O..~......0..
2007-06-11 11:46:31 0032: 30 0E 06 08  2B 06 01 02  01 01 03 00  43 02 17
8C    0...+.......C...
2007-06-11 11:46:31 0048: 30 17 06 0A  2B 06 01 06  03 01 01 04  01 00 06
09    0...+...........
2007-06-11 11:46:31 0064: 2B 06 01 02  01 58 02 00  01 30 1C 06  09 2B 06
01    +....X...0...+..
2007-06-11 11:46:31 0080: 02 01 58 02  01 01 04 0F  47 65 6E 65  72 61 74
65    ..X.....Generate
2007-06-11 11:46:31 0096: 20 6C 69 6E  6B 55 70 30  0D 06 09 2B  06 01 02
01     linkUp0...+....
2007-06-11 11:46:31 0112: 58 02 01 02  04 00 30 0D  06 09 2B 06  01 02 01
58    X.....0...+....X
2007-06-11 11:46:31 0128: 02 01 03 04  00 30 17 06  09 2B 06 01  02 01 58
02    .....0...+....X.
2007-06-11 11:46:31 0144: 01 04 06 0A  2B 06 01 02  01 02 02 01  08 01 30
0E    ....+.........0.
2007-06-11 11:46:31 0160: 06 09 2B 06  01 02 01 58  02 01 05 02  01
01          ..+....X......
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
68                                                    h
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
08                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GET message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.1.1
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GET message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.7.1
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
30                                                    0
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GET message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.8.1
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 149 bytes to 172.18.50.92
2007-06-11 11:46:31 0000: 30 81 92 02  01 01 04 06  70 75 62 6C  69 63 A7
81    0.......public..
2007-06-11 11:46:31 0016: 84 02 04 4F  D2 BA 82 02  01 00 02 01  00 30 76
30    ...O.........0v0
2007-06-11 11:46:31 0032: 0E 06 08 2B  06 01 02 01  01 03 00 43  02 17 8D
30    ...+.......C...0
2007-06-11 11:46:31 0048: 17 06 0A 2B  06 01 06 03  01 01 04 01  00 06 09
2B    ...+...........+
2007-06-11 11:46:31 0064: 06 01 06 03  01 01 05 04  30 0F 06 0A  2B 06 01
02    ........0...+...
2007-06-11 11:46:31 0080: 01 02 02 01  01 01 02 01  01 30 0F 06  0A 2B 06
01    .........0...+..
2007-06-11 11:46:31 0096: 02 01 02 02  01 07 01 02  01 01 30 0F  06 0A 2B
06    ..........0...+.
2007-06-11 11:46:31 0112: 01 02 01 02  02 01 08 01  02 01 01 30  18 06 0A
2B    ...........0...+
2007-06-11 11:46:31 0128: 06 01 06 03  01 01 04 03  00 06 0A 2B  06 01 04
01    ...........+....
2007-06-11 11:46:31 0144: BF 08 03 02
0A                                       .....
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
68                                                    h
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
18                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GETNEXT message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.8.1
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
70                                                    p
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
18                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 174 bytes to 172.18.50.92
2007-06-11 11:46:31 0000: 30 81 AB 02  01 01 04 06  70 75 62 6C  69 63 A7
81    0.......public..
2007-06-11 11:46:31 0016: 9D 02 04 4F  D2 BA 84 02  01 00 02 01  00 30 81
8E    ...O.........0..
2007-06-11 11:46:31 0032: 30 0E 06 08  2B 06 01 02  01 01 03 00  43 02 17
8D    0...+.......C...
2007-06-11 11:46:31 0048: 30 17 06 0A  2B 06 01 06  03 01 01 04  01 00 06
09    0...+...........
2007-06-11 11:46:31 0064: 2B 06 01 02  01 58 02 00  01 30 1C 06  09 2B 06
01    +....X...0...+..
2007-06-11 11:46:31 0080: 02 01 58 02  01 01 04 0F  47 65 6E 65  72 61 74
65    ..X.....Generate
2007-06-11 11:46:31 0096: 20 6C 69 6E  6B 55 70 30  0D 06 09 2B  06 01 02
01     linkUp0...+....
2007-06-11 11:46:31 0112: 58 02 01 02  04 00 30 0D  06 09 2B 06  01 02 01
58    X.....0...+....X
2007-06-11 11:46:31 0128: 02 01 03 04  00 30 17 06  09 2B 06 01  02 01 58
02    .....0...+....X.
2007-06-11 11:46:31 0144: 01 04 06 0A  2B 06 01 02  01 02 02 01  08 02 30
0E    ....+.........0.
2007-06-11 11:46:31 0160: 06 09 2B 06  01 02 01 58  02 01 05 02  01
01          ..+....X......
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
78                                                    x
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
78                                                    x
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GET message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.1.2
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GET message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.7.2
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GET message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.8.2
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 149 bytes to 172.18.50.92
2007-06-11 11:46:31 0000: 30 81 92 02  01 01 04 06  70 75 62 6C  69 63 A7
81    0.......public..
2007-06-11 11:46:31 0016: 84 02 04 4F  D2 BA 88 02  01 00 02 01  00 30 76
30    ...O.........0v0
2007-06-11 11:46:31 0032: 0E 06 08 2B  06 01 02 01  01 03 00 43  02 17 8D
30    ...+.......C...0
2007-06-11 11:46:31 0048: 17 06 0A 2B  06 01 06 03  01 01 04 01  00 06 09
2B    ...+...........+
2007-06-11 11:46:31 0064: 06 01 06 03  01 01 05 04  30 0F 06 0A  2B 06 01
02    ........0...+...
2007-06-11 11:46:31 0080: 01 02 02 01  01 02 02 01  02 30 0F 06  0A 2B 06
01    .........0...+..
2007-06-11 11:46:31 0096: 02 01 02 02  01 07 02 02  01 01 30 0F  06 0A 2B
06    ..........0...+.
2007-06-11 11:46:31 0112: 01 02 01 02  02 01 08 02  02 01 01 30  18 06 0A
2B    ...........0...+
2007-06-11 11:46:31 0128: 06 01 06 03  01 01 04 03  00 06 0A 2B  06 01 04
01    ...........+....
2007-06-11 11:46:31 0144: BF 08 03 02
0A                                       .....
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GETNEXT message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.8.2
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
70                                                    p
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GETNEXT message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.8.3
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
70                                                    p
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GETNEXT message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.8.4
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
70                                                    p
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GETNEXT message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.8
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
70                                                    p
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GETNEXT message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.8.1
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
70                                                    p
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GETNEXT message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.8.2
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
70                                                    p
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 176 bytes to 172.18.50.92
2007-06-11 11:46:31 0000: 30 81 AD 02  01 01 04 06  70 75 62 6C  69 63 A7
81    0.......public..
2007-06-11 11:46:31 0016: 9F 02 04 4F  D2 BA 8F 02  01 00 02 01  00 30 81
90    ...O.........0..
2007-06-11 11:46:31 0032: 30 0E 06 08  2B 06 01 02  01 01 03 00  43 02 17
8E    0...+.......C...
2007-06-11 11:46:31 0048: 30 17 06 0A  2B 06 01 06  03 01 01 04  01 00 06
09    0...+...........
2007-06-11 11:46:31 0064: 2B 06 01 02  01 58 02 00  01 30 1E 06  09 2B 06
01    +....X...0...+..
2007-06-11 11:46:31 0080: 02 01 58 02  01 01 04 11  47 65 6E 65  72 61 74
65    ..X.....Generate
2007-06-11 11:46:31 0096: 20 6C 69 6E  6B 44 6F 77  6E 30 0D 06  09 2B 06
01     linkDown0...+..
2007-06-11 11:46:31 0112: 02 01 58 02  01 02 04 00  30 0D 06 09  2B 06 01
02    ..X.....0...+...
2007-06-11 11:46:31 0128: 01 58 02 01  03 04 00 30  17 06 09 2B  06 01 02
01    .X.....0...+....
2007-06-11 11:46:31 0144: 58 02 01 04  06 0A 2B 06  01 02 01 02  02 01 08
03    X.....+.........
2007-06-11 11:46:31 0160: 30 0E 06 09  2B 06 01 02  01 58 02 01  05 02 01
02    0...+....X......
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
98                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
98                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GET message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.1.3
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GET message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.7.3
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GET message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.8.3
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000: 20
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 149 bytes to 172.18.50.92
2007-06-11 11:46:31 0000: 30 81 92 02  01 01 04 06  70 75 62 6C  69 63 A7
81    0.......public..
2007-06-11 11:46:31 0016: 84 02 04 4F  D2 BA 93 02  01 00 02 01  00 30 76
30    ...O.........0v0
2007-06-11 11:46:31 0032: 0E 06 08 2B  06 01 02 01  01 03 00 43  02 17 8F
30    ...+.......C...0
2007-06-11 11:46:31 0048: 17 06 0A 2B  06 01 06 03  01 01 04 01  00 06 09
2B    ...+...........+
2007-06-11 11:46:31 0064: 06 01 06 03  01 01 05 03  30 0F 06 0A  2B 06 01
02    ........0...+...
2007-06-11 11:46:31 0080: 01 02 02 01  01 03 02 01  03 30 0F 06  0A 2B 06
01    .........0...+..
2007-06-11 11:46:31 0096: 02 01 02 02  01 07 03 02  01 02 30 0F  06 0A 2B
06    ..........0...+.
2007-06-11 11:46:31 0112: 01 02 01 02  02 01 08 03  02 01 02 30  18 06 0A
2B    ...........0...+
2007-06-11 11:46:31 0128: 06 01 06 03  01 01 04 03  00 06 0A 2B  06 01 04
01    ...........+....
2007-06-11 11:46:31 0144: BF 08 03 02
0A                                       .....
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GETNEXT message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.8.3
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 176 bytes to 172.18.50.92
2007-06-11 11:46:31 0000: 30 81 AD 02  01 01 04 06  70 75 62 6C  69 63 A7
81    0.......public..
2007-06-11 11:46:31 0016: 9F 02 04 4F  D2 BA 95 02  01 00 02 01  00 30 81
90    ...O.........0..
2007-06-11 11:46:31 0032: 30 0E 06 08  2B 06 01 02  01 01 03 00  43 02 17
8F    0...+.......C...
2007-06-11 11:46:31 0048: 30 17 06 0A  2B 06 01 06  03 01 01 04  01 00 06
09    0...+...........
2007-06-11 11:46:31 0064: 2B 06 01 02  01 58 02 00  01 30 1E 06  09 2B 06
01    +....X...0...+..
2007-06-11 11:46:31 0080: 02 01 58 02  01 01 04 11  47 65 6E 65  72 61 74
65    ..X.....Generate
2007-06-11 11:46:31 0096: 20 6C 69 6E  6B 44 6F 77  6E 30 0D 06  09 2B 06
01     linkDown0...+..
2007-06-11 11:46:31 0112: 02 01 58 02  01 02 04 00  30 0D 06 09  2B 06 01
02    ..X.....0...+...
2007-06-11 11:46:31 0128: 01 58 02 01  03 04 00 30  17 06 09 2B  06 01 02
01    .X.....0...+....
2007-06-11 11:46:31 0144: 58 02 01 04  06 0A 2B 06  01 02 01 02  02 01 08
04    X.....+.........
2007-06-11 11:46:31 0160: 30 0E 06 09  2B 06 01 02  01 58 02 01  05 02 01
02    0...+....X......
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
E8                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
E8                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GET message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.1.4
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GET message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.7.4
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
50                                                    P
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GET message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.8.4
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 149 bytes to 172.18.50.92
2007-06-11 11:46:31 0000: 30 81 92 02  01 01 04 06  70 75 62 6C  69 63 A7
81    0.......public..
2007-06-11 11:46:31 0016: 84 02 04 4F  D2 BA 99 02  01 00 02 01  00 30 76
30    ...O.........0v0
2007-06-11 11:46:31 0032: 0E 06 08 2B  06 01 02 01  01 03 00 43  02 17 90
30    ...+.......C...0
2007-06-11 11:46:31 0048: 17 06 0A 2B  06 01 06 03  01 01 04 01  00 06 09
2B    ...+...........+
2007-06-11 11:46:31 0064: 06 01 06 03  01 01 05 03  30 0F 06 0A  2B 06 01
02    ........0...+...
2007-06-11 11:46:31 0080: 01 02 02 01  01 04 02 01  04 30 0F 06  0A 2B 06
01    .........0...+..
2007-06-11 11:46:31 0096: 02 01 02 02  01 07 04 02  01 02 30 0F  06 0A 2B
06    ..........0...+.
2007-06-11 11:46:31 0112: 01 02 01 02  02 01 08 04  02 01 02 30  18 06 0A
2B    ...........0...+
2007-06-11 11:46:31 0128: 06 01 06 03  01 01 04 03  00 06 0A 2B  06 01 04
01    ...........+....
2007-06-11 11:46:31 0144: BF 08 03 02
0A                                       .....
2007-06-11 11:46:31
2007-06-11 11:46:31
Sending 1 bytes to callback: 3 on fd 9
2007-06-11 11:46:31 0000:
E8                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 1 on fd 4
2007-06-11 11:46:31 0000:
E8                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31 Received SNMP packet(s) from callback: 1 on fd 4
2007-06-11 11:46:31   GETNEXT message
2007-06-11 11:46:31     -- .1.3.6.1.2.1.2.2.1.8.4
2007-06-11 11:46:31
Sending 1 bytes to callback: 1 on fd 4
2007-06-11 11:46:31 0000:
00                                                    .
2007-06-11 11:46:31
2007-06-11 11:46:31
Received 1 bytes from callback: 3 on fd 9
2007-06-11 11:46:31 0000:
38                                                    8
2007-06-11 11:46:31
2007-06-11 11:47:15 Received TERM or STOP signal...  shutting down...
2007-06-11 11:47:15
Sending 71 bytes to 172.18.50.92
2007-06-11 11:47:15 0000: 30 45 02 01  01 04 06 70  75 62 6C 69  63 A7 38
02    0E.....public.8.
2007-06-11 11:47:15 0016: 04 4F D2 BA  9B 02 01 00  02 01 00 30  2A 30 0E
06    .O.........0*0..
2007-06-11 11:47:15 0032: 08 2B 06 01  02 01 01 03  00 43 02 29  0E 30 18
06    .+.......C.).0..
2007-06-11 11:47:15 0048: 0A 2B 06 01  06 03 01 01  04 01 00 06  0A 2B 06
01    .+...........+..
2007-06-11 11:47:15 0064: 04 01 BF 08  04 00
02                                 .......
2007-06-11 11:47:15

I received the trap messages on my remote box.
So, I believe that the linkUpDownNotification is working.
Is this correct?
If so, can you suggest where to start looking on how to generate disk and
memory
usage traps?
Thank you for your time.

Daniel Coelho


On 6/6/07, Dave Shield <[email protected]> wrote:
>
> On 29/05/07, Daniel Coelho <[email protected]> wrote:
> > I have configured net-snmp this way:
> >
> > /etc/snmp/snmpd.conf:
> > trap2sink  127.0.0.1 public 162
> > createUser      danielcoelho MD5 "danielcoelho"
> > rouser          danielcoelho
> > rwuser          danielcoelho
> > agentSecName    danielcoelho
> > defaultMonitors yes
> > linkUpDownNotifications yes
>
> Well, you don't need both "rouser" and "rwuser" with the same name.
> But that shouldn't affect linkUp/Down trap generation.
>
>
> Try running the agent using
>       snmpd -f -Le -d
>
> What do you see if you unplug a network interface, and wait?
>
> It might also be worth running the agent with '-Ddisman:event'
> to see more detailed debugging info.
>
> Dave
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.