These forums are a place for learning, helping and sharing experiences with others about any of our products. Feel free to ask a question and get answers from our community and our most advanced users.
Note that these are public forums - anyone can view the discussions here.
VISIT OUR DIFFERENT FORUMS:
Announcements > | |
CloudShell > | TestShell > |
Developers > | BI (Business Inteligence) > |
This is where you can suggest your ideas to help and improve the product for everyone.
Please make sure to read the following article before posting a new idea, to get more information about the required information and ideas lifecycle.
Feel free to vote and comment on other ideas to promote them.
Thanks for everyone who suggested the ideas and voted for them.
Find, download and share integrations that can extend and enhance the CloudShell experience.
Integrations have several levels:
Certified - Officially tested and supported by Quali.
Preview - Provides a sneak peek to what the Quali team is developing. Officially supported by Quali. Feel free to experiment and comment, but please take into consideration that it is not yet tested and released.
Community - Integrations shared by community users. Feel free to look into what other users have contributed, please take into consideration that these integrations are not tested by Quali.
To learn more about creating Shells and integrating with CloudShell, use the following links:
CloudShell's Dev Guide > | Configuration Management > |
Getting started with Shells > | Extending CloudShell with Cloud Providers > |
Getting started with Orchestration > | API Guide > |
To share your integration, follow the instructions in this guide >.
I am trying to update resource details by running command 'Auto Load' from the Resource Manager client. The resource is outside of any reservation when I click on the 'Auto Load' button.
Inside of get_inventory(), before opening a CLI session to the device I want to power-on the device.
The device is connected to a smart PDU, and we are using feature 'resource connected commands'.
Python API 'ExecuteResourceConnectedCommand' requires the reservation-id to be specified.
Resource command get_inventory() receives input parameter context of type AutoLoadCommandContext. This context does not have a reservation-id.
How to control power (ON/OFF) from get_inventory()?
Is it possible to do ExecuteResourceConnectedCommand on a resource that is not part of any reservation?
Answer by Yaniv Kalsky · May 20, 2019 at 04:58 PM
I wouldn't recommend adding power-on to the auto-load, as it will be relevant only to your shell. Any other certified/community shell will not have it and you'll then need to extend it with this capability.
A different approach would be to have a script that does both (power on and then auto load).
Regarding your question, and the mentioned script above, both can be solved in the same way:
You don't need to use the connected commands for power functionality, you have dedicated API methods for that (PowerOnResource, PowerOffResource, PowerCycleResource) - these methods do not require a reservation id (it's optional for admins, but the resource might need to be excluded - another reason to script that process).
Yaniv
These forums are a place for learning, helping and sharing experiences with others about any of our products. Feel free to ask a question and get answers from our community and our most advanced users.
Note that these are public forums - anyone can view the discussions here.
Announcements | |
CloudShell | TestShell |
Developers | BI (Business Inteligence) |
This is where you can suggest your ideas to help and improve the product for everyone.
Please make sure to read the following article before posting a new idea, to get more information about the required information and ideas lifecycle.
Feel free to vote and comment on other ideas to promote them.
Thanks for everyone who suggested the ideas and voted for them.
Find, download and share integrations that can extend and enhance the CloudShell experience.
Integrations have several levels:
Certified - Officially tested and supported by Quali.
Preview - Provides a sneak peek to what the Quali team is developing. Officially supported by Quali. Feel free to experiment and comment, but please take into consideration that it is not yet tested and released.
Community - Integrations shared by community users. Feel free to look into what other users have contributed, please take into consideration that these integrations are not tested by Quali.
To learn more about creating Shells and integrating with CloudShell, use the following links:
CloudShell's Dev Guide | Configuration Management |
Getting started with Shells | Extending CloudShell with Cloud Providers |
Getting started with Orchestration | API Guide |
To share your integration, follow the instructions in this guide.
How to troubleshoot resource driver command get_inventory() using PyCharm? 2 Answers
Has someone experience with Python vs cx_Oracle library integration? 3 Answers
Upload resource driver - error message: 'Object reference not set to an instance of an object' 1 Answer
driver targeting different CloudShell version 3 Answers
Failed to install shell? 1 Answer