Retrieve Updated RAM Value on Window Server Without Rebooting the machine using ServiceNow Discovery

srinija_itom
Giga Guru

When running discovery on a Windows server, the RAM value is retrieved from the registry. However, this value may not reflect any recent increase in RAM on the machine. To fetch the updated RAM value without rebooting the machine, you can use the following command in the Command Prompt. 

 

wmic computersystem get totalphysicalmemory

I have incorporated this feature into the extension step of the Windows discovery pattern. Please find the attachment accompanying this post for more details.

 

Git Hub Link - Retrieve Updated RAM Value on Windows Server Without Rebooting in ServiceNow using di... 

 

Medium Link 

 

Please note: Since my account doesn't have the option to post an article, I am sharing this as a post here instead.

 

Regards, 

 

Srinija

1 REPLY 1

Selva Arun
Mega Sage
Mega Sage

@srinija_itom ,

 

Thank you for sharing this, Srini. This is definitely valuable information. Please keep it coming!

Regards,
Selva