<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question ITOM discovery in CMDB forum</title>
    <link>https://www.servicenow.com/community/cmdb-forum/itom-discovery/m-p/3465124#M19146</link>
    <description>&lt;P&gt;We’re encountering a situation where certain servers are incorrectly marked as “retired” in discovery tools due to terminated VM instance relations. However, these VMs are still active and running in production. This appears to stem from a prior migration activity, after which the VM status remained “terminated,” causing the operational status to reflect “retired.”&lt;/P&gt;&lt;P&gt;We’ve raised a HI case and were informed that this is expected out-of-box behavior—once a VM instance is marked terminated, it cannot be automatically updated back to “up.”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is this behavior standard and meant to be managed manually?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone implemented a technical workaround or automation to restore accurate operational status in such scenarios?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jan 2026 06:29:40 GMT</pubDate>
    <dc:creator>priyaadhikarla</dc:creator>
    <dc:date>2026-01-12T06:29:40Z</dc:date>
    <item>
      <title>ITOM discovery</title>
      <link>https://www.servicenow.com/community/cmdb-forum/itom-discovery/m-p/3465124#M19146</link>
      <description>&lt;P&gt;We’re encountering a situation where certain servers are incorrectly marked as “retired” in discovery tools due to terminated VM instance relations. However, these VMs are still active and running in production. This appears to stem from a prior migration activity, after which the VM status remained “terminated,” causing the operational status to reflect “retired.”&lt;/P&gt;&lt;P&gt;We’ve raised a HI case and were informed that this is expected out-of-box behavior—once a VM instance is marked terminated, it cannot be automatically updated back to “up.”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is this behavior standard and meant to be managed manually?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone implemented a technical workaround or automation to restore accurate operational status in such scenarios?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jan 2026 06:29:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/cmdb-forum/itom-discovery/m-p/3465124#M19146</guid>
      <dc:creator>priyaadhikarla</dc:creator>
      <dc:date>2026-01-12T06:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: ITOM discovery</title>
      <link>https://www.servicenow.com/community/cmdb-forum/itom-discovery/m-p/3467619#M19189</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is indeed standard behavior, but it is not meant to be managed manually. To understand where this status comes from, feel free to take a look here:&amp;nbsp;&lt;A href="https://www.servicenow.com/docs/bundle/zurich-it-operations-management/page/product/discovery/reference/vm-instance-state-and-status-fields.html" target="_blank" rel="noopener"&gt;https://www.servicenow.com/docs/bundle/zurich-it-operations-management/page/product/discovery/reference/vm-instance-state-and-status-fields.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Outside of that, the logic is, that terminated instances are retired for good (hence why it is a separate state from "just" retired). They are not meant to go back to a running state. To correct this, i'd propose you update all impacted instances once to be in the correct state. From then on onwards, the automation through the VM discovery/events should work correctly again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should not be a reoccurring issue - at least from my experience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On a side note: I find the documentation here a bit irritating, as it leads to believe that "terminated" instances are indeed allowed to go back into a running state - which seems unreasonable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Fabian&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 09:07:17 GMT</pubDate>
      <guid>https://www.servicenow.com/community/cmdb-forum/itom-discovery/m-p/3467619#M19189</guid>
      <dc:creator>Fabian Kunzke</dc:creator>
      <dc:date>2026-01-15T09:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: ITOM discovery</title>
      <link>https://www.servicenow.com/community/cmdb-forum/itom-discovery/m-p/3467680#M19190</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/452299"&gt;@priyaadhikarla&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class=""&gt;Yes, this is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;standard out-of-box (OOB) behavior&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in ServiceNow Discovery . Once a VM instance state is set to "Terminated" by a cloud provider or vCenter event, the platform's logic typically prevents it from automatically reverting to "on" or "off" because termination is considered a final lifecycle state.&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;The issue often persists because Discovery schedules for the underlying server (e.g., Windows or Linux patterns) may not trigger if the associated VM Instance CI is marked as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Retired&lt;/STRONG&gt;, effectively orphaning the server record.&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Recommended Solutions and Workarounds :&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;1. Use a Scheduled Job for Bulk Recovery :&lt;/DIV&gt;&lt;DIV class=""&gt;If this issue stems from a one-time migration event, a script can be run to "force" the recovery of these CIs. This is the most common technical workaround.&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Logic&lt;/STRONG&gt;: Identify records where the VM Instance&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;state=terminated&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;but the associated Server CI was recently updated by an IP-based Discovery or is known to be active.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Script&amp;nbsp;&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt;&lt;SPAN class=""&gt; gr = &lt;/SPAN&gt;&lt;SPAN class=""&gt;new&lt;/SPAN&gt;&lt;SPAN class=""&gt; GlideRecord(&lt;/SPAN&gt;&lt;SPAN class=""&gt;'cmdb_ci_vm_instance'&lt;/SPAN&gt;&lt;SPAN class=""&gt;);
