UCS Director collects a lot of information on the infrastructure. Manipulating these information in workflows and custom tasks is very useful in various use cases: extracting informations, cross-reference data... This document explain how to quickly access and manipulate these elements called reports in custom tasks.
You have to enable developer mode in UCS Director as an admin, to access to report metadata:
Download the Cloupia Script bundle, to get access to JavaDoc (and multiple custom tasks samples):
First, we will gather the elements that are needed:
Go to the report that interest you in UCS Director. In this example, you need to access to the VMs running on a specific node (see this task). Go to Virtual -> Compute, select a cloud (here "vc-labcloud"), go to Host nodes tab, select a host (here named "192.168.7.77") and click on View Details and go to VMs tab:
The developper menu feature enabled the Report Metadata, click on it and scroll to reportName:
The reportName is the generic identifier of this report. Now, we need to identify in which contexts this report exists.
Go to Admin -> User Interface Settings and select Report Customization tab. Add the ID column (it is hidden by default) using the blue wheel, and search for the reportName (ID) you noted:
The Context column give you the context(s) of this report. In this example, context is "hostnode". Now, we have all the information, we can start to code!
Attached to this document is a Script Module that you can import in the Orchestration module (like Workflows / tasks). Then, you can load this code in your custom tasks, it will provide the functions that create the TableView object that will contain these data and that you will manipulate. This module can be easily loaded at the beginning of your script:
Dear experts, in one of my workflow, i am am running two powershell scripts and both are connected to following "Parse PowerShell Output" Task. first Task parse the Output correctly and result into 4 variables but second Task Show no variable. b...
Dear Experts,is it possible to read value of a Input in another Input. here is the Scenario. in a subworkflow I have two Tasks to be executed. I have defined two Input at workflow Level.InputfortaskA = <emailid> (this will be feeded by main wor...
Dear experts, with slight modification in existing report https://community.cisco.com/t5/ucs-director-documents/ucsd-report-on-failed-sr-s-for-a-time-period/ta-p/3620982 i am able to generate a report for a particular workflow. however i n...
Dear Experts, I am trying to connect to mysql on ucsd using command "mysql -u admin --password=xxxxx db_private_admin -A" and i get below error.mysql: [Warning] Using a password on the command line interface can be insecure.ERROR 1045 (28000): Access...
Hi Community, I will integrate an MS Active Directory for the User / User Group Sync.My problem now is, that I can configure the LDAP Integration without any errors. I can select the OUs to search etc.But the sync is failing and when I'm using the bu...