AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only

Seamlessly automate IBM AIX support lifecycle checks and updates

By Srikanth Thanneeru posted Fri August 30, 2024 08:40 AM

  

Seamlessly automate IBM AIX support lifecycle checks and updates

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.

This tutorial covers the following topics:

  • Use an application programming interface (API) to retrieve AIX support lifecycle data: Leverage an API to gather lifecycle information.
  • Implement the process on a Network Installation Management (NIM) server: Deploy the automation on a NIM server to manage client machines.

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

Seamlessly automate IBM AIX support lifecycle checks and updates - IBM Developer

# cat /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=aix-install-zep01-lp015.aus.stglabs.ibm.com&p0.os=aix&p0.aix=7200-05-05-2246&&format=btext


#   cat post_req.txt | /usr/bin/openssl s_client -tls1_2 -quiet -crlf -connect esupport.ibm.com:443 -CApath /var/ssl_aix/certs >/FLRTReport
 
# 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'
Version : 7200-05-05-2246 : Release Date : 2022.12.02 : latest : 7300-02-02-2420 : Release Date : 2024.06.07 : reboot : true
Version : 7200-05-05-2246 : 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-05-2246 : 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
#

# 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
============================================
#

0 comments
11 views

Permalink