Software Development Kit (SDK) and API Discussions
Software Development Kit (SDK) and API Discussions
Hi,
I'm looking for a way to read the different configuration files on the filer. IE, hosts, rc, etc. Does an API equivalent exist?
Yes. It is called - surprise - file-read-file ☺
Unfortunately, that requires the file to be read to be within a volume:
$ python apitest.py netapp-sim8.local USER PASS file-read-file path /etc/rc offset 0 length 4096
OUTPUT:
<results status="failed" errno="22" reason="Invalid argument, path must begin with /vol/"></results>
any other suggestions?
Hi Jereon,
All files in ONTAP are in a volume. The documentation for file-read-file states that the volume name must be included in the path. Try:
$ python apitest.py netapp-sim8.local USER PASS file-read-file path /vol/vol0/etc/rc offset 0 length 4096
Regards,
- Rick -
Thanks Rick, that worked!
Hi Jeroen,
Please mark the question answered.
Thanks,
- Rick -
Hi Rick,
I would do it but I don't see anywhere where I can do that...
Sorry Jeroen, Only James can mark it. I thought you asked the original question.
- Rick -