[nv-l] Trap Configration
2003-01-10 15:42:52
Hello,
NV 7.1.3 on AIX 4.3.3.10
How do I tokenize an incoming trap? I am trying to define some traps
for the IBM 3494 Enterprise Library and the trap it sends has one
variable only. This variable contains the following, for example [from
Operators Guide, p261], . . .
3494 C2444 OPINT 48 180 - - A cartridge containing invalid media has
been left in the device 180 feed slot. Remove sartridge.
Gernerally, the traps are formatted as follows . . .
3494 {Library Sequence Number} {Library Manager Trap Type} {Trap
Number} {Rest of message}
What I want to do is be able to somehow show the {Rest of Message} part
of the trap when it is recorded in the trapd.log.
Before formatting here's what is recorded in the trapd.log.
1041951368 3 Tue Jan 07 09:56:08 2003 tsm3494.carilion.com ? Trap
found with no known format in trapd.conf(4)
1041951368 3 Tue Jan 07 09:56:08 2003 tsm3494.carilion.com ?
Enterprise ibm (1.3.6.1.4.1.2.2.1.5) community public
1041951368 3 Tue Jan 07 09:56:08 2003 tsm3494.carilion.com ?
generic trap:6 specific trap:9
1041951368 3 Tue Jan 07 09:56:08 2003 tsm3494.carilion.com ?
Timestamp:94571500 Agentaddr:tsm3494.carilion.com args(1):
1041951368 3 Tue Jan 07 09:56:08 2003 tsm3494.carilion.com ?
[1] private.enterprises.ibm.2.1.5.2.0 (OctetString): 3494 18007
TESTM *Test Message from tsm3494
In this case, I need to extract the "Test Message from tsm3494" part of
the trap only. In other cases I will need to extract [from Operators
Guide example above] the C2444 part of the message.
TIA
Mahesh
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [nv-l] Trap Configration,
Mahesh Tailor <=
|
|
|