Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Discovery not populating "Assigned To" user in CMDB

Dead Blade
Kilo Guru

I know the name of the probe that is suppose to populate the CMDB:   Windows - OS Information / Win32_ComputerSystem.UserName

But this has never worked.   I check the other post and I have computers with the "In Use" state, so that's not it.

I am wondering how to I enable this function to work.   It is currently set to Active and discovery is running on the workstations.

1 ACCEPTED SOLUTION

Patrick DeCarl1
ServiceNow Employee
ServiceNow Employee

Hi William,



OOTB property "glide.discovery.assigned_user_match_field" is set to use "user_name" field on the "sys_user" table to match the value discovery pulls back. If that value doesnt match what your system has, then you might need to change what field to use from sys_user to sync up.



All this can be found in the sensor of the probe.


View solution in original post

46 REPLIES 46

Awesome!   lots of records:


<?xml version="1.0" encoding="UTF-8"?><parameters><parameter name="mid_selector_details" value="{&quot;mode&quot;:&quot;specific_mid&quot;}"/><parameter name="protocol" value="WMI"/><parameter name="glide.xmlhelper.trim.enable" value="true"/><parameter name="port" value="135"/><parameter name="compute_hash" value="1"/><parameter name="used_by_discovery" value="true"/><parameter name="os_type" value="WINDOWS"/><parameter name="ci_sys_id" value="02765e636f3e4600075a9f5e5d3ee4be"/><parameter name="probe_results_hash" value="ythXtK80GJkyH5yxrgtLfg=="/><parameter name="probe_name" value="Windows - OS Information"/><parameter name="probe" value="6325f3ef0a0006bc3e2e2d83e75dc02a"/><parameter name="WMI_FetchData" value="Win32_Processor.AddressWidth,Win32_ComputerSystem.Manufacturer,Win32_ComputerSystem.Model,Win32_ComputerSystem.UserName,Win32_OperatingSystem.Version,Win32_OperatingSystem.CSDVersion,Win32_OperatingSystem.Description"/><parameter name="credential_id" value="3951de256f323100075a9f5e5d3ee440"/></parameters>


WIlliam,



That looks to be the output record. Do you have the input one?


Ah, not as many input records, but here is one:


<?xml version="1.0" encoding="UTF-8"?><results error="Terminated the probe because the max timeout was reached: 610 seconds." probe_time="610288" result_code="900000"><result/><parameters><parameter name="mid_selector_details" value="{&quot;mode&quot;:&quot;specific_mid&quot;}"/><parameter name="agent" value="mid.server.Midserver_GOT_Prod"/><parameter name="glide.xmlhelper.trim.enable" value="true"/><parameter name="runner_type" value="Powershell"/><parameter name="source" value="10.67.19.201"/><parameter name="WMI_FetchData" value="Win32_Processor.AddressWidth,Win32_ComputerSystem.Manufacturer,Win32_ComputerSystem.Model,Win32_ComputerSystem.UserName,Win32_OperatingSystem.Version,Win32_OperatingSystem.CSDVersion,Win32_OperatingSystem.Description"/><parameter name="sys_id" value="566f31f5db5ccf00ced2f1e51d961960"/><parameter name="protocol" value="WMI"/><parameter name="from_host" value=""/><parameter name="sys_created_on" value="2017-08-01 08:15:34"/><parameter name="used_by_discovery" value="true"/><parameter name="ci_sys_id" value="e57dc209db9af24400a0ffd31d96191d"/><parameter name="GenerateWMIScriptPS1_WMI_FetchData.PS1" value="addFetch('Win32_Processor.AddressWidth');&#10;addFetch('Win32_ComputerSystem.Manufacturer');&#10;addFetch('Win32_ComputerSystem.Model');&#10;addFetch('Win32_ComputerSystem.UserName');&#10;addFetch('Win32_OperatingSystem.Version');&#10;addFetch('Win32_OperatingSystem.CSDVersion');&#10;addFetch('Win32_OperatingSystem.Description');&#10;fetch -computer $computer -cred $cred;&#10;"/><parameter name="state" value="ready"/><parameter name="probe_name" value="Windows - OS Information"/><parameter name="response_to" value="696f71b1dbd8074000a0ffd31d9619d2"/><parameter name="from_sys_id" value=""/><parameter name="priority" value="2"/><parameter name="agent_correlator" value="3adbf139db98074000a0ffd31d9619b0"/><parameter name="probe" value="6325f3ef0a0006bc3e2e2d83e75dc02a"/><parameter name="processed" value=""/><parameter name="error_string" value=""/><parameter name="sequence" value="15d9cdd4a560000001"/><parameter name="port" value="135"/><parameter name="os_type" value="WINDOWS"/><parameter name="name" value="WMI: OS Information"/><parameter name="topic" value="WMIRunner"/><parameter name="queue" value="output"/><parameter name="ecc_queue" value="566f31f5db5ccf00ced2f1e51d961960"/><parameter name="credential_id" value="3951de256f323100075a9f5e5d3ee440"/></parameters></results>


