| |
- getSumaInfo()
- Gets basic information about SUMA from the supportconfig files.
Args: None
Returns: Dictionary with keys
Installed (Boolean) - True if SUSE Mangaer is installed as a base product
Known (Boolean) - True if the product information contained the correct number of fields
Name (String) - The name of the SUSE Manager product
Version (String) - The version string
Release (String) - The release string
Type (String) - server, proxy or unknown
Example:
SUMA = suma.getSumaInfo()
if( SUMA['Installed'] ):
if( Core.compareVersions(SUMA['Version'], '2.1') == 0 ):
Core.updateStatus(Core.REC, "SUSE Manager 2.1 is installed")
else:
Core.updateStatus(Core.ERROR, "ERROR: SUSE Manager 2.1 required")
else:
Core.updateStatus(Core.ERROR, "ERROR: SUSE Manager not installed")
- jabberdRunning()
- Confirms if all the processes required for jabberd are running.
Args: None
Returns: True or False
True - The jabberd processes are running
False - One or more jabberd processes are NOT running
Example:
if ( suma.jabberdRunning() ):
Core.updateStatus(Core.IGNORE, "The jabberd process(es) are running")
else:
Core.updateStatus(Core.WARN, "ERROR: The jabberd process(es) are not running")
|