The general answer is "no". You cannot see the same trap twice, once with a hostname and once with an IP Address. NetView uses name resolution wherever possible, and displays a particular trap only once.
However, certain traps such as NetView's Interface Down/Up contain the IP address as a separate varbind, varbind 7,and you can modify the trap format in trapd.conf, using xnmtrap, to display both. For example, the current format for the Event Log message for IBM_NVIUP_EV (58916866) is given as simply "$3", which is the 3rd varbind. Netmon supplies it as "Interface <name> up". But you could add to it, say for example,
"$3. IP ADDRESS = $7"
and the event should display showing the IP Address as well. You could change the IBM_NVIDWN_EV (58916867) in a similar fashion.
For Node Up/Down events (58916864 and 58916865), varbind 8 contains a comma delimited list of all the interfaces on the node. You could alter those events to display that list if you desired.
For non-NetView vendor events you are restricted to whatever they send in their traps.
You can learn more about the contents of NetView internal traps in Appendix A of the Administrator's Guide. I'd use the 7.1.5 documentation even if you have 7.1.4, because it was rewritten to be more complete and a number of old errors were expunged. It's more likely to correct than the 7.1.4 doc, even if it documents a couple of traps you don't have.
http://publib.boulder.ibm.com/infocenter/tivihelp/v3r1/index.jsp?toc=/com.ibm.itnetview.doc/toc.xml
James Shanks
Level 3 Support for Tivoli NetView for UNIX and Windows
Network Availability Management
Network Management - Development
Tivoli Software, IBM Corp
"Santhanakrishnan Janakiraman (IT Services), Chennai" <santhanakrishnanjn AT hcl DOT in>
"Santhanakrishnan Janakiraman (IT Services), Chennai" <santhanakrishnanjn AT hcl DOT in>
Sent by: nv-l-bounces AT lists.ca.ibm DOT com
06/01/2007 02:27 PM
Please respond to
Tivoli NetView Discussions <nv-l AT lists.ca.ibm DOT com> |
|
|
Hi,
Thanks for your reply. I understand what you said but my question is whether i can able to get two entries at the same time in trapd.log, one with IP address and another with hostname when an event occurs.
Thanks & Regards
SanthanaKrishnan.J
Office: 044-28221129 Ext-2206
Mobile: +91- 9840943639
From: nv-l-bounces AT lists.ca.ibm DOT com [mailto:nv-l-bounces AT lists.ca.ibm DOT com] On Behalf Of James Shanks
Sent: Wednesday, May 30, 2007 9:51 PM
To: Tivoli NetView Discussions
Subject: Re: [NV-L] Traps by hostname
If you get a NetView trap which is not resolved, then you have a DNS problem. Most likely the reverse look-up, IP address to hostname, is missing. Both netmon and trapd do everything they can to use hostnames rather than IP addresses in the traps which netmon sends and trapd displays. If a NetView trap, e.g., Node Down, shows up in trapd.log with an IP address instead of a hostname, then it's a fact that netmon's gethostbyaddr call failed to provide one.
The same is true for a non-NetView trap. If a non-NetView trap is shown in trapd.log with an IP address rather than a hostname, then trapd's gethostbyaddr call failed to provide one.
Try using the nvgethost command in /usr/OV/bin. You should get the same results when you use the hostname and when you sue the IP address. If they differ, then you have a problem to resolve.
James Shanks
Level 3 Support for Tivoli NetView for UNIX and Windows
Network Availability Management
Network Management - Development
Tivoli Software, IBM Corp
"Santhanakrishnan Janakiraman (IT Services), Chennai" <santhanakrishnanjn AT hcl DOT in>
"Santhanakrishnan Janakiraman (IT Services), Chennai" <santhanakrishnanjn AT hcl DOT in>
Sent by: nv-l-bounces AT lists.ca.ibm DOT com
05/30/2007 11:30 AM
Please respond to
Tivoli NetView Discussions <nv-l AT lists.ca.ibm DOT com> |
|
|
Hi,
Iam using Netview 7.1.4.4 on AIX 5L , DB is Oracle 9i.
Do netview send trap by Hostname, already iam getting trap by IP address. Can I able to get trap by both identity when an event occurs. Please advice me on this
Thanks & Regards
SanthanaKrishnan.J
Office: 044-28221129 Ext-2206
Mobile: +91- 9840943639
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
----------------------------------------------------------------------------------------------------------------------- |
_______________________________________________
NV-L mailing list
NV-L AT lists.ca.ibm DOT com
Unsubscribe:NV-L-leave AT lists.ca.ibm DOT com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to internal IBM'ers only)
_______________________________________________
NV-L mailing list
NV-L AT lists.ca.ibm DOT com
Unsubscribe:NV-L-leave AT lists.ca.ibm DOT com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to internal IBM'ers only)
_______________________________________________
NV-L mailing list
NV-L AT lists.ca.ibm DOT com
Unsubscribe:NV-L-leave AT lists.ca.ibm DOT com
http://lists.ca.ibm.com/mailman/listinfo/nv-l (Browser access limited to
internal IBM'ers only)
|