Automation with Power

 View Only
  • 1.  FC Adapter Firmware Update

    Posted Thu February 22, 2024 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

    IBM Champion
    Posted Fri February 23, 2024 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 Mon February 26, 2024 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

    IBM Champion
    Posted Mon February 26, 2024 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 Tue March 19, 2024 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
    ------------------------------