When any agent sends a trap the origin is an IP address, and in the case of
netmon traps, it starts out as the address of your NetView box. But to be
consistent with agent traps, trapd substitutes the hostname of the box the trap
is about, which he got from netmon, and that is why for NetView traps,
$NVATTR_2 and $NVA should always be the same. They will be hostnames unless
netmon and trapd were unable to resolve the IP address originally.
James Shanks
Tivoli (NetView for UNIX) L3 Support
Sean Aaron <sean.aaron@UCOP.EDU> on 10/04/99 05:17:29 PM
Please respond to Discussion of IBM NetView and POLYCENTER Manager on NetView
<NV-L@UCSBVM.UCSB.EDU>
To: NV-L@UCSBVM.UCSB.EDU
cc: (bcc: James Shanks/Tivoli Systems)
Subject: Re: using a script in a ruleset.
James Shanks wrote:
>
>It may just be that I didn't follow what you said, or that I am
> being too picky about this, but I don't want you to feel that I have misled
you,
> if I misinterpret what you said.
Yeah, you misinterpreted; I follow how it works ;).
> The other detail that puzzles me is your concern that the trap Origin might be
a
> better indicator of the actual selection name for purposes of Querying a
> Collection. I have never seen a case where NVATTR_2 and NVA were different
in
> netmon trap. I think either one should do the job.
>
The description of NVA states that is is the "agent address." This
makes me think it's an IP address, which wouldn't be very informative
info to send in a mail...if it's actually the hostname (NVATTR_2), then
great, less typing!
--
Sean Aaron
UNIX System Administrator
University of California
Office of the President
|