- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2023 08:01 AM
I've been attempting to figure out why we're getting 14-24 hour long discovery times. Looked into the discovery log to see a dozen different PowerShell commands timing out at either 120 or 300 seconds. These warnings are seen on mostly every schedule's discovery log, totaling to hundreds. I'm going to assume this is having a negative impact on our discovery times.
For more context, I've looked into the Windows - ADM Multiprobe and set the Windows - Active Processes probe to "false". I also set-up a PowerShell timeout property for our discovery MID servers to timeout at 30 seconds instead of 300 (Default value). Even with this attempt, I'm still seeing those 120 and 300 second time outs in the discovery log.
Here are a few of those errors, the bold ones are the two most common errors.
Failed to initialize PowerConsole, caused by: Remove-Module -Name PSReadLine timed out after 120 seconds.
Failed to initialize PowerConsole, caused by: mode con lines=1 cols=9999 timed out after 120 seconds.
Command: $cred = getCredential; $SNC_session = CreateNewCimSession timed out after 300 seconds.
Command: $context = startImpersonation timed out after 300 seconds.
Command: snc-decode-command | invoke-expression timed out after 300 seconds.
Command: Get-ChildItem "Drive:\Mid Server Name\agent\scripts\PowerShell\WMIFetch.psm1" -Filter *.psm1 | ForEach-Object { If (-Not (Get-Module -Name $_.BaseName)) { Import-Module -Name $_.FullName -Verbose -NoClobber } } timed out after 300 seconds.
Solved! Go to Solution.
- Labels:
-
Discovery
- 2,068 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2025 10:18 PM
This seems to be solved in KB0998557.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0998557
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2024 12:14 PM
Hi Frederico,
Do you have any updates on this? Seeing the same issue on one of the instances.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2024 10:10 AM
Also seeing this issue. Any updates?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2025 10:18 PM
This seems to be solved in KB0998557.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0998557
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2025 10:24 AM
hi team, I am running into the same issue, have applied the suggested fix and it is not working as expected. Any suggestions?
Carlos