Sample automation scripts for SA Application Manager
s.we 270004QFWD Visits (1709)
With the 126.96.36.199 release of System Automation Application Manager, the capability to manage virtual guests on zEnterprise hardware has been introduced. This allows the SA Application Manager to start and stop virtual servers hosted inside the zEnterprise Ensemble.
As this functionality is not only available via the graphical interfaces but also for the command line, our team developed some sample scripts, written in PERL, to show several possibilities of eezcs scripting. You can also browse our manuals for detailed description of the new commands connect, lsnode, and nodereq.
Description: This script will accept one virtual server name (as it is shown in the zEnterprise HMC interface) and search for the mapping to a hostname in the domains known to the e2e manager. Once found the matching server is printed to STDOUT. If you want to adapt this script for later use, you should probably use it as a starting point for a general use method and instead return the name of the hostname to the caller.
Idea: Possibly you want to stop a VirtualServer, with the hostname available to you, you are able to exclude that node before stopping it.
Idea: Use this script to determine all hostnames for preparation tasks prior to a hypervisor shutdown, or determine whether your applications are sufficiently spread over multiple hypervisors.
Idea: Tthis script can be used inside a large system bringup, managing the relationship from soft- to hardware.
Idea: This script shows an example of a complete dependency, from hardware, to firs
Download the complete package from our Wiki.
Feedback on any of the scripts, new ideas for scripts and questions about other tasks is very welcome in our forum.