nv-l
[Top] [All Lists]

RE: [nv-l] Re: [tme10] Router hostname at TEC Console

To: "'nv-l@lists.us.ibm.com'" <nv-l@lists.us.ibm.com>
Subject: RE: [nv-l] Re: [tme10] Router hostname at TEC Console
From: "Evans, Bill" <Bill.Evans@hq.doe.gov>
Date: Tue, 27 Jan 2004 16:55:50 -0500
Delivery-date: Tue, 27 Jan 2004 22:12:57 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com

Try this to get the snmpSysname then make a /etc/hosts file of the results. It expects an input file of IP address/community name pairs. 

#!/bin/ksh
##########################################################
# Read and parse the file
##########################################################
set +x
InputFile=$1
while read IPAddress CommunityName 
do
   Keyword=`echo "${IPAddress}"|awk '{print substr($0,1,1)}`
  echo "IP Address is" ${IPAddress} "Community Name is" ${CommunityName}
   OID=""
   if [ "${Keyword}" != "#" ] -a [ -n ${IPAddress} ] 
     then Hostname=`/usr/OV/bin/snmpwalk -t 1 ${IPAddress} system.sysName`
#    echo "${Hostname}"
     if [ -z "${Hostname}" ]
       then echo "# ${IPAddress} No data from snmpwalk" >>GetSysName.out
       else echo ${IPAddress} ${Hostname}  >>GetSysName.out
      fi
    fi
done <${InputFile}

-----Original Message-----
From: Francois Le Hir [mailto:flehir@ca.ibm.com]
Sent: Tuesday, January 27, 2004 4:24 PM
To: tme10@lists.us.ibm.com; nv-l@lists.us.ibm.com
Subject: [nv-l] Re: [tme10] Router hostname at TEC Console

I don't know of any way to use the name configured in the snmp agent of the
device as an hostname in Netview, however if you set up some name
resolution (both way), you will be able to have the name you want as the
selection name of the objects in Netview and the same hostname in the
events you forward from Netview to TEC.

Salutations, / Regards,

Francois Le Hir
Network Projects & Consulting Services
IBM Global Services
Phone: (514) 205 6695


                                                                          
             Mario Behring                                                
             <mariobehring@yah                                            
             oo.com>                                                    To
             Sent by:                  nv-l@lists.us.ibm.com,             
             owner-tme10@lists         tme10@lists.us.ibm.com             
             .us.ibm.com                                                cc
                                                                          
                                                                   Subject
             01/27/2004 03:33          [tme10] Router hostname at TEC     
             PM                        Console                            
                                                                          
                                                                          
             Please respond to                                            
                   tme10                                                  
                                                                          
                                                                          




Hi lists,

Usually, for NetView, the hostname of the network device, router or switch,
is the IP address from which it is discovered. And this IP address is the
one that shows up at the TEC Console Hostname column.

How can I configure, if that is even possible, NetView (or TEC ??) for the
real name of the device to show up at the Hostname column at the TEC
Console ??

Normally we have a router hostname at
.iso.org.dod.internet.private.enterprises.cisco.local.lmem.hostName or
lsystem.hostName.

Any ideas ?

Thanks.

Mario Behring




Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!





<Prev in Thread] Current Thread [Next in Thread>
  • RE: [nv-l] Re: [tme10] Router hostname at TEC Console, Evans, Bill <=

Archive operated by Skills 1st Ltd

See also: The NetView Web