One use case for this feature is the ability to select which VLAN the VM should be allocated.
The following steps show how to expose the parameters in the GUI (as tioadmin):
- Stop TSAM/TPM
cd /opt/IBM/tivoli/tpm/tools/
./tio.sh stop - Create a temporary directory
mkdir ~/temp
cd ~/temp - Copy SRMCommons.jar to the new directory
cp /opt/IBM/WebSphere/AppServer/profiles/ctgAppSrv01/installedApps/ctgCell01/MAXIMO.ear/SRMCommons.jar . - Open the JAR file
/opt/IBM/WebSphere/AppServer/java/bin/jar xvf SRMCommons.jar - Edit the config.properties
vi ./com/ibm/tivoli/simplesrm/configuration/config.properties - Search for property ParameterPassing, set it to true:
#If "true" - passing parameter button is visible in Create and Add panels.
ParameterPassing=true - Rebuild the JAR file
/opt/IBM/WebSphere/AppServer/java/bin/jar cvf SRMCommons.jar . - Copy the new JAR file to the WebSphere directory (you might want to keep a copy of the original JAR file to revert back to the original GUI):
cp SRMCommons.jar /opt/IBM/WebSphere/AppServer/profiles/ctgAppSrv01/installedApps/ctgCell01/MAXIMO.ear/SRMCommons.jar - Restart TSAM/TPM:
cd /opt/IBM/tivoli/tpm/tools/
./tio.sh start - You'll see a new area at the bottom of the Create Project with Server option:
- Clicking the Custom properties button, you'll be able to add any parameter to the Virtual Server Template.
No comments:
Post a Comment