Failed Exploring CI Pattern, Pattern name: Windows OS - Servers, error in Collect MSSQL info

suresh91
Tera Guru

Hi Team,

I am trying to run discovery to map an application, however getting the following error when running Quick Discovery.

Failed Exploring CI Pattern, Pattern name: Windows OS - Servers, To Check Pattern Log Press Here.

On checking the Pattern Logs, I am getting the following Payload error:

suresh91_0-1740039103785.png

 

Can anyone assist me in finding the resolution for this?

 

Thanks

4 REPLIES 4

Selva Arun
Mega Sage
Mega Sage

Hi Suresh,

 

Could you please debug the pattern by clicking on the debug button to identify which step is failing and let us know what error you are receiving during the debug?

SelvaArun_0-1739978984652.png

 

 

If you believe the solution provided has adequately addressed your query, could you please **mark it as 'Helpful'** and **'Accept it as a Solution'**? This will help other community members who might have the same question find the answer more easily.

 

Thank you for your consideration.

Selva 

 

Hi @Selva Arun 
Thanks for your response.
I have tried to debug the discovery pattern and we have a step where it needs to get the all name spaces using WMI query operation and it giving the below error.
Error:
Execution of command com.snc.automation_common.integration.exceptions.InvalidCommandException
Original exception: The term 'New-Module' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + importModuleIntoSession -modulePath 'E:\..
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error],
WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,
importModuleIntoSession on host {1} failed with status {2}. {3}

Can you assist me to fix this?
Thanks

maheshkhatal
Mega Sage

@suresh91 I think the issue is command "InvokeWMI_method' you can connect network team and find the exact command. 

See the screenshot.

mssql_Error.JPG

Mark my response as helpful if it resolves your doubt.

Thanks,

Mahesh.

SK Chand Basha
Giga Sage

Hi @suresh91 

 

Can you validate the command which you are getting error by using command validation tool in our service now. 

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1123625

 

Mark it helpful and accept solution!! If this helps you to understand