Task: Create iTunes Discovery Pattern (Part 2)

MatthewM1018976
Tera Contributor

Hello upon trying to start this task, upon turning on Debug mode I get an error. 

 

"Process detection failed: Execution of command com.snc.automation_common.integration.exceptions.InvalidCommandException: executeQuery : Could not get query Select * From Win32_Process WHERE (ProcessId = 2,992) on namespace=root/cimv2. Original Exception: Invalid query At line:1 char:5 + & { executeQuery -Namespace root/cimv2 -Query "Select * From Win32_Pr ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,executeQuery on host {1} failed with status {2}. {3}Close
"
I get this failure message every time and any assistance would be helpful. 
 
Thank you
7 REPLIES 7

Abbas_5
Tera Sage
Tera Sage

Hello @MatthewM1018976,

 

To complete the "Create iTunes Discovery Pattern (Part 2)" task in ServiceNow, you need to create a discovery pattern for iTunes that identifies and classifies iTunes applications on Windows serversThis pattern involves creating a process classifier and associating it with the discovery pattern. You'll need to configure the pattern to identify iTunes processes, extract relevant information like version, and associate it with the appropriate CI type. 
 
Here's a more detailed breakdown of the steps involved:
  1. 1. Create a Process Classifier:
    • Navigate to System Definition > Process Classifier. 
       
    • Create a new classifier and name it "iTunes" or similar. 
       
    • Define the conditions for the classifier. In this case, it should identify iTunes processes. You can use the "Name Contains" condition to match the process name or the command line. 
       
    • Save the classifier. 
       
  2. 2. Create a Discovery Pattern:
    • Go to Discovery > Discovery Patterns. 
       
    • Create a new pattern for iTunes. 
       
    • Configure the pattern's steps to identify iTunes processes, extract information like version, and classify the application. 
       
    • In the first step, you'll need to select the appropriate table to query for process information (e.g., Win32_Product). 
       
    • Define the identification section to identify the iTunes application using the classifier you created earlier. 
       
    • In the identification section, you'll need to filter the results to ensure only iTunes applications are identified. 
       
    • Define the action section to populate the CMDB with information about the identified iTunes application. 
       
    • Save the pattern. 
       
  3. 3. Associate the Pattern with the Classifier:
    • In the Process Classifier record, associate the newly created pattern with the classifier. 
       
  4. 4. Test the Pattern:
    • Run the pattern on a test system to verify that it correctly identifies and classifies iTunes applications. 
       
    • Review the discovery results and make any necessary adjustments to the pattern. 
       
Troubleshooting:
  • Error: "Identification Engine: Discovery status is FAILURE...":
    This error often indicates a problem with the pattern's identification section or the process classifier. Ensure the classifier is correctly configured and that the pattern is using the correct table and filters. 
     
  • Error: "Process detection failed":
    This error can occur if the mid server is not running or if there's an issue with the connection to the target system. 
     
  • Error: "Did you check the steps in the identification section are configured and tested correctly...":
    This error indicates an issue with the pattern's identification steps. Review the steps and ensure they are configured correctly. 
     
  • Missing Version or Name:
    Ensure the version and name are correctly populated by checking the values and variable names in the pattern. 
     
By following these steps and troubleshooting potential issues, you should be able to successfully complete the "Create iTunes Discovery Pattern (Part 2)" task in ServiceNow. 
 
If this is helpful, please hit the thumbs button and accept the correct solution by referring to this solution in future it will be helpful to them.
 
Thanks & Regards,
Abbas Shaik

hey abbas, i have tried everything but im still getting below error :

Troubleshooting:
  • Error: "Identification Engine: Discovery status is FAILURE...":
    This error often indicates a problem with the pattern's identification section or the process classifier. Ensure the classifier is correctly configured and that the pattern is using the correct table and filters. 
     
    did i miss something apart from instructions in task page

MatthewM1018976
Tera Contributor

@Abbas_5  Thank you for your reply. Unfortunately, I have gone through your instructions, and I still cannot get past part 2. I still get the process detection failed message. Also, for some reason when I run discovery, the shazaam probes will never select window's only, even though I made sure the behavior is selected for windows only. I have completed everything else in the course but this, and one other task which I think is affected by this error. Task reconfigure and test discovery schedule with new behavior.

Wanted to provide a screen shot from the discovery status and ECC queue. For some reason the shazam probe won't change to Windows only. 

MatthewM1018976_0-1749230150703.png