How to get Memory Usage from Windows Server 2012 R2 in OpenStack
In PowerShell

Get-WmiObject -Class win32_operatingsystem -Property TotalVisibleMemorySize,FreePhysicalMemory


Or 

wmic os get freephysicalmemory


Or

systeminfo