UCMDB and UD Practitioners Forum (Previously CMS)
Showing results for 
Search instead for 
Do you mean 

Issue with resolving the IP address to FQDN in UCMDB 10.20

SOLVED
Go to Solution
Valued Contributor

Issue with resolving the IP address to FQDN in UCMDB 10.20

Hi

 

Wondering if someone can help with resolving bit of a python script issue.

 

We have recently installed UCMDB 10.20 and applied some custom packages on it after resolving the conflicts manually.

 

There was a slight change made in the "wmi_connection_util.py" script to identify fqdn based on IP address as below which was working fine in 10.01 but giving error in 10.20 when running the discovery.

 

Script: - WMI_Connection_Utils.py

Function : - doWMI

Code: - fqdn = netutils.getHostName(ip_address, None)

 

Error Message on discovery panel: -

WMI: Internal error. Details:

Traceback (most recent call last):

File “WMI_Connection_Utils”, line 503, in mainFunction

File “WMI_Connection_Utils”, line 216, in doWMI

File “netutils”, line 71, in getHostName

File “netutiils”, line 103, in isValidIp

TypeError: ‘NoneType’ object is not callable

 

Is this some OOTB issue with netutils.py script as we haven't amended this one so it should not appear as the last one in the error message?

 

Any idea who this can be resolved.

 

1 REPLY
Valued Contributor

Re: Issue with resolving the IP address to FQDN in UCMDB 10.20

Problem is resolved by putting the ip_address within str() as below: -

netutils.getHostName(str(ip_address), None)

 

Not sure why it didn’t complain in 10.01 and error message generated was misleading which wasn’t pointing to the real issue of converting it to string.

 

//Add this to "OnDomLoad" event