<?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 Re: IP address updating - Server Discovery in ITOM forum</title>
    <link>https://www.servicenow.com/community/itom-forum/ip-address-updating-server-discovery/m-p/2695537#M111244</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/193345"&gt;@Abdul Musavvir&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Please refer to the below link:&lt;BR /&gt;&lt;A href="https://docs.servicenow.com/en-US/bundle/vancouver-it-operations-management/page/product/discovery/reference/discovery-ip-address-configuration.html" target="_blank"&gt;https://docs.servicenow.com/en-US/bundle/vancouver-it-operations-management/page/product/discovery/reference/discovery-ip-address-configuration.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If it is helpful, mark it as a thumbs-up!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks &amp;amp; Regards,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Abbas&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Oct 2023 05:36:37 GMT</pubDate>
    <dc:creator>abbasshaik4</dc:creator>
    <dc:date>2023-10-09T05:36:37Z</dc:date>
    <item>
      <title>IP address updating - Server Discovery</title>
      <link>https://www.servicenow.com/community/itom-forum/ip-address-updating-server-discovery/m-p/2665076#M110683</link>
      <description>&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a server which has two IP addresses&lt;/P&gt;&lt;P&gt;primary IP address&amp;nbsp; - active&lt;/P&gt;&lt;P&gt;secondary IP address - inactive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So through discovery the secondary IP address is not reachable as it is inactive.&lt;/P&gt;&lt;P&gt;After some time the primary IP will become inactive and secondary IP will be active. In this case, the existing CI records will be updated and the IP address field value will be replaced with secondary IP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What we need is&amp;nbsp;&lt;/P&gt;&lt;P&gt;Primary IP - to stay on IP address field even it is inactive&lt;/P&gt;&lt;P&gt;Secondary IP - to be populated in new IP field and added as a new record in cmdb_ci_ip_address table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions will be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;-Abdul Musavvir&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 13:34:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/ip-address-updating-server-discovery/m-p/2665076#M110683</guid>
      <dc:creator>Abdul Musavvir</dc:creator>
      <dc:date>2023-09-07T13:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: IP address updating - Server Discovery</title>
      <link>https://www.servicenow.com/community/itom-forum/ip-address-updating-server-discovery/m-p/2695537#M111244</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/193345"&gt;@Abdul Musavvir&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Please refer to the below link:&lt;BR /&gt;&lt;A href="https://docs.servicenow.com/en-US/bundle/vancouver-it-operations-management/page/product/discovery/reference/discovery-ip-address-configuration.html" target="_blank"&gt;https://docs.servicenow.com/en-US/bundle/vancouver-it-operations-management/page/product/discovery/reference/discovery-ip-address-configuration.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If it is helpful, mark it as a thumbs-up!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks &amp;amp; Regards,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Abbas&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 05:36:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/ip-address-updating-server-discovery/m-p/2695537#M111244</guid>
      <dc:creator>abbasshaik4</dc:creator>
      <dc:date>2023-10-09T05:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: IP address updating - Server Discovery</title>
      <link>https://www.servicenow.com/community/itom-forum/ip-address-updating-server-discovery/m-p/2695592#M111248</link>
      <description>&lt;P&gt;Some detailing about How IP is worked by Discovery-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0687602" target="_blank"&gt;https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0687602&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0864627" target="_blank"&gt;https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0864627&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0821592" target="_blank" rel="noopener"&gt;https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0821592&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For ur use case u need some customization in Pattern&amp;nbsp; to Update second IP Attribute in CI.&lt;/P&gt;
