nv-l
[Top] [All Lists]

Re: [nv-l] snmptrap --> in NV different hostnames

To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] snmptrap --> in NV different hostnames
From: James Shanks <jshanks@us.ibm.com>
Date: Wed, 14 Dec 2005 08:49:28 -0500
Delivery-date: Wed, 14 Dec 2005 13:50:07 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
In-reply-to: <OF0B8F775B.706701D2-ONC12570D7.00499D38-C12570D7.004A7D40@be.ibm.com>
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com
Because you said "snmptrap" and not "nvsnmptrap" I assume you have a
NetView for UNIX environment.
trapd on UNIX resolves hostname using the OS routines gethostbyaddr(),
which means that it is up to the OS to tell him the name.

You didn't mention whether both NetViews use DNS, but I would try nslookup
on the IP address, not the name, since that is how it gets resolved, by the
"reverse" of the hostname.  There is also an executable in  /usr/OV/bin,
nvgethost, which uses the same gethostbyname() and gethostbyname() routines
that trapd (and the other NetView daemons use) which can be used for the
same purpose, to check name resolution.  You should get the same result
using
      nvgethost <name>
as you do with
      nvgethost <IP address>

If you don't, then you have a badly configured DNS or /etc/hosts file


James Shanks
Level 3 Support  for Tivoli NetView for UNIX and Windows
Tivoli Software / IBM Software Group


                                                                           
             Francis Boeykens                                              
             <francis_boeykens                                             
             @be.ibm.com>                                               To 
             Sent by:                  nv-l@lists.us.ibm.com               
             owner-nv-l@lists.                                          cc 
             us.ibm.com                                                    
                                                                   Subject 
                                       [nv-l] snmptrap --> in NV different 
             12/14/2005 08:33          hostnames                           
             AM                                                            
                                                                           
                                                                           
             Please respond to                                             
                   nv-l                                                    
                                                                           
                                                                           




Hi list,

We have parallel environments.
In one environment, when receiving a trap, generated by snmptrap in that
environment, the fully qualif. hostname is shown in the trap info.  In the
other environment we see the short hostname.  As I want to standardise both
environments, I wonder where the diff. is coming from.

I already checked the hosts file and the "hostname" command on the sending
servers is giving in both cases the short hostname.

Somebody an idea ?

Vriendelijke Groeten, Cordialement,  Kind Regards,

Francis









<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web