Hi all,
We are trying to filter a listing of cifs session based on the share name.
We use the na_ontap_rest_info module but can't find information about which share the session is connected to.
- name: REST Get cifs_session_info
netapp.ontap.na_ontap_rest_info:
<<: *login
gather_subset:
- protocols/cifs/sessions
fields:
- connection_id
- client_ip
- user
- open_files
- connection_count
- idle_duration
- connected_duration
use_rest: Always
parameters:
svm.name: "{{ full_target }}"
owning_resource:
svm_name: "{{ full_target }}"
register: ontap_info
tags:
- cifssessionlist
Any help would be appreciated.
Thanks!