ITM6 install agent remote via software depot

iKnow-IT banner

You can install remotely an ITM6 agent on a system where already an OS agent is installed and running.

Before you can do that the agent software must be added to the software depot:

# tacmd addbundles -i ./<agent software directory> -t 07 

KUICAB023I: Are you sure you want to add the following bundles to the /opt/IBM/HUBTEMS/ITM/depot depot? 

Product Code : 07 
Deployable   : True 
Version      : 024000003 
Description  : Monitoring Agent for Custom AIX OS 
Host Type    : unix 
Host Version : aix523,aix526,aix533,aix536,aix613,aix616,hp11,hp116,hpi116,lx8266,lia266,lpp266,li6223,li6242,li6243,li6245,li6246,li6262,li6263,li6265,li6266,ls3223,ls3226,ls3242,ls3243,ls3245,ls3246,ls3262,ls3263,ls3265,ls3266,sol283,sol286,sol293,sol296,sol503,sol506,sol606 

Prerequisites: 

 KUICAB024I: Enter Y for yes or N for no: Y 

 KUICAB020I: Adding bundles to the /opt/IBM/HUBTEMS/ITM/depot depot. The time required to complete this operation depends on the number and size of the added bundles. 

 KUICAB022I: The following bundles were successfully added to the /opt/IBM/HUBTEMS/ITM/depot depot: 

Product Code : 07 
Deployable   : True 
Version      : 024000003 
Description  : Monitoring Agent for Custom AIX OS 
Host Type    : unix 
Host Version : aix523,aix526,aix533,aix536,aix613,aix616,hp11,hp116,hpi116,lx8266,lia266,lpp266,li6223,li6242,li6243,li6245,li6246,li6262,li6263,li 6265,li6266,ls3223,ls3226,ls3242,ls3243,ls3245,ls3246,ls3262,ls3263,ls3265,ls3266,sol283,sol286,sol293,sol296,sol503,sol506,sol606 

You can check if the depot looks ok:

# tacmd viewdepot | grep -p "Code : 07"      (or "tacmd viewdepot  -t 07"   ;-) )

Product Code : 07 
Version      : 021000001 
Description  : Monitoring Agent for Custom AIX OS 
Host Type    : unix 
Host Version : aix523,aix526,aix533,aix536,aix613,aix616,hp11,hp116,hpi116,lx8266,lia266,lpp266,li6223,li6242,li6243,li6245,li6246,li6262,li6263,li6265,li6266,ls3223,ls3226,ls3242,ls3243,ls3245,ls3246,ls3262,ls3263,ls3265,ls3266,sol283,sol286,sol293,sol296,sol503,sol506,sol606 

Prerequisites: 

Product Code : 07 
Version      : 024000003 
Description  : Monitoring Agent for Custom AIX OS 
Host Type    : unix 
Host Version : aix523,aix526,aix533,aix536,aix613,aix616,hp11,hp116,hpi116,lx8266,lia266,lpp266,li6223,li6242,li6243,li6245,li6246,li6262,li6263,li6265,li6266,ls3223,ls3226,ls3242,ls3243,ls3245,ls3246,ls3262,ls3263,ls3265,ls3266,sol283,sol286,sol293,sol296,sol503,sol506,sol606 

Prerequisites: 

Now you can install the new version remotely via the software depot:

# tacmd updateAgent -t 07 -n <target hostname>:KUX -v 024000003 

KUICUA012I: Are you sure you want to update the 07 agents that manage <target hostname>:07 to version 024000003? Updating these agents stops any that are running, applies the changes, and restarts them. 

Enter Y for yes or N for no:Y 

KUICUA011I: Updating the 07 agents. 

KUICUA027I: The operation has been successfully queued for deployment, the transaction id is 1439467452634106000015885, use the getDeployStatus CLI to view the status. 

 

With the following command you can check the status of the remote deployment

#  tacmd getdeploystatus -g 1439467452634106000015885 

Transaction ID : 1439467452634106000015885 
Command        : UPDATE 
Status         : INPROGRESS 
Retries        : 0 
TEMS Name      : REMOTE_<hostname> 
Target Hostname: <target hostname>:KUX 
Platform       : unix 
Product        : 07 
Version        : 024000003 
Error Message  : KDY0033I: Request is being processed.  The deployment status can be viewed using tacmd getDeployStatus to query the state of request. 

#  tacmd getdeploystatus -g 1439467452634106000015885  

Transaction ID : 1439467452634106000015885 
Command        : UPDATE 
Status         : SUCCESS 
Retries        : 0 
TEMS Name      : REMOTE_<hostname> 
Target Hostname: <target hostname>:KUX 
Platform       : unix 
Product        : 07 
Version        : 024000003 
Error Message  : KDY0028I: Request completed successfully. Deployment request was processed successfully and is now completed.  

# tacmd listsystems | egrep " 07 |UX" | grep <hostename>
<hostname>:07                07           02.40.00.03 Y 
<hostname>:KUX               UX           06.23.05.02 Y