Skip to content
English
  • There are no suggestions because the search field is empty.

Script to check installed hotfixes in i6 server


Hotfix Logs
Each time a hotfix is installed, it is registered in cassandra in the Hotfixes family column of the Keyspace Agent.
The commands to access this registry would be:
cassandra-cli -h IP_Servidor_OCC
use Agent;
assume Hotfixes validator as utf8;
assume Hotfixes keys as utf8;
assume Hotfixes comparator as utf8;
list Hotfixes;
The following script has been created, Hotfixes_Cassandra.sh, which obtains, in order by date, the HFs installed
on the server:
echo "use Agent;" > /tmp/script-temporal.cas
echo "assume Hotfixes validator as utf8;" >> /tmp/script-temporal.cas
echo "assume Hotfixes keys as utf8;" >> /tmp/script-temporal.cas
echo "assume Hotfixes comparator as utf8;" >> /tmp/script-temporal.cas
echo "assume Hotfixes sub_comparator as utf8;" >> /tmp/script-temporal.cas
echo "list Hotfixes limit 500;" >> /tmp/script-temporal.cas
cassandra-cli -host `grep "CASSANDRA_IP" /etc/inconcert/network.conf | awk -F '=' '{print $2}'` -port 9160 -f /tmp/script-temporal.cas > /tmp/resultado-script-temporal.txt
grep "^RowKey" /tmp/resultado-script-temporal.txt | awk '{print $2}' | sort