Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bin/rest should be able to query all clusters #1866

Merged
merged 2 commits into from
Mar 27, 2023

Conversation

cgrinds
Copy link
Collaborator

@cgrinds cgrinds commented Mar 25, 2023

feat: bin/rest should print the equivalent curl commands
feat: bin/rest should collect cluster name, version, and poll time
feat: bin/rest should have a cli option to set timeout
docs: reformat bin/rest examples and include jq example

feat: bin/rest should print the equivalent curl commands

feat: bin/rest should collect cluster name, version, and poll time

feat: bin/rest should have a cli option to set timeout

docs: reformat bin/rest examples and include jq example
@cgrinds
Copy link
Collaborator Author

cgrinds commented Mar 25, 2023

Multi-poller Example

time bin/harvest rest -p '*' show data --api storage/volumes --all | jq -r '.[] | [.poller, .addr, .num_records, .version, .cluster_name, .poll_ms, .api] |  @csv' | column -ts,

Poller         Addr         NumRecords Version   Cluster                    PollMs    API
"a220"         "10.61.186.195"   35    "9.12.1"  "a220-f0234"               935    "storage/volumes"
"aaron"        "10.61.186.82"    674   "9.8.0"   "aaron"                    7421   "storage/volumes"
"aff-250"      "10.195.15.28"    228   "9.11.0"  "A250-15-28-29"            3027   "storage/volumes"
"aff-251"      "10.195.15.41"    238   "9.12.1"  "A250-41-42-43"            2103   "storage/volumes"
"aff400"       "10.193.206.108"  6     "9.11.1"  "umeng-aff400-01-02"       577    "storage/volumes"
"cie"          "10.61.183.200"   19    "9.8.0"   "cie-na2750-g1344"         700    "storage/volumes"
"cpoc"         "10.61.121.110"   20    "9.12.1"  "a700s"                    224    "storage/volumes"
"fas2650"      "10.61.186.180"   15    "9.11.1"  "nisfas2650"               224    "storage/volumes"
"fas8060"      "10.193.48.163"   211   "9.8.0"   "fas8060-39-239-241"       5077   "storage/volumes"
"g1"           "10.62.219.0"     83    "9.8.0"   "rtp-sa-cl05"              558    "storage/volumes"
"g2"           "10.62.219.30"    147   "9.8.0"   "rtp-sa-cl06"              1454   "storage/volumes"
"isscale"      "10.61.175.200"   7992  "9.9.1"   "isntapscale-01-08"        42919  "storage/volumes"
"jeff"         "10.61.124.110"   65    "9.12.1"  "a800-1"                   517    "storage/volumes"
"ontap-tudor"  "10.193.64.110"   4     "9.12.1"  "SingleNode912IP64dot110"  104    "storage/volumes"
"paulS"        "10.216.33.248"   3     "9.12.1"  "pstejska_vsim"            571    "storage/volumes"
"play"         "10.61.175.211"   5     "9.7.0"   "intersight-playground"    601    "storage/volumes"
"sar"          "10.193.48.154"   175   "9.12.1"  "umeng-aff300-01-02"       1825   "storage/volumes"
"stack1"       "10.61.173.71"    37    "9.7.0"   "stack1-fas"               984    "storage/volumes"
"stack3"       "10.61.183.20"    471   "9.8.0"   "stack3-fas"               2338   "storage/volumes"
"stack4"       "10.61.173.135"   15    "9.8.0"   "stack4-fas"               668    "storage/volumes"
"stack7"       "10.61.173.199"   11    "9.10.1"  "stack7-fas"               712    "storage/volumes"
"u2"           "10.193.48.11"    527   "9.9.1"   "umeng-aff300-05-06"       2134   "storage/volumes"
"yaz"          "10.65.179.66"    108   "9.8.0"   "AFF"                      1475   "storage/volumes"

________________________________________________________
Executed in   43.39 secs    fish           external
   usr time    2.41 secs    0.22 millis    2.40 secs
   sys time    1.48 secs    6.05 millis    1.48 secs

Hardikl
Hardikl previously approved these changes Mar 27, 2023
cmd/tools/rest/client.go Show resolved Hide resolved
feat: bin/rest should print the equivalent curl commands

feat: bin/rest should collect cluster name, version, and poll time

feat: bin/rest should have a cli option to set timeout

docs: reformat bin/rest examples and include jq example
@rahulguptajss rahulguptajss merged commit 03a2e21 into main Mar 27, 2023
@rahulguptajss rahulguptajss deleted the cbg-multi-poller branch March 27, 2023 14:39
@rahulguptajss rahulguptajss linked an issue Mar 28, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bin/rest should be able to query all clusters
3 participants