Automation with Power

Automation with Power

Learn about using IBM Power automation tools to automate repetitive tasks and quickly identify and resolve production issues. Start a discussion thread - share your experiences by writing a blog - and stay up to date by browsing the content library. 

 View Only
  • 1.  Missing feature - Ansible nimclient module for NIM operations from a client

    Posted Sun January 19, 2025 08:22 AM

    Hello everyone!
    I miss one feature in the aix collection, the nimclient module that would allow Network Installation Management (NIM) operations to be performed from a NIM client. Right now we have the ibm.power_aix.nim module that allows tasks to be performed from NIM side. This makes it difficult to use NIM if we are doing something with ansible on AIX servers (targets). I tried using delegate_to: nim_master but it is not a perfect solution either (e.g. credantials).

    Right now I do it like this:
    ---
    - name: AIX System Update
      hosts: aix_hosts
      tasks:
        - name: Perform AIX system update 
          shell: > 
            /usr/lpp/bos.sysmgt/nim/methods/c_sm_nim update_all 
            -l "{{ lpp_source }}" 
            -f 'Y' -f 'c' -f 'N' -f 'g' -f 'X'

    Unless I missed something and it is possible in the current collection.




    ------------------------------
    Kamil P
    ------------------------------


  • 2.  RE: Missing feature - Ansible nimclient module for NIM operations from a client

    Posted Thu April 24, 2025 03:14 AM

    Hi Kamil !
    Sorry for the late reply.
    Can you please elaborate upon what kind of tasks you want to perform on the NIM clients, which currently you are not able to achieve through the existing modules ?



    ------------------------------
    Shreyansh Chamola
    ------------------------------



  • 3.  RE: Missing feature - Ansible nimclient module for NIM operations from a client

    Posted Fri April 25, 2025 03:54 AM

    Hi Shreyansh,

    I think Kamil wrote it quite clear - there is no nimclient module and he wants to have it. /me too. There is no such functionality at all in power_aix collection.

    I usually do updates on NIM clients, not on the NIM server:

    • cust operation to install or update filesets (nimclient -o cust)
    • allocate operation to assign resource to the client (nimclient -o allocate)
    • deallocate operation to unassign resource from the client (nimclient -o deallocate)
    • list to get information about defined NIM objects (nimclient -l)



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

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



  • 4.  RE: Missing feature - Ansible nimclient module for NIM operations from a client

    Posted Sun April 27, 2025 06:04 AM

    Hi Kamil, Andrey !
    This looks like a useful module to have.
    Thanks for the request, we will include this in our list of future enhancements!



    ------------------------------
    Shreyansh Chamola
    ------------------------------