How to solve : Discovery Fundamentals On Demand (Course) Task: Extend Windows OS - Servers Pattern

prasanna_da
Tera Expert

How to solve : 

Task: Extend Windows OS - Servers Pattern

SCENARIO:

Cloud Dimensions has gained confidence in how easy it is to extend ServiceNow Discovery for applications. Next it would like to extend the Windows OS - Servers pattern to collect the processor name value from Windows Servers and write the value to the Description field. The processor name is an important attribute that Cloud Dimensions wants to report on to assist in future infrastructure planning. 

REQUIREMENT:

As the Cloud Dimensions Discovery administrator, you are tasked with extending the base system Windows OS - Servers pattern to collect processor name from discovered Windows Servers and write the value back to the Description field. Use the following information to accomplish the task.

From the Windows OS - Servers pattern:

  • Create a new Extension Section called Windows OS Extension

 

Open the Windows OS Extension Section and do the following:

  • Enable Debug Mode using your Windows MID Server IP Address (i.e. 10.x....) for the Host Name/IP

  NOTE: Enabling Debug Mode can take a few minutes.

  • Create the steps needed to collect the processor name and write it back to the Description field of a discovered Windows Server

Hint: One option to collect processor name is to use a WMI query from the "root/CIMV2" namespace, WIN32_Processor table, Name field. Review the steps you created in the iTunes pattern for additional guidance.

 

VERIFICATION:

Before validating the task, perform the following:

  • Save the pattern

NOTE: When creating or updating an extension section, the pattern only needs to be saved and not published.

 

  • From the MID Server list, checkmark windows_mid and click Pattern Sync to Mid to synchronize the updated pattern with the MID Server

 

  • Run discovery against your Windows MID Server

 

  • Confirm the discovered Windows Server Description field is updated with the processor name as shown
prasanna_da_0-1746892789524.png

 

 
 
 

 

-------------

Upon completion of this task, select the Validate Task button. If the validation fails, you will be presented with feedback text that indicates what could be failing, along with clickable links to the ServiceNow documentation site for more guidance.




ISSUE :: Unable to validate task.
 
 I have created those Pattern extension : 

prasanna_da_4-1746888766335.pngprasanna_da_5-1746888785276.png

 

Step 1 : 


prasanna_da_6-1746888854243.png


STEP 2 :

prasanna_da_7-1746891147047.png

 

Used the IP Address of the windows mid server ;

Record Updated after Syncing the Pattern and running the scheduled discovery > quick discovery,

prasanna_da_8-1746891886868.png

And Results are:

 

prasanna_da_9-1746892058543.png

 

Please help me with this. The task is still not validated.

 

@Ankur Bawiskar 

1 ACCEPTED SOLUTION

roehltablada
Mega Guru

Hi @prasanna_da,

 

As of today, May 27, 2025, there is a bug in validating that task. Even if you got the correct steps, the validation will still fail.

 

Here's the solution:


Step 1:

  • Step Name: Collect Processor Name
  • Operation: WMI Query
  • Namespace: "root/CIMV2"
  • Get Full Statement: "SELECT Name FROM Win32_Processor"
  • Target Table: $cmdb_ci_win_server

Step 2:

  • Step Name: Set Processor Name
  • Operation: Set Parameter Value
  • Value: $cmdb_ci_win_serverl[1].Name
  • Name: $cmdb_ci_win_serverl[1].short_description

Once you execute Quick Discovery, this will create a record in cmdb_ci_win_server table. However, validation will fail if ServiceNow has not corrected the defect yet.

 

To correct the defect, replace the Description field with:
      Intel(R) Xeon(R) Platinum 8270C CPU @ 2.80GHz

 

View solution in original post

8 REPLIES 8

atta
Tera Contributor

I'm facing the same issue 

Innovate-LH
Tera Contributor

It's failing for me as well. I think something with the validation must be broken.

Zurli
Tera Expert

SOLUTION: Task Validated Successfully After Fixes

Hi everyone,

I was facing the same issue — the processor name was showing correctly in the Windows Server’s Description field, but the task still failed validation.

After fine-tuning a few details, I was finally able to pass the task successfully. Here's what worked:

Pattern Setup

  • Pattern: Windows OS - Servers
  • Extension Section Name: Windows OS Extension

Steps Inside the Extension Section

Step 1 – WMI Query

  • Operation: WMI Query
  • Namespace: root/CIMV2
  • Table: Win32_Processor
  • Fields: Name
  • Target Table: $cmdb_ci_win_server

Step 2 – Set Description

  • Operation: Set Parameter Value
  • Name: $cmdb_ci_win_server[1].short_description
  • Value: $cmdb_ci_win_server[1].Name

Final Checklist

  1. Save the pattern (no need to publish)
  2. Go to MID Servers, select windows_mid, and click Pattern Sync to MID
  3. Run Discovery against IP 192.168.16.11 (not the MID Server)
  4. Check that the Description field shows the processor name
  5. Click Validate Task

Still not validating?

  • Use index [1], not [0]
  • Make sure you use short_description, not name
  • Sync the pattern before running discovery
  • Run discovery on the correct target

Hope this helps you all!
If it solves your issue too, please mark this reply as the Accepted Solution and click Helpful so others in the community can benefit.

Let me know if you'd like help checking your steps — happy to assist!

this is super helpful. Only one small difference in Step 2. As the task mentioned to take the processor info from WIN32_Processor table, Name field and then input into "Description" field. So when I set up the extenstion, I did this : 

 

Step 2 – Set Description

  • Operation: Set Parameter Value
  • Name: $cmdb_ci_win_server[1].Name
  • Value: $cmdb_ci_win_server[1].short_description

instead of 

  • Name: $cmdb_ci_win_server[1].short_description
  • Value: $cmdb_ci_win_server[1].name

and it worked. 

 

I have to say that the overall information was still super helpful from everyone in this thread.