#How to run node level command after 9.13 without na_ontap_command?

1 messages · Page 1 of 1 (latest)

solemn falcon
#

In our playbook, we need to run some node level commands. like below:

    - name: Disable aggr2 snap schedule
      na_ontap_command:
        command: "{{ item }}"
        privilege: advanced
        <<: *login
      loop:
        - >
          system node run -node "{{ nAname }}"
          snap sched -A "aggr2_{{ nAaggr}}" 0
        - >
          system node run -node "{{ nBname }}"
          snap sched -A "aggr2_{{ nBaggr }}" 0

Is there na_ontap_restit or na_ontap_rest_cli replacement?

mossy barn
solemn falcon
#

Can you give example, use above playbook, replace it with na_ontap_restit? thanks!