Re: IP addresses showing instead of names

It would be nice to know what methods and what order the CMS uses to discover names of devices.

I know it used to do a reverse DNS lookup of names (in 4.2 I think) which caused problems in our environment since we do not use our SUN DNS hostnames for our Wintel servers here. But that seems to have been fixed in 5.0.

At that time I wrote a vbs script and ran it ever night that would get the SNMP name and if that failed I'd try a WMI get and rewrote the names in the database so they would show up with our servernames instead of the location-based alphanumeric hostnames.

Re: IP addresses showing instead of names

You are correct I believe the problem has to do with reverse lookup.

These devices, as I stated, are not computers. They are control units that allow people to use a "debit card" to pay for copiers. They run a unix based OS. I have to manually create the DNS records but unfortunately the reverse records were not all created properly.

I am trying to figure out a way to script the process. Otherwise I have to do it manually. Eck :P

Set colSystem = objWmiServices.InstancesOf("SNMP_RFC1213_MIB_system", , _ objWmiNamedValueSet)For Each objInterface In colSystem For Each objProp In objInterface.Properties_ If objProp.Name = "sysName" Then strComputer = objProp.Value NextNext

' If the name is a full DNS name return only the HostnameIf InStr(strComputer, ".") > 0 Then strComputer = Left(strComputer, InStr(strComputer, ".") - 1)End If

' If there was an error, then return ""If Err.Number <> 0 Then strComputer = "" Err.ClearEnd IfEnd Sub

Re: IP addresses showing instead of names

Hmm looks like MS DNS. Which we don't have here, so I haven't coded against it. MVPS might have help on that.

Do you know that those reverse names are not in your DNS now?

Back to an earlier point: It would be nice to know what protocols and what order the CMS uses when doing discovery to name the devices. Once they are there does nightly discovery change them as it used to in 4.2? I don't seem to have those problems in 5.0 anymore, but don't know what changes HP implemented.

My earlier solution was to rewrite the info in the SQL database (scheduled task after the nightly discovery) that our CMS uses so that our MS server names would show rather than our location based SUN alpha-numeric DNS hostnames would display.

That angle (rewriting names in the database) might provide the results you want, albeit from a slightly different direction than you were looking for.

You may have to just run it once; the names may stick. But an answer from someone on the discovery process of the CMS would be nice first.

Re: IP addresses showing instead of names

When HP SIM gets a response to an IP address ping, the only method it uses for name resolution is DNS. That can be a local hosts file or a DNS service. No other process is used (Insight Manager 7 would use WINS if it was present).

I think the easiest workaround for Michael would be to create a local hosts file rather than trying to create the PTR records...