AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
Expand all | Collapse all

nim: Action: Update UnboundLocalError: local variable 'unavail_targets' referenced before assignment

  • 1.  nim: Action: Update UnboundLocalError: local variable 'unavail_targets' referenced before assignment

    Posted Thu January 11, 2024 01:53 AM

    I am trying to use ansible to do our AIX patching.   In my playbook when it goes  to execute the following code:

      - name: Run AIX Update
        nim:
          action: update
          lpp_source: "{{ nim_lpp_source }}"
          targets: "{{ ansible_hostname }}"
        delegate_to: "{{ nim_master }}"

    I get the following error:  The error was: UnboundLocalError: local variable 'unavail_targets' referenced before assignment

    I am using ibm.power_aix:1.7.2 which appears to be the latest and greatest.

    Now I'm fairly new at Ansible so maybe I'm missing something .   I don't have have a variable unavail_targets in my script.

    Any advice would be greatly appreciated.



    ------------------------------
    J Willsea
    ------------------------------



  • 2.  RE: nim: Action: Update UnboundLocalError: local variable 'unavail_targets' referenced before assignment

    Posted Fri January 12, 2024 05:02 AM

    Hi.
    If you look under the collection "issues" (https://github.com/IBM/ansible-power-aix/issues) this was a problem in the module and has been addressed.

    The fix was available in the latest files in the the repo (github) but had also now been released in v1.8 which came out this morning.



    ------------------------------
    Rich Jefferies
    ------------------------------



  • 3.  RE: nim: Action: Update UnboundLocalError: local variable 'unavail_targets' referenced before assignment

    Posted Fri January 12, 2024 09:29 AM

    Thank you.  I did the update and now I get the error: 

    fatal: [aix-testvictim01 -> nim]: FAILED! => {"msg": "Unable to import nim due to invalid syntax"}

    PLAYBOOK:

    ---
     
    - name: AIX Patching Playbook
      hosts: all
      become: true
     
      vars:
        nim_lpp_source: lpp_source=aix_73_lpp
        nim_master: nim
        ansible_python_interpreter: /usr/bin/python3
     
      collections:
        - ibm.power_aix
     
      tasks:
     
      - name: Cleanup any existing alt_disk_copy
        alt_disk:
          action: clean
     
      - name: Create an alt_disk_copy for backup
        alt_disk:
          targets: hdisk99998
     
      - name: Stop Application
        shell: /usr/local/scripts/shutit
     
      - name: Run AIX Update
        nim:
          action: update
          lpp_source: "{{ nim_lpp_source }}"
          targets: "{{ ansible_hostname }}"
        delegate_to: "{{ nim_master }}"
        remote_user: ansible
        become: yes
     
      - name: Reboot
        reboot:
          post_reboot_delay: 180
     
      - name: Start Application
        shell: /usr/local/scripts/startit
    Here's the Verbose output:
    ansible-playbook [core 2.14.9]
      config file = /etc/ansible/ansible.cfg
      configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
      ansible python module location = /usr/lib/python3.9/site-packages/ansible
      ansible collection location = /home/ansible/.ansible/collections:/usr/share/ansible/collections
      executable location = /usr/bin/ansible-playbook
      python version = 3.9.18 (main, Sep  7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/usr/bin/python3)
      jinja version = 3.1.2
      libyaml = True
    Using /etc/ansible/ansible.cfg as config file
    Parsed /home/ansible/wwd_ansible/JAW/inventory inventory source with ini plugin
    [WARNING]: Skipping callback plugin 'ansible.posix.profile_tasks', unable to load
    Skipping callback 'default', as we already have a stdout callback.
    Skipping callback 'minimal', as we already have a stdout callback.
    Skipping callback 'oneline', as we already have a stdout callback.
     
    PLAYBOOK: aix_patch_1128.yaml ***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
    1 plays in aix_patch_1128.yaml
     
    PLAY [AIX Patching Playbook] ****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
     
    TASK [Gathering Facts] **********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
    task path: /home/ansible/wwd_ansible/JAW/aix_patch_1128.yaml:3
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
    <aix-testvictim01> (0, b'/home/ansible\n', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1705069580.8633835-3764349-25044096326549 `" && echo ansible-tmp-1705069580.8633835-3764349-25044096326549="` echo /home/ansible/.ansible/tmp/ansible-tmp-1705069580.8633835-3764349-25044096326549 `" ) && sleep 0'"'"''
    <aix-testvictim01> (0, b'ansible-tmp-1705069580.8633835-3764349-25044096326549=/home/ansible/.ansible/tmp/ansible-tmp-1705069580.8633835-3764349-25044096326549\n', b'')
    Using module file /usr/lib/python3.9/site-packages/ansible/modules/setup.py
    <aix-testvictim01> PUT /home/ansible/.ansible/tmp/ansible-local-3764345lgv24h40/tmp9yj4rwe5 TO /home/ansible/.ansible/tmp/ansible-tmp-1705069580.8633835-3764349-25044096326549/AnsiballZ_setup.py
    <aix-testvictim01> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' '[aix-testvictim01]'
    <aix-testvictim01> (0, b'sftp> put /home/ansible/.ansible/tmp/ansible-local-3764345lgv24h40/tmp9yj4rwe5 /home/ansible/.ansible/tmp/ansible-tmp-1705069580.8633835-3764349-25044096326549/AnsiballZ_setup.py\n', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1705069580.8633835-3764349-25044096326549/ /home/ansible/.ansible/tmp/ansible-tmp-1705069580.8633835-3764349-25044096326549/AnsiballZ_setup.py && sleep 0'"'"''
    <aix-testvictim01> (0, b'', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' -tt aix-testvictim01 '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-yzwllgiashrwgpcmcgrihkxfxwjxbche ; /usr/bin/python3 /home/ansible/.ansible/tmp/ansible-tmp-1705069580.8633835-3764349-25044096326549/AnsiballZ_setup.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
    Escalation succeeded
    <aix-testvictim01> (0, b'AttributeError("module \'os\' has no attribute \'getloadavg\'")\r\n\r\n{"ansible_facts": {"ansible_date_time": {"year": "2024", "month": "01", "weekday": "Friday", "weekday_number": "5", "weeknumber": "02", "day": "12", "hour": "08", "minute": "27", "second": "10", "epoch": "1705069630", "epoch_int": "1705069630", "date": "2024-01-12", "time": "08:27:10", "iso8601_micro": "2024-01-12T14:27:10.503142Z", "iso8601": "2024-01-12T14:27:10Z", "iso8601_basic": "20240112T082710503142", "iso8601_basic_short": "20240112T082710", "tz": "CST", "tz_dst": "CDT", "tz_offset": "CST"}, "ansible_distribution": "AIX", "ansible_distribution_release": "3", "ansible_distribution_version": "7.3", "ansible_distribution_major_version": "7", "ansible_os_family": "AIX", "ansible_iscsi_iqn": "iqn.aix-testvictim01.hostid.0a3369de", "ansible_fibre_channel_wwn": ["C050760ADCA600CE", "C050760ADCA600D0", "C050760ADCA600D2", "C050760ADCA600D4", "C050760ADCA600D6", "C050760ADCA600D8"], "ansible_system_capabilities_enforced": "N/A", "ansible_system_capabilities": "N/A", "ansible_user_id": "root", "ansible_user_uid": 0, "ansible_user_gid": 0, "ansible_user_gecos": "", "ansible_user_dir": "/", "ansible_user_shell": "/usr/bin/ksh", "ansible_real_user_id": 0, "ansible_effective_user_id": 0, "ansible_real_group_id": 0, "ansible_effective_group_id": 0, "ansible_processor": ["PowerPC_POWER9"], "ansible_processor_count": 1, "ansible_processor_cores": 1, "ansible_processor_threads_per_core": 8, "ansible_processor_vcpus": 8, "ansible_memtotal_mb": 32768, "ansible_memfree_mb": 24781, "ansible_swaptotal_mb": 512, "ansible_swapfree_mb": 496, "ansible_firmware_version": "FW950.80", "ansible_product_name": "IBM,9040-MR9", "ansible_product_serial": "78B448X", "ansible_lpar_info": "24 aix-testvictim01", "ansible_vgs": {"rootvg": [{"pv_name": "hdisk1", "pv_state": "active", "total_pps": "639", "free_pps": "339", "pp_size": "128 megabyte(s)"}]}, "ansible_mounts": [{"mount": "/", "device": "/dev/hd4", "fstype": "jfs2", "options": "rw,log=/dev/hd8", "time": "Jan 11 09:40", "size_total": 5368709120, "size_available": 5315678208, "block_size": 4096, "block_total": 1310720, "block_available": 1297773, "block_used": 12947, "inode_total": 1156968, "inode_available": 1154135, "inode_used": 2833}, {"mount": "/usr", "device": "/dev/hd2", "fstype": "jfs2", "options": "rw,log=/dev/hd8", "time": "Jan 11 09:40", "size_total": 2550136832, "size_available": 342179840, "block_size": 4096, "block_total": 622592, "block_available": 83540, "block_used": 539052, "inode_total": 122705, "inode_available": 78711, "inode_used": 43994}, {"mount": "/var", "device": "/dev/hd9var", "fstype": "jfs2", "options": "rw,log=/dev/hd8", "time": "Jan 11 09:40", "size_total": 5368709120, "size_available": 5291986944, "block_size": 4096, "block_total": 1310720, "block_available": 1291989, "block_used": 18731, "inode_total": 1149650, "inode_available": 1148662, "inode_used": 988}, {"mount": "/tmp", "device": "/dev/hd3", "fstype": "jfs2", "options": "rw,log=/dev/hd8", "time": "Jan 11 09:40", "size_total": 4294967296, "size_available": 4145364992, "block_size": 4096, "block_total": 1048576, "block_available": 1012052, "block_used": 36524, "inode_total": 900081, "inode_available": 899993, "inode_used": 88}, {"mount": "/home", "device": "/dev/hd1", "fstype": "jfs2", "options": "rw,log=/dev/hd8", "time": "Jan 11 09:40", "size_total": 5368709120, "size_available": 5367025664, "block_size": 4096, "block_total": 1310720, "block_available": 1310309, "block_used": 411, "inode_total": 1164815, "inode_available": 1164781, "inode_used": 34}, {"mount": "/admin", "device": "/dev/hd11admin", "fstype": "jfs2", "options": "rw,log=/dev/hd8", "time": "Jan 11 09:40", "size_total": 134217728, "size_available": 133844992, "block_size": 4096, "block_total": 32768, "block_available": 32677, "block_used": 91, "inode_total": 29110, "inode_available": 29105, "inode_used": 5}, {"mount": "/proc", "device": "/proc", "fstype": "procfs", "options": "rw", "time": "Jan 11 09:40", "size_total": -1024, "size_available": 0, "block_size": 1024, "block_total": -1, "block_available": 0, "block_used": -1, "inode_total": 0, "inode_available": 0, "inode_used": 0}, {"mount": "/opt", "device": "/dev/hd10opt", "fstype": "jfs2", "options": "rw,log=/dev/hd8", "time": "Jan 11 09:40", "size_total": 5368709120, "size_available": 4495818752, "block_size": 4096, "block_total": 1310720, "block_available": 1097612, "block_used": 213108, "inode_total": 987495, "inode_available": 976821, "inode_used": 10674}, {"mount": "/var/adm/ras/livedump", "device": "/dev/livedump", "fstype": "jfs2", "options": "rw,log=/dev/hd8", "time": "Jan 11 09:40", "size_total": 268435456, "size_available": 268058624, "block_size": 4096, "block_total": 65536, "block_available": 65444, "block_used": 92, "inode_total": 58204, "inode_available": 58200, "inode_used": 4}, {"mount": "/usr/local", "device": "/dev/lv_usrlocal", "fstype": "jfs2", "options": "rw,log=/dev/lv_ul_log", "time": "Jan 11 09:40", "size_total": 4294967296, "size_available": 4141715456, "block_size": 4096, "block_total": 1048576, "block_available": 1011161, "block_used": 37415, "inode_total": 903417, "inode_available": 899451, "inode_used": 3966}, {"mount": "/usr/local/logs", "device": "/dev/lv_locallog", "fstype": "jfs2", "options": "rw,log=/dev/loclog_log", "time": "Jan 11 09:40", "size_total": 2684354560, "size_available": 2683572224, "block_size": 4096, "block_total": 655360, "block_available": 655169, "block_used": 191, "inode_total": 582404, "inode_available": 582399, "inode_used": 5}, {"mount": "autofs", "device": "auto.oscarl:/oscarl", "fstype": "Jan", "options": "", "time": "11 09:40 ignore"}, {"mount": "autofs", "device": "auto.nim:/nim", "fstype": "Jan", "options": "", "time": "11 09:40 ignore"}, {"mount": "autofs", "device": "auto.nfssrv:/nfssrv", "fstype": "Jan", "options": "", "time": "11 09:40 ignore"}, {"mount": "/aha", "device": "/ahafs", "fstype": "ahafs", "options": "rw", "time": "Jan 11 09:40", "size_total": -512, "size_available": 0, "block_size": 512, "block_total": -1, "block_available": 0, "block_used": -1, "inode_total": 32768, "inode_available": 32733, "inode_used": 35}], "ansible_devices": {"L2cache0": {"state": "Available", "type": "L2 Cache", "attributes": {"size": "0"}}, "altinst_rootvg": {"state": "Available", "type": "Volume group", "attributes": {"auto_on": "n", "cache_pbuf_cnt": "0", "conc_auto_on": "n", "conc_capable": "n", "gbl_pbufs_ppv": "0", "gbl_pbufs_pvg": "0", "timestamp": "65a149bf34071157", "vg_pbufs_ppv": "0", "vgserial_id": "00fbb44800004c000000018cfe06dc3d", "workQ_size": "256"}}, "cache0": {"state": "Defined", "type": "SSD Cache virtual device", "attributes": {"auto_grab_ssd": "no", "cache_enable": "1", "cache_engine": "cengine0", "cfg_persist": "1"}}, "cengine0": {"state": "Defined", "type": "SSD Cache engine", "attributes": {"cache_per_tgt": "1", "cepath": "/usr/ccs/lib/libcehandler.a", "max_partition": "1", "max_pool": "1", "tgt_per_cache": "unlimited"}}, "cluster0": {"state": "Available", "type": "Cluster Node", "attributes": {"clrpvid": "00000000000000000000000000000000", "clvdisk": "00000000-0000-0000-0000-000000000000", "configure": "yes", "node_uuid": "07ea0876-83da-11ee-8004-fee461ef2b02"}}, "en0": {"state": "Available", "type": "Standard Ethernet Network Interface", "attributes": {"alias4": "IPv4", "alias6": "IPv6", "arp": "on", "authority": "Authorized", "broadcast": "Broadcast", "monitor": "off", "mtu": "1500", "mtu_bypass": "on", "netaddr": "10.51.105.222", "netaddr6": "IPv6", "netmask": "255.255.255.0", "prefixlen": "Prefix", "remmtu": "576", "rfc1323": "Enable/Disable", "security": "none", "state": "up", "tcp_mssdflt": "Set", "tcp_nodelay": "Enable/Disable", "tcp_recvspace": "Set", "tcp_sendspace": "Set", "thread": "off"}}, "ent0": {"state": "Available", "type": "Virtual I/O Ethernet Adapter (l-lan)", "attributes": {"alt_addr": "0x000000000000", "buf_mode": "max_min", "chksum_offload": "yes", "copy_buffs": "32", "copy_bytes": "65536", "desired_mapmem": "0", "ipv6_offload": "yes", "max_buf_control": "64", "max_buf_huge": "64", "max_buf_large": "64", "max_buf_medium": "256", "max_buf_small": "2048", "max_buf_tiny": "2048", "min_buf_control": "24", "min_buf_huge": "24", "min_buf_large": "24", "min_buf_medium": "128", "min_buf_small": "512", "min_buf_tiny": "512", "platform_lso": "yes", "poll_uplink": "no", "poll_uplink_int": "1000", "trace_debug": "no", "use_alt_addr": "no"}}, "et0": {"state": "Defined", "type": "IEEE 802.3 Ethernet Network Interface", "attributes": {"alias4": "IPv4", "alias6": "IPv6", "arp": "on", "authority": "Authorized", "broadcast": "Broadcast", "mtu": "1492", "netaddr": "Internet", "netaddr6": "IPv6", "netmask": "Subnet", "prefixlen": "Prefix", "remmtu": "576", "rfc1323": "Enable/Disable", "security": "none", "state": "down", "tcp_mssdflt": "Set", "tcp_nodelay": "Enable/Disable", "tcp_recvspace": "Set", "tcp_sendspace": "Set"}}, "fcs0": {"state": "Available", "type": "C3-T1 Virtual Fibre Channel Client Adapter", "attributes": {"bus_mem_addr": "0x01000000", "intr_priority": "3", "io_dma": "256", "label": "User", "lg_term_dma": "0x1000000", "max_xfer_size": "0x100000", "num_cmd_elems": "1024", "num_io_queues": "8", "num_sp_cmd_elem": "512", "sw_fc_class": "2"}}, "fcs1": {"state": "Available", "type": "C4-T1 Virtual Fibre Channel Client Adapter", "attributes": {"bus_mem_addr": "0x01000000", "intr_priority": "3", "io_dma": "256", "label": "User", "lg_term_dma": "0x1000000", "max_xfer_size": "0x100000", "num_cmd_elems": "1024", "num_io_queues": "8", "num_sp_cmd_elem": "512", "sw_fc_class": "2"}}, "fcs2": {"state": "Available", "type": "C5-T1 Virtual Fibre Channel Client Adapter", "attributes": {"bus_mem_addr": "0x01000000", "intr_priority": "3", "io_dma": "256", "label": "User", "lg_term_dma": "0x1000000", "max_xfer_size": "0x100000", "num_cmd_elems": "1024", "num_io_queues": "8", "num_sp_cmd_elem": "512", "sw_fc_class": "2"}}, "fcs3": {"state": "Available", "type": "C6-T1 Virtual Fibre Channel Client Adapter", "attributes": {"bus_mem_addr": "0x01000000", "intr_priority": "3", "io_dma": "256", "label": "User", "lg_term_dma": "0x1000000", "max_xfer_size": "0x100000", "num_cmd_elems": "1024", "num_io_queues": "8", "num_sp_cmd_elem": "512", "sw_fc_class": "2"}}, "fcs4": {"state": "Available", "type": "C7-T1 Virtual Fibre Channel Client Adapter", "attributes": {"bus_mem_addr": "0x01000000", "intr_priority": "3", "io_dma": "256", "label": "User", "lg_term_dma": "0x1000000", "max_xfer_size": "0x100000", "num_cmd_elems": "1024", "num_io_queues": "8", "num_sp_cmd_elem": "512", "sw_fc_class": "2"}}, "fcs5": {"state": "Available", "type": "C8-T1 Virtual Fibre Channel Client Adapter", "attributes": {"bus_mem_addr": "0x01000000", "intr_priority": "3", "io_dma": "256", "label": "User", "lg_term_dma": "0x1000000", "max_xfer_size": "0x100000", "num_cmd_elems": "1024", "num_io_queues": "8", "num_sp_cmd_elem": "512", "sw_fc_class": "2"}}, "fscsi0": {"state": "Available", "type": "C3-T1-01 FC SCSI I/O Controller Protocol Device", "attributes": {"attach": "switch", "autoconfig": "available", "dyntrk": "yes", "fc_err_recov": "fast_fail", "io_thrshld_tmr": "no", "scsi_id": "0x3270b", "sw_fc_class": "3"}}, "fscsi1": {"state": "Available", "type": "C4-T1-01 FC SCSI I/O Controller Protocol Device", "attributes": {"attach": "switch", "autoconfig": "available", "dyntrk": "yes", "fc_err_recov": "fast_fail", "io_thrshld_tmr": "no", "scsi_id": "0x3044e", "sw_fc_class": "3"}}, "fscsi2": {"state": "Available", "type": "C5-T1-01 FC SCSI I/O Controller Protocol Device", "attributes": {"attach": "switch", "autoconfig": "available", "dyntrk": "yes", "fc_err_recov": "fast_fail", "io_thrshld_tmr": "no", "scsi_id": "0x31454", "sw_fc_class": "3"}}, "fscsi3": {"state": "Available", "type": "C6-T1-01 FC SCSI I/O Controller Protocol Device", "attributes": {"attach": "switch", "autoconfig": "available", "dyntrk": "yes", "fc_err_recov": "fast_fail", "io_thrshld_tmr": "no", "scsi_id": "0x3264c", "sw_fc_class": "3"}}, "fscsi4": {"state": "Available", "type": "C7-T1-01 FC SCSI I/O Controller Protocol Device", "attributes": {"attach": "switch", "autoconfig": "available", "dyntrk": "yes", "fc_err_recov": "fast_fail", "io_thrshld_tmr": "no", "scsi_id": "0x31070", "sw_fc_class": "3"}}, "fscsi5": {"state": "Available", "type": "C8-T1-01 FC SCSI I/O Controller Protocol Device", "attributes": {"attach": "switch", "autoconfig": "available", "dyntrk": "yes", "fc_err_recov": "fast_fail", "io_thrshld_tmr": "no", "scsi_id": "0x32203", "sw_fc_class": "3"}}, "hd1": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "c", "label": "/home", "lvserial_id": "00fbb44800004c000000018c5f9691d1.8", "relocatable": "y", "size": "40", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "hd2": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "c", "label": "/usr", "lvserial_id": "00fbb44800004c000000018c5f9691d1.5", "relocatable": "y", "size": "19", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "hd3": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "c", "label": "/tmp", "lvserial_id": "00fbb44800004c000000018c5f9691d1.7", "relocatable": "y", "size": "32", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "hd4": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "c", "label": "/", "lvserial_id": "00fbb44800004c000000018c5f9691d1.4", "relocatable": "y", "size": "40", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "hd5": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "e", "label": "primary_bootlv", "lvserial_id": "00fbb44800004c000000018c5f9691d1.1", "relocatable": "n", "size": "1", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "boot", "upperbound": "32"}}, "hd6": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "m", "label": "None", "lvserial_id": "00fbb44800004c000000018c5f9691d1.2", "relocatable": "y", "size": "4", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "paging", "upperbound": "32"}}, "hd8": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "c", "label": "None", "lvserial_id": "00fbb44800004c000000018c5f9691d1.3", "relocatable": "y", "size": "1", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2log", "upperbound": "32"}}, "hd10opt": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "c", "label": "/opt", "lvserial_id": "00fbb44800004c000000018c5f9691d1.9", "relocatable": "y", "size": "40", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "hd11admin": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "c", "label": "/admin", "lvserial_id": "00fbb44800004c000000018c5f9691d1.10", "relocatable": "y", "size": "1", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "hd9var": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "c", "label": "/var", "lvserial_id": "00fbb44800004c000000018c5f9691d1.6", "relocatable": "y", "size": "40", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "hdcrypt": {"state": "Available", "type": "Data encryption", "attributes": {}}, "hdisk1": {"state": "Available", "type": "C4-T1-01 MPIO IBM 2076 FC Disk", "attributes": {"PCM": "PCM/friend/fcpother", "PR_key_value": "none", "algorithm": "shortest_queue", "hcheck_cmd": "test_unit_rdy", "hcheck_interval": "60", "hcheck_mode": "nonactive", "location": "Location", "lun_id": "0x1000000000000", "max_coalesce": "0x40000", "max_retry_delay": "60", "max_transfer": "0x80000", "min_rw_to": "10", "node_name": "0x5005076810001d56", "pvid": "00fbb448d3f4bc0c0000000000000000", "queue_depth": "24", "reassign_to": "120", "reserve_policy": "no_reserve", "rw_max_time": "0", "rw_timeout": "30", "scsi_id": "0x32001", "timeout_policy": "fail_path", "unique_id": "3321360050768108100EA580000000000110904214503IBMfcp", "ww_name": "0x5005076810251d56"}}, "hdisk99998": {"state": "Available", "type": "C4-T1-01 MPIO IBM 2076 FC Disk", "attributes": {"PCM": "PCM/friend/fcpother", "PR_key_value": "none", "algorithm": "shortest_queue", "hcheck_cmd": "test_unit_rdy", "hcheck_interval": "60", "hcheck_mode": "nonactive", "location": "Location", "lun_id": "0x0", "max_coalesce": "0x40000", "max_retry_delay": "60", "max_transfer": "0x80000", "min_rw_to": "10", "node_name": "0x5005076810001d56", "pvid": "00fbb448d3f5e0d40000000000000000", "queue_depth": "24", "reassign_to": "120", "reserve_policy": "no_reserve", "rw_max_time": "0", "rw_timeout": "30", "scsi_id": "0x32001", "timeout_policy": "fail_path", "unique_id": "3321360050768108100EA580000000000110804214503IBMfcp", "ww_name": "0x5005076810251d56"}}, "inet0": {"state": "Available", "type": "Internet Network Extension", "attributes": {"authm": "65536", "bootup_option": "no", "gateway": "Gateway", "hostname": "aix-testvictim01", "rout6": "IPv6", "route": "net,-hopcount,0,,0,10.51.105.1"}}, "iocp0": {"state": "Defined", "type": "I/O Completion Ports", "attributes": {"autoconfig": "defined"}}, "iscsi0": {"state": "Available", "type": "iSCSI Protocol Device", "attributes": {"disc_filename": "/etc/iscsi/targets", "disc_policy": "file", "immediate_data": "no", "initial_r2t": "yes", "initiator_name": "iqn.aix-testvictim01.hostid.0a3369de", "isns_srvnames": "auto", "isns_srvports": "iSNS", "isw_err_recov": "delayed_fail", "max_targets": "16", "max_xfer_size": "0x80000", "num_cmd_elems": "200"}}, "lg_dumplv": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "m", "label": "None", "lvserial_id": "00fbb44800004c000000018c5f9691d1.11", "relocatable": "y", "size": "24", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "sysdump", "upperbound": "32"}}, "livedump": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "m", "label": "/var/adm/ras/livedump", "lvserial_id": "00fbb44800004c000000018c5f9691d1.12", "relocatable": "y", "size": "2", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "lo0": {"state": "Available", "type": "Loopback Network Interface", "attributes": {"mtu": "16896", "netaddr": "127.0.0.1", "netaddr6": "::1", "netmask": "Subnet", "prefixlen": "IPv6", "rfc1323": "Enable/Disable", "state": "up", "tcp_mssdflt": "Set", "tcp_nodelay": "Enable/Disable", "tcp_recvspace": "Set", "tcp_sendspace": "Set"}}, "loclog_log": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "m", "label": "None", "lvserial_id": "00fbb44800004c000000018c5f9691d1.15", "relocatable": "y", "size": "2", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2log", "upperbound": "32"}}, "lv_locallog": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "m", "label": "/usr/local/logs", "lvserial_id": "00fbb44800004c000000018c5f9691d1.16", "relocatable": "y", "size": "20", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "lv_ul_log": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "m", "label": "None", "lvserial_id": "00fbb44800004c000000018c5f9691d1.13", "relocatable": "y", "size": "2", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2log", "upperbound": "32"}}, "lv_usrlocal": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "m", "label": "/usr/local", "lvserial_id": "00fbb44800004c000000018c5f9691d1.14", "relocatable": "y", "size": "32", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "lvdd": {"state": "Available", "type": "LVM Device Driver", "attributes": {}}, "mem0": {"state": "Available", "type": "Memory", "attributes": {"ent_mem_cap": "I/O", "goodsize": "32768", "mem_exp_factor": "Memory", "size": "32768", "var_mem_weight": "Variable"}}, "pkcs11": {"state": "Available", "type": "ACF/PKCS#11 Device", "attributes": {"comp_trace": "no", "io_threads": "8", "proc_heap_sz": "8", "trc_adm": "no", "trc_clic": "no", "trc_context": "no", "trc_dd": "no", "trc_hw": "no", "trc_io": "no", "trc_k_klib": "no", "trc_k_ulib": "no", "trc_malloc": "no", "trc_meta": "no", "trc_mmap": "no", "trc_obj": "no", "trc_req": "no", "trc_sess": "no", "trc_slot": "no", "trc_token": "no", "trc_u_lib": "no", "trc_util": "no", "y4_max_req": "16"}}, "proc0": {"state": "Available", "type": "00-00 Processor", "attributes": {"frequency": "2800000000", "smt_enabled": "true", "smt_threads": "8", "state": "enable", "type": "PowerPC_POWER9"}}, "pty0": {"state": "Available", "type": "Asynchronous Pseudo-Terminal", "attributes": {"ATTnum": "256", "BSDnum": "16", "autoconfig": "available", "csmap": "sbcs"}}, "rcm0": {"state": "Defined", "type": "Rendering Context Manager Subsystem", "attributes": {}}, "rootvg": {"state": "Defined", "type": "Volume group", "attributes": {"auto_on": "n", "cache_pbuf_cnt": "0", "conc_auto_on": "n", "conc_capable": "n", "gbl_pbufs_ppv": "0", "gbl_pbufs_pvg": "0", "timestamp": "65a00bee28dcb9f0", "vg_pbufs_ppv": "0", "vgserial_id": "00fbb44800004c000000018c5f9691d1", "workQ_size": "256"}}, "sfw0": {"state": "Available", "type": "Storage Framework Module", "attributes": {"enable_sas": "no", "vltag": "3358"}}, "sfwcomm0": {"state": "Available", "type": "C3-T1-01-FF Fibre Channel Storage Framework Comm", "attributes": {}}, "sfwcomm1": {"state": "Available", "type": "C4-T1-01-FF Fibre Channel Storage Framework Comm", "attributes": {}}, "sfwcomm2": {"state": "Available", "type": "C5-T1-01-FF Fibre Channel Storage Framework Comm", "attributes": {}}, "sfwcomm3": {"state": "Available", "type": "C6-T1-01-FF Fibre Channel Storage Framework Comm", "attributes": {}}, "sfwcomm4": {"state": "Available", "type": "C7-T1-01-FF Fibre Channel Storage Framework Comm", "attributes": {}}, "sfwcomm5": {"state": "Available", "type": "C8-T1-01-FF Fibre Channel Storage Framework Comm", "attributes": {}}, "sys0": {"state": "Available", "type": "System Object", "attributes": {"SW_dist_intr": "false", "autorestart": "true", "boottype": "disk", "capacity_inc": "0.01", "capped": "false", "chown_restrict": "true", "clouddev": "0", "conslogin": "enable", "cpuguard": "enable", "dedicated": "false", "enhanced_RBAC": "true", "ent_capacity": "0.50", "ex_intr_virt": "true", "frequency": "1600000000", "fullcore": "false", "fwversion": "IBM,FW950.80", "ghostdev": "0", "id_to_partition": "0X800011CD98100018", "id_to_system": "0X800011CD98100000", "iostat": "false", "keylock": "normal", "log_pg_dealloc": "true", "max_capacity": "1.00", "max_logname": "65", "maxbuf": "20", "maxmbuf": "0", "maxpout": "8193", "maxuproc": "128", "min_capacity": "0.10", "minpout": "4096", "modelname": "IBM,9040-MR9", "ncargs": "256", "nfs4_acl_compat": "secure", "ngroups_allowed": "128", "os_uuid": "3af944b8-3b7c-4180-9f99-85a544c45dd9", "partition_uuid": "178b8575-3737-4dab-84bf-8c90a93cbe49", "pmuaccess": "priv", "pre430core": "false", "pre520tune": "disable", "realmem": "33554432", "rtasversion": "1", "secure_boot": "Policy_0(Disabled)", "sed_config": "select", "signpolicy": "none", "systemid": "IBM,0278B448X", "variable_weight": "128"}}, "sysplanar0": {"state": "Available", "type": "System Planar", "attributes": {}}, "vio0": {"state": "Available", "type": "Virtual I/O Bus", "attributes": {"bus_id": "0x90000340"}}, "vsa0": {"state": "Available", "type": "LPAR Virtual Serial Adapter", "attributes": {"desired_mapmem": "I/O"}}, "vty0": {"state": "Available", "type": "Asynchronous Terminal", "attributes": {"autoconfig": "available", "bpc": "8", "csmap": "sbcs", "discard": "^o", "dsusp": "^y", "eof": "^d", "eol": "^@", "eol2": "^?", "erase": "^h", "flow_disp": "xon", "imap": "none", "intr": "^c", "kill": "^u", "lnext": "^v", "logger": "LOGGER", "login": "disable", "logmodes": "hupcl,cread,echoe,cs8", "modules": "ldterm", "omap": "none", "open_disp": "dtropen", "parity": "none", "quit": "^\\\\", "reprint": "^r", "runmodes": "hupcl,cread,brkint,icrnl,opost,tab3,onlcr,isig,icanon,echo,echoe,echok,echoctl,echoke,imaxbel,iexten", "speed": "19200", "start": "^q", "stop": "^s", "stops": "1", "susp": "^z", "term": "vt220", "timeout": "0", "werase": "^w"}}}, "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBALQIzFe/iGtcA2R0+oBMgUAXASPvdxZZRphXVdx7x7ARuVIz008AoJQsx7N4Lxpy5UvF1pVgAwAkFyAgeqmnuGN2UTLOLIMhj5L57+f0qiMeiuQq4P+wQJW7CxIubnFlDvxy6qvGb8Vol0G+vpqaa8NCMw/5mgrNJZdhdcKA0D/hAAAAFQDsaHZKHQL3u7ou0af2Um9rMoCZWwAAAIEAsTCxQpxs4L8TVF8To9wXQV7MR/CnJUzaxE5lwaVdePSHTvlY+a6RPzJj1QA+gwKE/5GcNLHFPcq/wV9hXEyKU8YLVDOY+1os0EfT+Srnh7nwQx59DsBs0Q+7CGrHXma3WqfLaFJfclvj2GGGy1ahbvFQrpQv28b0YBeZkMxkn/wAAACAarOBdM9/VyD25zdI38QBiqIsl2jg0AsKngoeVWiQXOlG9VK17MGLd4xlGTu/kqxgGbZHRislygVw1nfLq8cx/og3PVS/syv/4lgEPT2cdNHQFUPxIMg1G/fzx/RN0NPdCJk0Np5VuFXabw/MRKW+jyJ/5xjNPTUiE7QpLPtVD2U=", "ansible_ssh_host_key_dsa_public_keytype": "ssh-dss", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQC3Hnnc8e5dF57xpHWySG1xF1OQfP6ux4tIaocF43JuCqxAqoVVg2Ff0YqohxSIsot4bZyrFPeiDLa+i3A7Jw8iipr+aIOSgX/MbLBvm9/Ys2VDgjpPwhJEVrPa3WhhkP/OKdhQ3P9v1VMk9Zl/zV5d1lvG0NxWiiFnCsU5Ainwfww3Xv7Fj0yShQ5/KY6r1+SsD+uMlC1FpFwnhCBuoZZRAUVmS5VAFxBOSHDkuZtpeaSeEpPI9dEVE2xKPdukLHgc7eFhJLj1k5WtNuL5aS8b/eJa0+z89YrR7XTo22zpXZkhQyh76qEsFtGIlDOsLhWKQbyvg7eaPk7xnQfx5EYOIWPjrgKGbVG4W5vqvMcF7RaMvoDCXPuqTqgwZ6qjj1c8QBhrW1HYjC2gDOl5XXoGpV/UUxFWfeZrojjQGxvW1U3y8/0D3sakOI7qJZPC1s/uL7qhXKuXuKvdJTIm1kUuIPqlUNu34KOG2INyKCylNcLYpWiGQsnhtiQkHFQXmEk=", "ansible_ssh_host_key_rsa_public_keytype": "ssh-rsa", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEssoS/2hqc1uHCyhupL4ODLXczLf8m/5sQPL3DRB+MwF+hcRlcm6go3kDkp61Zzz9gNkTh+T8UO47jyuYGpc4g=", "ansible_ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIE0YgcLkjPWqokyyozv69XcDEH6HGiumyx678jbsZEVr", "ansible_ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ansible_interfaces": ["en0", "lo0"], "ansible_en0": {"device": "en0", "ipv4": [{"address": "10.51.105.222", "netmask": "255.255.255.0", "network": "10.51.105.0", "broadcast": "10.51.105.255"}], "ipv6": [], "type": "ether", "flags": ["UP", "BROADCAST", "NOTRAILERS", "RUNNING", "SIMPLEX", "MULTICAST", "GROUPRT", "64BIT", "CHECKSUM_OFFLOAD(ACTIVE)", "LARGESEND", "CHAIN"], "macaddress": "fe:e4:61:ef:2b:02", "mtu": "1500"}, "ansible_lo0": {"device": "lo0", "ipv4": [{"address": "127.0.0.1", "netmask": "255.0.0.0", "network": "127.0.0.0", "broadcast": "127.255.255.255"}], "ipv6": [{"address": "::1%1", "prefix": "64"}], "type": "unknown", "flags": ["UP", "BROADCAST", "LOOPBACK", "RUNNING", "SIMPLEX", "MULTICAST", "GROUPRT", "64BIT", "LARGESEND", "CHAIN"], "macaddress": "unknown", "mtu": "16896"}, "ansible_default_ipv4": {"gateway": "10.51.105.1", "interface": "en0", "device": "en0", "type": "ether", "flags": ["UP", "BROADCAST", "NOTRAILERS", "RUNNING", "SIMPLEX", "MULTICAST", "GROUPRT", "64BIT", "CHECKSUM_OFFLOAD(ACTIVE)", "LARGESEND", "CHAIN"], "macaddress": "fe:e4:61:ef:2b:02", "mtu": "1500", "address": "10.51.105.222", "netmask": "255.255.255.0", "network": "10.51.105.0", "broadcast": "10.51.105.255"}, "ansible_default_ipv6": {}, "ansible_all_ipv4_addresses": ["10.51.105.222"], "ansible_all_ipv6_addresses": ["::1%1"], "ansible_local": {}, "ansible_pkg_mgr": "unknown", "ansible_system": "AIX", "ansible_kernel": "3", "ansible_kernel_version": "7", "ansible_machine": "00FBB4484C00", "ansible_python_version": "3.9.6", "ansible_fqdn": "aix-testvictim01.woodward.com", "ansible_hostname": "aix-testvictim01", "ansible_nodename": "aix-testvictim01", "ansible_domain": "woodward.com", "ansible_userspace_bits": "64", "ansible_architecture": "chrp", "ansible_apparmor": {"status": "disabled"}, "ansible_service_mgr": "src", "ansible_virtualization_type": "", "ansible_virtualization_role": "", "ansible_virtualization_tech_guest": [], "ansible_virtualization_tech_host": [], "ansible_dns": {"domain": "woodward.com", "nameservers": ["10.1.99.121", "10.34.100.1"]}, "ansible_env": {"_": "/usr/bin/python3", "SUDO_GID": "1", "LANG": "C", "LOGIN": "root", "SUDO_UID": "128641", "CLCMD_PASSTHRU": "1", "PATH": "/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java8_64/jre/bin:/usr/java8_64/bin:/opt/freeware/bin", "LC__FASTMSG": "true", "LOGNAME": "root", "MAIL": "/var/spool/mail/root", "LOCPATH": "/usr/lib/nls/loc", "USER": "root", "SUDO_USER": "ansible", "SUDO_COMMAND": "/bin/sh -c echo BECOME-SUCCESS-yzwllgiashrwgpcmcgrihkxfxwjxbche ; /usr/bin/python3 /home/ansible/.ansible/tmp/ansible-tmp-1705069580.8633835-3764349-25044096326549/AnsiballZ_setup.py", "SHELL": "/usr/bin/ksh", "ODMDIR": "/etc/objrepos", "HOME": "/", "TERM": "xterm", "PWD": "/home/ansible", "TZ": "CST6CDT", "NLSPATH": "/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/%l.%c/%N:/usr/lib/nls/msg/%l.%c/%N.cat", "LIBPATH": "/opt/freeware/lib:/usr/lib:/opt/freeware/libexec/sudo"}, "ansible_is_chroot": false, "ansible_fips": false, "ansible_python": {"version": {"major": 3, "minor": 9, "micro": 6, "releaselevel": "final", "serial": 0}, "version_info": [3, 9, 6, "final", 0], "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython"}, "ansible_selinux": {"status": "Missing selinux Python library"}, "ansible_selinux_python_present": false, "ansible_lsb": {}, "ansible_hostnqn": "", "gather_subset": ["all"], "module_setup": true}, "invocation": {"module_args": {"gather_subset": ["all"], "gather_timeout": 10, "filter": [], "fact_path": "/etc/ansible/facts.d"}}}\r\n', b'Shared connection to aix-testvictim01 closed.\r\n')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1705069580.8633835-3764349-25044096326549/ > /dev/null 2>&1 && sleep 0'"'"''
    <aix-testvictim01> (0, b'', b'')
    ok: [aix-testvictim01]
     
    TASK [Cleanup any existing alt_disk_copy] ***************************************************************************************************************************************************************************************************************************************************************************************************************************************************
    task path: /home/ansible/wwd_ansible/JAW/aix_patch_1128.yaml:17
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
    <aix-testvictim01> (0, b'/home/ansible\n', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1705069602.378427-3764521-113872455468434 `" && echo ansible-tmp-1705069602.378427-3764521-113872455468434="` echo /home/ansible/.ansible/tmp/ansible-tmp-1705069602.378427-3764521-113872455468434 `" ) && sleep 0'"'"''
    <aix-testvictim01> (0, b'ansible-tmp-1705069602.378427-3764521-113872455468434=/home/ansible/.ansible/tmp/ansible-tmp-1705069602.378427-3764521-113872455468434\n', b'')
    Using module file /home/ansible/.ansible/collections/ansible_collections/ibm/power_aix/plugins/modules/alt_disk.py
    <aix-testvictim01> PUT /home/ansible/.ansible/tmp/ansible-local-3764345lgv24h40/tmp2em1klei TO /home/ansible/.ansible/tmp/ansible-tmp-1705069602.378427-3764521-113872455468434/AnsiballZ_alt_disk.py
    <aix-testvictim01> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' '[aix-testvictim01]'
    <aix-testvictim01> (0, b'sftp> put /home/ansible/.ansible/tmp/ansible-local-3764345lgv24h40/tmp2em1klei /home/ansible/.ansible/tmp/ansible-tmp-1705069602.378427-3764521-113872455468434/AnsiballZ_alt_disk.py\n', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1705069602.378427-3764521-113872455468434/ /home/ansible/.ansible/tmp/ansible-tmp-1705069602.378427-3764521-113872455468434/AnsiballZ_alt_disk.py && sleep 0'"'"''
    <aix-testvictim01> (0, b'', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' -tt aix-testvictim01 '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ntqfldjoexkzukwjhmauupoipirhlgce ; /usr/bin/python3 /home/ansible/.ansible/tmp/ansible-tmp-1705069602.378427-3764521-113872455468434/AnsiballZ_alt_disk.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
    Escalation succeeded
    <aix-testvictim01> (0, b'\r\n{"changed": true, "msg": "alt_disk clean operation completed successfully", "stdout": "Bootlist is set to the boot disk: hdisk1 blv=hd5\\n", "stderr": "", "rc": 0, "cmd": "/usr/sbin/alt_rootvg_op -X altinst_rootvg", "invocation": {"module_args": {"action": "clean", "force": false, "bootlist": false, "remain_nim_client": false, "device_reset": false, "allow_old_rootvg": false, "targets": null, "disk_size_policy": null, "existing_altinst_rootvg": null, "bundle_name": null, "apar_fixes": null, "filesets": null, "installp_flags": null, "image_location": null, "first_boot_script": null, "resolvconf": null}}}\r\n', b'Shared connection to aix-testvictim01 closed.\r\n')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1705069602.378427-3764521-113872455468434/ > /dev/null 2>&1 && sleep 0'"'"''
    <aix-testvictim01> (0, b'', b'')
    changed: [aix-testvictim01] => {
        "changed": true,
        "cmd": "/usr/sbin/alt_rootvg_op -X altinst_rootvg",
        "invocation": {
            "module_args": {
                "action": "clean",
                "allow_old_rootvg": false,
                "apar_fixes": null,
                "bootlist": false,
                "bundle_name": null,
                "device_reset": false,
                "disk_size_policy": null,
                "existing_altinst_rootvg": null,
                "filesets": null,
                "first_boot_script": null,
                "force": false,
                "image_location": null,
                "installp_flags": null,
                "remain_nim_client": false,
                "resolvconf": null,
                "targets": null
            }
        },
        "msg": "alt_disk clean operation completed successfully",
        "rc": 0,
        "stderr": "",
        "stderr_lines": [],
        "stdout": "Bootlist is set to the boot disk: hdisk1 blv=hd5\n",
        "stdout_lines": [
            "Bootlist is set to the boot disk: hdisk1 blv=hd5"
        ]
    }
     
    TASK [Create an alt_disk_copy for backup] ***************************************************************************************************************************************************************************************************************************************************************************************************************************************************
    task path: /home/ansible/wwd_ansible/JAW/aix_patch_1128.yaml:21
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
    <aix-testvictim01> (0, b'/home/ansible\n', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1705069604.8045678-3764530-215500438330007 `" && echo ansible-tmp-1705069604.8045678-3764530-215500438330007="` echo /home/ansible/.ansible/tmp/ansible-tmp-1705069604.8045678-3764530-215500438330007 `" ) && sleep 0'"'"''
    <aix-testvictim01> (0, b'ansible-tmp-1705069604.8045678-3764530-215500438330007=/home/ansible/.ansible/tmp/ansible-tmp-1705069604.8045678-3764530-215500438330007\n', b'')
    Using module file /home/ansible/.ansible/collections/ansible_collections/ibm/power_aix/plugins/modules/alt_disk.py
    <aix-testvictim01> PUT /home/ansible/.ansible/tmp/ansible-local-3764345lgv24h40/tmpsutqp2hz TO /home/ansible/.ansible/tmp/ansible-tmp-1705069604.8045678-3764530-215500438330007/AnsiballZ_alt_disk.py
    <aix-testvictim01> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' '[aix-testvictim01]'
    <aix-testvictim01> (0, b'sftp> put /home/ansible/.ansible/tmp/ansible-local-3764345lgv24h40/tmpsutqp2hz /home/ansible/.ansible/tmp/ansible-tmp-1705069604.8045678-3764530-215500438330007/AnsiballZ_alt_disk.py\n', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1705069604.8045678-3764530-215500438330007/ /home/ansible/.ansible/tmp/ansible-tmp-1705069604.8045678-3764530-215500438330007/AnsiballZ_alt_disk.py && sleep 0'"'"''
    <aix-testvictim01> (0, b'', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' -tt aix-testvictim01 '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-lwoohkfxthkxgrtxvsvtjjzqsyptolyj ; /usr/bin/python3 /home/ansible/.ansible/tmp/ansible-tmp-1705069604.8045678-3764530-215500438330007/AnsiballZ_alt_disk.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
    Escalation succeeded
    <aix-testvictim01> (0, b'\r\n{"changed": true, "msg": "alt_disk copy operation completed successfully", "stdout": "Calling mkszfile to create new /image.data file.\\nChecking disk sizes.\\nCreating cloned rootvg volume group and associated logical volumes.\\nCreating logical volume alt_hd5.\\nCreating logical volume alt_hd6.\\nCreating logical volume alt_hd8.\\nCreating logical volume alt_hd4.\\nCreating logical volume alt_hd2.\\nCreating logical volume alt_hd9var.\\nCreating logical volume alt_hd3.\\nCreating logical volume alt_hd1.\\nCreating logical volume alt_hd10opt.\\nCreating logical volume alt_hd11admin.\\nCreating logical volume alt_lg_dumplv.\\nCreating logical volume alt_livedump.\\nCreating logical volume alt_lv_ul_log.\\nCreating logical volume alt_lv_usrlocal.\\nCreating logical volume alt_loclog_log.\\nCreating logical volume alt_lv_locallog.\\nCreating /alt_inst/ file system.\\nCreating /alt_inst/admin file system.\\nCreating /alt_inst/home file system.\\nCreating /alt_inst/opt file system.\\nCreating /alt_inst/tmp file system.\\nCreating /alt_inst/usr file system.\\nCreating /alt_inst/usr/local file system.\\nCreating /alt_inst/usr/local/logs file system.\\nCreating /alt_inst/var file system.\\nCreating /alt_inst/var/adm/ras/livedump file system.\\nGenerating a list of files \\nfor backup and restore into the alternate file system...\\nBacking-up the rootvg files and restoring them to the alternate file system...\\nModifying ODM on cloned disk.\\nBuilding boot image on cloned disk.\\nforced unmount of /alt_inst/var/adm/ras/livedump\\nforced unmount of /alt_inst/var/adm/ras/livedump\\nforced unmount of /alt_inst/var\\nforced unmount of /alt_inst/var\\nforced unmount of /alt_inst/usr/local/logs\\nforced unmount of /alt_inst/usr/local/logs\\nforced unmount of /alt_inst/usr/local\\nforced unmount of /alt_inst/usr/local\\nforced unmount of /alt_inst/usr\\nforced unmount of /alt_inst/usr\\nforced unmount of /alt_inst/tmp\\nforced unmount of /alt_inst/tmp\\nforced unmount of /alt_inst/opt\\nforced unmount of /alt_inst/opt\\nforced unmount of /alt_inst/home\\nforced unmount of /alt_inst/home\\nforced unmount of /alt_inst/admin\\nforced unmount of /alt_inst/admin\\nforced unmount of /alt_inst\\nforced unmount of /alt_inst\\nChanging logical volume names in volume group descriptor area.\\nFixing LV control blocks...\\nFixing file system superblocks...\\n", "stderr": "", "rc": 0, "cmd": "alt_disk_copy -d hdisk99998 -B", "invocation": {"module_args": {"targets": ["hdisk99998"], "action": "copy", "force": false, "bootlist": false, "remain_nim_client": false, "device_reset": false, "allow_old_rootvg": false, "disk_size_policy": null, "existing_altinst_rootvg": null, "bundle_name": null, "apar_fixes": null, "filesets": null, "installp_flags": null, "image_location": null, "first_boot_script": null, "resolvconf": null}}}\r\n', b'Shared connection to aix-testvictim01 closed.\r\n')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1705069604.8045678-3764530-215500438330007/ > /dev/null 2>&1 && sleep 0'"'"''
    <aix-testvictim01> (0, b'', b'')
    changed: [aix-testvictim01] => {
        "changed": true,
        "cmd": "alt_disk_copy -d hdisk99998 -B",
        "invocation": {
            "module_args": {
                "action": "copy",
                "allow_old_rootvg": false,
                "apar_fixes": null,
                "bootlist": false,
                "bundle_name": null,
                "device_reset": false,
                "disk_size_policy": null,
                "existing_altinst_rootvg": null,
                "filesets": null,
                "first_boot_script": null,
                "force": false,
                "image_location": null,
                "installp_flags": null,
                "remain_nim_client": false,
                "resolvconf": null,
                "targets": [
                    "hdisk99998"
                ]
            }
        },
        "msg": "alt_disk copy operation completed successfully",
        "rc": 0,
        "stderr": "",
        "stderr_lines": [],
        "stdout": "Calling mkszfile to create new /image.data file.\nChecking disk sizes.\nCreating cloned rootvg volume group and associated logical volumes.\nCreating logical volume alt_hd5.\nCreating logical volume alt_hd6.\nCreating logical volume alt_hd8.\nCreating logical volume alt_hd4.\nCreating logical volume alt_hd2.\nCreating logical volume alt_hd9var.\nCreating logical volume alt_hd3.\nCreating logical volume alt_hd1.\nCreating logical volume alt_hd10opt.\nCreating logical volume alt_hd11admin.\nCreating logical volume alt_lg_dumplv.\nCreating logical volume alt_livedump.\nCreating logical volume alt_lv_ul_log.\nCreating logical volume alt_lv_usrlocal.\nCreating logical volume alt_loclog_log.\nCreating logical volume alt_lv_locallog.\nCreating /alt_inst/ file system.\nCreating /alt_inst/admin file system.\nCreating /alt_inst/home file system.\nCreating /alt_inst/opt file system.\nCreating /alt_inst/tmp file system.\nCreating /alt_inst/usr file system.\nCreating /alt_inst/usr/local file system.\nCreating /alt_inst/usr/local/logs file system.\nCreating /alt_inst/var file system.\nCreating /alt_inst/var/adm/ras/livedump file system.\nGenerating a list of files \nfor backup and restore into the alternate file system...\nBacking-up the rootvg files and restoring them to the alternate file system...\nModifying ODM on cloned disk.\nBuilding boot image on cloned disk.\nforced unmount of /alt_inst/var/adm/ras/livedump\nforced unmount of /alt_inst/var/adm/ras/livedump\nforced unmount of /alt_inst/var\nforced unmount of /alt_inst/var\nforced unmount of /alt_inst/usr/local/logs\nforced unmount of /alt_inst/usr/local/logs\nforced unmount of /alt_inst/usr/local\nforced unmount of /alt_inst/usr/local\nforced unmount of /alt_inst/usr\nforced unmount of /alt_inst/usr\nforced unmount of /alt_inst/tmp\nforced unmount of /alt_inst/tmp\nforced unmount of /alt_inst/opt\nforced unmount of /alt_inst/opt\nforced unmount of /alt_inst/home\nforced unmount of /alt_inst/home\nforced unmount of /alt_inst/admin\nforced unmount of /alt_inst/admin\nforced unmount of /alt_inst\nforced unmount of /alt_inst\nChanging logical volume names in volume group descriptor area.\nFixing LV control blocks...\nFixing file system superblocks...\n",
        "stdout_lines": [
            "Calling mkszfile to create new /image.data file.",
            "Checking disk sizes.",
            "Creating cloned rootvg volume group and associated logical volumes.",
            "Creating logical volume alt_hd5.",
            "Creating logical volume alt_hd6.",
            "Creating logical volume alt_hd8.",
            "Creating logical volume alt_hd4.",
            "Creating logical volume alt_hd2.",
            "Creating logical volume alt_hd9var.",
            "Creating logical volume alt_hd3.",
            "Creating logical volume alt_hd1.",
            "Creating logical volume alt_hd10opt.",
            "Creating logical volume alt_hd11admin.",
            "Creating logical volume alt_lg_dumplv.",
            "Creating logical volume alt_livedump.",
            "Creating logical volume alt_lv_ul_log.",
            "Creating logical volume alt_lv_usrlocal.",
            "Creating logical volume alt_loclog_log.",
            "Creating logical volume alt_lv_locallog.",
            "Creating /alt_inst/ file system.",
            "Creating /alt_inst/admin file system.",
            "Creating /alt_inst/home file system.",
            "Creating /alt_inst/opt file system.",
            "Creating /alt_inst/tmp file system.",
            "Creating /alt_inst/usr file system.",
            "Creating /alt_inst/usr/local file system.",
            "Creating /alt_inst/usr/local/logs file system.",
            "Creating /alt_inst/var file system.",
            "Creating /alt_inst/var/adm/ras/livedump file system.",
            "Generating a list of files ",
            "for backup and restore into the alternate file system...",
            "Backing-up the rootvg files and restoring them to the alternate file system...",
            "Modifying ODM on cloned disk.",
            "Building boot image on cloned disk.",
            "forced unmount of /alt_inst/var/adm/ras/livedump",
            "forced unmount of /alt_inst/var/adm/ras/livedump",
            "forced unmount of /alt_inst/var",
            "forced unmount of /alt_inst/var",
            "forced unmount of /alt_inst/usr/local/logs",
            "forced unmount of /alt_inst/usr/local/logs",
            "forced unmount of /alt_inst/usr/local",
            "forced unmount of /alt_inst/usr/local",
            "forced unmount of /alt_inst/usr",
            "forced unmount of /alt_inst/usr",
            "forced unmount of /alt_inst/tmp",
            "forced unmount of /alt_inst/tmp",
            "forced unmount of /alt_inst/opt",
            "forced unmount of /alt_inst/opt",
            "forced unmount of /alt_inst/home",
            "forced unmount of /alt_inst/home",
            "forced unmount of /alt_inst/admin",
            "forced unmount of /alt_inst/admin",
            "forced unmount of /alt_inst",
            "forced unmount of /alt_inst",
            "Changing logical volume names in volume group descriptor area.",
            "Fixing LV control blocks...",
            "Fixing file system superblocks..."
        ]
    }
     
    TASK [Stop Application] *********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
    task path: /home/ansible/wwd_ansible/JAW/aix_patch_1128.yaml:25
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
    <aix-testvictim01> (0, b'/home/ansible\n', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1705069694.1928875-3765203-223294355196973 `" && echo ansible-tmp-1705069694.1928875-3765203-223294355196973="` echo /home/ansible/.ansible/tmp/ansible-tmp-1705069694.1928875-3765203-223294355196973 `" ) && sleep 0'"'"''
    <aix-testvictim01> (0, b'ansible-tmp-1705069694.1928875-3765203-223294355196973=/home/ansible/.ansible/tmp/ansible-tmp-1705069694.1928875-3765203-223294355196973\n', b'')
    Using module file /usr/lib/python3.9/site-packages/ansible/modules/command.py
    <aix-testvictim01> PUT /home/ansible/.ansible/tmp/ansible-local-3764345lgv24h40/tmpr_im62gh TO /home/ansible/.ansible/tmp/ansible-tmp-1705069694.1928875-3765203-223294355196973/AnsiballZ_command.py
    <aix-testvictim01> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' '[aix-testvictim01]'
    <aix-testvictim01> (0, b'sftp> put /home/ansible/.ansible/tmp/ansible-local-3764345lgv24h40/tmpr_im62gh /home/ansible/.ansible/tmp/ansible-tmp-1705069694.1928875-3765203-223294355196973/AnsiballZ_command.py\n', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1705069694.1928875-3765203-223294355196973/ /home/ansible/.ansible/tmp/ansible-tmp-1705069694.1928875-3765203-223294355196973/AnsiballZ_command.py && sleep 0'"'"''
    <aix-testvictim01> (0, b'', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' -tt aix-testvictim01 '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-hrhddkiqtokfkonkblblaiyaugeaoeqp ; /usr/bin/python3 /home/ansible/.ansible/tmp/ansible-tmp-1705069694.1928875-3765203-223294355196973/AnsiballZ_command.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
    Escalation succeeded
    <aix-testvictim01> (0, b'\r\n{"changed": true, "stdout": "Good bye from Jeff", "stderr": "", "rc": 0, "cmd": "/usr/local/scripts/shutit", "start": "2024-01-12 08:29:03.446957", "end": "2024-01-12 08:29:03.490584", "delta": "0:00:00.043627", "msg": "", "invocation": {"module_args": {"_raw_params": "/usr/local/scripts/shutit", "_uses_shell": true, "stdin_add_newline": true, "strip_empty_ends": true, "argv": null, "chdir": null, "executable": null, "creates": null, "removes": null, "stdin": null}}}\r\n', b'Shared connection to aix-testvictim01 closed.\r\n')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1705069694.1928875-3765203-223294355196973/ > /dev/null 2>&1 && sleep 0'"'"''
    <aix-testvictim01> (0, b'', b'')
    changed: [aix-testvictim01] => {
        "changed": true,
        "cmd": "/usr/local/scripts/shutit",
        "delta": "0:00:00.043627",
        "end": "2024-01-12 08:29:03.490584",
        "invocation": {
            "module_args": {
                "_raw_params": "/usr/local/scripts/shutit",
                "_uses_shell": true,
                "argv": null,
                "chdir": null,
                "creates": null,
                "executable": null,
                "removes": null,
                "stdin": null,
                "stdin_add_newline": true,
                "strip_empty_ends": true
            }
        },
        "msg": "",
        "rc": 0,
        "start": "2024-01-12 08:29:03.446957",
        "stderr": "",
        "stderr_lines": [],
        "stdout": "Good bye from Jeff",
        "stdout_lines": [
            "Good bye from Jeff"
        ]
    }
     
    TASK [Run AIX Update] ***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
    task path: /home/ansible/wwd_ansible/JAW/aix_patch_1128.yaml:28
    <nim> ESTABLISH SSH CONNECTION FOR USER: ansible
    <nim> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/4a78871800"' nim '/bin/sh -c '"'"'echo ~ansible && sleep 0'"'"''
    <nim> (0, b'/home/ansible\n', b'**************************************************************************\n\n\n For authorized users ONLY. All other use is prohibited.\n-------------------------------------------------------------------------\n\n REMINDER: All information on company computer systems is considered \n Woodward property. Unauthorized duplication, use or distribution of\n software without the express authority of the copyright owner or \n permission under copyright law is strictly prohibited.\n\n This computer and all associated hardware and systems ("System") \n are the property of Woodward. By using this system, you acknowledge\n notice and agree to comply with Woodward policies and procedures\n relating to this System, as updated from time to time.\n\n This System and its usage may be monitored or recorded and is subject \n to audit. Unauthorized use of the System is prohibited, and may be\n subject to disciplinary action, and/or criminal and civil penalties. By\n logging into this System, you agree to the conditions stated in this\n Warning and grant consent to monitoring and recording of all activities \n which take place on this System. The information system may contain\n CUI with specific requirements imposed by the United States Department\n of Defense; and use of the information system may be subject to other\n specified requirements associated with certain types of Export\n Controlled information.\n\n\n*************************************************************************\n\n\n')
    <nim> ESTABLISH SSH CONNECTION FOR USER: ansible
    <nim> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/4a78871800"' nim '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1705069695.5106425-3765212-226883329114511 `" && echo ansible-tmp-1705069695.5106425-3765212-226883329114511="` echo /home/ansible/.ansible/tmp/ansible-tmp-1705069695.5106425-3765212-226883329114511 `" ) && sleep 0'"'"''
    <nim> (0, b'ansible-tmp-1705069695.5106425-3765212-226883329114511=/home/ansible/.ansible/tmp/ansible-tmp-1705069695.5106425-3765212-226883329114511\n', b'')
    <nim> ESTABLISH SSH CONNECTION FOR USER: ansible
    <nim> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/4a78871800"' nim '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1705069695.5106425-3765212-226883329114511/ > /dev/null 2>&1 && sleep 0'"'"''
    <nim> (0, b'', b'')
    fatal: [aix-testvictim01 -> nim]: FAILED! => {
        "msg": "Unable to import nim due to invalid syntax"
    }
     
    PLAY RECAP **********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
    aix-testvictim01           : ok=4    changed=3    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0



    ------------------------------
    J Willsea
    ------------------------------



  • 4.  RE: nim: Action: Update UnboundLocalError: local variable 'unavail_targets' referenced before assignment

    Posted Fri January 12, 2024 10:14 AM
    Edited by Rich Jefferies Fri January 12, 2024 11:16 AM

    Hi Jeff.

    Not sure about this fixing the exact message you were getting, but I think this part of the playbook is wrong:

      vars:
        nim_lpp_source: lpp_source=aix_73_lpp
        nim_master: nim
        ansible_python_interpreter: /usr/bin/python3
     

    I'd expect it to look like :
      vars:
      nim_lpp_source: aix_73_lpp
        nim_master: nim
        ansible_python_interpreter: /usr/bin/python3

    FYI - In case you have a module corruption, this is the filesize and checksum of the nim.py module:

    $ ansible-doc ibm.power_aix.nim | head -1
    > NIM    (/home/richj/.ansible/collections/ansible_collections/ibm/power_aix/plugins/modules/nim.py)

    $ sum /home/richj/.ansible/collections/ansible_collections/ibm/power_aix/plugins/modules/nim.py
    12933    72
    $ ls -l  /home/richj/.ansible/collections/ansible_collections/ibm/power_aix/plugins/modules/nim.py
    -rw-r--r-- 1 richj richj 72829 Jan 12 10:17 /home/richj/.ansible/collections/ansible_collections/ibm/power_aix/plugins/modules/nim.py

    You can also run the NIM update directly on to an alt_disk, by specifying alt_disk_update_name although that appears to currently be undocumented.

    e.g. from one of my playbooks:

       - name: "Update AIX on NIM client"
         nim:
           action:         update
           targets:        "{{ NIM_targets }}"
           lpp_source:     "{{ NIM_lpp_source }}"
           alt_disk_update_name: "{{ Target_Disk | default(omit) }}"
           asynchronous:   "{{ Update_async }}"
           force:          "{{ Update_force }}"
         register:         nim_output
         ignore_errors:     true

       - name: "Display NIM command results"
         debug:
            msg: |
              NIM Command Result : {{ nim_output.msg }}
              NIM Command Status : {{ nim_output.status }}
              =====
              {{ nim_output.meta | to_nice_yaml }}
              =====

    I've just updated my copy of the collection and I get the following when running against two targets with hdisk0 as a target disk (one was aready in "old_rootvg")

    ansible-playbook ~ansible/playbooks/nim_node_update.yml -e "ansible_python_interpreter=/usr/bin/python3 NIM_targets=rj-aix-ha-1,rj-aix-ha-2 NIM_lpp_source=7200-05-03-2136-lpp_source Target_Disk=hdisk0"

    ....

    TASK [Display NIM command results] **************************************************************************************************************
    ok: [demo-nim] =>

      msg: |-
        NIM Command Result : NIM update operation failed for ['rj-aix-ha-2']. See status and meta for details.
        NIM Command Status : {'rj-aix-ha-2': 'FAILURE', 'rj-aix-ha-1': 'SUCCESS'}
        =====
        messages:
        - 'Force automatic removal of installed fixes: best effort'
        - 'Will remove as many interim fixes we can: []'
        rj-aix-ha-1:
            cmd: nim -o alt_disk_install -a source=rootvg -a lpp_source=7200-05-03-2136-lpp_source
                -a fixes=update_all -a disk=hdisk0 -a installp_flags="-acNgXY" rj-aix-ha-1
            messages:
            - Synchronous software customization from 7200-05-01-2038 to 7200-05-03-2136.
            - Successfully updated installed software.
            rc: 0
            stderr: ''
            stdout: ''
        rj-aix-ha-2:
            messages:
            - alt_disk_update_name disk (hdisk0) not present or assigned to another VG.

        =====



    ------------------------------
    Rich Jefferies
    ------------------------------



  • 5.  RE: nim: Action: Update UnboundLocalError: local variable 'unavail_targets' referenced before assignment

    Posted Wed January 17, 2024 11:23 AM

    Thanks Rich - I appreciate the help.  Sorry to be such a noob at this.

    I updated the copy from Galaxy.:

    <ansible:>wwd_ansible/JAW>ansible-doc ibm.power_aix.nim | head -1
    > IBM.POWER_AIX.NIM    (/home/ansible/.ansible/collections/ansible_collections/ibm/power_aix/plugins/modules/nim.py)
    <ansible:>wwd_ansible/JAW>sum /home/ansible/.ansible/collections/ansible_collections/ibm/power_aix/plugins/modules/nim.py
    10070    71
    <ansible:>wwd_ansible/JAW>ls -l /home/ansible/.ansible/collections/ansible_collections/ibm/power_aix/plugins/modules/nim.py
    -rw-r--r-- 1 ansible ansible 72440 Jan 11 13:26 /home/ansible/.ansible/collections/ansible_collections/ibm/power_aix/plugins/modules/nim.py

    When I run the script I get the following error:

    PLAY [AIX Patching Playbook] ****************************************************************************************************************************************************************************************************************
     
    TASK [Gathering Facts] **********************************************************************************************************************************************************************************************************************
    ok: [aix-testvictim01]
     
    TASK [Cleanup any existing alt_disk_copy] ***************************************************************************************************************************************************************************************************
    changed: [aix-testvictim01]
     
    TASK [Create an alt_disk_copy for backup] ***************************************************************************************************************************************************************************************************
    changed: [aix-testvictim01]
     
    TASK [Stop Application] *********************************************************************************************************************************************************************************************************************
    changed: [aix-testvictim01]
     
    TASK [Update AIX on NIM client] *************************************************************************************************************************************************************************************************************
    fatal: [aix-testvictim01 -> nim]: FAILED! => {"msg": "Unable to import nim due to invalid syntax"}
    ...ignoring
     
    TASK [Display NIM command results] **********************************************************************************************************************************************************************************************************
    fatal: [aix-testvictim01]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'status'. 'dict object' has no attribute 'status'\n\nThe error appears to be in '/home/ansible/wwd_ansible/JAW/aix_patch_1128.yaml': line 40, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n  - name: \"Display NIM command results\"\n    ^ here\n"}
     
    PLAY RECAP **********************************************************************************************************************************************************************************************************************************
    aix-testvictim01           : ok=5    changed=3    unreachable=0    failed=1    skipped=0    rescued=0    ignored=1

    This is the current copy of my script (based upon your suggestions above):

    ---

    - name: AIX Patching Playbook
      hosts: all
      become: true

      vars:
        nim_lpp_source: aix_73_lpp
        nim_master: nim
        ansible_python_interpreter: /usr/bin/python3

      collections:
        - ibm.power_aix

      tasks:

      - name: Cleanup any existing alt_disk_copy
        alt_disk:
          action: clean

      - name: Create an alt_disk_copy for backup
        alt_disk:
          targets: hdisk99998

      - name: Stop Application
        shell: /usr/local/scripts/shutit

      - name: "Update AIX on NIM client"
        nim:
          action:         update
          targets:        "{{ ansible_hostname }}"
          lpp_source:     "{{ nim_lpp_source }}"
          alt_disk_update_name: hdisk99998
        delegate_to: "{{ nim_master }}"    
        remote_user: ansible
        become: yes
        register: nim_output
        ignore_errors: true
     
      - name: "Display NIM command results"
        debug:
          msg: |
            NIM Command Result : {{ nim_output.msg }}
            NIM Command Status : {{ nim_output.status }}
            =====
            {{ nim_output.meta | to_nice_yaml }}
            =====


      - name: Reboot
        reboot:
          post_reboot_delay: 180

      - name: Start Application
        shell: /usr/local/scripts/startit

    Once again it's complaining about a variable that I'm NOT using - "dict_object".  However I think that is because I'm using nim_ouput.status and I think that doesn't exist.  The bigger issue for me is the invalid syntax

    When I run it with the -vvv option this is what I'm getting:

    ansible-playbook [core 2.14.9]
      config file = /etc/ansible/ansible.cfg
      configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
      ansible python module location = /usr/lib/python3.9/site-packages/ansible
      ansible collection location = /home/ansible/.ansible/collections:/usr/share/ansible/collections
      executable location = /usr/bin/ansible-playbook
      python version = 3.9.18 (main, Sep  7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/usr/bin/python3)
      jinja version = 3.1.2
      libyaml = True
    Using /etc/ansible/ansible.cfg as config file
    Parsed /home/ansible/wwd_ansible/JAW/inventory inventory source with ini plugin
    [WARNING]: Skipping callback plugin 'ansible.posix.profile_tasks', unable to load
    Skipping callback 'default', as we already have a stdout callback.
    Skipping callback 'minimal', as we already have a stdout callback.
    Skipping callback 'oneline', as we already have a stdout callback.
     
    PLAYBOOK: aix_patch_1128.yaml ***************************************************************************************************************************************************************************************************************
    1 plays in aix_patch_1128.yaml
     
    PLAY [AIX Patching Playbook] ****************************************************************************************************************************************************************************************************************
     
    TASK [Gathering Facts] **********************************************************************************************************************************************************************************************************************
    task path: /home/ansible/wwd_ansible/JAW/aix_patch_1128.yaml:3
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
    <aix-testvictim01> (0, b'/home/ansible\n', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1705505007.5459046-1322045-152938570642619 `" && echo ansible-tmp-1705505007.5459046-1322045-152938570642619="` echo /home/ansible/.ansible/tmp/ansible-tmp-1705505007.5459046-1322045-152938570642619 `" ) && sleep 0'"'"''
    <aix-testvictim01> (0, b'ansible-tmp-1705505007.5459046-1322045-152938570642619=/home/ansible/.ansible/tmp/ansible-tmp-1705505007.5459046-1322045-152938570642619\n', b'')
    Using module file /usr/lib/python3.9/site-packages/ansible/modules/setup.py
    <aix-testvictim01> PUT /home/ansible/.ansible/tmp/ansible-local-1322041mj6niq4g/tmpvx6ubpdw TO /home/ansible/.ansible/tmp/ansible-tmp-1705505007.5459046-1322045-152938570642619/AnsiballZ_setup.py
    <aix-testvictim01> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' '[aix-testvictim01]'
    <aix-testvictim01> (0, b'sftp> put /home/ansible/.ansible/tmp/ansible-local-1322041mj6niq4g/tmpvx6ubpdw /home/ansible/.ansible/tmp/ansible-tmp-1705505007.5459046-1322045-152938570642619/AnsiballZ_setup.py\n', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1705505007.5459046-1322045-152938570642619/ /home/ansible/.ansible/tmp/ansible-tmp-1705505007.5459046-1322045-152938570642619/AnsiballZ_setup.py && sleep 0'"'"''
    <aix-testvictim01> (0, b'', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' -tt aix-testvictim01 '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-kxrsjesmfgzzywjdqiyqiihixstryqjq ; /usr/bin/python3 /home/ansible/.ansible/tmp/ansible-tmp-1705505007.5459046-1322045-152938570642619/AnsiballZ_setup.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
    Escalation succeeded
    <aix-testvictim01> (0, b'AttributeError("module \'os\' has no attribute \'getloadavg\'")\r\n\r\n{"ansible_facts": {"ansible_hostnqn": "", "ansible_selinux": {"status": "Missing selinux Python library"}, "ansible_selinux_python_present": false, "ansible_system": "AIX", "ansible_kernel": "3", "ansible_kernel_version": "7", "ansible_machine": "00FBB4484C00", "ansible_python_version": "3.9.6", "ansible_fqdn": "aix-testvictim01.woodward.com", "ansible_hostname": "aix-testvictim01", "ansible_nodename": "aix-testvictim01", "ansible_domain": "woodward.com", "ansible_userspace_bits": "64", "ansible_architecture": "chrp", "ansible_user_id": "root", "ansible_user_uid": 0, "ansible_user_gid": 0, "ansible_user_gecos": "", "ansible_user_dir": "/", "ansible_user_shell": "/usr/bin/ksh", "ansible_real_user_id": 0, "ansible_effective_user_id": 0, "ansible_real_group_id": 0, "ansible_effective_group_id": 0, "ansible_iscsi_iqn": "iqn.aix-testvictim01.hostid.0a3369de", "ansible_virtualization_type": "", "ansible_virtualization_role": "", "ansible_virtualization_tech_guest": [], "ansible_virtualization_tech_host": [], "ansible_processor": ["PowerPC_POWER9"], "ansible_processor_count": 1, "ansible_processor_cores": 1, "ansible_processor_threads_per_core": 8, "ansible_processor_vcpus": 8, "ansible_memtotal_mb": 32768, "ansible_memfree_mb": 24240, "ansible_swaptotal_mb": 512, "ansible_swapfree_mb": 496, "ansible_firmware_version": "FW950.80", "ansible_product_name": "IBM,9040-MR9", "ansible_product_serial": "78B448X", "ansible_lpar_info": "24 aix-testvictim01", "ansible_vgs": {"rootvg": [{"pv_name": "hdisk1", "pv_state": "active", "total_pps": "639", "free_pps": "339", "pp_size": "128 megabyte(s)"}]}, "ansible_mounts": [{"mount": "/", "device": "/dev/hd4", "fstype": "jfs2", "options": "rw,log=/dev/hd8", "time": "Jan 11 09:40", "size_total": 5368709120, "size_available": 5315670016, "block_size": 4096, "block_total": 1310720, "block_available": 1297771, "block_used": 12949, "inode_total": 1156966, "inode_available": 1154133, "inode_used": 2833}, {"mount": "/usr", "device": "/dev/hd2", "fstype": "jfs2", "options": "rw,log=/dev/hd8", "time": "Jan 11 09:40", "size_total": 2550136832, "size_available": 342179840, "block_size": 4096, "block_total": 622592, "block_available": 83540, "block_used": 539052, "inode_total": 122705, "inode_available": 78711, "inode_used": 43994}, {"mount": "/var", "device": "/dev/hd9var", "fstype": "jfs2", "options": "rw,log=/dev/hd8", "time": "Jan 11 09:40", "size_total": 5368709120, "size_available": 5291458560, "block_size": 4096, "block_total": 1310720, "block_available": 1291860, "block_used": 18860, "inode_total": 1149536, "inode_available": 1148550, "inode_used": 986}, {"mount": "/tmp", "device": "/dev/hd3", "fstype": "jfs2", "options": "rw,log=/dev/hd8", "time": "Jan 11 09:40", "size_total": 4294967296, "size_available": 4145278976, "block_size": 4096, "block_total": 1048576, "block_available": 1012031, "block_used": 36545, "inode_total": 900063, "inode_available": 899973, "inode_used": 90}, {"mount": "/home", "device": "/dev/hd1", "fstype": "jfs2", "options": "rw,log=/dev/hd8", "time": "Jan 11 09:40", "size_total": 5368709120, "size_available": 5367025664, "block_size": 4096, "block_total": 1310720, "block_available": 1310309, "block_used": 411, "inode_total": 1164815, "inode_available": 1164781, "inode_used": 34}, {"mount": "/admin", "device": "/dev/hd11admin", "fstype": "jfs2", "options": "rw,log=/dev/hd8", "time": "Jan 11 09:40", "size_total": 134217728, "size_available": 133844992, "block_size": 4096, "block_total": 32768, "block_available": 32677, "block_used": 91, "inode_total": 29110, "inode_available": 29105, "inode_used": 5}, {"mount": "/proc", "device": "/proc", "fstype": "procfs", "options": "rw", "time": "Jan 11 09:40", "size_total": -1024, "size_available": 0, "block_size": 1024, "block_total": -1, "block_available": 0, "block_used": -1, "inode_total": 0, "inode_available": 0, "inode_used": 0}, {"mount": "/opt", "device": "/dev/hd10opt", "fstype": "jfs2", "options": "rw,log=/dev/hd8", "time": "Jan 11 09:40", "size_total": 5368709120, "size_available": 4495818752, "block_size": 4096, "block_total": 1310720, "block_available": 1097612, "block_used": 213108, "inode_total": 987495, "inode_available": 976821, "inode_used": 10674}, {"mount": "/var/adm/ras/livedump", "device": "/dev/livedump", "fstype": "jfs2", "options": "rw,log=/dev/hd8", "time": "Jan 11 09:40", "size_total": 268435456, "size_available": 268058624, "block_size": 4096, "block_total": 65536, "block_available": 65444, "block_used": 92, "inode_total": 58204, "inode_available": 58200, "inode_used": 4}, {"mount": "/usr/local", "device": "/dev/lv_usrlocal", "fstype": "jfs2", "options": "rw,log=/dev/lv_ul_log", "time": "Jan 11 09:40", "size_total": 4294967296, "size_available": 4141715456, "block_size": 4096, "block_total": 1048576, "block_available": 1011161, "block_used": 37415, "inode_total": 903417, "inode_available": 899451, "inode_used": 3966}, {"mount": "/usr/local/logs", "device": "/dev/lv_locallog", "fstype": "jfs2", "options": "rw,log=/dev/loclog_log", "time": "Jan 11 09:40", "size_total": 2684354560, "size_available": 2683564032, "block_size": 4096, "block_total": 655360, "block_available": 655167, "block_used": 193, "inode_total": 582402, "inode_available": 582397, "inode_used": 5}, {"mount": "autofs", "device": "auto.oscarl:/oscarl", "fstype": "Jan", "options": "", "time": "11 09:40 ignore"}, {"mount": "autofs", "device": "auto.nim:/nim", "fstype": "Jan", "options": "", "time": "11 09:40 ignore"}, {"mount": "autofs", "device": "auto.nfssrv:/nfssrv", "fstype": "Jan", "options": "", "time": "11 09:40 ignore"}, {"mount": "/aha", "device": "/ahafs", "fstype": "ahafs", "options": "rw", "time": "Jan 11 09:40", "size_total": -512, "size_available": 0, "block_size": 512, "block_total": -1, "block_available": 0, "block_used": -1, "inode_total": 32768, "inode_available": 32733, "inode_used": 35}], "ansible_devices": {"L2cache0": {"state": "Available", "type": "L2 Cache", "attributes": {"size": "0"}}, "altinst_rootvg": {"state": "Available", "type": "Volume group", "attributes": {"auto_on": "n", "cache_pbuf_cnt": "0", "conc_auto_on": "n", "conc_capable": "n", "gbl_pbufs_ppv": "0", "gbl_pbufs_pvg": "0", "timestamp": "65a7ee2b17a844c5", "vg_pbufs_ppv": "0", "vgserial_id": "00fbb44800004c000000018d17f919f2", "workQ_size": "256"}}, "cache0": {"state": "Defined", "type": "SSD Cache virtual device", "attributes": {"auto_grab_ssd": "no", "cache_enable": "1", "cache_engine": "cengine0", "cfg_persist": "1"}}, "cengine0": {"state": "Defined", "type": "SSD Cache engine", "attributes": {"cache_per_tgt": "1", "cepath": "/usr/ccs/lib/libcehandler.a", "max_partition": "1", "max_pool": "1", "tgt_per_cache": "unlimited"}}, "cluster0": {"state": "Available", "type": "Cluster Node", "attributes": {"clrpvid": "00000000000000000000000000000000", "clvdisk": "00000000-0000-0000-0000-000000000000", "configure": "yes", "node_uuid": "07ea0876-83da-11ee-8004-fee461ef2b02"}}, "en0": {"state": "Available", "type": "Standard Ethernet Network Interface", "attributes": {"alias4": "IPv4", "alias6": "IPv6", "arp": "on", "authority": "Authorized", "broadcast": "Broadcast", "monitor": "off", "mtu": "1500", "mtu_bypass": "on", "netaddr": "10.51.105.222", "netaddr6": "IPv6", "netmask": "255.255.255.0", "prefixlen": "Prefix", "remmtu": "576", "rfc1323": "Enable/Disable", "security": "none", "state": "up", "tcp_mssdflt": "Set", "tcp_nodelay": "Enable/Disable", "tcp_recvspace": "Set", "tcp_sendspace": "Set", "thread": "off"}}, "ent0": {"state": "Available", "type": "Virtual I/O Ethernet Adapter (l-lan)", "attributes": {"alt_addr": "0x000000000000", "buf_mode": "max_min", "chksum_offload": "yes", "copy_buffs": "32", "copy_bytes": "65536", "desired_mapmem": "0", "ipv6_offload": "yes", "max_buf_control": "64", "max_buf_huge": "64", "max_buf_large": "64", "max_buf_medium": "256", "max_buf_small": "2048", "max_buf_tiny": "2048", "min_buf_control": "24", "min_buf_huge": "24", "min_buf_large": "24", "min_buf_medium": "128", "min_buf_small": "512", "min_buf_tiny": "512", "platform_lso": "yes", "poll_uplink": "no", "poll_uplink_int": "1000", "trace_debug": "no", "use_alt_addr": "no"}}, "et0": {"state": "Defined", "type": "IEEE 802.3 Ethernet Network Interface", "attributes": {"alias4": "IPv4", "alias6": "IPv6", "arp": "on", "authority": "Authorized", "broadcast": "Broadcast", "mtu": "1492", "netaddr": "Internet", "netaddr6": "IPv6", "netmask": "Subnet", "prefixlen": "Prefix", "remmtu": "576", "rfc1323": "Enable/Disable", "security": "none", "state": "down", "tcp_mssdflt": "Set", "tcp_nodelay": "Enable/Disable", "tcp_recvspace": "Set", "tcp_sendspace": "Set"}}, "fcs0": {"state": "Available", "type": "C3-T1 Virtual Fibre Channel Client Adapter", "attributes": {"bus_mem_addr": "0x01000000", "intr_priority": "3", "io_dma": "256", "label": "User", "lg_term_dma": "0x1000000", "max_xfer_size": "0x100000", "num_cmd_elems": "1024", "num_io_queues": "8", "num_sp_cmd_elem": "512", "sw_fc_class": "2"}}, "fcs1": {"state": "Available", "type": "C4-T1 Virtual Fibre Channel Client Adapter", "attributes": {"bus_mem_addr": "0x01000000", "intr_priority": "3", "io_dma": "256", "label": "User", "lg_term_dma": "0x1000000", "max_xfer_size": "0x100000", "num_cmd_elems": "1024", "num_io_queues": "8", "num_sp_cmd_elem": "512", "sw_fc_class": "2"}}, "fcs2": {"state": "Available", "type": "C5-T1 Virtual Fibre Channel Client Adapter", "attributes": {"bus_mem_addr": "0x01000000", "intr_priority": "3", "io_dma": "256", "label": "User", "lg_term_dma": "0x1000000", "max_xfer_size": "0x100000", "num_cmd_elems": "1024", "num_io_queues": "8", "num_sp_cmd_elem": "512", "sw_fc_class": "2"}}, "fcs3": {"state": "Available", "type": "C6-T1 Virtual Fibre Channel Client Adapter", "attributes": {"bus_mem_addr": "0x01000000", "intr_priority": "3", "io_dma": "256", "label": "User", "lg_term_dma": "0x1000000", "max_xfer_size": "0x100000", "num_cmd_elems": "1024", "num_io_queues": "8", "num_sp_cmd_elem": "512", "sw_fc_class": "2"}}, "fcs4": {"state": "Available", "type": "C7-T1 Virtual Fibre Channel Client Adapter", "attributes": {"bus_mem_addr": "0x01000000", "intr_priority": "3", "io_dma": "256", "label": "User", "lg_term_dma": "0x1000000", "max_xfer_size": "0x100000", "num_cmd_elems": "1024", "num_io_queues": "8", "num_sp_cmd_elem": "512", "sw_fc_class": "2"}}, "fcs5": {"state": "Available", "type": "C8-T1 Virtual Fibre Channel Client Adapter", "attributes": {"bus_mem_addr": "0x01000000", "intr_priority": "3", "io_dma": "256", "label": "User", "lg_term_dma": "0x1000000", "max_xfer_size": "0x100000", "num_cmd_elems": "1024", "num_io_queues": "8", "num_sp_cmd_elem": "512", "sw_fc_class": "2"}}, "fscsi0": {"state": "Available", "type": "C3-T1-01 FC SCSI I/O Controller Protocol Device", "attributes": {"attach": "switch", "autoconfig": "available", "dyntrk": "yes", "fc_err_recov": "fast_fail", "io_thrshld_tmr": "no", "scsi_id": "0x3270b", "sw_fc_class": "3"}}, "fscsi1": {"state": "Available", "type": "C4-T1-01 FC SCSI I/O Controller Protocol Device", "attributes": {"attach": "switch", "autoconfig": "available", "dyntrk": "yes", "fc_err_recov": "fast_fail", "io_thrshld_tmr": "no", "scsi_id": "0x3044e", "sw_fc_class": "3"}}, "fscsi2": {"state": "Available", "type": "C5-T1-01 FC SCSI I/O Controller Protocol Device", "attributes": {"attach": "switch", "autoconfig": "available", "dyntrk": "yes", "fc_err_recov": "fast_fail", "io_thrshld_tmr": "no", "scsi_id": "0x31454", "sw_fc_class": "3"}}, "fscsi3": {"state": "Available", "type": "C6-T1-01 FC SCSI I/O Controller Protocol Device", "attributes": {"attach": "switch", "autoconfig": "available", "dyntrk": "yes", "fc_err_recov": "fast_fail", "io_thrshld_tmr": "no", "scsi_id": "0x3264c", "sw_fc_class": "3"}}, "fscsi4": {"state": "Available", "type": "C7-T1-01 FC SCSI I/O Controller Protocol Device", "attributes": {"attach": "switch", "autoconfig": "available", "dyntrk": "yes", "fc_err_recov": "fast_fail", "io_thrshld_tmr": "no", "scsi_id": "0x31070", "sw_fc_class": "3"}}, "fscsi5": {"state": "Available", "type": "C8-T1-01 FC SCSI I/O Controller Protocol Device", "attributes": {"attach": "switch", "autoconfig": "available", "dyntrk": "yes", "fc_err_recov": "fast_fail", "io_thrshld_tmr": "no", "scsi_id": "0x32203", "sw_fc_class": "3"}}, "hd1": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "c", "label": "/home", "lvserial_id": "00fbb44800004c000000018c5f9691d1.8", "relocatable": "y", "size": "40", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "hd2": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "c", "label": "/usr", "lvserial_id": "00fbb44800004c000000018c5f9691d1.5", "relocatable": "y", "size": "19", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "hd3": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "c", "label": "/tmp", "lvserial_id": "00fbb44800004c000000018c5f9691d1.7", "relocatable": "y", "size": "32", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "hd4": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "c", "label": "/", "lvserial_id": "00fbb44800004c000000018c5f9691d1.4", "relocatable": "y", "size": "40", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "hd5": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "e", "label": "primary_bootlv", "lvserial_id": "00fbb44800004c000000018c5f9691d1.1", "relocatable": "n", "size": "1", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "boot", "upperbound": "32"}}, "hd6": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "m", "label": "None", "lvserial_id": "00fbb44800004c000000018c5f9691d1.2", "relocatable": "y", "size": "4", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "paging", "upperbound": "32"}}, "hd8": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "c", "label": "None", "lvserial_id": "00fbb44800004c000000018c5f9691d1.3", "relocatable": "y", "size": "1", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2log", "upperbound": "32"}}, "hd10opt": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "c", "label": "/opt", "lvserial_id": "00fbb44800004c000000018c5f9691d1.9", "relocatable": "y", "size": "40", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "hd11admin": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "c", "label": "/admin", "lvserial_id": "00fbb44800004c000000018c5f9691d1.10", "relocatable": "y", "size": "1", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "hd9var": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "c", "label": "/var", "lvserial_id": "00fbb44800004c000000018c5f9691d1.6", "relocatable": "y", "size": "40", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "hdcrypt": {"state": "Available", "type": "Data encryption", "attributes": {}}, "hdisk1": {"state": "Available", "type": "C4-T1-01 MPIO IBM 2076 FC Disk", "attributes": {"PCM": "PCM/friend/fcpother", "PR_key_value": "none", "algorithm": "shortest_queue", "hcheck_cmd": "test_unit_rdy", "hcheck_interval": "60", "hcheck_mode": "nonactive", "location": "Location", "lun_id": "0x1000000000000", "max_coalesce": "0x40000", "max_retry_delay": "60", "max_transfer": "0x80000", "min_rw_to": "10", "node_name": "0x5005076810001d56", "pvid": "00fbb448d3f4bc0c0000000000000000", "queue_depth": "24", "reassign_to": "120", "reserve_policy": "no_reserve", "rw_max_time": "0", "rw_timeout": "30", "scsi_id": "0x32001", "timeout_policy": "fail_path", "unique_id": "3321360050768108100EA580000000000110904214503IBMfcp", "ww_name": "0x5005076810251d56"}}, "hdisk99998": {"state": "Available", "type": "C4-T1-01 MPIO IBM 2076 FC Disk", "attributes": {"PCM": "PCM/friend/fcpother", "PR_key_value": "none", "algorithm": "shortest_queue", "hcheck_cmd": "test_unit_rdy", "hcheck_interval": "60", "hcheck_mode": "nonactive", "location": "Location", "lun_id": "0x0", "max_coalesce": "0x40000", "max_retry_delay": "60", "max_transfer": "0x80000", "min_rw_to": "10", "node_name": "0x5005076810001d56", "pvid": "00fbb448d3f5e0d40000000000000000", "queue_depth": "24", "reassign_to": "120", "reserve_policy": "no_reserve", "rw_max_time": "0", "rw_timeout": "30", "scsi_id": "0x32001", "timeout_policy": "fail_path", "unique_id": "3321360050768108100EA580000000000110804214503IBMfcp", "ww_name": "0x5005076810251d56"}}, "inet0": {"state": "Available", "type": "Internet Network Extension", "attributes": {"authm": "65536", "bootup_option": "no", "gateway": "Gateway", "hostname": "aix-testvictim01", "rout6": "IPv6", "route": "net,-hopcount,0,,0,10.51.105.1"}}, "iocp0": {"state": "Defined", "type": "I/O Completion Ports", "attributes": {"autoconfig": "defined"}}, "iscsi0": {"state": "Available", "type": "iSCSI Protocol Device", "attributes": {"disc_filename": "/etc/iscsi/targets", "disc_policy": "file", "immediate_data": "no", "initial_r2t": "yes", "initiator_name": "iqn.aix-testvictim01.hostid.0a3369de", "isns_srvnames": "auto", "isns_srvports": "iSNS", "isw_err_recov": "delayed_fail", "max_targets": "16", "max_xfer_size": "0x80000", "num_cmd_elems": "200"}}, "lg_dumplv": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "m", "label": "None", "lvserial_id": "00fbb44800004c000000018c5f9691d1.11", "relocatable": "y", "size": "24", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "sysdump", "upperbound": "32"}}, "livedump": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "m", "label": "/var/adm/ras/livedump", "lvserial_id": "00fbb44800004c000000018c5f9691d1.12", "relocatable": "y", "size": "2", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "lo0": {"state": "Available", "type": "Loopback Network Interface", "attributes": {"mtu": "16896", "netaddr": "127.0.0.1", "netaddr6": "::1", "netmask": "Subnet", "prefixlen": "IPv6", "rfc1323": "Enable/Disable", "state": "up", "tcp_mssdflt": "Set", "tcp_nodelay": "Enable/Disable", "tcp_recvspace": "Set", "tcp_sendspace": "Set"}}, "loclog_log": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "m", "label": "None", "lvserial_id": "00fbb44800004c000000018c5f9691d1.15", "relocatable": "y", "size": "2", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2log", "upperbound": "32"}}, "lv_locallog": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "m", "label": "/usr/local/logs", "lvserial_id": "00fbb44800004c000000018c5f9691d1.16", "relocatable": "y", "size": "20", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "lv_ul_log": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "m", "label": "None", "lvserial_id": "00fbb44800004c000000018c5f9691d1.13", "relocatable": "y", "size": "2", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2log", "upperbound": "32"}}, "lv_usrlocal": {"state": "Defined", "type": "Logical volume", "attributes": {"copies": "1", "inter": "m", "intra": "m", "label": "/usr/local", "lvserial_id": "00fbb44800004c000000018c5f9691d1.14", "relocatable": "y", "size": "32", "strictness": "y", "stripe_size": "Stripe", "stripe_width": "Striping", "type": "jfs2", "upperbound": "32"}}, "lvdd": {"state": "Available", "type": "LVM Device Driver", "attributes": {}}, "mem0": {"state": "Available", "type": "Memory", "attributes": {"ent_mem_cap": "I/O", "goodsize": "32768", "mem_exp_factor": "Memory", "size": "32768", "var_mem_weight": "Variable"}}, "pkcs11": {"state": "Available", "type": "ACF/PKCS#11 Device", "attributes": {"comp_trace": "no", "io_threads": "8", "proc_heap_sz": "8", "trc_adm": "no", "trc_clic": "no", "trc_context": "no", "trc_dd": "no", "trc_hw": "no", "trc_io": "no", "trc_k_klib": "no", "trc_k_ulib": "no", "trc_malloc": "no", "trc_meta": "no", "trc_mmap": "no", "trc_obj": "no", "trc_req": "no", "trc_sess": "no", "trc_slot": "no", "trc_token": "no", "trc_u_lib": "no", "trc_util": "no", "y4_max_req": "16"}}, "proc0": {"state": "Available", "type": "00-00 Processor", "attributes": {"frequency": "2800000000", "smt_enabled": "true", "smt_threads": "8", "state": "enable", "type": "PowerPC_POWER9"}}, "pty0": {"state": "Available", "type": "Asynchronous Pseudo-Terminal", "attributes": {"ATTnum": "256", "BSDnum": "16", "autoconfig": "available", "csmap": "sbcs"}}, "rcm0": {"state": "Defined", "type": "Rendering Context Manager Subsystem", "attributes": {}}, "rootvg": {"state": "Defined", "type": "Volume group", "attributes": {"auto_on": "n", "cache_pbuf_cnt": "0", "conc_auto_on": "n", "conc_capable": "n", "gbl_pbufs_ppv": "0", "gbl_pbufs_pvg": "0", "timestamp": "65a00bee28dcb9f0", "vg_pbufs_ppv": "0", "vgserial_id": "00fbb44800004c000000018c5f9691d1", "workQ_size": "256"}}, "sfw0": {"state": "Available", "type": "Storage Framework Module", "attributes": {"enable_sas": "no", "vltag": "3358"}}, "sfwcomm0": {"state": "Available", "type": "C3-T1-01-FF Fibre Channel Storage Framework Comm", "attributes": {}}, "sfwcomm1": {"state": "Available", "type": "C4-T1-01-FF Fibre Channel Storage Framework Comm", "attributes": {}}, "sfwcomm2": {"state": "Available", "type": "C5-T1-01-FF Fibre Channel Storage Framework Comm", "attributes": {}}, "sfwcomm3": {"state": "Available", "type": "C6-T1-01-FF Fibre Channel Storage Framework Comm", "attributes": {}}, "sfwcomm4": {"state": "Available", "type": "C7-T1-01-FF Fibre Channel Storage Framework Comm", "attributes": {}}, "sfwcomm5": {"state": "Available", "type": "C8-T1-01-FF Fibre Channel Storage Framework Comm", "attributes": {}}, "sys0": {"state": "Available", "type": "System Object", "attributes": {"SW_dist_intr": "false", "autorestart": "true", "boottype": "disk", "capacity_inc": "0.01", "capped": "false", "chown_restrict": "true", "clouddev": "0", "conslogin": "enable", "cpuguard": "enable", "dedicated": "false", "enhanced_RBAC": "true", "ent_capacity": "0.50", "ex_intr_virt": "true", "frequency": "1600000000", "fullcore": "false", "fwversion": "IBM,FW950.80", "ghostdev": "0", "id_to_partition": "0X800011CD98100018", "id_to_system": "0X800011CD98100000", "iostat": "false", "keylock": "normal", "log_pg_dealloc": "true", "max_capacity": "1.00", "max_logname": "65", "maxbuf": "20", "maxmbuf": "0", "maxpout": "8193", "maxuproc": "128", "min_capacity": "0.10", "minpout": "4096", "modelname": "IBM,9040-MR9", "ncargs": "256", "nfs4_acl_compat": "secure", "ngroups_allowed": "128", "os_uuid": "3af944b8-3b7c-4180-9f99-85a544c45dd9", "partition_uuid": "178b8575-3737-4dab-84bf-8c90a93cbe49", "pmuaccess": "priv", "pre430core": "false", "pre520tune": "disable", "realmem": "33554432", "rtasversion": "1", "secure_boot": "Policy_0(Disabled)", "sed_config": "select", "signpolicy": "none", "systemid": "IBM,0278B448X", "variable_weight": "128"}}, "sysplanar0": {"state": "Available", "type": "System Planar", "attributes": {}}, "vio0": {"state": "Available", "type": "Virtual I/O Bus", "attributes": {"bus_id": "0x90000340"}}, "vsa0": {"state": "Available", "type": "LPAR Virtual Serial Adapter", "attributes": {"desired_mapmem": "I/O"}}, "vty0": {"state": "Available", "type": "Asynchronous Terminal", "attributes": {"autoconfig": "available", "bpc": "8", "csmap": "sbcs", "discard": "^o", "dsusp": "^y", "eof": "^d", "eol": "^@", "eol2": "^?", "erase": "^h", "flow_disp": "xon", "imap": "none", "intr": "^c", "kill": "^u", "lnext": "^v", "logger": "LOGGER", "login": "disable", "logmodes": "hupcl,cread,echoe,cs8", "modules": "ldterm", "omap": "none", "open_disp": "dtropen", "parity": "none", "quit": "^\\\\", "reprint": "^r", "runmodes": "hupcl,cread,brkint,icrnl,opost,tab3,onlcr,isig,icanon,echo,echoe,echok,echoctl,echoke,imaxbel,iexten", "speed": "19200", "start": "^q", "stop": "^s", "stops": "1", "susp": "^z", "term": "vt220", "timeout": "0", "werase": "^w"}}}, "ansible_dns": {"domain": "woodward.com", "nameservers": ["10.1.99.121", "10.34.100.1"]}, "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBALQIzFe/iGtcA2R0+oBMgUAXASPvdxZZRphXVdx7x7ARuVIz008AoJQsx7N4Lxpy5UvF1pVgAwAkFyAgeqmnuGN2UTLOLIMhj5L57+f0qiMeiuQq4P+wQJW7CxIubnFlDvxy6qvGb8Vol0G+vpqaa8NCMw/5mgrNJZdhdcKA0D/hAAAAFQDsaHZKHQL3u7ou0af2Um9rMoCZWwAAAIEAsTCxQpxs4L8TVF8To9wXQV7MR/CnJUzaxE5lwaVdePSHTvlY+a6RPzJj1QA+gwKE/5GcNLHFPcq/wV9hXEyKU8YLVDOY+1os0EfT+Srnh7nwQx59DsBs0Q+7CGrHXma3WqfLaFJfclvj2GGGy1ahbvFQrpQv28b0YBeZkMxkn/wAAACAarOBdM9/VyD25zdI38QBiqIsl2jg0AsKngoeVWiQXOlG9VK17MGLd4xlGTu/kqxgGbZHRislygVw1nfLq8cx/og3PVS/syv/4lgEPT2cdNHQFUPxIMg1G/fzx/RN0NPdCJk0Np5VuFXabw/MRKW+jyJ/5xjNPTUiE7QpLPtVD2U=", "ansible_ssh_host_key_dsa_public_keytype": "ssh-dss", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQC3Hnnc8e5dF57xpHWySG1xF1OQfP6ux4tIaocF43JuCqxAqoVVg2Ff0YqohxSIsot4bZyrFPeiDLa+i3A7Jw8iipr+aIOSgX/MbLBvm9/Ys2VDgjpPwhJEVrPa3WhhkP/OKdhQ3P9v1VMk9Zl/zV5d1lvG0NxWiiFnCsU5Ainwfww3Xv7Fj0yShQ5/KY6r1+SsD+uMlC1FpFwnhCBuoZZRAUVmS5VAFxBOSHDkuZtpeaSeEpPI9dEVE2xKPdukLHgc7eFhJLj1k5WtNuL5aS8b/eJa0+z89YrR7XTo22zpXZkhQyh76qEsFtGIlDOsLhWKQbyvg7eaPk7xnQfx5EYOIWPjrgKGbVG4W5vqvMcF7RaMvoDCXPuqTqgwZ6qjj1c8QBhrW1HYjC2gDOl5XXoGpV/UUxFWfeZrojjQGxvW1U3y8/0D3sakOI7qJZPC1s/uL7qhXKuXuKvdJTIm1kUuIPqlUNu34KOG2INyKCylNcLYpWiGQsnhtiQkHFQXmEk=", "ansible_ssh_host_key_rsa_public_keytype": "ssh-rsa", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEssoS/2hqc1uHCyhupL4ODLXczLf8m/5sQPL3DRB+MwF+hcRlcm6go3kDkp61Zzz9gNkTh+T8UO47jyuYGpc4g=", "ansible_ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIE0YgcLkjPWqokyyozv69XcDEH6HGiumyx678jbsZEVr", "ansible_ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ansible_interfaces": ["en0", "lo0"], "ansible_en0": {"device": "en0", "ipv4": [{"address": "10.51.105.222", "netmask": "255.255.255.0", "network": "10.51.105.0", "broadcast": "10.51.105.255"}], "ipv6": [], "type": "ether", "flags": ["UP", "BROADCAST", "NOTRAILERS", "RUNNING", "SIMPLEX", "MULTICAST", "GROUPRT", "64BIT", "CHECKSUM_OFFLOAD(ACTIVE)", "LARGESEND", "CHAIN"], "macaddress": "fe:e4:61:ef:2b:02", "mtu": "1500"}, "ansible_lo0": {"device": "lo0", "ipv4": [{"address": "127.0.0.1", "netmask": "255.0.0.0", "network": "127.0.0.0", "broadcast": "127.255.255.255"}], "ipv6": [{"address": "::1%1", "prefix": "64"}], "type": "unknown", "flags": ["UP", "BROADCAST", "LOOPBACK", "RUNNING", "SIMPLEX", "MULTICAST", "GROUPRT", "64BIT", "LARGESEND", "CHAIN"], "macaddress": "unknown", "mtu": "16896"}, "ansible_default_ipv4": {"gateway": "10.51.105.1", "interface": "en0", "device": "en0", "type": "ether", "flags": ["UP", "BROADCAST", "NOTRAILERS", "RUNNING", "SIMPLEX", "MULTICAST", "GROUPRT", "64BIT", "CHECKSUM_OFFLOAD(ACTIVE)", "LARGESEND", "CHAIN"], "macaddress": "fe:e4:61:ef:2b:02", "mtu": "1500", "address": "10.51.105.222", "netmask": "255.255.255.0", "network": "10.51.105.0", "broadcast": "10.51.105.255"}, "ansible_default_ipv6": {}, "ansible_all_ipv4_addresses": ["10.51.105.222"], "ansible_all_ipv6_addresses": ["::1%1"], "ansible_fibre_channel_wwn": ["C050760ADCA600CE", "C050760ADCA600D0", "C050760ADCA600D2", "C050760ADCA600D4", "C050760ADCA600D6", "C050760ADCA600D8"], "ansible_local": {}, "ansible_python": {"version": {"major": 3, "minor": 9, "micro": 6, "releaselevel": "final", "serial": 0}, "version_info": [3, 9, 6, "final", 0], "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython"}, "ansible_distribution": "AIX", "ansible_distribution_release": "3", "ansible_distribution_version": "7.3", "ansible_distribution_major_version": "7", "ansible_os_family": "AIX", "ansible_system_capabilities_enforced": "N/A", "ansible_system_capabilities": "N/A", "ansible_fips": false, "ansible_env": {"_": "/usr/bin/python3", "SUDO_GID": "1", "LANG": "C", "LOGIN": "root", "SUDO_UID": "128641", "CLCMD_PASSTHRU": "1", "PATH": "/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java8_64/jre/bin:/usr/java8_64/bin:/opt/freeware/bin", "LC__FASTMSG": "true", "LOGNAME": "root", "MAIL": "/var/spool/mail/root", "LOCPATH": "/usr/lib/nls/loc", "USER": "root", "SUDO_USER": "ansible", "SUDO_COMMAND": "/bin/sh -c echo BECOME-SUCCESS-kxrsjesmfgzzywjdqiyqiihixstryqjq ; /usr/bin/python3 /home/ansible/.ansible/tmp/ansible-tmp-1705505007.5459046-1322045-152938570642619/AnsiballZ_setup.py", "SHELL": "/usr/bin/ksh", "ODMDIR": "/etc/objrepos", "HOME": "/", "TERM": "xterm", "PWD": "/home/ansible", "TZ": "CST6CDT", "NLSPATH": "/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/%l.%c/%N:/usr/lib/nls/msg/%l.%c/%N.cat", "LIBPATH": "/opt/freeware/lib:/usr/lib:/opt/freeware/libexec/sudo"}, "ansible_lsb": {}, "ansible_is_chroot": false, "ansible_date_time": {"year": "2024", "month": "01", "weekday": "Wednesday", "weekday_number": "3", "weeknumber": "03", "day": "17", "hour": "09", "minute": "24", "second": "30", "epoch": "1705505070", "epoch_int": "1705505070", "date": "2024-01-17", "time": "09:24:30", "iso8601_micro": "2024-01-17T15:24:30.420762Z", "iso8601": "2024-01-17T15:24:30Z", "iso8601_basic": "20240117T092430420762", "iso8601_basic_short": "20240117T092430", "tz": "CST", "tz_dst": "CDT", "tz_offset": "CST"}, "ansible_apparmor": {"status": "disabled"}, "ansible_service_mgr": "src", "ansible_pkg_mgr": "unknown", "gather_subset": ["all"], "module_setup": true}, "invocation": {"module_args": {"gather_subset": ["all"], "gather_timeout": 10, "filter": [], "fact_path": "/etc/ansible/facts.d"}}}\r\n', b'Shared connection to aix-testvictim01 closed.\r\n')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1705505007.5459046-1322045-152938570642619/ > /dev/null 2>&1 && sleep 0'"'"''
    <aix-testvictim01> (0, b'', b'')
    ok: [aix-testvictim01]
     
    TASK [Cleanup any existing alt_disk_copy] ***************************************************************************************************************************************************************************************************
    task path: /home/ansible/wwd_ansible/JAW/aix_patch_1128.yaml:17
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
    <aix-testvictim01> (0, b'/home/ansible\n', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1705505016.916453-1322135-204844895810895 `" && echo ansible-tmp-1705505016.916453-1322135-204844895810895="` echo /home/ansible/.ansible/tmp/ansible-tmp-1705505016.916453-1322135-204844895810895 `" ) && sleep 0'"'"''
    <aix-testvictim01> (0, b'ansible-tmp-1705505016.916453-1322135-204844895810895=/home/ansible/.ansible/tmp/ansible-tmp-1705505016.916453-1322135-204844895810895\n', b'')
    Using module file /home/ansible/.ansible/collections/ansible_collections/ibm/power_aix/plugins/modules/alt_disk.py
    <aix-testvictim01> PUT /home/ansible/.ansible/tmp/ansible-local-1322041mj6niq4g/tmpdkpscifp TO /home/ansible/.ansible/tmp/ansible-tmp-1705505016.916453-1322135-204844895810895/AnsiballZ_alt_disk.py
    <aix-testvictim01> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' '[aix-testvictim01]'
    <aix-testvictim01> (0, b'sftp> put /home/ansible/.ansible/tmp/ansible-local-1322041mj6niq4g/tmpdkpscifp /home/ansible/.ansible/tmp/ansible-tmp-1705505016.916453-1322135-204844895810895/AnsiballZ_alt_disk.py\n', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1705505016.916453-1322135-204844895810895/ /home/ansible/.ansible/tmp/ansible-tmp-1705505016.916453-1322135-204844895810895/AnsiballZ_alt_disk.py && sleep 0'"'"''
    <aix-testvictim01> (0, b'', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' -tt aix-testvictim01 '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-pookyirvgqdtawocsscwkkdvtcgfjndi ; /usr/bin/python3 /home/ansible/.ansible/tmp/ansible-tmp-1705505016.916453-1322135-204844895810895/AnsiballZ_alt_disk.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
    Escalation succeeded
    <aix-testvictim01> (0, b'\r\n{"changed": true, "msg": "alt_disk clean operation completed successfully", "stdout": "Bootlist is set to the boot disk: hdisk1 blv=hd5\\n", "stderr": "", "rc": 0, "cmd": "/usr/sbin/alt_rootvg_op -X altinst_rootvg", "invocation": {"module_args": {"action": "clean", "force": false, "bootlist": false, "remain_nim_client": false, "device_reset": false, "allow_old_rootvg": false, "targets": null, "disk_size_policy": null, "existing_altinst_rootvg": null, "bundle_name": null, "apar_fixes": null, "filesets": null, "installp_flags": null, "image_location": null, "first_boot_script": null, "resolvconf": null}}}\r\n', b'Shared connection to aix-testvictim01 closed.\r\n')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1705505016.916453-1322135-204844895810895/ > /dev/null 2>&1 && sleep 0'"'"''
    <aix-testvictim01> (0, b'', b'')
    changed: [aix-testvictim01] => {
        "changed": true,
        "cmd": "/usr/sbin/alt_rootvg_op -X altinst_rootvg",
        "invocation": {
            "module_args": {
                "action": "clean",
                "allow_old_rootvg": false,
                "apar_fixes": null,
                "bootlist": false,
                "bundle_name": null,
                "device_reset": false,
                "disk_size_policy": null,
                "existing_altinst_rootvg": null,
                "filesets": null,
                "first_boot_script": null,
                "force": false,
                "image_location": null,
                "installp_flags": null,
                "remain_nim_client": false,
                "resolvconf": null,
                "targets": null
            }
        },
        "msg": "alt_disk clean operation completed successfully",
        "rc": 0,
        "stderr": "",
        "stderr_lines": [],
        "stdout": "Bootlist is set to the boot disk: hdisk1 blv=hd5\n",
        "stdout_lines": [
            "Bootlist is set to the boot disk: hdisk1 blv=hd5"
        ]
    }
     
    TASK [Create an alt_disk_copy for backup] ***************************************************************************************************************************************************************************************************
    task path: /home/ansible/wwd_ansible/JAW/aix_patch_1128.yaml:21
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
    <aix-testvictim01> (0, b'/home/ansible\n', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1705505019.5494485-1322220-95011195699183 `" && echo ansible-tmp-1705505019.5494485-1322220-95011195699183="` echo /home/ansible/.ansible/tmp/ansible-tmp-1705505019.5494485-1322220-95011195699183 `" ) && sleep 0'"'"''
    <aix-testvictim01> (0, b'ansible-tmp-1705505019.5494485-1322220-95011195699183=/home/ansible/.ansible/tmp/ansible-tmp-1705505019.5494485-1322220-95011195699183\n', b'')
    Using module file /home/ansible/.ansible/collections/ansible_collections/ibm/power_aix/plugins/modules/alt_disk.py
    <aix-testvictim01> PUT /home/ansible/.ansible/tmp/ansible-local-1322041mj6niq4g/tmprkep6j28 TO /home/ansible/.ansible/tmp/ansible-tmp-1705505019.5494485-1322220-95011195699183/AnsiballZ_alt_disk.py
    <aix-testvictim01> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' '[aix-testvictim01]'
    <aix-testvictim01> (0, b'sftp> put /home/ansible/.ansible/tmp/ansible-local-1322041mj6niq4g/tmprkep6j28 /home/ansible/.ansible/tmp/ansible-tmp-1705505019.5494485-1322220-95011195699183/AnsiballZ_alt_disk.py\n', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1705505019.5494485-1322220-95011195699183/ /home/ansible/.ansible/tmp/ansible-tmp-1705505019.5494485-1322220-95011195699183/AnsiballZ_alt_disk.py && sleep 0'"'"''
    <aix-testvictim01> (0, b'', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' -tt aix-testvictim01 '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-bkrjhgivqkxfaedowmwsdeemglhjfhzq ; /usr/bin/python3 /home/ansible/.ansible/tmp/ansible-tmp-1705505019.5494485-1322220-95011195699183/AnsiballZ_alt_disk.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
    Escalation succeeded
    <aix-testvictim01> (0, b'\r\n{"changed": true, "msg": "alt_disk copy operation completed successfully", "stdout": "Calling mkszfile to create new /image.data file.\\nChecking disk sizes.\\nCreating cloned rootvg volume group and associated logical volumes.\\nCreating logical volume alt_hd5.\\nCreating logical volume alt_hd6.\\nCreating logical volume alt_hd8.\\nCreating logical volume alt_hd4.\\nCreating logical volume alt_hd2.\\nCreating logical volume alt_hd9var.\\nCreating logical volume alt_hd3.\\nCreating logical volume alt_hd1.\\nCreating logical volume alt_hd10opt.\\nCreating logical volume alt_hd11admin.\\nCreating logical volume alt_lg_dumplv.\\nCreating logical volume alt_livedump.\\nCreating logical volume alt_lv_ul_log.\\nCreating logical volume alt_lv_usrlocal.\\nCreating logical volume alt_loclog_log.\\nCreating logical volume alt_lv_locallog.\\nCreating /alt_inst/ file system.\\nCreating /alt_inst/admin file system.\\nCreating /alt_inst/home file system.\\nCreating /alt_inst/opt file system.\\nCreating /alt_inst/tmp file system.\\nCreating /alt_inst/usr file system.\\nCreating /alt_inst/usr/local file system.\\nCreating /alt_inst/usr/local/logs file system.\\nCreating /alt_inst/var file system.\\nCreating /alt_inst/var/adm/ras/livedump file system.\\nGenerating a list of files \\nfor backup and restore into the alternate file system...\\nBacking-up the rootvg files and restoring them to the alternate file system...\\nModifying ODM on cloned disk.\\nBuilding boot image on cloned disk.\\nforced unmount of /alt_inst/var/adm/ras/livedump\\nforced unmount of /alt_inst/var/adm/ras/livedump\\nforced unmount of /alt_inst/var\\nforced unmount of /alt_inst/var\\nforced unmount of /alt_inst/usr/local/logs\\nforced unmount of /alt_inst/usr/local/logs\\nforced unmount of /alt_inst/usr/local\\nforced unmount of /alt_inst/usr/local\\nforced unmount of /alt_inst/usr\\nforced unmount of /alt_inst/usr\\nforced unmount of /alt_inst/tmp\\nforced unmount of /alt_inst/tmp\\nforced unmount of /alt_inst/opt\\nforced unmount of /alt_inst/opt\\nforced unmount of /alt_inst/home\\nforced unmount of /alt_inst/home\\nforced unmount of /alt_inst/admin\\nforced unmount of /alt_inst/admin\\nforced unmount of /alt_inst\\nforced unmount of /alt_inst\\nChanging logical volume names in volume group descriptor area.\\nFixing LV control blocks...\\nFixing file system superblocks...\\n", "stderr": "", "rc": 0, "cmd": "alt_disk_copy -d hdisk99998 -B", "invocation": {"module_args": {"targets": ["hdisk99998"], "action": "copy", "force": false, "bootlist": false, "remain_nim_client": false, "device_reset": false, "allow_old_rootvg": false, "disk_size_policy": null, "existing_altinst_rootvg": null, "bundle_name": null, "apar_fixes": null, "filesets": null, "installp_flags": null, "image_location": null, "first_boot_script": null, "resolvconf": null}}}\r\n', b'Shared connection to aix-testvictim01 closed.\r\n')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1705505019.5494485-1322220-95011195699183/ > /dev/null 2>&1 && sleep 0'"'"''
    <aix-testvictim01> (0, b'', b'')
    changed: [aix-testvictim01] => {
        "changed": true,
        "cmd": "alt_disk_copy -d hdisk99998 -B",
        "invocation": {
            "module_args": {
                "action": "copy",
                "allow_old_rootvg": false,
                "apar_fixes": null,
                "bootlist": false,
                "bundle_name": null,
                "device_reset": false,
                "disk_size_policy": null,
                "existing_altinst_rootvg": null,
                "filesets": null,
                "first_boot_script": null,
                "force": false,
                "image_location": null,
                "installp_flags": null,
                "remain_nim_client": false,
                "resolvconf": null,
                "targets": [
                    "hdisk99998"
                ]
            }
        },
        "msg": "alt_disk copy operation completed successfully",
        "rc": 0,
        "stderr": "",
        "stderr_lines": [],
        "stdout": "Calling mkszfile to create new /image.data file.\nChecking disk sizes.\nCreating cloned rootvg volume group and associated logical volumes.\nCreating logical volume alt_hd5.\nCreating logical volume alt_hd6.\nCreating logical volume alt_hd8.\nCreating logical volume alt_hd4.\nCreating logical volume alt_hd2.\nCreating logical volume alt_hd9var.\nCreating logical volume alt_hd3.\nCreating logical volume alt_hd1.\nCreating logical volume alt_hd10opt.\nCreating logical volume alt_hd11admin.\nCreating logical volume alt_lg_dumplv.\nCreating logical volume alt_livedump.\nCreating logical volume alt_lv_ul_log.\nCreating logical volume alt_lv_usrlocal.\nCreating logical volume alt_loclog_log.\nCreating logical volume alt_lv_locallog.\nCreating /alt_inst/ file system.\nCreating /alt_inst/admin file system.\nCreating /alt_inst/home file system.\nCreating /alt_inst/opt file system.\nCreating /alt_inst/tmp file system.\nCreating /alt_inst/usr file system.\nCreating /alt_inst/usr/local file system.\nCreating /alt_inst/usr/local/logs file system.\nCreating /alt_inst/var file system.\nCreating /alt_inst/var/adm/ras/livedump file system.\nGenerating a list of files \nfor backup and restore into the alternate file system...\nBacking-up the rootvg files and restoring them to the alternate file system...\nModifying ODM on cloned disk.\nBuilding boot image on cloned disk.\nforced unmount of /alt_inst/var/adm/ras/livedump\nforced unmount of /alt_inst/var/adm/ras/livedump\nforced unmount of /alt_inst/var\nforced unmount of /alt_inst/var\nforced unmount of /alt_inst/usr/local/logs\nforced unmount of /alt_inst/usr/local/logs\nforced unmount of /alt_inst/usr/local\nforced unmount of /alt_inst/usr/local\nforced unmount of /alt_inst/usr\nforced unmount of /alt_inst/usr\nforced unmount of /alt_inst/tmp\nforced unmount of /alt_inst/tmp\nforced unmount of /alt_inst/opt\nforced unmount of /alt_inst/opt\nforced unmount of /alt_inst/home\nforced unmount of /alt_inst/home\nforced unmount of /alt_inst/admin\nforced unmount of /alt_inst/admin\nforced unmount of /alt_inst\nforced unmount of /alt_inst\nChanging logical volume names in volume group descriptor area.\nFixing LV control blocks...\nFixing file system superblocks...\n",
        "stdout_lines": [
            "Calling mkszfile to create new /image.data file.",
            "Checking disk sizes.",
            "Creating cloned rootvg volume group and associated logical volumes.",
            "Creating logical volume alt_hd5.",
            "Creating logical volume alt_hd6.",
            "Creating logical volume alt_hd8.",
            "Creating logical volume alt_hd4.",
            "Creating logical volume alt_hd2.",
            "Creating logical volume alt_hd9var.",
            "Creating logical volume alt_hd3.",
            "Creating logical volume alt_hd1.",
            "Creating logical volume alt_hd10opt.",
            "Creating logical volume alt_hd11admin.",
            "Creating logical volume alt_lg_dumplv.",
            "Creating logical volume alt_livedump.",
            "Creating logical volume alt_lv_ul_log.",
            "Creating logical volume alt_lv_usrlocal.",
            "Creating logical volume alt_loclog_log.",
            "Creating logical volume alt_lv_locallog.",
            "Creating /alt_inst/ file system.",
            "Creating /alt_inst/admin file system.",
            "Creating /alt_inst/home file system.",
            "Creating /alt_inst/opt file system.",
            "Creating /alt_inst/tmp file system.",
            "Creating /alt_inst/usr file system.",
            "Creating /alt_inst/usr/local file system.",
            "Creating /alt_inst/usr/local/logs file system.",
            "Creating /alt_inst/var file system.",
            "Creating /alt_inst/var/adm/ras/livedump file system.",
            "Generating a list of files ",
            "for backup and restore into the alternate file system...",
            "Backing-up the rootvg files and restoring them to the alternate file system...",
            "Modifying ODM on cloned disk.",
            "Building boot image on cloned disk.",
            "forced unmount of /alt_inst/var/adm/ras/livedump",
            "forced unmount of /alt_inst/var/adm/ras/livedump",
            "forced unmount of /alt_inst/var",
            "forced unmount of /alt_inst/var",
            "forced unmount of /alt_inst/usr/local/logs",
            "forced unmount of /alt_inst/usr/local/logs",
            "forced unmount of /alt_inst/usr/local",
            "forced unmount of /alt_inst/usr/local",
            "forced unmount of /alt_inst/usr",
            "forced unmount of /alt_inst/usr",
            "forced unmount of /alt_inst/tmp",
            "forced unmount of /alt_inst/tmp",
            "forced unmount of /alt_inst/opt",
            "forced unmount of /alt_inst/opt",
            "forced unmount of /alt_inst/home",
            "forced unmount of /alt_inst/home",
            "forced unmount of /alt_inst/admin",
            "forced unmount of /alt_inst/admin",
            "forced unmount of /alt_inst",
            "forced unmount of /alt_inst",
            "Changing logical volume names in volume group descriptor area.",
            "Fixing LV control blocks...",
            "Fixing file system superblocks..."
        ]
    }
     
    TASK [Stop Application] *********************************************************************************************************************************************************************************************************************
    task path: /home/ansible/wwd_ansible/JAW/aix_patch_1128.yaml:25
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
    <aix-testvictim01> (0, b'/home/ansible\n', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1705505111.6722822-1322655-11635280716949 `" && echo ansible-tmp-1705505111.6722822-1322655-11635280716949="` echo /home/ansible/.ansible/tmp/ansible-tmp-1705505111.6722822-1322655-11635280716949 `" ) && sleep 0'"'"''
    <aix-testvictim01> (0, b'ansible-tmp-1705505111.6722822-1322655-11635280716949=/home/ansible/.ansible/tmp/ansible-tmp-1705505111.6722822-1322655-11635280716949\n', b'')
    Using module file /usr/lib/python3.9/site-packages/ansible/modules/command.py
    <aix-testvictim01> PUT /home/ansible/.ansible/tmp/ansible-local-1322041mj6niq4g/tmppmwm8f12 TO /home/ansible/.ansible/tmp/ansible-tmp-1705505111.6722822-1322655-11635280716949/AnsiballZ_command.py
    <aix-testvictim01> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' '[aix-testvictim01]'
    <aix-testvictim01> (0, b'sftp> put /home/ansible/.ansible/tmp/ansible-local-1322041mj6niq4g/tmppmwm8f12 /home/ansible/.ansible/tmp/ansible-tmp-1705505111.6722822-1322655-11635280716949/AnsiballZ_command.py\n', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1705505111.6722822-1322655-11635280716949/ /home/ansible/.ansible/tmp/ansible-tmp-1705505111.6722822-1322655-11635280716949/AnsiballZ_command.py && sleep 0'"'"''
    <aix-testvictim01> (0, b'', b'')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' -tt aix-testvictim01 '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ammuywlmnkdnmmfdxzbeijifbrsgdpfn ; /usr/bin/python3 /home/ansible/.ansible/tmp/ansible-tmp-1705505111.6722822-1322655-11635280716949/AnsiballZ_command.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
    Escalation succeeded
    <aix-testvictim01> (0, b'\r\n{"changed": true, "stdout": "Good bye from Jeff", "stderr": "", "rc": 0, "cmd": "/usr/local/scripts/shutit", "start": "2024-01-17 09:26:06.028588", "end": "2024-01-17 09:26:06.073229", "delta": "0:00:00.044641", "msg": "", "invocation": {"module_args": {"_raw_params": "/usr/local/scripts/shutit", "_uses_shell": true, "stdin_add_newline": true, "strip_empty_ends": true, "argv": null, "chdir": null, "executable": null, "creates": null, "removes": null, "stdin": null}}}\r\n', b'Shared connection to aix-testvictim01 closed.\r\n')
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' aix-testvictim01 '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1705505111.6722822-1322655-11635280716949/ > /dev/null 2>&1 && sleep 0'"'"''
    <aix-testvictim01> (0, b'', b'')
    changed: [aix-testvictim01] => {
        "changed": true,
        "cmd": "/usr/local/scripts/shutit",
        "delta": "0:00:00.044641",
        "end": "2024-01-17 09:26:06.073229",
        "invocation": {
            "module_args": {
                "_raw_params": "/usr/local/scripts/shutit",
                "_uses_shell": true,
                "argv": null,
                "chdir": null,
                "creates": null,
                "executable": null,
                "removes": null,
                "stdin": null,
                "stdin_add_newline": true,
                "strip_empty_ends": true
            }
        },
        "msg": "",
        "rc": 0,
        "start": "2024-01-17 09:26:06.028588",
        "stderr": "",
        "stderr_lines": [],
        "stdout": "Good bye from Jeff",
        "stdout_lines": [
            "Good bye from Jeff"
        ]
    }
     
    TASK [Update AIX on NIM client] *************************************************************************************************************************************************************************************************************
    task path: /home/ansible/wwd_ansible/JAW/aix_patch_1128.yaml:28
    <nim> ESTABLISH SSH CONNECTION FOR USER: ansible
    <nim> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/4a78871800"' nim '/bin/sh -c '"'"'echo ~ansible && sleep 0'"'"''
    <nim> (0, b'/home/ansible\n', b'**************************************************************************\n\n\n For authorized users ONLY. All other use is prohibited.\n-------------------------------------------------------------------------\n\n REMINDER: All information on company computer systems is considered \n Woodward property. Unauthorized duplication, use or distribution of\n software without the express authority of the copyright owner or \n permission under copyright law is strictly prohibited.\n\n This computer and all associated hardware and systems ("System") \n are the property of Woodward. By using this system, you acknowledge\n notice and agree to comply with Woodward policies and procedures\n relating to this System, as updated from time to time.\n\n This System and its usage may be monitored or recorded and is subject \n to audit. Unauthorized use of the System is prohibited, and may be\n subject to disciplinary action, and/or criminal and civil penalties. By\n logging into this System, you agree to the conditions stated in this\n Warning and grant consent to monitoring and recording of all activities \n which take place on this System. The information system may contain\n CUI with specific requirements imposed by the United States Department\n of Defense; and use of the information system may be subject to other\n specified requirements associated with certain types of Export\n Controlled information.\n\n\n*************************************************************************\n\n\n')
    <nim> ESTABLISH SSH CONNECTION FOR USER: ansible
    <nim> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/4a78871800"' nim '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1705505112.8850405-1322664-153118226349099 `" && echo ansible-tmp-1705505112.8850405-1322664-153118226349099="` echo /home/ansible/.ansible/tmp/ansible-tmp-1705505112.8850405-1322664-153118226349099 `" ) && sleep 0'"'"''
    <nim> (0, b'ansible-tmp-1705505112.8850405-1322664-153118226349099=/home/ansible/.ansible/tmp/ansible-tmp-1705505112.8850405-1322664-153118226349099\n', b'')
    <nim> ESTABLISH SSH CONNECTION FOR USER: ansible
    <nim> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/4a78871800"' nim '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1705505112.8850405-1322664-153118226349099/ > /dev/null 2>&1 && sleep 0'"'"''
    <nim> (0, b'', b'')
    fatal: [aix-testvictim01 -> nim]: FAILED! => {
        "msg": "Unable to import nim due to invalid syntax"
    }
    ...ignoring
     
    TASK [Display NIM command results] **********************************************************************************************************************************************************************************************************
    task path: /home/ansible/wwd_ansible/JAW/aix_patch_1128.yaml:40
    fatal: [aix-testvictim01]: FAILED! => {
        "msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'status'. 'dict object' has no attribute 'status'\n\nThe error appears to be in '/home/ansible/wwd_ansible/JAW/aix_patch_1128.yaml': line 40, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n  - name: \"Display NIM command results\"\n    ^ here\n"
    }
     
    PLAY RECAP **********************************************************************************************************************************************************************************************************************************
    aix-testvictim01           : ok=5    changed=3    unreachable=0    failed=1    skipped=0    rescued=0    ignored=1

    I'm kind of lost as to where to go from here.   Any advice would be appreciated VERY much.

    Sincerely, 

    Jeff Willsea



    ------------------------------
    J Willsea
    ------------------------------



  • 6.  RE: nim: Action: Update UnboundLocalError: local variable 'unavail_targets' referenced before assignment

    Posted Wed January 17, 2024 12:51 PM

    I think the issue is with the nim.py file.

    Mine shows the following:

    • Size : 72829
    • Sum: 12933    72

    Yours was:

    • Size: 72440
    • Sum: 10070    71

    Not sure how you installed it but if you have direct internet access use:

    • ansible-galaxy collection install ibm.power_aix --force

    Otherwise download the zip file from the link on https://galaxy.ansible.com/ui/repo/published/ibm/power_aix/ copy it to your ansible server and install:

    • ansible-galaxy collection install ibm.power_aix --force ibm-power_aix-1.8.1.tar.gz

    FYI - v1.8.1 is now out, but the nim.py is unchanged from v1.8.0

    Hope this helps



    ------------------------------
    Rich Jefferies
    ------------------------------



  • 7.  RE: nim: Action: Update UnboundLocalError: local variable 'unavail_targets' referenced before assignment

    Posted Fri January 19, 2024 12:57 PM

    Rich,

    Thank you - you've been a tremendous help.   I think we got through most of the issues with the ansible library -  doing the force update seemed to have solved the major issues I was getting.  Although I'm still not getting the server to update.  I'm hoping you can give me some insight.

    Also is there a good manual or site where I can read the documentation and/or see some examples?   I've not found anything that is able to give me an idea.

    Here's the error I'm getting:

    TASK [Display NIM command results] **********************************************************************************************************************************************************
    ok: [aix-testvictim01] => {
        "msg": "NIM Command Result : NIM update operation successful. See status and meta for details.\nNIM Command Status : {'aix-testvictim01': ''}\n=====\naix-testvictim01:\n    messages:\n    - 'Cannot get oslevel from lpp source name: aix_73_lpp'\nmessages: []\n\n=====\n"
    }
    I'm also having the script hang occasionally on the reboot portion.   I don't fully understand that part yet.
    Here's my playbook:
    ---

    - name: AIX Patching Playbook
      hosts: all
      become: true

      vars:
        nim_lpp_source: aix_73_lpp
        nim_master: nim
        ansible_python_interpreter: /usr/bin/python3

      collections:
        - ibm.power_aix

      tasks:

      - name: Cleanup any existing alt_disk_copy
        alt_disk:
          action: clean

    #JAW   - name: Create an alt_disk_copy for backup
    #JAW     alt_disk:
    #JAW       targets: hdisk99998

      - name: Stop Application
        shell: /usr/local/scripts/shutit

      - name: "Update AIX on NIM client"
        nim:
          action:         update
          targets:        "{{ ansible_hostname }}"
          lpp_source:     "{{ nim_lpp_source }}"
          alt_disk_update_name: hdisk99998
        environment:
    #JAW             ODMDIR: /etc/objrepos      
        delegate_to: "{{ nim_master }}"    
        remote_user: ansible
        become: yes
        register: nim_output
        ignore_errors: true
     
      - name: "Display NIM command results"
        debug:
          msg: |
            NIM Command Result : {{ nim_output.msg }}
            NIM Command Status : {{ nim_output.status }}
            =====
            {{ nim_output.meta | to_nice_yaml }}
            =====


      - name: Reboot
        reboot:
          post_reboot_delay: 60
          reboot_timeout : 60
    #JAW       connect_timeout : 30
    #JAW       connect_timeout: 30
    #JAW       reboot_timeout: 180

    #JAW   - name: Start Application
    #JAW     shell: /usr/local/scripts/startit
    #JAW
    Here is the verbose output:
    TASK [Update AIX on NIM client] *************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
    task path: /home/ansible/wwd_ansible/JAW/aix_patch_1128.yaml:28
    <nim> ESTABLISH SSH CONNECTION FOR USER: ansible
    <nim> SSH: EXEC ssh -o ForwardAgent=yes -o ControlPersist=30m -o ServerAliveInterval=45 -o ServerAliveCountMax=10 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/4a78871800"' nim '/bin/sh -c '"'"'echo ~ansible && sleep 0'"'"''
    <nim> (0, b'/home/ansible\n', b'**************************************************************************\n\n\n For authorized users ONLY. All other use is prohibited.\n-------------------------------------------------------------------------\n\n REMINDER: All information on company computer systems is considered \n Woodward property. Unauthorized duplication, use or distribution of\n software without the express authority of the copyright owner or \n permission under copyright law is strictly prohibited.\n\n This computer and all associated hardware and systems ("System") \n are the property of Woodward. By using this system, you acknowledge\n notice and agree to comply with Woodward policies and procedures\n relating to this System, as updated from time to time.\n\n This System and its usage may be monitored or recorded and is subject \n to audit. Unauthorized use of the System is prohibited, and may be\n subject to disciplinary action, and/or criminal and civil penalties. By\n logging into this System, you agree to the conditions stated in this\n Warning and grant consent to monitoring and recording of all activities \n which take place on this System. The information system may contain\n CUI with specific requirements imposed by the United States Department\n of Defense; and use of the information system may be subject to other\n specified requirements associated with certain types of Export\n Controlled information.\n\n\n*************************************************************************\n\n\n')
    <nim> ESTABLISH SSH CONNECTION FOR USER: ansible
    <nim> SSH: EXEC ssh -o ForwardAgent=yes -o ControlPersist=30m -o ServerAliveInterval=45 -o ServerAliveCountMax=10 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/4a78871800"' nim '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/ansible/.ansible/tmp `"&& mkdir "` echo /home/ansible/.ansible/tmp/ansible-tmp-1705686819.0541403-2061022-170999446099080 `" && echo ansible-tmp-1705686819.0541403-2061022-170999446099080="` echo /home/ansible/.ansible/tmp/ansible-tmp-1705686819.0541403-2061022-170999446099080 `" ) && sleep 0'"'"''
    <nim> (0, b'ansible-tmp-1705686819.0541403-2061022-170999446099080=/home/ansible/.ansible/tmp/ansible-tmp-1705686819.0541403-2061022-170999446099080\n', b'**************************************************************************\n\n\n For authorized users ONLY. All other use is prohibited.\n-------------------------------------------------------------------------\n\n REMINDER: All information on company computer systems is considered \n Woodward property. Unauthorized duplication, use or distribution of\n software without the express authority of the copyright owner or \n permission under copyright law is strictly prohibited.\n\n This computer and all associated hardware and systems ("System") \n are the property of Woodward. By using this system, you acknowledge\n notice and agree to comply with Woodward policies and procedures\n relating to this System, as updated from time to time.\n\n This System and its usage may be monitored or recorded and is subject \n to audit. Unauthorized use of the System is prohibited, and may be\n subject to disciplinary action, and/or criminal and civil penalties. By\n logging into this System, you agree to the conditions stated in this\n Warning and grant consent to monitoring and recording of all activities \n which take place on this System. The information system may contain\n CUI with specific requirements imposed by the United States Department\n of Defense; and use of the information system may be subject to other\n specified requirements associated with certain types of Export\n Controlled information.\n\n\n*************************************************************************\n\n\n')
    Using module file /home/ansible/.ansible/collections/ansible_collections/ibm/power_aix/plugins/modules/nim.py
    <nim> PUT /home/ansible/.ansible/tmp/ansible-local-20609828al24eek/tmpmotsvo_v TO /home/ansible/.ansible/tmp/ansible-tmp-1705686819.0541403-2061022-170999446099080/AnsiballZ_nim.py
    <nim> SSH: EXEC sftp -b - -o ForwardAgent=yes -o ControlPersist=30m -o ServerAliveInterval=45 -o ServerAliveCountMax=10 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/4a78871800"' '[nim]'
    <nim> (0, b'sftp> put /home/ansible/.ansible/tmp/ansible-local-20609828al24eek/tmpmotsvo_v /home/ansible/.ansible/tmp/ansible-tmp-1705686819.0541403-2061022-170999446099080/AnsiballZ_nim.py\n', b'**************************************************************************\n\n\n For authorized users ONLY. All other use is prohibited.\n-------------------------------------------------------------------------\n\n REMINDER: All information on company computer systems is considered \n Woodward property. Unauthorized duplication, use or distribution of\n software without the express authority of the copyright owner or \n permission under copyright law is strictly prohibited.\n\n This computer and all associated hardware and systems ("System") \n are the property of Woodward. By using this system, you acknowledge\n notice and agree to comply with Woodward policies and procedures\n relating to this System, as updated from time to time.\n\n This System and its usage may be monitored or recorded and is subject \n to audit. Unauthorized use of the System is prohibited, and may be\n subject to disciplinary action, and/or criminal and civil penalties. By\n logging into this System, you agree to the conditions stated in this\n Warning and grant consent to monitoring and recording of all activities \n which take place on this System. The information system may contain\n CUI with specific requirements imposed by the United States Department\n of Defense; and use of the information system may be subject to other\n specified requirements associated with certain types of Export\n Controlled information.\n\n\n*************************************************************************\n\n\n')
    <nim> ESTABLISH SSH CONNECTION FOR USER: ansible
    <nim> SSH: EXEC ssh -o ForwardAgent=yes -o ControlPersist=30m -o ServerAliveInterval=45 -o ServerAliveCountMax=10 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/4a78871800"' nim '/bin/sh -c '"'"'chmod u+x /home/ansible/.ansible/tmp/ansible-tmp-1705686819.0541403-2061022-170999446099080/ /home/ansible/.ansible/tmp/ansible-tmp-1705686819.0541403-2061022-170999446099080/AnsiballZ_nim.py && sleep 0'"'"''
    <nim> (0, b'', b'**************************************************************************\n\n\n For authorized users ONLY. All other use is prohibited.\n-------------------------------------------------------------------------\n\n REMINDER: All information on company computer systems is considered \n Woodward property. Unauthorized duplication, use or distribution of\n software without the express authority of the copyright owner or \n permission under copyright law is strictly prohibited.\n\n This computer and all associated hardware and systems ("System") \n are the property of Woodward. By using this system, you acknowledge\n notice and agree to comply with Woodward policies and procedures\n relating to this System, as updated from time to time.\n\n This System and its usage may be monitored or recorded and is subject \n to audit. Unauthorized use of the System is prohibited, and may be\n subject to disciplinary action, and/or criminal and civil penalties. By\n logging into this System, you agree to the conditions stated in this\n Warning and grant consent to monitoring and recording of all activities \n which take place on this System. The information system may contain\n CUI with specific requirements imposed by the United States Department\n of Defense; and use of the information system may be subject to other\n specified requirements associated with certain types of Export\n Controlled information.\n\n\n*************************************************************************\n\n\n')
    <nim> ESTABLISH SSH CONNECTION FOR USER: ansible
    <nim> SSH: EXEC ssh -o ForwardAgent=yes -o ControlPersist=30m -o ServerAliveInterval=45 -o ServerAliveCountMax=10 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/4a78871800"' -tt nim '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-qqgwrdxaryovnvhopxabzwsduqmotekc ; /usr/bin/python3 /home/ansible/.ansible/tmp/ansible-tmp-1705686819.0541403-2061022-170999446099080/AnsiballZ_nim.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
    Escalation succeeded
    <nim> (0, b'\r\n{"changed": false, "msg": "NIM update operation successful. See status and meta for details.", "status": {"aix-testvictim01": ""}, "stdout": "", "stderr": "", "meta": {"messages": [], "aix-testvictim01": {"messages": ["Cannot get oslevel from lpp source name: aix_73_lpp"]}}, "nim_node": {"lpp_source": {"aix71tl3sp5_lpp": "/nim/lpp_source/aix71tl3sp5_lpp", "612lpp_res": "/nim/lpp_source/612lpp_res", "aix7221_lpp": "/nim/lpp_s", "aix7221-lpp": "/nim/lpp_source/aix7221_lpp", "aix61_lpp": "/nim/images/aix61", "aix7212_lpp": "/nim/lpp_source/aix7212", "tsm_cli83": "/export/um_lpp_source/tsm_cli83", "aix_73_lpp": "/nim/aix73_lpp", "aix7231_lpp": "/nim/lpp_source/aix7231", "aix_install_lpp": "/nim/lpp_source/aix_install", "aix72_lpp_source": "/nim/lpp_source1", "aix7252_update": "/nim/AIX/AIX7252"}, "standalone": {"gpfs2": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 gpfs2 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "ready for a NIM operation", "Mstate": "currently running", "cpuid": "00C75EF74C00", "Cstate_result": "reset"}, "bp2": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 bp2 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "bp2app1": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 bp2app1 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "bp2app2": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 bp2app2 0 ent0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "bq2": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network3 bq2 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "gp2": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 gp2 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "gpfs1": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 gpfs1 0 ent0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "not running", "cpuid": "00C75EF74C00", "Cstate_result": "reset"}, "gpfs3": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 gpfs3 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "ready for a NIM operation", "Mstate": "currently running", "cpuid": "00C75EF74C00", "Cstate_result": "reset"}, "gq2": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network3 gq2 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "coil-gpfs01": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 coil-gpfs01 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "currently running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "nfssrv": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 nfssrv 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "reset"}, "oscarl": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "master_net oscarl 0 ent0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "currently running", "Mstate": "currently running", "cpuid": "00FBB4494C00", "Cstate_result": "success"}, "sp2app2": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 sp2app2 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "sp2app3": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 sp2app3 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "sapp1": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network3 sapp1 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "sc2": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 sc2 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "sdb": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network3 sdb 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "coil-gpfs02": {"class": "machines", "type": "standalone", "installed_image": "coil-gpfs_mksysb", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 coil-gpfs02 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "currently running", "Mstate": "currently running", "cpuid": "00FBB4494C00", "Cstate_result": "success"}, "sp2": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 sp2 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "sp2app1": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 sp2app1 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "sq2": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network3 sq2 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "ss2": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network3 ss2 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "bigbirdl": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "master_net bigbirdl.woodward.com 0 ent0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "currently running", "Mstate": "currently running", "cpuid": "00FBB4494C00", "Cstate_result": "success"}, "bd2": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network3 bd2 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "grover": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "master_net grover 0 ent", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4494C00", "Cstate_result": "success"}, "rizzo": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "master_net rizzo 0 ent0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4494C00", "Cstate_result": "success"}, "bs2": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "master_net bs2 0 ent0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "ready for a NIM operation", "Mstate": "not running", "cpuid": "00FBB4484C00", "Cstate_result": "reset"}, "coil-gpfs03": {"class": "machines", "type": "standalone", "installed_image": "coil-gpfs_mksysb", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 coil-gpfs03 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "currently running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "st2": {"class": "machines", "type": "standalone", "connect": "nimsh", "installed_image": "st2_mksys", "platform": "chrp", "netboot_kernel": "64", "if1": "master_net st2 0 ent0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "currently running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "sd2": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network3 sd2 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "waldorf": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "master_net waldorf 0 ent0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "nwd": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "master_net nwd 0 ent0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "nwp": {"class": "machines", "type": "standalone", "connect": "nimsh", "installed_image": "nwd_mksysb", "comments": "nwp", "platform": "chrp", "netboot_kernel": "64", "if1": "master_net nwp 0 ent0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "aix-testvictim01": {"class": "machines", "type": "standalone", "installed_image": "aix-tesvictim01_mksysb", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "ent-Network2 aix-testvictim01 0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success", "ip": "aix-testvictim01.woodward.com", "oslevel": "7300-00-02-2219"}, "tsmsrv": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "master_net tsmsrv 0 ent0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "currently running", "Mstate": "not running", "cpuid": "00C75EF74C00", "Cstate_result": "reset"}, "rpsdb": {"class": "machines", "type": "standalone", "connect": "nimsh", "installed_image": "rpsdb_mksysb", "platform": "chrp", "netboot_kernel": "64", "if1": "master_net rpsdb 0 ent0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00C75EF74C00", "Cstate_result": "success"}, "rpsapp": {"class": "machines", "type": "standalone", "connect": "nimsh", "installed_image": "rpsapp_mksysb", "platform": "chrp", "netboot_kernel": "64", "if1": "master_net rpsapp 0 ent0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "currently running", "Mstate": "not running", "cpuid": "00C75EF74C00", "Cstate_result": "success"}, "sr2": {"class": "machines", "type": "standalone", "connect": "nimsh", "installed_image": "sr2_mksysb", "platform": "chrp", "netboot_kernel": "64", "if1": "master_net sr2 0 ent0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "not running", "Mstate": "currently running", "cpuid": "00FBB4484C00", "Cstate_result": "success"}, "repdb01": {"class": "machines", "type": "standalone", "connect": "nimsh", "platform": "chrp", "netboot_kernel": "64", "if1": "master_net repdb01 0 ent0", "cable_type1": "N/A", "Cstate": "ready for a NIM operation", "prev_state": "currently running", "Mstate": "currently running", "cpuid": "00FBB4494C00", "Cstate_result": "reset"}}, "vios": {}, "master": {"type": "master", "Cstate": "ready for a NIM operation"}}, "targets": ["aix-testvictim01"], "invocation": {"module_args": {"action": "update", "targets": ["aix-testvictim01"], "lpp_source": "aix_73_lpp", "alt_disk_update_name": "hdisk99998", "asynchronous": false, "force": false, "boot_client": true, "object_type": "all", "new_targets": null, "device": null, "script": null, "resource": null, "location": null, "group": null}}}\r\n', b'**************************************************************************\n\n\n For authorized users ONLY. All other use is prohibited.\n-------------------------------------------------------------------------\n\n REMINDER: All information on company computer systems is considered \n Woodward property. Unauthorized duplication, use or distribution of\n software without the express authority of the copyright owner or \n permission under copyright law is strictly prohibited.\n\n This computer and all associated hardware and systems ("System") \n are the property of Woodward. By using this system, you acknowledge\n notice and agree to comply with Woodward policies and procedures\n relating to this System, as updated from time to time.\n\n This System and its usage may be monitored or recorded and is subject \n to audit. Unauthorized use of the System is prohibited, and may be\n subject to disciplinary action, and/or criminal and civil penalties. By\n logging into this System, you agree to the conditions stated in this\n Warning and grant consent to monitoring and recording of all activities \n which take place on this System. The information system may contain\n CUI with specific requirements imposed by the United States Department\n of Defense; and use of the information system may be subject to other\n specified requirements associated with certain types of Export\n Controlled information.\n\n\n*************************************************************************\n\n\nConnection to nim closed.\r\n')
    <nim> ESTABLISH SSH CONNECTION FOR USER: ansible
    <nim> SSH: EXEC ssh -o ForwardAgent=yes -o ControlPersist=30m -o ServerAliveInterval=45 -o ServerAliveCountMax=10 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="ansible"' -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/4a78871800"' nim '/bin/sh -c '"'"'rm -f -r /home/ansible/.ansible/tmp/ansible-tmp-1705686819.0541403-2061022-170999446099080/ > /dev/null 2>&1 && sleep 0'"'"''
    <nim> (0, b'', b'**************************************************************************\n\n\n For authorized users ONLY. All other use is prohibited.\n-------------------------------------------------------------------------\n\n REMINDER: All information on company computer systems is considered \n Woodward property. Unauthorized duplication, use or distribution of\n software without the express authority of the copyright owner or \n permission under copyright law is strictly prohibited.\n\n This computer and all associated hardware and systems ("System") \n are the property of Woodward. By using this system, you acknowledge\n notice and agree to comply with Woodward policies and procedures\n relating to this System, as updated from time to time.\n\n This System and its usage may be monitored or recorded and is subject \n to audit. Unauthorized use of the System is prohibited, and may be\n subject to disciplinary action, and/or criminal and civil penalties. By\n logging into this System, you agree to the conditions stated in this\n Warning and grant consent to monitoring and recording of all activities \n which take place on this System. The information system may contain\n CUI with specific requirements imposed by the United States Department\n of Defense; and use of the information system may be subject to other\n specified requirements associated with certain types of Export\n Controlled information.\n\n\n*************************************************************************\n\n\n')
    ok: [aix-testvictim01 -> nim] => {
        "changed": false,
        "invocation": {
            "module_args": {
                "action": "update",
                "alt_disk_update_name": "hdisk99998",
                "asynchronous": false,
                "boot_client": true,
                "device": null,
                "force": false,
                "group": null,
                "location": null,
                "lpp_source": "aix_73_lpp",
                "new_targets": null,
                "object_type": "all",
                "resource": null,
                "script": null,
                "targets": [
                    "aix-testvictim01"
                ]
            }
        },
        "meta": {
            "aix-testvictim01": {
                "messages": [
                    "Cannot get oslevel from lpp source name: aix_73_lpp"
                ]
            },
            "messages": []
        },
        "msg": "NIM update operation successful. See status and meta for details.",
        "nim_node": {
            "lpp_source": {
                "612lpp_res": "/nim/lpp_source/612lpp_res",
                "aix61_lpp": "/nim/images/aix61",
                "aix71tl3sp5_lpp": "/nim/lpp_source/aix71tl3sp5_lpp",
                "aix7212_lpp": "/nim/lpp_source/aix7212",
                "aix7221-lpp": "/nim/lpp_source/aix7221_lpp",
                "aix7221_lpp": "/nim/lpp_s",
                "aix7231_lpp": "/nim/lpp_source/aix7231",
                "aix7252_update": "/nim/AIX/AIX7252",
                "aix72_lpp_source": "/nim/lpp_source1",
                "aix_73_lpp": "/nim/aix73_lpp",
                "aix_install_lpp": "/nim/lpp_source/aix_install",
                "tsm_cli83": "/export/um_lpp_source/tsm_cli83"
            },
            "master": {
                "Cstate": "ready for a NIM operation",
                "type": "master"
            },
            "standalone": {
                "aix-testvictim01": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network2 aix-testvictim01 0",
                    "installed_image": "aix-tesvictim01_mksysb",
                    "ip": "aix-testvictim01.woodward.com",
                    "netboot_kernel": "64",
                    "oslevel": "7300-00-02-2219",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "bd2": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network3 bd2 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "bigbirdl": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4494C00",
                    "if1": "master_net bigbirdl.woodward.com 0 ent0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "currently running",
                    "type": "standalone"
                },
                "bp2": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network2 bp2 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "bp2app1": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network2 bp2app1 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "bp2app2": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network2 bp2app2 0 ent0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "bq2": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network3 bq2 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "bs2": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "reset",
                    "Mstate": "not running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "master_net bs2 0 ent0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "ready for a NIM operation",
                    "type": "standalone"
                },
                "coil-gpfs01": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network2 coil-gpfs01 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "currently running",
                    "type": "standalone"
                },
                "coil-gpfs02": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4494C00",
                    "if1": "ent-Network2 coil-gpfs02 0",
                    "installed_image": "coil-gpfs_mksysb",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "currently running",
                    "type": "standalone"
                },
                "coil-gpfs03": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network2 coil-gpfs03 0",
                    "installed_image": "coil-gpfs_mksysb",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "currently running",
                    "type": "standalone"
                },
                "gp2": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network2 gp2 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "gpfs1": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "reset",
                    "Mstate": "not running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00C75EF74C00",
                    "if1": "ent-Network2 gpfs1 0 ent0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "gpfs2": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "reset",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00C75EF74C00",
                    "if1": "ent-Network2 gpfs2 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "ready for a NIM operation",
                    "type": "standalone"
                },
                "gpfs3": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "reset",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00C75EF74C00",
                    "if1": "ent-Network2 gpfs3 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "ready for a NIM operation",
                    "type": "standalone"
                },
                "gq2": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network3 gq2 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "grover": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4494C00",
                    "if1": "master_net grover 0 ent",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "nfssrv": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "reset",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network2 nfssrv 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "nwd": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "master_net nwd 0 ent0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "nwp": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "comments": "nwp",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "master_net nwp 0 ent0",
                    "installed_image": "nwd_mksysb",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "oscarl": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4494C00",
                    "if1": "master_net oscarl 0 ent0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "currently running",
                    "type": "standalone"
                },
                "repdb01": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "reset",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4494C00",
                    "if1": "master_net repdb01 0 ent0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "currently running",
                    "type": "standalone"
                },
                "rizzo": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4494C00",
                    "if1": "master_net rizzo 0 ent0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "rpsapp": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "not running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00C75EF74C00",
                    "if1": "master_net rpsapp 0 ent0",
                    "installed_image": "rpsapp_mksysb",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "currently running",
                    "type": "standalone"
                },
                "rpsdb": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00C75EF74C00",
                    "if1": "master_net rpsdb 0 ent0",
                    "installed_image": "rpsdb_mksysb",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "sapp1": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network3 sapp1 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "sc2": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network2 sc2 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "sd2": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network3 sd2 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "sdb": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network3 sdb 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "sp2": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network2 sp2 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "sp2app1": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network2 sp2app1 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "sp2app2": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network2 sp2app2 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "sp2app3": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network2 sp2app3 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "sq2": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network3 sq2 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "sr2": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "master_net sr2 0 ent0",
                    "installed_image": "sr2_mksysb",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "ss2": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "ent-Network3 ss2 0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                },
                "st2": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "master_net st2 0 ent0",
                    "installed_image": "st2_mksys",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "currently running",
                    "type": "standalone"
                },
                "tsmsrv": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "reset",
                    "Mstate": "not running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00C75EF74C00",
                    "if1": "master_net tsmsrv 0 ent0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "currently running",
                    "type": "standalone"
                },
                "waldorf": {
                    "Cstate": "ready for a NIM operation",
                    "Cstate_result": "success",
                    "Mstate": "currently running",
                    "cable_type1": "N/A",
                    "class": "machines",
                    "connect": "nimsh",
                    "cpuid": "00FBB4484C00",
                    "if1": "master_net waldorf 0 ent0",
                    "netboot_kernel": "64",
                    "platform": "chrp",
                    "prev_state": "not running",
                    "type": "standalone"
                }
            },
            "vios": {}
        },
        "status": {
            "aix-testvictim01": ""
        },
        "stderr": "",
        "stderr_lines": [],
        "stdout": "",
        "stdout_lines": [],
        "targets": [
            "aix-testvictim01"
        ]
    }
     
    TASK [Display NIM command results] **********************************************************************************************************************************************************************************************************************************************************************************************************************************************************
    task path: /home/ansible/wwd_ansible/JAW/aix_patch_1128.yaml:42
    ok: [aix-testvictim01] => {
        "msg": "NIM Command Result : NIM update operation successful. See status and meta for details.\nNIM Command Status : {'aix-testvictim01': ''}\n=====\naix-testvictim01:\n    messages:\n    - 'Cannot get oslevel from lpp source name: aix_73_lpp'\nmessages: []\n\n=====\n"
    }
     
    TASK [Reboot] *******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
    task path: /home/ansible/wwd_ansible/JAW/aix_patch_1128.yaml:52
    System reboot process has started....
    <aix-testvictim01> ESTABLISH SSH CONNECTION FOR USER: None
    <aix-testvictim01> SSH: EXEC ssh -o ForwardAgent=yes -o ControlPersist=30m -o ServerAliveInterval=45 -o ServerAliveCountMax=10 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o 'ControlPath="/home/ansible/.ansible/cp/60c6f8cad0"' -tt aix-testvictim01 '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-kjiykqjsjrlujvcjgoczcjffuvnneehc ; shutdown -r'"'"'"'"'"'"'"'"' && sleep 0'"'"''
    Escalation succeeded



    ------------------------------
    J Willsea
    ------------------------------



  • 8.  RE: nim: Action: Update UnboundLocalError: local variable 'unavail_targets' referenced before assignment

    Posted Mon January 22, 2024 06:47 AM

    Hi Jeff.

    I did wonder if you'd hit this issue:  'Cannot get oslevel from lpp source name: aix_73_lpp'

    An "undocumented" requirement is that the LPP_Source needs to be in a praticular format. This is used when selecting the upgrade to next_tl, next_sp, latest_tl, latest_sp but also probably incorrectly applies when supplying a specific LPP_source.

    Basically NIM does not record the OS version details against an LPP_Source (although it does for a SPOT) so the module enforces the name of the LPP_Source to a particular format so that it understands the AIX version.

    The format is as follows:
            VVVV-TT-SS-YYMM-lpp_source 
     e.g. 7300-02-01-2346-lpp_source 

    You can just rename the existing LPP_Source in NIM to the above syntax & you should be on to the next step - hopefully success this time :)

    It may be worth logging an issue on the collection's github page to request this is documented and that the checking is removed when a named LPP_Source is specified.

    Examples are tricky, it's always worth looking at the sample playbooks & roles that come with the collection as wel as the collection documentation.



    ------------------------------
    Rich Jefferies
    ------------------------------



  • 9.  RE: nim: Action: Update UnboundLocalError: local variable 'unavail_targets' referenced before assignment

    Posted Thu February 15, 2024 03:38 PM

    Hello Rich,

    You have been a big help.  It took a while to figure out the proper name for the Nim spot.  

    When we tried all went pretty well except not everything was updated.

    My AIX Admin looked at the script and pointed out that he uses a FIXES=UPDATE_ALL on the command line.   But I'm unable to figure out how to do this in the ansible script.   When I tried fixes: update_all as a parameter of nim - it barked an error at me.

    Any advice would be greatly appreciated.

    Thanks,

    Jeff



    ------------------------------
    J Willsea
    ------------------------------



  • 10.  RE: nim: Action: Update UnboundLocalError: local variable 'unavail_targets' referenced before assignment

    Posted Fri February 16, 2024 08:12 AM

    Hi Jeff.

    The module already includes the update all option, so you do not need to provide it.

    It may be that you have fixes with complicated prerequisites, sometimes the update needs to be run twice to apply everything.

    Not sure that is something that can be done to an alternate install disk using this module, as it will want to clone the current rootvg whne called.

    So the best option would be to run the upgrade again after a reboot - but perhaps not specifying the alt_disk 2nd time around.

    Hope this helps.

    Cheers

    Rich



    ------------------------------
    Rich Jefferies
    ------------------------------



  • 11.  RE: nim: Action: Update UnboundLocalError: local variable 'unavail_targets' referenced before assignment

    Posted Fri February 16, 2024 12:39 PM

    Hi Rich.

    So we're making progress.  I think a great deal of the "issues" we've been having lately is that I'm rebooting the machine in the middle of the patching process.   When my AIX Admin and I were looking at the command line Ansible is using we realized that there is one additional flag we use to cause the machine to reboot at the end.

    Ansible is using this command line:
    nim -o alt_disk_install -a source=rootvg -a lpp_source=7300-01-02-2320-lpp_source -a fixes=update_all -a disk=hdisk99999 -a installp_flags=\"-acNgXY\" aix-testvictim01

    The command line my AIX admin has been using is this:

    nim -o alt_disk_install -a source=rootvg -a lpp_source=7300-01-02-2320-lpp_source -a fixes=update_all -a disk=hdisk99999 -a installp_flags=\"-acNgXYr\" aix-testvictim01

    The difference being the 'r' in the installp_flags.  When I look at the nim.py - it looks like the flags are hard coded.  

    Is there a way to specify additional flags to use on the nim update command?

    Thanks again.

    Jeff



    ------------------------------
    J Willsea
    ------------------------------



  • 12.  RE: nim: Action: Update UnboundLocalError: local variable 'unavail_targets' referenced before assignment

    Posted Mon February 19, 2024 02:58 PM

    Hello Rich ,

    Please disregard the question about the -r flag.  We figured out what has been my issues lately in doing the patching.  Ansible had indeed started the patching process.   However once the patching process started Ansible returned to do the next line in my script - which was Reboot.   Thus the result was that my script was rebooting the AIX server in the middle of the patching process.  Thus the patches failed from my point of view.

    So now the question is how is Ansible supposed to know when the the patches to the AIX box have been applied and its ready for reboot?  How are other people doing this?



    ------------------------------
    J Willsea
    ------------------------------