My powershell functions and scripts are still using the CLI to gather or set information. So far I've not found anything I can't accomplish from the command line and it has the advantage of keeping my command knowledge fresh. The command output between different versions has caused minor changes to my code but this is only minor.
One feature, CLI or API, I would find helpful is the ability to create multiple shares with a single command. The CLI allows for the collection of the configuration with a single command but to upload the same configuration would need to be completed with multiple commands, e.g. share creation and then setting the ACL for the share. A usage example would be to configure a test (VM) cluster to match a production environment before testing other scripts.
If you know how to get the information you want on the Isilon cluster CLI using an 'isi ...' command you can insert '--debug' into the CLI command after the 'isi' portion and it will show you both the API "path" it used to get the information and also the response in json format.
We can see the API GET call that was issued and the json response. Note that the response includes far more information than the CLI actually displays as a result.
Which version of OneFS are you using? This has the commands for deleting shares, but I don’t see any mention of multiple shares with one command. https://dell.to/3GqV9lq
surely the previous suggestion of using --debug to determine the required API calls from the cli calls used to gather the information required applies ?
I am trying to automate S3 in isilon so that application team can create/modify buckets from there end. API is enabled and user has full privileges, still getting below error when trying to run S3 API:
Caelier
2 Posts
0
August 21st, 2015 06:00
My powershell functions and scripts are still using the CLI to gather or set information. So far I've not found anything I can't accomplish from the command line and it has the advantage of keeping my command knowledge fresh. The command output between different versions has caused minor changes to my code but this is only minor.
One feature, CLI or API, I would find helpful is the ability to create multiple shares with a single command. The CLI allows for the collection of the configuration with a single command but to upload the same configuration would need to be completed with multiple commands, e.g. share creation and then setting the ACL for the share. A usage example would be to configure a test (VM) cluster to match a production environment before testing other scripts.
cstacey
31 Posts
0
August 27th, 2015 18:00
If you know how to get the information you want on the Isilon cluster CLI using an 'isi ...' command you can insert '--debug' into the CLI command after the 'isi' portion and it will show you both the API "path" it used to get the information and also the response in json format.
E.g.
From the Isilon cluster CLI:
# isi nfs exports list
ID Zone Paths Description
---------------------------------------------------------------------------------
1 System /ifs Default export
2 System /ifs/.ifsvar/modules/fsa InsightIQ FSA - SYSTEM EXPORT
---------------------------------------------------------------------------------
What API call would I use to get this same information?
Let's try that CLI command again with the '--debug' flag.
# isi --debug nfs exports list
>>>GET ['2', 'protocols', 'nfs', 'exports']
args={}
body={}
<<<(200, {'status': '200 Ok', 'content-type': 'application/json', 'allow': 'GET, POST, HEAD'}, '\n{\n"exports" : \n[\n\n{\n"all_dirs" : true,\n"block_size" : 8192,\n"can_set_time" : true,\n"case_insensitive" : false,\n"case_preserving" : true,\n"chown_restricted" : false,\n"clients" : [],\n"commit_asynchronous" : false,\n"conflicting_paths" : [],\n"description" : "Default export",\n"directory_transfer_size" : 131072,\n"encoding" : "DEFAULT",\n"id" : 1,\n"link_max" : 32767,\n"map_failure" : \n{\n"enabled" : false,\n"primary_group" : {},\n"secondary_groups" : [],\n"user" : \n{\n"id" : "USER:nobody"\n}\n},\n"map_full" : true,\n"map_lookup_uid" : false,\n
We can see the API GET call that was issued and the json response. Note that the response includes far more information than the CLI actually displays as a result.
So, let issue that as an API call:
# curl -k -s -u: -v https://:8080/platform/2/protocols/nfs/exports
* About to connect() to port 8080 (#0)
* Trying ...
* Connected to ( ) port 8080 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* skipping SSL peer certificate verification
* SSL connection using TLS_DHE_RSA_WITH_AES_128_CBC_SHA
* Server certificate:
* subject: E=support@isilon.com,CN=Isilon Systems,OU=Isilon Systems,O="Isilon Systems, Inc.",L=Seattle,ST=Washington,C=US
* start date: May 15 07:48:59 2014 GMT
* expire date: May 14 07:48:59 2017 GMT
* common name: Isilon Systems
* issuer: E=support@isilon.com,CN=Isilon Systems,OU=Isilon Systems,O="Isilon Systems, Inc.",L=Seattle,ST=Washington,C=US
* Server auth using Basic with user ''
> GET /platform/2/protocols/nfs/exports HTTP/1.1
> Authorization: Basic
> User-Agent: curl/7.29.0
> Host: :8080
> Accept: */*
>
< HTTP/1.1 200 Ok
< Date: Fri, 28 Aug 2015 01:59:12 GMT
< Server: Apache/2.2.25 (FreeBSD) mod_ssl/2.2.25 OpenSSL/1.0.1j-fips mod_fastcgi/2.4.6
< Allow: GET, POST, HEAD
< Transfer-Encoding: chunked
< Content-Type: application/json
<
{
"exports" :
[
{
"all_dirs" : true,
"block_size" : 8192,
"can_set_time" : true,
"case_insensitive" : false,
"case_preserving" : true,
"chown_restricted" : false,
"clients" : [],
"commit_asynchronous" : false,
"conflicting_paths" : [],
"description" : "Default export",
"directory_transfer_size" : 131072,
"encoding" : "DEFAULT",
"id" : 1,
"link_max" : 32767,
"map_failure" :
{
"enabled" : false,
"primary_group" : {},
"secondary_groups" : [],
"user" :
{
"id" : "USER:nobody"
}
},
"map_full" : true,
"map_lookup_uid" : false,
Done.
Cheers,
Chris
ankitash
3 Posts
0
May 25th, 2022 07:00
I want to implement script in onefs cli to delete multiple shares in specific zone with single command. Can we do that using onefs CLI or API?
DELL-Josh Cr
Moderator
•
9.5K Posts
0
May 25th, 2022 09:00
Hi,
Which version of OneFS are you using? This has the commands for deleting shares, but I don’t see any mention of multiple shares with one command. https://dell.to/3GqV9lq
Let us know if you have any additional questions.
ankitash
3 Posts
0
May 26th, 2022 01:00
I am using onefs 8.1.
DELL-Josh Cr
Moderator
•
9.5K Posts
0
May 26th, 2022 10:00
Hi,
Thanks, that previous link is for 8.1.
Let us know if you have any additional questions.
cadencep45
3 Apprentice
•
318 Posts
0
June 6th, 2022 03:00
surely the previous suggestion of using --debug to determine the required API calls from the cli calls used to gather the information required applies ?
ankitash
3 Posts
0
June 6th, 2022 04:00
onefs 9.2.1.7
I am trying to automate S3 in isilon so that application team can create/modify buckets from there end. API is enabled and user has full privileges, still getting below error when trying to run S3 API:
curl -k -v https:// :8080/platform/13/protocols/s3/buckets/testbucket -H
errors: "message Authorization required"
Connection to host left intact
Tried same command from isilon end also and got same error. User has all previliges, can you plzz help
DELL-Josh Cr
Moderator
•
9.5K Posts
0
June 6th, 2022 09:00
Page 26 https://dell.to/3zeCd7Q maybe check the authentication.