Forum Replies Created
-
lokeshkumar.tiwari
Participant2 years, 5 months ago in reply to: Calling atomic functions across different technologies(Linux & Windows) #3517::Yes that is very much possible, here in cheetah you can access the global blueprint and call the function on any node which is blueprinted in cheetah UI, you can pass in a parameter(Linux hostname, do pass FQDN as we have FQDN in blueprint) where you want to trigger you Linux based atomic function and now you will be good to call the atomic function on the created node.
Below is the sample code using which you can create a node present in global blueprint:
def lHostName=”xyz”//FQDN of linux server, this can be passed as a parameter to custom function
Map<String, Object> attrMap = new HashMap<>();
attrMap.put(“HostName”, lHostName); // key attributes
Set<String> nodeLabels = new HashSet<>();
nodeLabels.add(“Linux”);
nodeEntityInstance = ceb.get(nodeLabels, attrMap);
myNode = ceb.get(nodeEntityInstance.getId(), nodeLabels);
def output = myNode.linux_atomic_function();You can use above lines of code in custom function created in Windows project. Now you can call any linux atomic function on myNode and also you can call your windows atomic function on subject which will point to the windows node on which use case was triggered.
lokeshkumar.tiwari
Participant2 years, 7 months ago in reply to: Calling atomic functions across different technologies(Linux & Windows) #3330::Adding Linux as an dependency , is it like adding the project which is having custom code for Linux inside Linux shadow entity. As i want to make a call to a custom built atomic function which is in Linux entity(in a separate project) from a Windows entity which is in different project.
lokeshkumar.tiwari
Participant2 years, 5 months ago in reply to: Connector for executing python code on target #3506::Hi Sunit,
Thank you for the information. I have tried with Bash connector but it is failing as it is expecting bash code.
lokeshkumar.tiwari
Participant2 years, 5 months ago in reply to: Calling atomic functions across different technologies(Linux & Windows) #3514::Hi Nishanth,
As you mentioned you are able to call the Linux Atomic function from a Custom function which is created under Windows so you should be executing your use case on a Windows node in cheetah UI as we generally call custom function from UI, but please make sure both windows as well as Linux server is blueprinted on which you are calling your linux atomic function.
lokeshkumar.tiwari
Participant2 years, 5 months ago in reply to: Utilizing the out of the box functions available under Windows/Linux #3515::Thank you Dhanasekar for the information. Does the windows bundle in UI and dependency in studio need to be of same version?