&lt;P&gt;But how u will identify which one is Secondary IP ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;RP&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 06:40:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/ip-address-updating-server-discovery/m-p/2695592#M111248</guid>
      <dc:creator>Rahul Priyadars</dc:creator>
      <dc:date>2023-10-09T06:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: IP address updating - Server Discovery</title>
      <link>https://www.servicenow.com/community/itom-forum/ip-address-updating-server-discovery/m-p/3341100#M123922</link>
      <description>&lt;P&gt;Was the solution identified? I am seeing a similar behavior and I would really appreciate if someone could share how this has been addressed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;AP&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 08:00:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/ip-address-updating-server-discovery/m-p/3341100#M123922</guid>
      <dc:creator>Alvaro Paronuzz</dc:creator>
      <dc:date>2025-08-01T08:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: IP address updating - Server Discovery</title>
      <link>https://www.servicenow.com/community/itom-forum/ip-address-updating-server-discovery/m-p/3341182#M123925</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/193345"&gt;@Abdul Musavvir&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As per my understanding Why the issue happens:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;By default, ServiceNow Discovery:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;* Uses the reachable IP (active one) during Discovery.&lt;BR /&gt;* Updates the CI’s ip_address field with the current reachable IP.&lt;BR /&gt;* Maintains multiple IPs in the cmdb_ci_ip_address table (linked via cmdb_ci_ip_router or similar tables).&lt;BR /&gt;So when primary becomes inactive, Discovery overwrites ip_address with the new active IP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Target:&lt;BR /&gt;* Keep the original (primary) IP in the ip_address field even if it becomes inactive.&lt;BR /&gt;* Capture new (secondary) IP as an additional record in cmdb_ci_ip_address.&lt;BR /&gt;* Both IPs remain visible and associated with the CI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Solution approach (recommended) will help to resolve this issue -&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1. Ensure both IPs are discovered and stored&lt;BR /&gt;* Even if secondary is inactive, Discovery normally only picks reachable IPs.&lt;BR /&gt;* To get both, configure:&lt;BR /&gt;* Discovery &amp;gt; IP Ranges / Schedules: Scan full subnet including both IPs.&lt;BR /&gt;* Discovery Behaviors: By default, Discovery doesn't remove old IPs; it keeps them in cmdb_ci_ip_address but updates ip_address on the CI.&lt;BR /&gt;* Confirm: check if you already have both IPs in cmdb_ci_ip_address linked to the CI via ip_address relationship.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Prevent ip_address field from being overwritten&lt;BR /&gt;* Create a Business Rule on your CI class (e.g., cmdb_ci_computer):&lt;BR /&gt;* Runs before update.&lt;BR /&gt;* Checks: if ip_address field is about to be replaced (new active IP) AND current ip_address is primary.&lt;BR /&gt;* Cancels the change or resets to original primary IP.&lt;BR /&gt;Pseudo-code example:&lt;BR /&gt;if (current.ip_address == 'Primary_IP' &amp;amp;&amp;amp; current.ip_address != newRecord.ip_address) {&lt;BR /&gt;newRecord.ip_address = current.ip_address; // keep primary IP&lt;BR /&gt;}&lt;BR /&gt;(Replace 'Primary_IP' dynamically; maybe store it in another field like u_primary_ip.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Store secondary IP separately&lt;BR /&gt;* Add a custom field on CI: u_secondary_ip.&lt;BR /&gt;* After Discovery adds a new IP in cmdb_ci_ip_address, write a Business Rule or Scripted REST / Scheduled Job:&lt;BR /&gt;* Find additional IPs linked to CI.&lt;BR /&gt;* Update u_secondary_ip with the new IP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. Keep cmdb_ci_ip_address table clean&lt;BR /&gt;* Don’t block Discovery from adding/removing IPs in cmdb_ci_ip_address.&lt;BR /&gt;* Let it add the new IP when it’s reachable; your logic ensures the CI record keeps primary IP in ip_address and moves the new IP to u_secondary_ip.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please appreciate the efforts of community contributors by marking appropriate response as&amp;nbsp;Mark my Answer Helpful or Accept Solution&amp;nbsp;this may help other community users to follow correct solution in future.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You&lt;BR /&gt;AJ - TechTrek with AJ - ITOM Trainer&lt;BR /&gt;LinkedIn:-&amp;nbsp;&lt;A href="https://www.linkedin.com/in/ajay-kumar-66a91385/" target="_blank"&gt;https://www.linkedin.com/in/ajay-kumar-66a91385/&lt;/A&gt;&lt;BR /&gt;YouTube:-&amp;nbsp;&lt;A href="https://www.youtube.com/@learnitomwithaj" target="_blank"&gt;https://www.youtube.com/@learnitomwithaj&lt;/A&gt;&lt;BR /&gt;Topmate:- &lt;A href="https://topmate.io/aj_techtrekwithaj" target="_blank"&gt;https://topmate.io/aj_techtrekwithaj&lt;/A&gt; (Connect for 1-1 Session)&lt;BR /&gt;ServiceNow Community MVP 2025&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 09:17:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/ip-address-updating-server-discovery/m-p/3341182#M123925</guid>
      <dc:creator>AJ_TechTrek</dc:creator>
      <dc:date>2025-08-01T09:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: IP address updating - Server Discovery</title>
      <link>https://www.servicenow.com/community/itom-forum/ip-address-updating-server-discovery/m-p/3504655#M126573</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/512776"&gt;@AJ_TechTrek&lt;/a&gt;&amp;nbsp;Need your advise -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have IP Switch which is discovered successfully and IP address is 10.1.1.1 and as part of device side they rotate the IP and the current IP is not ping-able from MID Server... and if we do the nslookup to host name then we new IP which is 10.1.1.2.. but CI record still shows OLD IP and Most recent discovery is also latest, so this is creating confusion. Idly, the new IP should have updated in CI IP Address field i.e. 10.1.1.2...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could you please suggest what can be done here.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2026 05:11:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/ip-address-updating-server-discovery/m-p/3504655#M126573</guid>
      <dc:creator>shubhamseth</dc:creator>
      <dc:date>2026-03-10T05:11:05Z</dc:date>
    </item>
  </channel>
</rss>

