Member since
03-09-2016
20
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2286 | 03-21-2016 02:15 AM |
03-22-2016
06:08 AM
I will send you a private message to gather additional information about your request.
... View more
03-21-2016
02:15 AM
Hi Thanks . Based on the github , I am able to get all hosts ,ip . For eg if some of the hosts are down ,Is there is an API call to check ? ip hostname down ip hostname up srikrishna Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from cm_api.api_client import ApiResource
>>> api = ApiResource('rhel62-1.ent.cloudera.com', 7180, 'admin', 'admin')
>>> for h in api.get_all_hosts():
... print h.hostname
...
rhel62-2.ent.cloudera.com
rhel62-4.ent.cloudera.com
rhel62-3.ent.cloudera.com
rhel62-1.ent.cloudera.com
>>>
... View more