UCMDB and UD Practitioners Forum (Previously CMS)
cancel

UCMDB Physical Memory in GB???

Highlighted
Esh
Member

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

1 REPLY
shameer_pm
Super Collector

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")
   

//Add this to "OnDomLoad" event