gr.addEncodedQuery(&lt;/SPAN&gt;&lt;SPAN class=""&gt;'state=terminated^install_status=3'&lt;/SPAN&gt;&lt;SPAN class=""&gt;); &lt;/SPAN&gt;&lt;SPAN class=""&gt;// '3' is typically 'Retired'&lt;/SPAN&gt;
&lt;SPAN class=""&gt;// Add your logic to filter by your specific migration data&lt;/SPAN&gt;&lt;SPAN class=""&gt;gr.query();&lt;/SPAN&gt;&lt;SPAN class=""&gt;while&lt;/SPAN&gt;&lt;SPAN class=""&gt; (gr.next()) {
    gr.state = &lt;/SPAN&gt;&lt;SPAN class=""&gt;'on'&lt;/SPAN&gt;&lt;SPAN class=""&gt;; &lt;/SPAN&gt;&lt;SPAN class=""&gt;// Or 'off' based on your requirement&lt;/SPAN&gt;&lt;SPAN class=""&gt;    gr.install_status = &lt;/SPAN&gt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;SPAN class=""&gt;; &lt;/SPAN&gt;&lt;SPAN class=""&gt;// Set to 'Installed'&lt;/SPAN&gt;&lt;SPAN class=""&gt;    gr.operational_status = &lt;/SPAN&gt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;SPAN class=""&gt;; &lt;/SPAN&gt;&lt;SPAN class=""&gt;// Set to 'Operational'&lt;/SPAN&gt;&lt;SPAN class=""&gt;    gr.update();
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Use code with caution.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;2. Implement a "Discovery Source" Reconciliation Rule&lt;/DIV&gt;&lt;DIV class=""&gt;You can use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Identification and Reconciliation Engine (IRE)&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to prevent the "Retired" status from being locked. Create a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Reconciliation Rule&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that allows your specific IP-based discovery to overwrite the status set by the Cloud/vCenter event-driven discovery.&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;3. Adjust Pattern Post-Sensor Scripts :&lt;/DIV&gt;&lt;DIV class=""&gt;For a more permanent automation, customize the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;post-sensor script&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of your cloud patterns (e.g., "Amazon AWS - Virtual Server").&lt;/DIV&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Modify the script to check if a "Terminated" VM instance actually still exists in the provider's response during a full horizontal discovery.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;If the VM is found during a full scan, force the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;state&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;field to update regardless of its previous value.&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;4. Verification with Cloud Operations Workspace :&lt;/DIV&gt;&lt;DIV class=""&gt;In 2026, use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Cloud Operations Workspace&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to review "Stale CIs". If the VM is still active in production, it should appear as a "discrepancy" between the Cloud Inventory and the CMDB, allowing you to remediate it directly from the workspace.&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Would you like a more detailed script to identify exactly which CIs are currently "terminated" but still have an active server relationship ?&lt;BR /&gt;&lt;BR /&gt;If you find it helpful please mark it as helpful.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Sagnic&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Jan 2026 10:07:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/cmdb-forum/itom-discovery/m-p/3467680#M19190</guid>
      <dc:creator>Its_Sagnic</dc:creator>
      <dc:date>2026-01-15T10:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: ITOM discovery</title>
      <link>https://www.servicenow.com/community/cmdb-forum/itom-discovery/m-p/3470108#M19224</link>
      <description>&lt;P&gt;Thankyou&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/806591"&gt;@Its_Sagnic&lt;/a&gt;&amp;nbsp;for detailed explanation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We now see that these servers are migrated from ON prem to cloud with change. Hence we see two relations one with VMware virtual machine instance( whcih state is terminated) and one with VM instance (which state is ON). But usually as per our understanding and collective information from documents available ,If anyone relation is active the CI status should be updated as operational status. But Here we see the CI status is still retired.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried below steps:&lt;/P&gt;&lt;P&gt;1.) We removed on prem VMware virtual machine Instance relationship which is terminated and then tried discovery which is running as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.) But without removing the relation even if we update CI status as operational it is updating back to retired state once next discovery runs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence it confirmed the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I have few questions on this:&lt;/P&gt;&lt;P&gt;why operational status is not updated to operational based on ON state Virtual machine instance relation ?&lt;/P&gt;&lt;P&gt;Is it expected / usual behaviour that we should remove relation manually or it will be updated through discovery?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please provide any further suggestion for us to handle this scenario&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2026 17:22:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/cmdb-forum/itom-discovery/m-p/3470108#M19224</guid>
      <dc:creator>priyaadhikarla</dc:creator>
      <dc:date>2026-01-19T17:22:23Z</dc:date>
    </item>
  </channel>
</rss>

