The printf business is tricky, but it works. For example, the Node Up and
Node Down events have $3 which just says 'Node Up' or 'Node Down'.
Further, the $3 variable is mapped to the TEC slot 'msg'. I wanted to add
the nodename to the msg variable. So, in xnmtrap, in the little side dialog
for 'TEC Slot mapping' I changed the one for 'msg' from '$V3' to
PRINTF( "%s : %s", $V2, $V3 )
This works great, and the tec now gets, in the msg variable,
Nodename: Node Up
In trapd.conf, it ends up looking like:
EVENT_CLASS OV_Node_Down
BEGIN_SLOT_MAPPING
msg PRINTF( "%s : %s", $V2, $V3 )
OV_status 1
END_SLOT_MAPPING
Cordially,
Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
Detroit
netview@toddh.net
(Todd H.) To: "Westphal, Raymond"
<RWestphal@erac.com>
cc: "NV List (E-mail)"
<nv-l@lists.tivoli.com>
05/17/2002 11:53 Subject: Re: [nv-l] trap
variables to TEC slot mapping
AM
Please respond to
nv-l
"Westphal, Raymond" <RWestphal@erac.com> writes:
> Hello Everyone,
>
> NV 7.1.1 on AIX 4.3.3
>
> We are experimenting with forwarding some application events traps from
> NetView to TEC. We are having some difficulty because of duplicate event
> suppression in TEC. The events will not appear in TEC unless we make the
> previous event unique. Different application log events are sent with the
> same trap to NetView.
>
> Is it possible to combine trap variables in one TEC slot? For example,
> something like the "$V1 and $V4" to TEC slot "msg"? We tried a number of
> things like "$V1,$V4" or "$V*", etc. but we had no success.
Can you post what file/ place you're configuring these? More details
are needed to focus and answer.
--
Todd H.
http://www.toddh.net/
---------------------------------------------------------------------
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)
|