To: | nv-l@lists.tivoli.com |
---|---|
Subject: | Re: [nv-l] trapgend setup |
From: | jshanks@us.ibm.com |
Date: | Fri, 5 Jul 2002 07:58:20 -0400 |
Ray - It's not as difficult as it first appears. Take a look at the other entries already defined in trapd.conf for the NetView SubAgent, which is what trapgend is officially called. You will see both negative and positive specific trap ids. These are the result of trapgend using the AIX error number as the specific trap id. Since trapd ids, per SNMP are signed decimal, and error ids in AIX are hex, a translation has to take place. And as everyone else has noted, this will result in some of the decimal numbers being negative. But that is nothing to be concerned about. They are in the proper range for an integer and they provide a unique mapping for the trap. That's all that's needed. Once the thing is turned into a trap by trapgend, you process it in decimal, just like any other trap. Check the Trap Settings node in any ruleset, and you will see what I mean. It picks up the decimal values you define in trapd.conf, not the hex equivalent. James Shanks Level 3 Support for Tivoli NetView for UNIX and NT Tivoli Software / IBM Software Group "Westphal, Raymond" <RWestphal@erac.com>
OK - I admit it; I don't get this trapgend thing. I'm confused about the conversion of the "hex error ids". I wrote a little Perl script to convert the AIX hex error ids to decimal. Here's the output. AIX error ID on the left is converted to the hex on the right. (I attached the label for reference.) The hex calculator on Windows agrees with results. However, the xnmtrap screen shows an existing OPMSG entry with -1433750975. AA8AB241 = 2861216321 (OPMSG) 4EE9D892 = 1323948178 (PHXENT_DOWN) 54E423ED = 1424237549 (SCSI_ERR9) 56CDC3C8 = 1456325576 (MACHINE_CHECK_CHRP) 5DFED6F1 = 1576982257 (JFS_FS_FRAGMENTED) 627A4F55 = 1652182869 (BADISK_ERR3) 684A365B = 1749694043 (JFS_META_CORRUPTION) Will my rulesets work with my decimal values? Thanks. Ray Westphal Enterprise Rent-A-Car -----Original Message----- From: jshanks@us.ibm.com [mailto:jshanks@us.ibm.com] Sent: Friday, June 28, 2002 9:30 AM To: nv-l@lists.tivoli.com Subject: Re: [nv-l] trapgend setup Ray - Your procedure is basically correct. For any AIX system, you can obtain the errpt identifiers in use by issuing errpt -t which gives you the current list of error templates, as they are called. Be careful to check that they are the same on each server. When AIX wants to add more information to a template they just create a new one and issue that rather than alter the old one. The numbers for CORE_DUMP , for example, have changed between AIX 3.2.5, AIX 4.1, and AIX 4.3.3. Each version of the OS add more information to the record, so each one issues a different template , with a different number, for the same condition. Once you have a list of templates you want trapgend to alert on , you must make them alertable. To see which ones are already, you would issue: errpt -tF alert=1 If you have more than what are there already, you must tell AIX to add the ones you want. For example, if you wanted to have OPMSG (the errlogger command result) be alertable, then you would get its number AA8AB241 from errpt -t, and then type in: errupdate (press enter) = AA8AB241: (press enter) Alert=TRUE (press enter; then either continue with " = <the next number>:" or ctrl-d ctrl-d to quit. Now AIX will notify trapgend when these errors are generated. trapgend in turn will send them as traps. Finally, you would convert their hex error ids (e.g AA8AB241) to decimal (2861216321) and define those as specific trap ids under the NetView subagent enterprise id (1.3.6.1.4.1.2.6.4) using xnmtrap on your NetView box. James Shanks Level 3 Support for Tivoli NetView for UNIX and NT Tivoli Software / IBM Software Group "Westphal, Raymond" <RWestphal@erac.com> 06/27/2002 04:17 PM To: "NV List (E-mail)" <nv-l@lists.tivoli.com> cc: Subject: [nv-l] trapgend setup Hello Everyone. NV 7.1.2 on AIX 4.3.3. I'm trying to setup trapgend on my servers to notify me of hardware class errors. Then I'd like to setup NetView rulesets to page me. I know a few of the errors for which I'd like to see traps and page with rulesets. For example: IDENTIFIER LABEL SOFTWARE PROGRAM ERROR +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5DFED6F1 JFS_FS_FRAGMENTED UNABLE TO ALLOCATE SPACE IN FILE SYSTEM 369D049B JFS_FS_FULL UNABLE TO ALLOCATE SPACE IN FILE SYSTEM 4865FA9B TAPE_ERR1 TAPE OPERATION ERROR 476B351D TAPE_ERR2 TAPE DRIVE FAILURE 499B30CC GXENT_LINK_DOWN ETHERNET DOWN Does anybody have a list of the errpt identifiers that they can share? Then I will need to convert the hex identifier to a decimal number and add the trap and define ruleset. Correct? Thanks. Ray Westphal Enterprise Rent-A-Car --------------------------------------------------------------------- To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com For additional commands, e-mail: nv-l-help@lists.tivoli.com *NOTE* This is not an Offical Tivoli Support forum. If you need immediate assistance from Tivoli please call the IBM Tivoli Software Group help line at 1-800-TIVOLI8(848-6548) --------------------------------------------------------------------- To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com For additional commands, e-mail: nv-l-help@lists.tivoli.com *NOTE* This is not an Offical Tivoli Support forum. If you need immediate assistance from Tivoli please call the IBM Tivoli Software Group help line at 1-800-TIVOLI8(848-6548) |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | [nv-l] APM Threshold, Maxime TRANNOY |
---|---|
Next by Date: | [nv-l] change manager hostname, Denis Peuziat |
Previous by Thread: | Re: [nv-l] trapgend setup, Jane Curry |
Next by Thread: | [nv-l] Wolfgang Bergbauer/FIRDU/Europe/MCKINSEY is out of the office., wolfgang_bergbauer |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Archive operated by Skills 1st Ltd
See also: The NetView Web