Another one:


<?xml version="1.0" encoding="UTF-8"?><results probe_time="10000" result_code="0"><result><Win32_Processor><AddressWidth>64</AddressWidth></Win32_Processor><Win32_Processor><AddressWidth>64</AddressWidth></Win32_Processor><Win32_ComputerSystem><Manufacturer>VMware, Inc.</Manufacturer><Model>VMware Virtual Platform</Model><UserName/></Win32_ComputerSystem><Win32_OperatingSystem><Version>6.1.7601</Version><CSDVersion>Service Pack 1</CSDVersion><Description/></Win32_OperatingSystem></result><parameters><parameter name="mid_selector_details" value="{&quot;mode&quot;:&quot;specific_mid&quot;}"/><parameter name="agent" value="mid.server.MID-Jepp-Den"/><parameter name="glide.xmlhelper.trim.enable" value="true"/><parameter name="runner_type" value="Powershell"/><parameter name="source" value="10.1.127.212"/><parameter name="probe_results_hash" value="l9IuH6JWlG89/THmOeQEtQ=="/><parameter name="WMI_FetchData" value="Win32_Processor.AddressWidth,Win32_ComputerSystem.Manufacturer,Win32_ComputerSystem.Model,Win32_ComputerSystem.UserName,Win32_OperatingSystem.Version,Win32_OperatingSystem.CSDVersion,Win32_OperatingSystem.Description"/><parameter name="sys_id" value="4c66d246dbdc4340ced2f1e51d961949"/><parameter name="protocol" value="WMI"/><parameter name="from_host" value=""/><parameter name="sys_created_on" value="2017-08-02 04:34:23"/><parameter name="used_by_discovery" value="true"/><parameter name="ci_sys_id" value="48669246dbdc4340ced2f1e51d9619c0"/><parameter name="GenerateWMIScriptPS1_WMI_FetchData.PS1" value="addFetch('Win32_Processor.AddressWidth');&#10;addFetch('Win32_ComputerSystem.Manufacturer');&#10;addFetch('Win32_ComputerSystem.Model');&#10;addFetch('Win32_ComputerSystem.UserName');&#10;addFetch('Win32_OperatingSystem.Version');&#10;addFetch('Win32_OperatingSystem.CSDVersion');&#10;addFetch('Win32_OperatingSystem.Description');&#10;fetch -computer $computer -cred $cred;&#10;"/><parameter name="state" value="ready"/><parameter name="probe_name" value="Windows - OS Information"/><parameter name="response_to" value="9a56564adb14c74000a0ffd31d9619ae"/><parameter name="from_sys_id" value=""/><parameter name="priority" value="2"/><parameter name="agent_correlator" value="42041e8edb9c4340ced2f1e51d9619ab"/><parameter name="probe" value="6325f3ef0a0006bc3e2e2d83e75dc02a"/><parameter name="processed" value=""/><parameter name="error_string" value=""/><parameter name="sequence" value="15da139287d0000001"/><parameter name="port" value="135"/><parameter name="os_type" value="WINDOWS"/><parameter name="name" value="WMI: OS Information (nodes: 4)"/><parameter name="topic" value="WMIRunner"/><parameter name="queue" value="output"/><parameter name="ecc_queue" value="4c66d246dbdc4340ced2f1e51d961949"/><parameter name="credential_id" value="3951de256f323100075a9f5e5d3ee440"/></parameters></results>


Do you have window account with local admin rights for discovery?