#Check cluster list

1 messages · Page 1 of 1 (latest)

cyan hedge
#

HI all,

is there anyway i can check (command or api) clusters list which are added in harvest/NaBox ?

iron helm
#

hi @cyan hedge replace $ip with your nabox ip. This should serve up Swagger documentation https://$ip/harvest2/1.0/ui/
one of the endpoints listed there is /systems which Get a list of configured ONTAP systems

cyan hedge
#

thank you @iron helm , i used command to get the list in previous versions of harvest. Is there a command to get this in 22.11 version ?

I would like to put in a cron job to get this list periodically to verify.

iron helm
#

hi @cyan hedge are you using nabox with harvest 22.11? If so, that command should work

iron helm
#

If you are using Harvest without nabox, you can use bin/harvest status or any of the various OS level /proc commands, eg. pgrep --full "\-\-poller", ps aux | grep 'bin/poller'

cyan hedge
#

Hi @iron helm yes, we are using nabox with harvest 22.11. Which command is it using api endpoint ?

or this one : pgrep --full "--poller", ps aux | grep 'bin/poller'

iron helm
#

hi @cyan hedge not sure I follow the question. Do you mean how does NAbox implement the /harvest2/1.0/systems API call or something else? More info on NAbox's REST API is https://nabox.org/documentation/rest_api/

cyan hedge
#

i think i figured it out but i am getting this error: curl: (35) SSL connect error when running this command from a linux machine with our hostname and api key : curl -H 'api_key: da84ecf148ad410e8da0a465894d7330' https://nabox3.fr.netapp.com/harvest2/1.0/systems
@iron helm

iron helm
#

that's because nabox is using signed certificate which curl considers unsecure - you can tell curl to ignore that fact with the --insecure option, eg. curl --silent --insecure -H 'api_key:abc' 'https://10.216.33.135/harvest2/1.0/systems'

cyan hedge
#

getting different SSL error now : SSL connect error. Getting curl: (35) SSL connect error Without --silent --insecure

#

also can you help me how can i get systems list if nabox is 2.6.4 and harvest is 1.6 ? @iron helm

iron helm
#

what version of curl are you using? curl --version and maybe some verbose flags thrown in would shed some light. curl -vvv --silent --insecure -H 'api_key:abc' 'https://ip/harvest2/1.0/systems'

The nabox docs I shared earlier say this works. I don't have any harvest 1 systems to try with curl --silent --insecure -H 'api_key:abc' 'https://ip/harvest/1.0/systems'