itm-batch-operations
Login to TEMS
tacmd login -t 1440 -s localhost -u username
List active endpoints
tacmd listSystems -t UX
Put a script to the endopoint
tacmd putfile -m wtc_tsmsrv:KUX -s ./ntp.sh -d /tmp/ntp.sh -t text
Execute a command on endpoint
tacmd executecommand -m wtc_tsmsrv:KUX -c "hostname" -o -r -v -e -l
Get an output from the script
tacmd getfile -m servername:KUX -t text -s source -d destination
List active situations
listsit wbr_sipap1:07
tacmd executecommand -c '/bin/su - root -c "CANDLEHOME=/opt/ITM /opt/ITM/bin/itmcmd agent stop all;CANDLEHOME=/opt/ITM /opt/ITM/bin/itmcmd agent start all"' -m mgmt-cml-tep1:LZ