Highlighted
Honored Contributor.
Honored Contributor.
357 views

PowerShell operation very time consuming

Hi,

i am using the following operation

/Base [1.10.0]/Library/Operations/PowerShell/Deprecated/PowerShell Script (2)

to execute a powershell script in OO.

My problem is the following:

When i execute the same powershell script in my desktop it took less than 10 seconds, but in OO, when i use the operation /Base [1.10.0]/Library/Operations/PowerShell/Deprecated/PowerShell Script (2), it tooks 18 minutes.

Could someone tell me how to accelerate this flow.?

Regards,

0 Likes
2 Replies
Highlighted
Regular Contributor.
Regular Contributor.

Hi,

Thank you for contacting Micro Focus Software Support, Operations Orchestration Team. Regarding to your question:

The operation /Library/Operations/PowerShell/PowerShell Script has two inputs that could help about what you want to do. 

The inputs are:

connectionTimeout - Determines how long the client computer waits for the remote session connection to be established. When the interval expires, the command to establish the connection fails. Enter a positive value in milliseconds. Default value: (180000 miliseconds) (3 minutes).

scriptTimeout - Determines how long the client computer waits for the PowerShell script to be executed. When the interval expires, the operation fails. Enter a positive value in milliseconds. An empty value means no time-out; the script execution continues indefinitely.

The operations that are located in the folder deprecated are not updated,  thats why support suggest to use the others ones. which are located out of the folder deprecated and the content pack most updated.

Thanks,,

Kinds Regards,

Antonio 

0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

2 things spring to mind:

 

1) your base content is waaaaay out of date.  That won't be 17m50s of improvement, but it's  one less thing to rule out.

2) You seem to be comparing apples and oranges: executing a pwershell script locally has none of the overhead associated with a flow run, nor does have it have any of the possible bottlenecks: topology of the OO platform, RAS limitations, the complexity of the flow, etc.

 

When you run the flow that calls the powershell script, where is the time being spent? is it in the operation you're talking about?

 

--Chris

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.