Hi @prudhviÂ
The error being reported there is because the context that script is being executed under isn’t authenticated to the Commcell before the command is executed.
You will need to provide credentials for the script to be executed under, maybe the script will need to be run as a batch file with the qlogin command and credentials supplied before hand.
Take a look at the options available for qlogin and see if these can be included in the script activity.
Thanks,
Stuart
Hi Prudhvi,
Â
The reason you are getting the ‘User not logged in error’ is that you need to provide a token to the qoperation command to use. Even though you tried a QLogin earlier you need to keep in mind that each ‘Execute Command’ activity in the workflow is establishing a new session with the client. Session state is not maintained across the activities.
You could pass the token you retrieve using a workflow variable and the -tk parameter for the qoperation command. A simpler way though is to just use the ‘ExecuteScript’ workflow activity (under the qcommand section) instead. Then you don’t need to think about it and the qscript will execute using the credentials of the current user executing the workflow. Â
I’ve attached a modified version of the workflow replacing a the first two Execute Command activities with the ExecuteScript activity as an example. You’ll need to download the xml file and import it (eg don’t view and copy the xml via the browser as it won’t work properly that way).Â