Hi, I am creating a report using python connecting to ocum database. Do you know which database or tables contains the data for Volume Daily Growth Rate percent and the Days to Full? I tried netapp_model_view and ocum_report but cannot find it. Thanks in advance. Warren
... View more
How do i run system node run -node<> -command "netstat " using cli().execute? I tried the below method but it says . Invalid Json input. Expecting "command" to be an array. Response=cli(). execute ("system node run", body={"node":"","command":"netstat",poll=false} Please advise.
... View more
When running an Ansible job that only sets "use_ldaps". When the Ansible job is run it does enable use_ldaps, but in the process stops the CIFS server. This is not expected as the default for service_stat is null. This should not be changed. Module: na_ontap_cifs_server.py use_ldaps: description: - Specifies whether or not to use use LDAPS for secure Active Directory LDAP connections. - Only supported with REST and requires ontap version 9.10.1 or later. Use na_ontap_vserver_cifs_security with ZAPI. type: bool version_added: 21.20.0 - service_state CIFS Server Administrative Status. (Choices: stopped, started)[Default: (null)] type: str
... View more
We have just upgraded to ONTAP 9.9.1 so I upgraded our Python library to 9.9.1 as I need to retrieve/update the NTFS permissions using the FileDirectorySecurity module. However when I perform a get I'm not getting any return. The call isn't erroring out even when I use incorrect filters. Example of code ( which is direct copy from the documentation - https://library.netapp.com/ecmdocs/ECMLP2876965/html/resources/file_directory_security.html) ### resource = FileDirectorySecurity(path="na_student_videos",**{"svm.uuid": "2059c57e-04b3-11e9-a63b-00a09899b75b"}) resource.get print (resource) ### When I test the REST API call using curl it returns data as expected. curl -u XXXX -X GET "https://array-name/api/protocols/file-security/permissions/2059c57e-04b3-11e9-a63b-00a09899b75b/%2Fna_student_videos/?fields=acls&return_records=true&return_timeout=15" -H "accept application/hal+json" Has anyone used the FileDirectorySecurity module or can provide advice on why it's not working.
... View more
Hi Everyone, We just found that the Volume.get_collection() method throws an exception when executed against a SVM containing restricted volumes. Here is a function calling the method: def getvolumeuuids(vserver, pattern): uuidlist = [] try: for volume in Volume.get_collection(**{"svm.name": vserver}, fields="*"): if root_match(str(volume.name)): continue if reg_match(str(volume.name), pattern): uuidlist.append(('{}'.format(volume.name), '{}'.format(volume.uuid), '{}'.format(volume.aggregates[0].name))) except NetAppRestError as error: print('Error: exception raised when calling Volume.get_collection for vserver {0}: [{1}]'.format(vserver, str(error))) return [] else: return uuidlist When called given a vserver with restricted volumes, we get this error: Error: exception raised when calling Volume.get_collection for vserver xxxxx-xxx-xxxx: [Caused by ValidationError({'state': ['"restricted" is not one of [\'error\', \'mixed\', \'offline\', \'online\']']},)] The issue was found to exist within version 9.7.3 and 9.9.1 of the netapp_ontap package. Can you please have a look at why the restricted status is not considered as a valid returned value? Thanks Pierre Kestremond
... View more