discovery - how do i increase the powershell timeout?

Ravish Shetty1
Kilo Contributor

i am getting the below error when discovering a device. how do i increase the timeout and what should be the ideal max. timeout?

 

find_real_file.png

1 ACCEPTED SOLUTION

tim_broberg
ServiceNow Employee
ServiceNow Employee

To change it for all probes, mid parameter mid.windows.probe_timeout should do the trick.

For just one probe, use probe parameter wmi_timeout. (Yes, "wmi," even for powershell.)
    - Tim.

View solution in original post

3 REPLIES 3

Asi Garty
ServiceNow Employee
ServiceNow Employee

Hi, 

Try setting mid.powershell_api.idle_session_timeout to the desired timeout value.

Might require some trial and error as if you will set it too high you might trigger other global session timeouts.

 

Hope this helps.
If it does, please mark as helpful and share your results.

Asi

 

 

tim_broberg
ServiceNow Employee
ServiceNow Employee

To change it for all probes, mid parameter mid.windows.probe_timeout should do the trick.

For just one probe, use probe parameter wmi_timeout. (Yes, "wmi," even for powershell.)
    - Tim.

Aleksandr D_
Kilo Expert

As i know at present PowerShell timeout properties do not apply to Flow Designer PowerShell step.

It will be fixed in San Diego.