The OPSHMC sample REXX program provides the following four activation profile group keywords that retrieve or set attribute values:
Specifies a reset activation profile name that the REXX program will use to match with one of the Reset Activation Profile names defined on your HMC.
Specifies a load activation profile name that the REXX program will use to match with one of the Load Activation Profile names defined on your HMC.
Specifies an image activation profile name that the REXX program will use to match with one of the Image Activation Profile names defined on your HMC.
Specifies a group activation profile name that the REXX program will use to match with one of the Group Activation Profile names defined on your HMC.
Example: Set or Retrieve an Attribute Using Activation Profile Group Keywords
/* REXX */ getat='TARGET(192.168.4.2) COMMUNITY(public) CPC("MF01")', 'ACTION("getAttribute")' call "OPSHMC" getat 'DEBUG(NO)', 'PROFILEGROUP("ZVM")' , 'ATTRIBUTE("ACT_PROFILE_CAPACITY")' call "OPSHMC" getat 'DEBUG(NO)', 'PROFILEIMAGE("COUPLEI1")', 'ATTRIBUTE("ACT_PROFILE_IPLADDR")' call "OPSHMC" getat 'DEBUG(NO)', 'PROFILERESET("RESETMF01")', 'ATTRIBUTE("ACT_PROFILE_IOCDS")' call "OPSHMC" getat 'DEBUG(NO)', 'PROFILELOAD("LOADVMZ")', 'ATTRIBUTE("ACT_PROFILE_IPLADDR")'
/* REXX */ setat='TARGET(192.168.4.2) COMMUNITY(public) CPC("MF01")', 'ACTION("setAttribute")' call "OPSHMC" setat 'DEBUG(NO)', 'PROFILEGROUP("ZVM")' , 'ATTRIBUTE("ACT_PROFILE_CAPACITY") value(30)'
Copyright © 2014 CA Technologies.
All rights reserved.
|
|