SUMA Overview
SUMA Overview
SUMA stands for Service Update Management Assistant, which sets up an automated interface to download fixes from the IBM Fix Central website to your systems. SUMA provides flexible, task-based
How to Use SUMA
SUMA can perform various actions such as downloading and installing fixes, previewing available updates, listing all SUMA tasks, editing existing tasks, running tasks, unscheduling tasks, deleting tasks, and listing global SUMA configuration settings. SUMA tasks can be scheduled to run at specific times, and the results of these tasks are logged in the system for review.
Requirements
SUMA requires AIX version 7.1
TL3
3.6
Example Usage
This example demonstrates how to check, download, and install system updates for the current oslevel of the system using SUMA.
The following code snippets show how to use SUMA to check, download, and install system updates for different oslevels.
- name: Check, download and install system updates for the current oslevel of the system
suma:
action: download
oslevel: Latest
download_dir: /usr/sys/inst.images
- name: Check and download required to update to SP 7.2.3.2
suma:
action: download
oslevel: '7200-03-02'
download_only: true
download_dir: /tmp/dl_updt_7200-03-02
when: ansible_distribution == 'AIX'
- name: Check, download and install to latest SP of TL 7.2.4
suma:
action: download
oslevel: '7200-04'
last_sp: true
extend_fs: false
Main Functions
There are several main functions in this folder. Some of them are suma_download
suma_list
suma_edit
suma_unschedule
suma_delete
suma_run
suma_config
suma_default
suma_download
suma_list
suma_download
suma_download
The suma_download
The suma_download
def suma_download():
"""
Download / Install (or preview) action
suma_params['action'] should be set to either 'preview' or 'download'.
First compute all Suma request options. Then preform a Suma preview, parse
output to check there is something to download, if so, do a suma download
if needed (if action is Download). If suma download output mentions there
is downloaded items, then use install_all_updates command to install them.
note:
Exits with fail_json in case of error
"""
# Check oslevel format
if not suma_params['oslevel'].strip() or suma_params['oslevel'].upper() == 'LATEST':
suma_params['oslevel'] = 'Latest'
else:
if re.match(r"^[0-9]{4}(|-00|-00-00|-00-00-0000)$", suma_params['oslevel']):
msg_oslevel = suma_params['oslevel']
suma_list
suma_list
The suma_list
This is an auto-generated document by Swimm 🌊 and has not yet been verified by a human