Highlighted
Micro Focus Expert
Micro Focus Expert
444 views

Issue with resolving the IP address to FQDN in UCMDB 10.20

Jump to solution

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.

 

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

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

Jump to solution

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.

 

View solution in original post

0 Likes
1 Reply
Highlighted
Micro Focus Expert
Micro Focus Expert

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

Jump to solution

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.

 

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.