As I remember it, these values are actually signed integers. In other words,
if the top bit is set, it is actually a negative number. The OPSMSG code
starts hex A which is 1010 - top bit set. To get to the negative value, do the
translation as you have and subtract that number from 2 to the power 32. I
make this to be -(4,294,967,296 - 2,861,216,321 ) = -1,433,750,975.
Signs of a misspent youth......
Cheers,
Jane
"Westphal, Raymond" wrote:
> 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)
>
> ---------------------------------------------------------------------
> 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)
--
Tivoli Certified Consultant & Instructor
Skills 1st Limited, 2 Cedar Chase, Taplow, Bucks, SL6 0EU, UK
Tel: +44 (0)1628 782565
Copyright (c) 2002 Jane Curry <jane.curry@skills-1st.co.uk>. All rights
reserved.
|