Maintaining up-to-date IBM AIX systems and staying informed about their support lifecycle is essential for effective planning and automation. Manually checking the end-of-support dates for your operating system each quarter can be tedious and prone to errors. By using programmatic methods to gather this information, you can streamline the update process and ensure compliance with support deadlines. This tutorial provides a step-by-step approach to obtain AIX support lifecycle data programmatically, enabling automated notifications and updates.
By the end of this tutorial, you will have the tools to automate workflows that notify you of new releases or approaching end-of-support dates, keeping your systems updated with the latest software
# cat ./FLRT
#!/bin/ksh
for CLIENT in $(lsnim -c machines | grep -v master | awk -F " " '{ print $1 }')
do
CLIENT="${CLIENT}.aus.stglabs.ibm.com"
OSLEVEL=$(/usr/lpp/bos.sysmgt/nim/methods/c_rsh $CLIENT '/usr/bin/oslevel -s')
cat <<EOF >/post_req.txt
POST /customercare/flrt/query?format=btext HTTP/1.0
Host: esupport.ibm.com
Accept: */*
Content-Length: 178
Content-Type: application/x-www-form-urlencoded
reportname=FLRTReport 06 May 2024 03:19:54 AM&p0.mtm=9040-MR9&p0.fw=UM950_145&p0.parnm=$CLIENT&p0.os=aix&p0.aix=$OSLEVEL&format=btext
EOF
cat /post_req.txt | /usr/bin/openssl s_client -tls1_2 -quiet -crlf -connect esupport.ibm.com:443 -CApath /var/ssl_aix/certs 1>/FLRTReport 2>/dev/null
echo CLIENT : $CLIENT OSLEVEL = $OSLEVEL
echo ============================================
cat /FLRTReport | grep -E "~release~" | sed 's/~/ : /g' | sed 's/aix/Version/g' | sed 's/release/Release Date/g' | sed 's/update/Recommended Update/g' | sed 's/upgrade/Recommended Upgrade/g' | sed 's/eosps/EoSPS Date/g' | sed 's/\<br\/>//g'
echo ============================================
done
# ./FLRT
CLIENT : aix-install-zep01-lp009.aus.stglabs.ibm.com OSLEVEL = 7300-01-00-0000
============================================
Version : 7300-01-00 : Release Date : 2022.12.02 : EoSPS Date : 2025.12.31 : latest : 7300-02-02-2420 : Release Date : 2024.06.07 : reboot : true
Version : 7300-01-00 : Recommended Update : 7300-01-03-2346 : Release Date : 2024.01.12 : EoSPS Date : 2025.12.31 : latest : 7300-01-04-2420 : Release Date : 2024.07.19 : reboot : true
Version : 7300-01-00 : Recommended Upgrade : 7300-01-02-2320 : Release Date : 2023.04.28 : EoSPS Date : 2025.12.31 : latest : 7300-02-02-2420 : Release Date : 2024.06.07 : reboot : true
============================================
CLIENT : aix-install-zep01-lp015.aus.stglabs.ibm.com OSLEVEL = 7300-01-02-2319
============================================
============================================
CLIENT : aix-install-zep01-lp016.aus.stglabs.ibm.com OSLEVEL = 7300-02-02-2420
============================================
Version : 7300-02-02-2420 : Release Date : 2024.06.07 : EoSPS Date : 2026.11.30 : latest : 7300-02-02-2420 : Release Date : 2024.06.07 : reboot : true
============================================
CLIENT : aix-install-zep01-lp017.aus.stglabs.ibm.com OSLEVEL = 7200-05-06-2320
============================================
Version : 7200-05-06-2320 : Release Date : 2023.04.28 : latest : 7300-02-02-2420 : Release Date : 2024.06.07 : reboot : true
Version : 7200-05-06-2320 : Recommended Update : 7200-05-07-2346 : Release Date : 2023.11.10 : latest : 7200-05-08-2420 : Release Date : 2024.06.07 : reboot : true
Version : 7200-05-06-2320 : Recommended Upgrade : 7300-01-02-2320 : Release Date : 2023.04.28 : EoSPS Date : 2025.12.31 : latest : 7300-02-02-2420 : Release Date : 2024.06.07 : reboot : true
============================================
#