Xen
index
/usr/lib/sca/python/Xen.py

Supportconfig Analysis Library for Xen patterns
 
Library of python functions used when dealing with supportconfigs from Xen
vitural machines or their virtual machine servers.

 
Modules
       
Core
re

 
Functions
       
getConfigFiles()
Stores the non-XML Xen configuration files in list of dictionaries
 
Args: None
Returns: List of Dictionaries
 
Example:
Pending
getDiskValueList(XEN_CONFIG_DISK_VALUE)
isDom0()
Confirms if the supportconfig is from a Xen Dom0 virtual machine server
 
Args: None
Returns: True or False
        True - The server is a virtual machine server
        False - The server is NOT a virutal machine server
 
Example:
 
if ( Xen.isDom0() ):
        Core.updateStatus(Core.WARN, "The server is a Xen Dom0 virtual machine server")
else:
        Core.updateStatus(Core.ERROR, "ERROR: Not a Xen Dom0")
isDom0Installed()
Determines if the Xen Dom0 kernel is installed in the menu.lst available for booting
 
Args: None
Returns: True or False
        True - Xen virtualization is installed
        False - Xen virtualization is NOT installed
 
Example:
 
if ( Xen.isDom0Installed() ):
        Core.updateStatus(Core.WARN, "The server has Xen Dom0 installed, buy may or may not be running")
else:
        Core.updateStatus(Core.ERROR, "ABORT: The server does not have Xen Dom0 installed")
isDomU()
Confirms if the supportconfig is from a Xen DomU virtual machine
 
Args: None
Returns: True or False
        True - The server is a virtual machine
        False - The server is NOT a virutal machine
 
Example:
        
if ( Xen.isDomU() ):
        Core.updateStatus(Core.WARN, "The server is a Xen DomU virtual machine")
else:
        Core.updateStatus(Core.ERROR, "ERROR: Not a Xen DomU")