Following are steps.
1. Create a file named /tmp/free.py on the OVMM control vserver containing the following:
from com.oracle.ovm.mgr.api import *
from com.oracle.ovm.mgr.api.physical import *
def getServerInfo(mgr):
for server in mgr.getObjects(Server):
print 'server [%s]' % server.getDisplayName()
print 'usable [%s]' % server.getUsableMemory()
manager=OvmClient.getOvmManager()
getServerInfo(manager)
2. Run OVM Shell command as follows to run Python script from above steps to list the Memory utilization of OVS Dom0 nodes. Replace the password with the password for admin user of OVM Manager.
# /usr/bin/ovm_shell.sh -u admin -p <password> -i /tmp/free.py
Below is the sample output
# /usr/bin/ovm_shell.sh -u admin -p welcome1 -i /tmp/free.py
server [ovs-dom-node-04]
usable [210050]
server [ovs-dom-node-02]
usable [228412]
server [ovs-dom-node-03]
usable [213936]
server [ovs-dom-node-01]
usable [218312]
Products to which Article Applies
Oracle VM Manager - All versions.
Article Author: Tarun Boyella
No comments:
Post a Comment