Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Auto Script To Update OS Agents:

#Script to Update Operating System Agent


#!/bin/bash
export CURRENT_VERSION=06.30.06.00
export AGENT_TYPE=UX
for node in `/usr/Tivoli/bin/tacmd listsystems -t $AGENT_TYPE | grep -i Y |egrep -v
$CURRENT_VERSION | cut -f 1 -d " " | tail -n +2`;
do /usr/Tivoli/bin/tacmd updateagent -f -t $AGENT_TYPE -n $node; done

Auto Script To Update WAS Agents:


#Script to Update WAS Agent
#!/bin/bash
export CURRENT_VERSION=07.20.00.03
export AGENT_TYPE=YN
for node in `/usr/Tivoli/bin/tacmd listsystems -t $AGENT_TYPE |grep -w Y |egrep -v
$CURRENT_VERSION | cut -f 1 -d " "|cut -d':' -f2|awk '!x[$0]++'|grep ^s| tail -n +2`;
do /usr/Tivoli/bin/tacmd updateagent -f -t $AGENT_TYPE -n $node:KUX; done
for node in `/usr/Tivoli/bin/tacmd listsystems -t $AGENT_TYPE |grep -w Y |egrep -v
$CURRENT_VERSION | cut -f 1 -d " "|cut -d':' -f2|awk '!x[$0]++'|grep ^l| tail -n +2`;
do /usr/Tivoli/bin/tacmd updateagent -f -t $AGENT_TYPE -n $node:LZ; done

You might also like