How to choose between building your own Script Packages or Software Components

Originally posted on IBM Developer blog “Exploring PureApplication System, Software Service and more”  by Sandeep Minocha on 2 February 2017 (6028 visits)

Many clients have requirements to perform custom configuration and/or installation of custom software. I often recommend them to first automate using a simple shell or python script and then proceed to building simple Script Packages.  However Software Components can often be used as well, so how does one choose between the two? The table below should help make that choice easier.

Quality of Service/CriteriaSoftware ComponentScript Package
AttributesMany attribute types available.Limited number of attribute types available.  One key type missing is a file attribute type, however you can use ‘Additional file’ software component as a workaround.
Resource and platform requirementsYes (can specify vCPU, vMemory, vStorage and OS requirements)No
OperationsYesNo but workaround is to create on-demand script packages.
Stop/restart/delete instanceYes via stop.py and start.py lifecycle scriptsVery limited. ie. when script package is set to run on delete, otherwise must do it directly at the OS level by creating a system service to run a script on reboot.
MaintenanceCan supply a maintenance.py lifecycle script to run between the install and configure phases.No hook for a special maintenance.py script.
Lifecycle scriptsYes including install.py, configure.py, maintenance.py, start.py and stop.py.No although its equivalent to the start.py script.
BrandingYes (can specify a custom icon for your software component)No (cannot change the script package icon)
PackagingPlugin TGZ fileZIP file
Debugging/troubleshootingYes but complex; not easy to find logsYes – much easier to find logs
Disable Base Scaling PolicyYesNo
Console LinksYesYes
Licensing trackingYesYes
ToolingYes (PDK)Yes (PDK)
Maestro APIsYesYes (assuming python script)
Register logs to the Log viewerYesYes (assuming python script)
Import PermissionsWorkload resources administration full permissionCreate new catalog content

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Design a site like this with WordPress.com
Get started