Highlighted
Contributor.
Contributor.
364 views

UCMDB Physical Memory in GB???

Dear All,

 

We are using UD 10.1. Normally in UCMDB discovery windows server will discover the Windows physical memory in kb/ mb. But in our environment the windows physical memory should be display in GB. SO kindly let me know the steps how to change it.

 

Thanks,

Easwaran

0 Likes
1 Reply
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: UCMDB Physical Memory in GB???

It can be achieved by Editing the Windows HRA job script wmi_dis_memory_lib.py. Divide again by 1024 to get the result in GB

 

 

 while resultSet.next():
        memoryCounter = memoryCounter + 1
        # physical memory in bytes
        if resultSet.getString(1):
            sizeInKb += int(resultSet.getLong(1) / 1024)
    if sizeInKb:
        memory.report(OSHVResult, containerOsh, sizeInKb)
    logger.debug("Discovered ", memoryCounter, " memory slots")
   

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.