Automation with Power

Power Business Continuity and Automation

Connect, learn, and share your experiences using the business continuity and automation technologies and practices designed to ensure uninterrupted operations and rapid recovery for workloads running on IBM Power systems. 


#Power
#TechXchangeConferenceLab


#Servers
 View Only
  • 1.  FC Adapter Firmware Update

    Posted 02/22/24 05:39 AM

    Hello community,

    has anyone of you already updated adapter firmware for a Fibre Channel adapter with ansible. 

    Manually it is with the command: 

    diag -d fcs0 -T download 

    But with this command you have to select the directory interactively. 

    Is there also a possibility for this with ansible?

    Or do you have to create an idear for this?



    ------------------------------
    Andre Lutz
    SVA
    ------------------------------


  • 2.  RE: FC Adapter Firmware Update

    Posted 02/23/24 07:09 AM

    Hi Andre,

    would -c help? ;-)

    diag -d fcs0 -T download  -c



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 3.  RE: FC Adapter Firmware Update

    Posted 02/26/24 04:49 AM

    Good tip, I'll give it a try. 

    But better as AIX modules because of the idempotent 



    ------------------------------
    Andre Lutz
    ------------------------------



  • 4.  RE: FC Adapter Firmware Update

    Posted 02/26/24 05:13 AM

    Do you know how to check if the update is required in an automated manner?

    I know several options but none of them would suit for automation purposes imo. That's why I'd do quite easy:

    - name: Update microcode
      ansible.builtin.command:
        cmd: diag -d "{{ item }}" -T download -c
      loop: "{{ adapters }}"

    If it finds something to update, it updates. If it doesn't find anything, it will not update. Idempotence is guaranteed by AIX.



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 5.  RE: FC Adapter Firmware Update

    Posted 03/19/24 11:40 AM

    Thank you Andrey for your solution. 👍

    Link -> https://youtu.be/wPQ1yiGlmvI?si=mHBIwxIvgYRfNmlQ

    - name: Update microcode
      ansible.buildin.command:
        cmd: "diag -T 'download -f -l latest' -d {{ item.name}} -c "
    



    ------------------------------
    Andre Lutz
    ------------------------------