{"id":6734,"date":"2021-05-03T07:41:56","date_gmt":"2021-05-03T13:41:56","guid":{"rendered":"http:\/\/gregsowell.com\/?p=6734"},"modified":"2021-05-03T07:41:56","modified_gmt":"2021-05-03T13:41:56","slug":"import-into-servicenow-cmdb-via-ansible-servicenow-collection","status":"publish","type":"post","link":"https:\/\/gregsowell.com\/?p=6734","title":{"rendered":"Import Into ServiceNow CMDB Via Ansible ServiceNow Collection"},"content":{"rendered":"<p>It seems these days that at least half of my customers are using SNOW as their ITSM, so I&#8217;m always looking for ways to automate against it.  RedHat recently launched a new collection that <a href=\"https:\/\/cloud.redhat.com\/ansible\/automation-hub\/repo\/published\/servicenow\/itsm\">works directly with SNOW<\/a>.  In V1 release is the ability to work with problems, incidents, change requests, and configuration items(which are your CMDB entries).  Playing with the collection is nice, but I wanted to do something interesting, so I made a way to use it to import switches into the CMDB in a repeatable manner.<\/p>\n<h2>Video Demo<\/h2>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/EcUHpEzHoz4\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<h2>Files<\/h2>\n<p>All files can be found <a href=\"https:\/\/github.com\/gregsowell\/ansible-servicenow-cmdb\">here in my public github repo<\/a>.  I&#8217;ll start with the template file I&#8217;m going to be importing into SNOW.  This will more likely be a CSV or something of the like, and perhaps I&#8217;ll update this in the future, but for now it&#8217;s a simple YAML file:<br \/>\n<script src=\"http:\/\/gist-it.appspot.com\/https:\/\/github.com\/gregsowell\/ansible-servicenow-cmdb\/blob\/main\/snow-col-config-template.yml\"><\/script><br \/>\nIn the file I&#8217;m adding the important bits like name, serial number, IP address, and make\/model.  I&#8217;m using the name as the key, so each will need to be unique in my environment.  Believe it or not, The sys_id field is they key in the database, so the system will let me add the exact same device info 100 times if I want to&#8230;each having it&#8217;s own entry in the database.  I always have unique device names, so I&#8217;m using that.<\/p>\n<p>Next I&#8217;ll look at the main playbook:<br \/>\n<script src=\"http:\/\/gist-it.appspot.com\/https:\/\/github.com\/gregsowell\/ansible-servicenow-cmdb\/blob\/main\/snow-col-config-import.yml\"><\/script><br \/>\nI setup a few variables in the vars section, most notably, which CMDB these entries should live in.<br \/>\nTask 1 reads in the file that I&#8217;m going to be importing into the database &#8220;snow-col-config-template.yml&#8221;.<br \/>\nTask 2 reads all of the existing CMDB entries and saves them into the &#8220;all_config_items&#8221; variable.<br \/>\nThe final task loops through each entry to import and calls a sub task.  I do this because I need to have a loop with an inner loop, and this is the simplest way to accomplish it.  <\/p>\n<p>This is the sub task that&#8217;s called for each entry ready from the import file.<br \/>\n<script src=\"http:\/\/gist-it.appspot.com\/https:\/\/github.com\/gregsowell\/ansible-servicenow-cmdb\/blob\/main\/snow-col-config-import-sub.yml\"><\/script><br \/>\nThis file consists of two tasks.<br \/>\nTask 1 takes each switch at a time and checks to see if it already exists in the database.  Again, I&#8217;m matching based on name.  Now this module isn&#8217;t idempotent unfortunately, so when it finds a match, it will show changed each time it runs.  This isn&#8217;t necessarily a bad thing, in fact it really won&#8217;t hurt anything, I&#8217;ve just become a fan of idempotent modules(so expect to see the orange &#8220;changed&#8221; output).  The output of this run is saved as a variable.<br \/>\nTask 2 runs and checks the previously created variable and sees if there was a change made.  If there was a change made, then I know that the record existed already, so do nothing.  If the record didn&#8217;t exist, then this task will go ahead and create it.  Since this module doesn&#8217;t support idempotency I have to check if it already exists, otherwise it will create multiple entries for the same device&#8230;and you&#8217;ll have a bad time.<\/p>\n<h2>Running The Automation In Ansible Automation Platform<\/h2>\n<p>To view the CMDB now before I do the run I follow these three steps:<br \/>\n<a href=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_1-116x300.png\" alt=\"\" width=\"116\" height=\"300\" class=\"aligncenter size-medium wp-image-6738\" srcset=\"https:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_1-116x300.png 116w, https:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_1.png 308w\" sizes=\"auto, (max-width: 116px) 100vw, 116px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_2-300x130.png\" alt=\"\" width=\"300\" height=\"130\" class=\"aligncenter size-medium wp-image-6739\" srcset=\"https:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_2-300x130.png 300w, https:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_2-768x332.png 768w, https:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_2-1024x443.png 1024w, https:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_2.png 1157w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_3-300x160.png\" alt=\"\" width=\"300\" height=\"160\" class=\"aligncenter size-medium wp-image-6740\" srcset=\"https:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_3-300x160.png 300w, https:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_3-768x410.png 768w, https:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_3.png 969w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Here&#8217;s the output from the launch:<\/p>\n<pre class=\"gs-code\"><code class=\"language-plaintext\">TASK [Include the file that will be imported into SNOW] ************************\r\nok: [localhost]\r\nTASK [Read all of the existing CMDB entries and save them to a variable] *******\r\nok: [localhost]\r\nTASK [Loop to import devices.  This calls a sub task for processing] ***********\r\nincluded: \/tmp\/awx_1056_3rnj557y\/project\/snow-col-config-import-sub.yml for localhost\r\nincluded: \/tmp\/awx_1056_3rnj557y\/project\/snow-col-config-import-sub.yml for localhost\r\nincluded: \/tmp\/awx_1056_3rnj557y\/project\/snow-col-config-import-sub.yml for localhost\r\nincluded: \/tmp\/awx_1056_3rnj557y\/project\/snow-col-config-import-sub.yml for localhost\r\nTASK [If sw1 already exists, update it&#039;s configuration] ************************\r\nchanged: [localhost] =&gt; (item={&#039;attested_date&#039;: &#039;&#039;, &#039;can_switch&#039;: &#039;false&#039;, &#039;stack&#039;: &#039;false&#039;, &#039;operational_status&#039;: &#039;operational&#039;, &#039;cpu_manufacturer&#039;: &#039;&#039;, &#039;sys_updated_on&#039;: &#039;2021-04-22 14:08:44&#039;, &#039;discovery_source&#039;: &#039;&#039;, &#039;first_discovered&#039;: &#039;&#039;, &#039;due_in&#039;: &#039;&#039;, &#039;can_partitionvlans&#039;: &#039;false&#039;, &#039;gl_account&#039;: &#039;&#039;, &#039;invoice_number&#039;: &#039;&#039;, &#039;sys_created_by&#039;: &#039;admin&#039;, &#039;ram&#039;: &#039;&#039;, &#039;warranty_expiration&#039;: &#039;&#039;, &#039;cpu_speed&#039;: &#039;&#039;, &#039;owned_by&#039;: &#039;&#039;, &#039;checked_out&#039;: &#039;&#039;, &#039;firmware_manufacturer&#039;: &#039;&#039;, &#039;disk_space&#039;: &#039;&#039;, &#039;sys_domain_path&#039;: &#039;\/&#039;, &#039;discovery_proto_id&#039;: &#039;&#039;, &#039;maintenance_schedule&#039;: &#039;&#039;, &#039;cost_center&#039;: &#039;&#039;, &#039;attested_by&#039;: &#039;&#039;, &#039;dns_domain&#039;: &#039;&#039;, &#039;assigned&#039;: &#039;&#039;, &#039;purchase_date&#039;: &#039;&#039;, &#039;short_description&#039;: &#039;1st lab switch&#039;, &#039;managed_by&#039;: &#039;&#039;, &#039;range&#039;: &#039;&#039;, &#039;firmware_version&#039;: &#039;&#039;, &#039;can_print&#039;: &#039;false&#039;, &#039;last_discovered&#039;: &#039;&#039;, &#039;ports&#039;: &#039;&#039;, &#039;sys_class_name&#039;: &#039;cmdb_ci_ip_switch&#039;, &#039;cpu_count&#039;: &#039;1&#039;, &#039;manufacturer&#039;: &#039;b7e831bdc0a80169015ae101f3c4d6cd&#039;, &#039;vendor&#039;: &#039;&#039;, &#039;can_route&#039;: &#039;false&#039;, &#039;model_number&#039;: &#039;3550&#039;, &#039;assigned_to&#039;: &#039;&#039;, &#039;start_date&#039;: &#039;&#039;, &#039;bandwidth&#039;: &#039;&#039;, &#039;serial_number&#039;: &#039;111&#039;, &#039;support_group&#039;: &#039;&#039;, &#039;correlation_id&#039;: &#039;&#039;, &#039;unverified&#039;: &#039;false&#039;, &#039;attributes&#039;: &#039;&#039;, &#039;asset&#039;: &#039;48af32ba07102010d42af03c7c1ed03b&#039;, &#039;skip_sync&#039;: &#039;false&#039;, &#039;device_type&#039;: &#039;switch&#039;, &#039;attestation_score&#039;: &#039;&#039;, &#039;sys_updated_by&#039;: &#039;admin&#039;, &#039;sys_created_on&#039;: &#039;2020-11-09 16:36:58&#039;, &#039;cpu_type&#039;: &#039;&#039;, &#039;sys_domain&#039;: &#039;global&#039;, &#039;install_date&#039;: &#039;&#039;, &#039;asset_tag&#039;: &#039;P1000611&#039;, &#039;hardware_substatus&#039;: &#039;&#039;, &#039;fqdn&#039;: &#039;&#039;, &#039;stack_mode&#039;: &#039;&#039;, &#039;change_control&#039;: &#039;&#039;, &#039;internet_facing&#039;: &#039;true&#039;, &#039;physical_interface_count&#039;: &#039;&#039;, &#039;delivery_date&#039;: &#039;&#039;, &#039;hardware_status&#039;: &#039;installed&#039;, &#039;channels&#039;: &#039;&#039;, &#039;install_status&#039;: &#039;installed&#039;, &#039;supported_by&#039;: &#039;&#039;, &#039;name&#039;: &#039;sw1&#039;, &#039;subcategory&#039;: &#039;IP&#039;, &#039;default_gateway&#039;: &#039;&#039;, &#039;assignment_group&#039;: &#039;&#039;, &#039;managed_by_group&#039;: &#039;&#039;, &#039;can_hub&#039;: &#039;false&#039;, &#039;sys_id&#039;: &#039;145f7e7a07102010d42af03c7c1ed06f&#039;, &#039;po_number&#039;: &#039;&#039;, &#039;checked_in&#039;: &#039;&#039;, &#039;sys_class_path&#039;: &#039;\/!!\/!2\/!!\/!,&#039;, &#039;mac_address&#039;: &#039;&#039;, &#039;company&#039;: &#039;&#039;, &#039;justification&#039;: &#039;&#039;, &#039;department&#039;: &#039;&#039;, &#039;snmp_sys_location&#039;: &#039;&#039;, &#039;comments&#039;: &#039;&#039;, &#039;cost&#039;: &#039;&#039;, &#039;sys_mod_count&#039;: &#039;1&#039;, &#039;monitor&#039;: &#039;false&#039;, &#039;ip_address&#039;: &#039;192.168.51.51&#039;, &#039;model_id&#039;: &#039;80af727a07102010d42af03c7c1ed0e3&#039;, &#039;duplicate_of&#039;: &#039;&#039;, &#039;sys_tags&#039;: &#039;&#039;, &#039;cost_cc&#039;: &#039;USD&#039;, &#039;discovery_proto_type&#039;: &#039;&#039;, &#039;order_date&#039;: &#039;&#039;, &#039;schedule&#039;: &#039;&#039;, &#039;environment&#039;: &#039;production&#039;, &#039;due&#039;: &#039;&#039;, &#039;attested&#039;: &#039;false&#039;, &#039;location&#039;: &#039;&#039;, &#039;category&#039;: &#039;Hardware&#039;, &#039;fault_count&#039;: &#039;0&#039;, &#039;lease_id&#039;: &#039;&#039;})\r\nskipping: [localhost] =&gt; (item={&#039;attested_date&#039;: &#039;&#039;, &#039;can_switch&#039;: &#039;false&#039;, &#039;stack&#039;: &#039;false&#039;, &#039;operational_status&#039;: &#039;operational&#039;, &#039;cpu_manufacturer&#039;: &#039;&#039;, &#039;sys_updated_on&#039;: &#039;2021-04-22 14:08:48&#039;, &#039;discovery_source&#039;: &#039;&#039;, &#039;first_discovered&#039;: &#039;&#039;, &#039;due_in&#039;: &#039;&#039;, &#039;can_partitionvlans&#039;: &#039;false&#039;, &#039;gl_account&#039;: &#039;&#039;, &#039;invoice_number&#039;: &#039;&#039;, &#039;sys_created_by&#039;: &#039;admin&#039;, &#039;ram&#039;: &#039;&#039;, &#039;warranty_expiration&#039;: &#039;&#039;, &#039;cpu_speed&#039;: &#039;&#039;, &#039;owned_by&#039;: &#039;&#039;, &#039;checked_out&#039;: &#039;&#039;, &#039;firmware_manufacturer&#039;: &#039;&#039;, &#039;disk_space&#039;: &#039;&#039;, &#039;sys_domain_path&#039;: &#039;\/&#039;, &#039;discovery_proto_id&#039;: &#039;&#039;, &#039;maintenance_schedule&#039;: &#039;&#039;, &#039;cost_center&#039;: &#039;&#039;, &#039;attested_by&#039;: &#039;&#039;, &#039;dns_domain&#039;: &#039;&#039;, &#039;assigned&#039;: &#039;&#039;, &#039;purchase_date&#039;: &#039;&#039;, &#039;short_description&#039;: &#039;2nd lab switch&#039;, &#039;managed_by&#039;: &#039;&#039;, &#039;range&#039;: &#039;&#039;, &#039;firmware_version&#039;: &#039;&#039;, &#039;can_print&#039;: &#039;false&#039;, &#039;last_discovered&#039;: &#039;&#039;, &#039;ports&#039;: &#039;&#039;, &#039;sys_class_name&#039;: &#039;cmdb_ci_ip_switch&#039;, &#039;cpu_count&#039;: &#039;1&#039;, &#039;manufacturer&#039;: &#039;b7e831bdc0a80169015ae101f3c4d6cd&#039;, &#039;vendor&#039;: &#039;&#039;, &#039;can_route&#039;: &#039;false&#039;, &#039;model_number&#039;: &#039;3550&#039;, &#039;assigned_to&#039;: &#039;&#039;, &#039;start_date&#039;: &#039;&#039;, &#039;bandwidth&#039;: &#039;&#039;, &#039;serial_number&#039;: &#039;222&#039;, &#039;support_group&#039;: &#039;&#039;, &#039;correlation_id&#039;: &#039;&#039;, &#039;unverified&#039;: &#039;false&#039;, &#039;attributes&#039;: &#039;&#039;, &#039;asset&#039;: &#039;0d81877607102010d42af03c7c1ed0e9&#039;, &#039;skip_sync&#039;: &#039;false&#039;, &#039;device_type&#039;: &#039;&#039;, &#039;attestation_score&#039;: &#039;&#039;, &#039;sys_updated_by&#039;: &#039;admin&#039;, &#039;sys_created_on&#039;: &#039;2020-11-09 16:45:14&#039;, &#039;cpu_type&#039;: &#039;&#039;, &#039;sys_domain&#039;: &#039;global&#039;, &#039;install_date&#039;: &#039;&#039;, &#039;asset_tag&#039;: &#039;P1000612&#039;, &#039;hardware_substatus&#039;: &#039;&#039;, &#039;fqdn&#039;: &#039;&#039;, &#039;stack_mode&#039;: &#039;&#039;, &#039;change_control&#039;: &#039;&#039;, &#039;internet_facing&#039;: &#039;true&#039;, &#039;physical_interface_count&#039;: &#039;&#039;, &#039;delivery_date&#039;: &#039;&#039;, &#039;hardware_status&#039;: &#039;installed&#039;, &#039;channels&#039;: &#039;&#039;, &#039;install_status&#039;: &#039;installed&#039;, &#039;supported_by&#039;: &#039;&#039;, &#039;name&#039;: &#039;sw2&#039;, &#039;subcategory&#039;: &#039;IP&#039;, &#039;default_gateway&#039;: &#039;&#039;, &#039;assignment_group&#039;: &#039;&#039;, &#039;managed_by_group&#039;: &#039;&#039;, &#039;can_hub&#039;: &#039;false&#039;, &#039;sys_id&#039;: &#039;5a61877607102010d42af03c7c1ed0f3&#039;, &#039;po_number&#039;: &#039;&#039;, &#039;checked_in&#039;: &#039;&#039;, &#039;sys_class_path&#039;: &#039;\/!!\/!2\/!!\/!,&#039;, &#039;mac_address&#039;: &#039;&#039;, &#039;company&#039;: &#039;&#039;, &#039;justification&#039;: &#039;&#039;, &#039;department&#039;: &#039;&#039;, &#039;snmp_sys_location&#039;: &#039;&#039;, &#039;comments&#039;: &#039;&#039;, &#039;cost&#039;: &#039;&#039;, &#039;sys_mod_count&#039;: &#039;1&#039;, &#039;monitor&#039;: &#039;false&#039;, &#039;ip_address&#039;: &#039;192.168.51.52&#039;, &#039;model_id&#039;: &#039;80af727a07102010d42af03c7c1ed0e3&#039;, &#039;duplicate_of&#039;: &#039;&#039;, &#039;sys_tags&#039;: &#039;&#039;, &#039;cost_cc&#039;: &#039;USD&#039;, &#039;discovery_proto_type&#039;: &#039;&#039;, &#039;order_date&#039;: &#039;&#039;, &#039;schedule&#039;: &#039;&#039;, &#039;environment&#039;: &#039;production&#039;, &#039;due&#039;: &#039;&#039;, &#039;attested&#039;: &#039;false&#039;, &#039;location&#039;: &#039;&#039;, &#039;category&#039;: &#039;Hardware&#039;, &#039;fault_count&#039;: &#039;0&#039;, &#039;lease_id&#039;: &#039;&#039;}) \r\nskipping: [localhost] =&gt; (item={&#039;attested_date&#039;: &#039;&#039;, &#039;can_switch&#039;: &#039;false&#039;, &#039;stack&#039;: &#039;false&#039;, &#039;operational_status&#039;: &#039;operational&#039;, &#039;cpu_manufacturer&#039;: &#039;&#039;, &#039;sys_updated_on&#039;: &#039;2021-04-21 17:44:42&#039;, &#039;discovery_source&#039;: &#039;&#039;, &#039;first_discovered&#039;: &#039;&#039;, &#039;due_in&#039;: &#039;&#039;, &#039;can_partitionvlans&#039;: &#039;false&#039;, &#039;gl_account&#039;: &#039;&#039;, &#039;invoice_number&#039;: &#039;&#039;, &#039;sys_created_by&#039;: &#039;admin&#039;, &#039;ram&#039;: &#039;&#039;, &#039;warranty_expiration&#039;: &#039;&#039;, &#039;cpu_speed&#039;: &#039;&#039;, &#039;owned_by&#039;: &#039;&#039;, &#039;checked_out&#039;: &#039;&#039;, &#039;firmware_manufacturer&#039;: &#039;&#039;, &#039;disk_space&#039;: &#039;&#039;, &#039;sys_domain_path&#039;: &#039;\/&#039;, &#039;discovery_proto_id&#039;: &#039;&#039;, &#039;maintenance_schedule&#039;: &#039;&#039;, &#039;cost_center&#039;: &#039;&#039;, &#039;attested_by&#039;: &#039;&#039;, &#039;dns_domain&#039;: &#039;&#039;, &#039;assigned&#039;: &#039;&#039;, &#039;purchase_date&#039;: &#039;&#039;, &#039;short_description&#039;: &#039;3rd lab switch&#039;, &#039;managed_by&#039;: &#039;&#039;, &#039;range&#039;: &#039;&#039;, &#039;firmware_version&#039;: &#039;&#039;, &#039;can_print&#039;: &#039;false&#039;, &#039;last_discovered&#039;: &#039;&#039;, &#039;ports&#039;: &#039;&#039;, &#039;sys_class_name&#039;: &#039;cmdb_ci_ip_switch&#039;, &#039;cpu_count&#039;: &#039;1&#039;, &#039;manufacturer&#039;: &#039;b7e831bdc0a80169015ae101f3c4d6cd&#039;, &#039;vendor&#039;: &#039;&#039;, &#039;can_route&#039;: &#039;false&#039;, &#039;model_number&#039;: &#039;3550&#039;, &#039;assigned_to&#039;: &#039;&#039;, &#039;start_date&#039;: &#039;&#039;, &#039;bandwidth&#039;: &#039;&#039;, &#039;serial_number&#039;: &#039;333&#039;, &#039;support_group&#039;: &#039;&#039;, &#039;correlation_id&#039;: &#039;&#039;, &#039;unverified&#039;: &#039;false&#039;, &#039;attributes&#039;: &#039;&#039;, &#039;asset&#039;: &#039;514aea5f07632010d42af03c7c1ed010&#039;, &#039;skip_sync&#039;: &#039;false&#039;, &#039;device_type&#039;: &#039;&#039;, &#039;attestation_score&#039;: &#039;&#039;, &#039;sys_updated_by&#039;: &#039;admin&#039;, &#039;sys_created_on&#039;: &#039;2021-04-21 17:44:42&#039;, &#039;cpu_type&#039;: &#039;&#039;, &#039;sys_domain&#039;: &#039;global&#039;, &#039;install_date&#039;: &#039;&#039;, &#039;asset_tag&#039;: &#039;P1000613&#039;, &#039;hardware_substatus&#039;: &#039;&#039;, &#039;fqdn&#039;: &#039;&#039;, &#039;stack_mode&#039;: &#039;&#039;, &#039;change_control&#039;: &#039;&#039;, &#039;internet_facing&#039;: &#039;true&#039;, &#039;physical_interface_count&#039;: &#039;&#039;, &#039;delivery_date&#039;: &#039;&#039;, &#039;hardware_status&#039;: &#039;installed&#039;, &#039;channels&#039;: &#039;&#039;, &#039;install_status&#039;: &#039;installed&#039;, &#039;supported_by&#039;: &#039;&#039;, &#039;name&#039;: &#039;sw3&#039;, &#039;subcategory&#039;: &#039;IP&#039;, &#039;default_gateway&#039;: &#039;&#039;, &#039;assignment_group&#039;: &#039;&#039;, &#039;managed_by_group&#039;: &#039;&#039;, &#039;can_hub&#039;: &#039;false&#039;, &#039;sys_id&#039;: &#039;954aea5f07632010d42af03c7c1ed00f&#039;, &#039;po_number&#039;: &#039;&#039;, &#039;checked_in&#039;: &#039;&#039;, &#039;sys_class_path&#039;: &#039;\/!!\/!2\/!!\/!,&#039;, &#039;mac_address&#039;: &#039;&#039;, &#039;company&#039;: &#039;&#039;, &#039;justification&#039;: &#039;&#039;, &#039;department&#039;: &#039;&#039;, &#039;snmp_sys_location&#039;: &#039;&#039;, &#039;comments&#039;: &#039;&#039;, &#039;cost&#039;: &#039;&#039;, &#039;sys_mod_count&#039;: &#039;0&#039;, &#039;monitor&#039;: &#039;false&#039;, &#039;ip_address&#039;: &#039;192.168.51.53&#039;, &#039;model_id&#039;: &#039;80af727a07102010d42af03c7c1ed0e3&#039;, &#039;duplicate_of&#039;: &#039;&#039;, &#039;sys_tags&#039;: &#039;&#039;, &#039;cost_cc&#039;: &#039;USD&#039;, &#039;discovery_proto_type&#039;: &#039;&#039;, &#039;order_date&#039;: &#039;&#039;, &#039;schedule&#039;: &#039;&#039;, &#039;environment&#039;: &#039;production&#039;, &#039;due&#039;: &#039;&#039;, &#039;attested&#039;: &#039;false&#039;, &#039;location&#039;: &#039;&#039;, &#039;category&#039;: &#039;Hardware&#039;, &#039;fault_count&#039;: &#039;0&#039;, &#039;lease_id&#039;: &#039;&#039;}) \r\nTASK [sw1 didn&#039;t already exist, so create it] **********************************\r\nskipping: [localhost]\r\nTASK [If sw2 already exists, update it&#039;s configuration] ************************\r\nskipping: [localhost] =&gt; (item={&#039;attested_date&#039;: &#039;&#039;, &#039;can_switch&#039;: &#039;false&#039;, &#039;stack&#039;: &#039;false&#039;, &#039;operational_status&#039;: &#039;operational&#039;, &#039;cpu_manufacturer&#039;: &#039;&#039;, &#039;sys_updated_on&#039;: &#039;2021-04-22 14:08:44&#039;, &#039;discovery_source&#039;: &#039;&#039;, &#039;first_discovered&#039;: &#039;&#039;, &#039;due_in&#039;: &#039;&#039;, &#039;can_partitionvlans&#039;: &#039;false&#039;, &#039;gl_account&#039;: &#039;&#039;, &#039;invoice_number&#039;: &#039;&#039;, &#039;sys_created_by&#039;: &#039;admin&#039;, &#039;ram&#039;: &#039;&#039;, &#039;warranty_expiration&#039;: &#039;&#039;, &#039;cpu_speed&#039;: &#039;&#039;, &#039;owned_by&#039;: &#039;&#039;, &#039;checked_out&#039;: &#039;&#039;, &#039;firmware_manufacturer&#039;: &#039;&#039;, &#039;disk_space&#039;: &#039;&#039;, &#039;sys_domain_path&#039;: &#039;\/&#039;, &#039;discovery_proto_id&#039;: &#039;&#039;, &#039;maintenance_schedule&#039;: &#039;&#039;, &#039;cost_center&#039;: &#039;&#039;, &#039;attested_by&#039;: &#039;&#039;, &#039;dns_domain&#039;: &#039;&#039;, &#039;assigned&#039;: &#039;&#039;, &#039;purchase_date&#039;: &#039;&#039;, &#039;short_description&#039;: &#039;1st lab switch&#039;, &#039;managed_by&#039;: &#039;&#039;, &#039;range&#039;: &#039;&#039;, &#039;firmware_version&#039;: &#039;&#039;, &#039;can_print&#039;: &#039;false&#039;, &#039;last_discovered&#039;: &#039;&#039;, &#039;ports&#039;: &#039;&#039;, &#039;sys_class_name&#039;: &#039;cmdb_ci_ip_switch&#039;, &#039;cpu_count&#039;: &#039;1&#039;, &#039;manufacturer&#039;: &#039;b7e831bdc0a80169015ae101f3c4d6cd&#039;, &#039;vendor&#039;: &#039;&#039;, &#039;can_route&#039;: &#039;false&#039;, &#039;model_number&#039;: &#039;3550&#039;, &#039;assigned_to&#039;: &#039;&#039;, &#039;start_date&#039;: &#039;&#039;, &#039;bandwidth&#039;: &#039;&#039;, &#039;serial_number&#039;: &#039;111&#039;, &#039;support_group&#039;: &#039;&#039;, &#039;correlation_id&#039;: &#039;&#039;, &#039;unverified&#039;: &#039;false&#039;, &#039;attributes&#039;: &#039;&#039;, &#039;asset&#039;: &#039;48af32ba07102010d42af03c7c1ed03b&#039;, &#039;skip_sync&#039;: &#039;false&#039;, &#039;device_type&#039;: &#039;switch&#039;, &#039;attestation_score&#039;: &#039;&#039;, &#039;sys_updated_by&#039;: &#039;admin&#039;, &#039;sys_created_on&#039;: &#039;2020-11-09 16:36:58&#039;, &#039;cpu_type&#039;: &#039;&#039;, &#039;sys_domain&#039;: &#039;global&#039;, &#039;install_date&#039;: &#039;&#039;, &#039;asset_tag&#039;: &#039;P1000611&#039;, &#039;hardware_substatus&#039;: &#039;&#039;, &#039;fqdn&#039;: &#039;&#039;, &#039;stack_mode&#039;: &#039;&#039;, &#039;change_control&#039;: &#039;&#039;, &#039;internet_facing&#039;: &#039;true&#039;, &#039;physical_interface_count&#039;: &#039;&#039;, &#039;delivery_date&#039;: &#039;&#039;, &#039;hardware_status&#039;: &#039;installed&#039;, &#039;channels&#039;: &#039;&#039;, &#039;install_status&#039;: &#039;installed&#039;, &#039;supported_by&#039;: &#039;&#039;, &#039;name&#039;: &#039;sw1&#039;, &#039;subcategory&#039;: &#039;IP&#039;, &#039;default_gateway&#039;: &#039;&#039;, &#039;assignment_group&#039;: &#039;&#039;, &#039;managed_by_group&#039;: &#039;&#039;, &#039;can_hub&#039;: &#039;false&#039;, &#039;sys_id&#039;: &#039;145f7e7a07102010d42af03c7c1ed06f&#039;, &#039;po_number&#039;: &#039;&#039;, &#039;checked_in&#039;: &#039;&#039;, &#039;sys_class_path&#039;: &#039;\/!!\/!2\/!!\/!,&#039;, &#039;mac_address&#039;: &#039;&#039;, &#039;company&#039;: &#039;&#039;, &#039;justification&#039;: &#039;&#039;, &#039;department&#039;: &#039;&#039;, &#039;snmp_sys_location&#039;: &#039;&#039;, &#039;comments&#039;: &#039;&#039;, &#039;cost&#039;: &#039;&#039;, &#039;sys_mod_count&#039;: &#039;1&#039;, &#039;monitor&#039;: &#039;false&#039;, &#039;ip_address&#039;: &#039;192.168.51.51&#039;, &#039;model_id&#039;: &#039;80af727a07102010d42af03c7c1ed0e3&#039;, &#039;duplicate_of&#039;: &#039;&#039;, &#039;sys_tags&#039;: &#039;&#039;, &#039;cost_cc&#039;: &#039;USD&#039;, &#039;discovery_proto_type&#039;: &#039;&#039;, &#039;order_date&#039;: &#039;&#039;, &#039;schedule&#039;: &#039;&#039;, &#039;environment&#039;: &#039;production&#039;, &#039;due&#039;: &#039;&#039;, &#039;attested&#039;: &#039;false&#039;, &#039;location&#039;: &#039;&#039;, &#039;category&#039;: &#039;Hardware&#039;, &#039;fault_count&#039;: &#039;0&#039;, &#039;lease_id&#039;: &#039;&#039;}) \r\nchanged: [localhost] =&gt; (item={&#039;attested_date&#039;: &#039;&#039;, &#039;can_switch&#039;: &#039;false&#039;, &#039;stack&#039;: &#039;false&#039;, &#039;operational_status&#039;: &#039;operational&#039;, &#039;cpu_manufacturer&#039;: &#039;&#039;, &#039;sys_updated_on&#039;: &#039;2021-04-22 14:08:48&#039;, &#039;discovery_source&#039;: &#039;&#039;, &#039;first_discovered&#039;: &#039;&#039;, &#039;due_in&#039;: &#039;&#039;, &#039;can_partitionvlans&#039;: &#039;false&#039;, &#039;gl_account&#039;: &#039;&#039;, &#039;invoice_number&#039;: &#039;&#039;, &#039;sys_created_by&#039;: &#039;admin&#039;, &#039;ram&#039;: &#039;&#039;, &#039;warranty_expiration&#039;: &#039;&#039;, &#039;cpu_speed&#039;: &#039;&#039;, &#039;owned_by&#039;: &#039;&#039;, &#039;checked_out&#039;: &#039;&#039;, &#039;firmware_manufacturer&#039;: &#039;&#039;, &#039;disk_space&#039;: &#039;&#039;, &#039;sys_domain_path&#039;: &#039;\/&#039;, &#039;discovery_proto_id&#039;: &#039;&#039;, &#039;maintenance_schedule&#039;: &#039;&#039;, &#039;cost_center&#039;: &#039;&#039;, &#039;attested_by&#039;: &#039;&#039;, &#039;dns_domain&#039;: &#039;&#039;, &#039;assigned&#039;: &#039;&#039;, &#039;purchase_date&#039;: &#039;&#039;, &#039;short_description&#039;: &#039;2nd lab switch&#039;, &#039;managed_by&#039;: &#039;&#039;, &#039;range&#039;: &#039;&#039;, &#039;firmware_version&#039;: &#039;&#039;, &#039;can_print&#039;: &#039;false&#039;, &#039;last_discovered&#039;: &#039;&#039;, &#039;ports&#039;: &#039;&#039;, &#039;sys_class_name&#039;: &#039;cmdb_ci_ip_switch&#039;, &#039;cpu_count&#039;: &#039;1&#039;, &#039;manufacturer&#039;: &#039;b7e831bdc0a80169015ae101f3c4d6cd&#039;, &#039;vendor&#039;: &#039;&#039;, &#039;can_route&#039;: &#039;false&#039;, &#039;model_number&#039;: &#039;3550&#039;, &#039;assigned_to&#039;: &#039;&#039;, &#039;start_date&#039;: &#039;&#039;, &#039;bandwidth&#039;: &#039;&#039;, &#039;serial_number&#039;: &#039;222&#039;, &#039;support_group&#039;: &#039;&#039;, &#039;correlation_id&#039;: &#039;&#039;, &#039;unverified&#039;: &#039;false&#039;, &#039;attributes&#039;: &#039;&#039;, &#039;asset&#039;: &#039;0d81877607102010d42af03c7c1ed0e9&#039;, &#039;skip_sync&#039;: &#039;false&#039;, &#039;device_type&#039;: &#039;&#039;, &#039;attestation_score&#039;: &#039;&#039;, &#039;sys_updated_by&#039;: &#039;admin&#039;, &#039;sys_created_on&#039;: &#039;2020-11-09 16:45:14&#039;, &#039;cpu_type&#039;: &#039;&#039;, &#039;sys_domain&#039;: &#039;global&#039;, &#039;install_date&#039;: &#039;&#039;, &#039;asset_tag&#039;: &#039;P1000612&#039;, &#039;hardware_substatus&#039;: &#039;&#039;, &#039;fqdn&#039;: &#039;&#039;, &#039;stack_mode&#039;: &#039;&#039;, &#039;change_control&#039;: &#039;&#039;, &#039;internet_facing&#039;: &#039;true&#039;, &#039;physical_interface_count&#039;: &#039;&#039;, &#039;delivery_date&#039;: &#039;&#039;, &#039;hardware_status&#039;: &#039;installed&#039;, &#039;channels&#039;: &#039;&#039;, &#039;install_status&#039;: &#039;installed&#039;, &#039;supported_by&#039;: &#039;&#039;, &#039;name&#039;: &#039;sw2&#039;, &#039;subcategory&#039;: &#039;IP&#039;, &#039;default_gateway&#039;: &#039;&#039;, &#039;assignment_group&#039;: &#039;&#039;, &#039;managed_by_group&#039;: &#039;&#039;, &#039;can_hub&#039;: &#039;false&#039;, &#039;sys_id&#039;: &#039;5a61877607102010d42af03c7c1ed0f3&#039;, &#039;po_number&#039;: &#039;&#039;, &#039;checked_in&#039;: &#039;&#039;, &#039;sys_class_path&#039;: &#039;\/!!\/!2\/!!\/!,&#039;, &#039;mac_address&#039;: &#039;&#039;, &#039;company&#039;: &#039;&#039;, &#039;justification&#039;: &#039;&#039;, &#039;department&#039;: &#039;&#039;, &#039;snmp_sys_location&#039;: &#039;&#039;, &#039;comments&#039;: &#039;&#039;, &#039;cost&#039;: &#039;&#039;, &#039;sys_mod_count&#039;: &#039;1&#039;, &#039;monitor&#039;: &#039;false&#039;, &#039;ip_address&#039;: &#039;192.168.51.52&#039;, &#039;model_id&#039;: &#039;80af727a07102010d42af03c7c1ed0e3&#039;, &#039;duplicate_of&#039;: &#039;&#039;, &#039;sys_tags&#039;: &#039;&#039;, &#039;cost_cc&#039;: &#039;USD&#039;, &#039;discovery_proto_type&#039;: &#039;&#039;, &#039;order_date&#039;: &#039;&#039;, &#039;schedule&#039;: &#039;&#039;, &#039;environment&#039;: &#039;production&#039;, &#039;due&#039;: &#039;&#039;, &#039;attested&#039;: &#039;false&#039;, &#039;location&#039;: &#039;&#039;, &#039;category&#039;: &#039;Hardware&#039;, &#039;fault_count&#039;: &#039;0&#039;, &#039;lease_id&#039;: &#039;&#039;})\r\nskipping: [localhost] =&gt; (item={&#039;attested_date&#039;: &#039;&#039;, &#039;can_switch&#039;: &#039;false&#039;, &#039;stack&#039;: &#039;false&#039;, &#039;operational_status&#039;: &#039;operational&#039;, &#039;cpu_manufacturer&#039;: &#039;&#039;, &#039;sys_updated_on&#039;: &#039;2021-04-21 17:44:42&#039;, &#039;discovery_source&#039;: &#039;&#039;, &#039;first_discovered&#039;: &#039;&#039;, &#039;due_in&#039;: &#039;&#039;, &#039;can_partitionvlans&#039;: &#039;false&#039;, &#039;gl_account&#039;: &#039;&#039;, &#039;invoice_number&#039;: &#039;&#039;, &#039;sys_created_by&#039;: &#039;admin&#039;, &#039;ram&#039;: &#039;&#039;, &#039;warranty_expiration&#039;: &#039;&#039;, &#039;cpu_speed&#039;: &#039;&#039;, &#039;owned_by&#039;: &#039;&#039;, &#039;checked_out&#039;: &#039;&#039;, &#039;firmware_manufacturer&#039;: &#039;&#039;, &#039;disk_space&#039;: &#039;&#039;, &#039;sys_domain_path&#039;: &#039;\/&#039;, &#039;discovery_proto_id&#039;: &#039;&#039;, &#039;maintenance_schedule&#039;: &#039;&#039;, &#039;cost_center&#039;: &#039;&#039;, &#039;attested_by&#039;: &#039;&#039;, &#039;dns_domain&#039;: &#039;&#039;, &#039;assigned&#039;: &#039;&#039;, &#039;purchase_date&#039;: &#039;&#039;, &#039;short_description&#039;: &#039;3rd lab switch&#039;, &#039;managed_by&#039;: &#039;&#039;, &#039;range&#039;: &#039;&#039;, &#039;firmware_version&#039;: &#039;&#039;, &#039;can_print&#039;: &#039;false&#039;, &#039;last_discovered&#039;: &#039;&#039;, &#039;ports&#039;: &#039;&#039;, &#039;sys_class_name&#039;: &#039;cmdb_ci_ip_switch&#039;, &#039;cpu_count&#039;: &#039;1&#039;, &#039;manufacturer&#039;: &#039;b7e831bdc0a80169015ae101f3c4d6cd&#039;, &#039;vendor&#039;: &#039;&#039;, &#039;can_route&#039;: &#039;false&#039;, &#039;model_number&#039;: &#039;3550&#039;, &#039;assigned_to&#039;: &#039;&#039;, &#039;start_date&#039;: &#039;&#039;, &#039;bandwidth&#039;: &#039;&#039;, &#039;serial_number&#039;: &#039;333&#039;, &#039;support_group&#039;: &#039;&#039;, &#039;correlation_id&#039;: &#039;&#039;, &#039;unverified&#039;: &#039;false&#039;, &#039;attributes&#039;: &#039;&#039;, &#039;asset&#039;: &#039;514aea5f07632010d42af03c7c1ed010&#039;, &#039;skip_sync&#039;: &#039;false&#039;, &#039;device_type&#039;: &#039;&#039;, &#039;attestation_score&#039;: &#039;&#039;, &#039;sys_updated_by&#039;: &#039;admin&#039;, &#039;sys_created_on&#039;: &#039;2021-04-21 17:44:42&#039;, &#039;cpu_type&#039;: &#039;&#039;, &#039;sys_domain&#039;: &#039;global&#039;, &#039;install_date&#039;: &#039;&#039;, &#039;asset_tag&#039;: &#039;P1000613&#039;, &#039;hardware_substatus&#039;: &#039;&#039;, &#039;fqdn&#039;: &#039;&#039;, &#039;stack_mode&#039;: &#039;&#039;, &#039;change_control&#039;: &#039;&#039;, &#039;internet_facing&#039;: &#039;true&#039;, &#039;physical_interface_count&#039;: &#039;&#039;, &#039;delivery_date&#039;: &#039;&#039;, &#039;hardware_status&#039;: &#039;installed&#039;, &#039;channels&#039;: &#039;&#039;, &#039;install_status&#039;: &#039;installed&#039;, &#039;supported_by&#039;: &#039;&#039;, &#039;name&#039;: &#039;sw3&#039;, &#039;subcategory&#039;: &#039;IP&#039;, &#039;default_gateway&#039;: &#039;&#039;, &#039;assignment_group&#039;: &#039;&#039;, &#039;managed_by_group&#039;: &#039;&#039;, &#039;can_hub&#039;: &#039;false&#039;, &#039;sys_id&#039;: &#039;954aea5f07632010d42af03c7c1ed00f&#039;, &#039;po_number&#039;: &#039;&#039;, &#039;checked_in&#039;: &#039;&#039;, &#039;sys_class_path&#039;: &#039;\/!!\/!2\/!!\/!,&#039;, &#039;mac_address&#039;: &#039;&#039;, &#039;company&#039;: &#039;&#039;, &#039;justification&#039;: &#039;&#039;, &#039;department&#039;: &#039;&#039;, &#039;snmp_sys_location&#039;: &#039;&#039;, &#039;comments&#039;: &#039;&#039;, &#039;cost&#039;: &#039;&#039;, &#039;sys_mod_count&#039;: &#039;0&#039;, &#039;monitor&#039;: &#039;false&#039;, &#039;ip_address&#039;: &#039;192.168.51.53&#039;, &#039;model_id&#039;: &#039;80af727a07102010d42af03c7c1ed0e3&#039;, &#039;duplicate_of&#039;: &#039;&#039;, &#039;sys_tags&#039;: &#039;&#039;, &#039;cost_cc&#039;: &#039;USD&#039;, &#039;discovery_proto_type&#039;: &#039;&#039;, &#039;order_date&#039;: &#039;&#039;, &#039;schedule&#039;: &#039;&#039;, &#039;environment&#039;: &#039;production&#039;, &#039;due&#039;: &#039;&#039;, &#039;attested&#039;: &#039;false&#039;, &#039;location&#039;: &#039;&#039;, &#039;category&#039;: &#039;Hardware&#039;, &#039;fault_count&#039;: &#039;0&#039;, &#039;lease_id&#039;: &#039;&#039;}) \r\nTASK [sw2 didn&#039;t already exist, so create it] **********************************\r\nskipping: [localhost]\r\nTASK [If sw3 already exists, update it&#039;s configuration] ************************\r\nskipping: [localhost] =&gt; (item={&#039;attested_date&#039;: &#039;&#039;, &#039;can_switch&#039;: &#039;false&#039;, &#039;stack&#039;: &#039;false&#039;, &#039;operational_status&#039;: &#039;operational&#039;, &#039;cpu_manufacturer&#039;: &#039;&#039;, &#039;sys_updated_on&#039;: &#039;2021-04-22 14:08:44&#039;, &#039;discovery_source&#039;: &#039;&#039;, &#039;first_discovered&#039;: &#039;&#039;, &#039;due_in&#039;: &#039;&#039;, &#039;can_partitionvlans&#039;: &#039;false&#039;, &#039;gl_account&#039;: &#039;&#039;, &#039;invoice_number&#039;: &#039;&#039;, &#039;sys_created_by&#039;: &#039;admin&#039;, &#039;ram&#039;: &#039;&#039;, &#039;warranty_expiration&#039;: &#039;&#039;, &#039;cpu_speed&#039;: &#039;&#039;, &#039;owned_by&#039;: &#039;&#039;, &#039;checked_out&#039;: &#039;&#039;, &#039;firmware_manufacturer&#039;: &#039;&#039;, &#039;disk_space&#039;: &#039;&#039;, &#039;sys_domain_path&#039;: &#039;\/&#039;, &#039;discovery_proto_id&#039;: &#039;&#039;, &#039;maintenance_schedule&#039;: &#039;&#039;, &#039;cost_center&#039;: &#039;&#039;, &#039;attested_by&#039;: &#039;&#039;, &#039;dns_domain&#039;: &#039;&#039;, &#039;assigned&#039;: &#039;&#039;, &#039;purchase_date&#039;: &#039;&#039;, &#039;short_description&#039;: &#039;1st lab switch&#039;, &#039;managed_by&#039;: &#039;&#039;, &#039;range&#039;: &#039;&#039;, &#039;firmware_version&#039;: &#039;&#039;, &#039;can_print&#039;: &#039;false&#039;, &#039;last_discovered&#039;: &#039;&#039;, &#039;ports&#039;: &#039;&#039;, &#039;sys_class_name&#039;: &#039;cmdb_ci_ip_switch&#039;, &#039;cpu_count&#039;: &#039;1&#039;, &#039;manufacturer&#039;: &#039;b7e831bdc0a80169015ae101f3c4d6cd&#039;, &#039;vendor&#039;: &#039;&#039;, &#039;can_route&#039;: &#039;false&#039;, &#039;model_number&#039;: &#039;3550&#039;, &#039;assigned_to&#039;: &#039;&#039;, &#039;start_date&#039;: &#039;&#039;, &#039;bandwidth&#039;: &#039;&#039;, &#039;serial_number&#039;: &#039;111&#039;, &#039;support_group&#039;: &#039;&#039;, &#039;correlation_id&#039;: &#039;&#039;, &#039;unverified&#039;: &#039;false&#039;, &#039;attributes&#039;: &#039;&#039;, &#039;asset&#039;: &#039;48af32ba07102010d42af03c7c1ed03b&#039;, &#039;skip_sync&#039;: &#039;false&#039;, &#039;device_type&#039;: &#039;switch&#039;, &#039;attestation_score&#039;: &#039;&#039;, &#039;sys_updated_by&#039;: &#039;admin&#039;, &#039;sys_created_on&#039;: &#039;2020-11-09 16:36:58&#039;, &#039;cpu_type&#039;: &#039;&#039;, &#039;sys_domain&#039;: &#039;global&#039;, &#039;install_date&#039;: &#039;&#039;, &#039;asset_tag&#039;: &#039;P1000611&#039;, &#039;hardware_substatus&#039;: &#039;&#039;, &#039;fqdn&#039;: &#039;&#039;, &#039;stack_mode&#039;: &#039;&#039;, &#039;change_control&#039;: &#039;&#039;, &#039;internet_facing&#039;: &#039;true&#039;, &#039;physical_interface_count&#039;: &#039;&#039;, &#039;delivery_date&#039;: &#039;&#039;, &#039;hardware_status&#039;: &#039;installed&#039;, &#039;channels&#039;: &#039;&#039;, &#039;install_status&#039;: &#039;installed&#039;, &#039;supported_by&#039;: &#039;&#039;, &#039;name&#039;: &#039;sw1&#039;, &#039;subcategory&#039;: &#039;IP&#039;, &#039;default_gateway&#039;: &#039;&#039;, &#039;assignment_group&#039;: &#039;&#039;, &#039;managed_by_group&#039;: &#039;&#039;, &#039;can_hub&#039;: &#039;false&#039;, &#039;sys_id&#039;: &#039;145f7e7a07102010d42af03c7c1ed06f&#039;, &#039;po_number&#039;: &#039;&#039;, &#039;checked_in&#039;: &#039;&#039;, &#039;sys_class_path&#039;: &#039;\/!!\/!2\/!!\/!,&#039;, &#039;mac_address&#039;: &#039;&#039;, &#039;company&#039;: &#039;&#039;, &#039;justification&#039;: &#039;&#039;, &#039;department&#039;: &#039;&#039;, &#039;snmp_sys_location&#039;: &#039;&#039;, &#039;comments&#039;: &#039;&#039;, &#039;cost&#039;: &#039;&#039;, &#039;sys_mod_count&#039;: &#039;1&#039;, &#039;monitor&#039;: &#039;false&#039;, &#039;ip_address&#039;: &#039;192.168.51.51&#039;, &#039;model_id&#039;: &#039;80af727a07102010d42af03c7c1ed0e3&#039;, &#039;duplicate_of&#039;: &#039;&#039;, &#039;sys_tags&#039;: &#039;&#039;, &#039;cost_cc&#039;: &#039;USD&#039;, &#039;discovery_proto_type&#039;: &#039;&#039;, &#039;order_date&#039;: &#039;&#039;, &#039;schedule&#039;: &#039;&#039;, &#039;environment&#039;: &#039;production&#039;, &#039;due&#039;: &#039;&#039;, &#039;attested&#039;: &#039;false&#039;, &#039;location&#039;: &#039;&#039;, &#039;category&#039;: &#039;Hardware&#039;, &#039;fault_count&#039;: &#039;0&#039;, &#039;lease_id&#039;: &#039;&#039;}) \r\nskipping: [localhost] =&gt; (item={&#039;attested_date&#039;: &#039;&#039;, &#039;can_switch&#039;: &#039;false&#039;, &#039;stack&#039;: &#039;false&#039;, &#039;operational_status&#039;: &#039;operational&#039;, &#039;cpu_manufacturer&#039;: &#039;&#039;, &#039;sys_updated_on&#039;: &#039;2021-04-22 14:08:48&#039;, &#039;discovery_source&#039;: &#039;&#039;, &#039;first_discovered&#039;: &#039;&#039;, &#039;due_in&#039;: &#039;&#039;, &#039;can_partitionvlans&#039;: &#039;false&#039;, &#039;gl_account&#039;: &#039;&#039;, &#039;invoice_number&#039;: &#039;&#039;, &#039;sys_created_by&#039;: &#039;admin&#039;, &#039;ram&#039;: &#039;&#039;, &#039;warranty_expiration&#039;: &#039;&#039;, &#039;cpu_speed&#039;: &#039;&#039;, &#039;owned_by&#039;: &#039;&#039;, &#039;checked_out&#039;: &#039;&#039;, &#039;firmware_manufacturer&#039;: &#039;&#039;, &#039;disk_space&#039;: &#039;&#039;, &#039;sys_domain_path&#039;: &#039;\/&#039;, &#039;discovery_proto_id&#039;: &#039;&#039;, &#039;maintenance_schedule&#039;: &#039;&#039;, &#039;cost_center&#039;: &#039;&#039;, &#039;attested_by&#039;: &#039;&#039;, &#039;dns_domain&#039;: &#039;&#039;, &#039;assigned&#039;: &#039;&#039;, &#039;purchase_date&#039;: &#039;&#039;, &#039;short_description&#039;: &#039;2nd lab switch&#039;, &#039;managed_by&#039;: &#039;&#039;, &#039;range&#039;: &#039;&#039;, &#039;firmware_version&#039;: &#039;&#039;, &#039;can_print&#039;: &#039;false&#039;, &#039;last_discovered&#039;: &#039;&#039;, &#039;ports&#039;: &#039;&#039;, &#039;sys_class_name&#039;: &#039;cmdb_ci_ip_switch&#039;, &#039;cpu_count&#039;: &#039;1&#039;, &#039;manufacturer&#039;: &#039;b7e831bdc0a80169015ae101f3c4d6cd&#039;, &#039;vendor&#039;: &#039;&#039;, &#039;can_route&#039;: &#039;false&#039;, &#039;model_number&#039;: &#039;3550&#039;, &#039;assigned_to&#039;: &#039;&#039;, &#039;start_date&#039;: &#039;&#039;, &#039;bandwidth&#039;: &#039;&#039;, &#039;serial_number&#039;: &#039;222&#039;, &#039;support_group&#039;: &#039;&#039;, &#039;correlation_id&#039;: &#039;&#039;, &#039;unverified&#039;: &#039;false&#039;, &#039;attributes&#039;: &#039;&#039;, &#039;asset&#039;: &#039;0d81877607102010d42af03c7c1ed0e9&#039;, &#039;skip_sync&#039;: &#039;false&#039;, &#039;device_type&#039;: &#039;&#039;, &#039;attestation_score&#039;: &#039;&#039;, &#039;sys_updated_by&#039;: &#039;admin&#039;, &#039;sys_created_on&#039;: &#039;2020-11-09 16:45:14&#039;, &#039;cpu_type&#039;: &#039;&#039;, &#039;sys_domain&#039;: &#039;global&#039;, &#039;install_date&#039;: &#039;&#039;, &#039;asset_tag&#039;: &#039;P1000612&#039;, &#039;hardware_substatus&#039;: &#039;&#039;, &#039;fqdn&#039;: &#039;&#039;, &#039;stack_mode&#039;: &#039;&#039;, &#039;change_control&#039;: &#039;&#039;, &#039;internet_facing&#039;: &#039;true&#039;, &#039;physical_interface_count&#039;: &#039;&#039;, &#039;delivery_date&#039;: &#039;&#039;, &#039;hardware_status&#039;: &#039;installed&#039;, &#039;channels&#039;: &#039;&#039;, &#039;install_status&#039;: &#039;installed&#039;, &#039;supported_by&#039;: &#039;&#039;, &#039;name&#039;: &#039;sw2&#039;, &#039;subcategory&#039;: &#039;IP&#039;, &#039;default_gateway&#039;: &#039;&#039;, &#039;assignment_group&#039;: &#039;&#039;, &#039;managed_by_group&#039;: &#039;&#039;, &#039;can_hub&#039;: &#039;false&#039;, &#039;sys_id&#039;: &#039;5a61877607102010d42af03c7c1ed0f3&#039;, &#039;po_number&#039;: &#039;&#039;, &#039;checked_in&#039;: &#039;&#039;, &#039;sys_class_path&#039;: &#039;\/!!\/!2\/!!\/!,&#039;, &#039;mac_address&#039;: &#039;&#039;, &#039;company&#039;: &#039;&#039;, &#039;justification&#039;: &#039;&#039;, &#039;department&#039;: &#039;&#039;, &#039;snmp_sys_location&#039;: &#039;&#039;, &#039;comments&#039;: &#039;&#039;, &#039;cost&#039;: &#039;&#039;, &#039;sys_mod_count&#039;: &#039;1&#039;, &#039;monitor&#039;: &#039;false&#039;, &#039;ip_address&#039;: &#039;192.168.51.52&#039;, &#039;model_id&#039;: &#039;80af727a07102010d42af03c7c1ed0e3&#039;, &#039;duplicate_of&#039;: &#039;&#039;, &#039;sys_tags&#039;: &#039;&#039;, &#039;cost_cc&#039;: &#039;USD&#039;, &#039;discovery_proto_type&#039;: &#039;&#039;, &#039;order_date&#039;: &#039;&#039;, &#039;schedule&#039;: &#039;&#039;, &#039;environment&#039;: &#039;production&#039;, &#039;due&#039;: &#039;&#039;, &#039;attested&#039;: &#039;false&#039;, &#039;location&#039;: &#039;&#039;, &#039;category&#039;: &#039;Hardware&#039;, &#039;fault_count&#039;: &#039;0&#039;, &#039;lease_id&#039;: &#039;&#039;}) \r\nchanged: [localhost] =&gt; (item={&#039;attested_date&#039;: &#039;&#039;, &#039;can_switch&#039;: &#039;false&#039;, &#039;stack&#039;: &#039;false&#039;, &#039;operational_status&#039;: &#039;operational&#039;, &#039;cpu_manufacturer&#039;: &#039;&#039;, &#039;sys_updated_on&#039;: &#039;2021-04-21 17:44:42&#039;, &#039;discovery_source&#039;: &#039;&#039;, &#039;first_discovered&#039;: &#039;&#039;, &#039;due_in&#039;: &#039;&#039;, &#039;can_partitionvlans&#039;: &#039;false&#039;, &#039;gl_account&#039;: &#039;&#039;, &#039;invoice_number&#039;: &#039;&#039;, &#039;sys_created_by&#039;: &#039;admin&#039;, &#039;ram&#039;: &#039;&#039;, &#039;warranty_expiration&#039;: &#039;&#039;, &#039;cpu_speed&#039;: &#039;&#039;, &#039;owned_by&#039;: &#039;&#039;, &#039;checked_out&#039;: &#039;&#039;, &#039;firmware_manufacturer&#039;: &#039;&#039;, &#039;disk_space&#039;: &#039;&#039;, &#039;sys_domain_path&#039;: &#039;\/&#039;, &#039;discovery_proto_id&#039;: &#039;&#039;, &#039;maintenance_schedule&#039;: &#039;&#039;, &#039;cost_center&#039;: &#039;&#039;, &#039;attested_by&#039;: &#039;&#039;, &#039;dns_domain&#039;: &#039;&#039;, &#039;assigned&#039;: &#039;&#039;, &#039;purchase_date&#039;: &#039;&#039;, &#039;short_description&#039;: &#039;3rd lab switch&#039;, &#039;managed_by&#039;: &#039;&#039;, &#039;range&#039;: &#039;&#039;, &#039;firmware_version&#039;: &#039;&#039;, &#039;can_print&#039;: &#039;false&#039;, &#039;last_discovered&#039;: &#039;&#039;, &#039;ports&#039;: &#039;&#039;, &#039;sys_class_name&#039;: &#039;cmdb_ci_ip_switch&#039;, &#039;cpu_count&#039;: &#039;1&#039;, &#039;manufacturer&#039;: &#039;b7e831bdc0a80169015ae101f3c4d6cd&#039;, &#039;vendor&#039;: &#039;&#039;, &#039;can_route&#039;: &#039;false&#039;, &#039;model_number&#039;: &#039;3550&#039;, &#039;assigned_to&#039;: &#039;&#039;, &#039;start_date&#039;: &#039;&#039;, &#039;bandwidth&#039;: &#039;&#039;, &#039;serial_number&#039;: &#039;333&#039;, &#039;support_group&#039;: &#039;&#039;, &#039;correlation_id&#039;: &#039;&#039;, &#039;unverified&#039;: &#039;false&#039;, &#039;attributes&#039;: &#039;&#039;, &#039;asset&#039;: &#039;514aea5f07632010d42af03c7c1ed010&#039;, &#039;skip_sync&#039;: &#039;false&#039;, &#039;device_type&#039;: &#039;&#039;, &#039;attestation_score&#039;: &#039;&#039;, &#039;sys_updated_by&#039;: &#039;admin&#039;, &#039;sys_created_on&#039;: &#039;2021-04-21 17:44:42&#039;, &#039;cpu_type&#039;: &#039;&#039;, &#039;sys_domain&#039;: &#039;global&#039;, &#039;install_date&#039;: &#039;&#039;, &#039;asset_tag&#039;: &#039;P1000613&#039;, &#039;hardware_substatus&#039;: &#039;&#039;, &#039;fqdn&#039;: &#039;&#039;, &#039;stack_mode&#039;: &#039;&#039;, &#039;change_control&#039;: &#039;&#039;, &#039;internet_facing&#039;: &#039;true&#039;, &#039;physical_interface_count&#039;: &#039;&#039;, &#039;delivery_date&#039;: &#039;&#039;, &#039;hardware_status&#039;: &#039;installed&#039;, &#039;channels&#039;: &#039;&#039;, &#039;install_status&#039;: &#039;installed&#039;, &#039;supported_by&#039;: &#039;&#039;, &#039;name&#039;: &#039;sw3&#039;, &#039;subcategory&#039;: &#039;IP&#039;, &#039;default_gateway&#039;: &#039;&#039;, &#039;assignment_group&#039;: &#039;&#039;, &#039;managed_by_group&#039;: &#039;&#039;, &#039;can_hub&#039;: &#039;false&#039;, &#039;sys_id&#039;: &#039;954aea5f07632010d42af03c7c1ed00f&#039;, &#039;po_number&#039;: &#039;&#039;, &#039;checked_in&#039;: &#039;&#039;, &#039;sys_class_path&#039;: &#039;\/!!\/!2\/!!\/!,&#039;, &#039;mac_address&#039;: &#039;&#039;, &#039;company&#039;: &#039;&#039;, &#039;justification&#039;: &#039;&#039;, &#039;department&#039;: &#039;&#039;, &#039;snmp_sys_location&#039;: &#039;&#039;, &#039;comments&#039;: &#039;&#039;, &#039;cost&#039;: &#039;&#039;, &#039;sys_mod_count&#039;: &#039;0&#039;, &#039;monitor&#039;: &#039;false&#039;, &#039;ip_address&#039;: &#039;192.168.51.53&#039;, &#039;model_id&#039;: &#039;80af727a07102010d42af03c7c1ed0e3&#039;, &#039;duplicate_of&#039;: &#039;&#039;, &#039;sys_tags&#039;: &#039;&#039;, &#039;cost_cc&#039;: &#039;USD&#039;, &#039;discovery_proto_type&#039;: &#039;&#039;, &#039;order_date&#039;: &#039;&#039;, &#039;schedule&#039;: &#039;&#039;, &#039;environment&#039;: &#039;production&#039;, &#039;due&#039;: &#039;&#039;, &#039;attested&#039;: &#039;false&#039;, &#039;location&#039;: &#039;&#039;, &#039;category&#039;: &#039;Hardware&#039;, &#039;fault_count&#039;: &#039;0&#039;, &#039;lease_id&#039;: &#039;&#039;})\r\nTASK [sw3 didn&#039;t already exist, so create it] **********************************\r\nskipping: [localhost]\r\nTASK [If sw4 already exists, update it&#039;s configuration] ************************\r\nskipping: [localhost] =&gt; (item={&#039;attested_date&#039;: &#039;&#039;, &#039;can_switch&#039;: &#039;false&#039;, &#039;stack&#039;: &#039;false&#039;, &#039;operational_status&#039;: &#039;operational&#039;, &#039;cpu_manufacturer&#039;: &#039;&#039;, &#039;sys_updated_on&#039;: &#039;2021-04-22 14:08:44&#039;, &#039;discovery_source&#039;: &#039;&#039;, &#039;first_discovered&#039;: &#039;&#039;, &#039;due_in&#039;: &#039;&#039;, &#039;can_partitionvlans&#039;: &#039;false&#039;, &#039;gl_account&#039;: &#039;&#039;, &#039;invoice_number&#039;: &#039;&#039;, &#039;sys_created_by&#039;: &#039;admin&#039;, &#039;ram&#039;: &#039;&#039;, &#039;warranty_expiration&#039;: &#039;&#039;, &#039;cpu_speed&#039;: &#039;&#039;, &#039;owned_by&#039;: &#039;&#039;, &#039;checked_out&#039;: &#039;&#039;, &#039;firmware_manufacturer&#039;: &#039;&#039;, &#039;disk_space&#039;: &#039;&#039;, &#039;sys_domain_path&#039;: &#039;\/&#039;, &#039;discovery_proto_id&#039;: &#039;&#039;, &#039;maintenance_schedule&#039;: &#039;&#039;, &#039;cost_center&#039;: &#039;&#039;, &#039;attested_by&#039;: &#039;&#039;, &#039;dns_domain&#039;: &#039;&#039;, &#039;assigned&#039;: &#039;&#039;, &#039;purchase_date&#039;: &#039;&#039;, &#039;short_description&#039;: &#039;1st lab switch&#039;, &#039;managed_by&#039;: &#039;&#039;, &#039;range&#039;: &#039;&#039;, &#039;firmware_version&#039;: &#039;&#039;, &#039;can_print&#039;: &#039;false&#039;, &#039;last_discovered&#039;: &#039;&#039;, &#039;ports&#039;: &#039;&#039;, &#039;sys_class_name&#039;: &#039;cmdb_ci_ip_switch&#039;, &#039;cpu_count&#039;: &#039;1&#039;, &#039;manufacturer&#039;: &#039;b7e831bdc0a80169015ae101f3c4d6cd&#039;, &#039;vendor&#039;: &#039;&#039;, &#039;can_route&#039;: &#039;false&#039;, &#039;model_number&#039;: &#039;3550&#039;, &#039;assigned_to&#039;: &#039;&#039;, &#039;start_date&#039;: &#039;&#039;, &#039;bandwidth&#039;: &#039;&#039;, &#039;serial_number&#039;: &#039;111&#039;, &#039;support_group&#039;: &#039;&#039;, &#039;correlation_id&#039;: &#039;&#039;, &#039;unverified&#039;: &#039;false&#039;, &#039;attributes&#039;: &#039;&#039;, &#039;asset&#039;: &#039;48af32ba07102010d42af03c7c1ed03b&#039;, &#039;skip_sync&#039;: &#039;false&#039;, &#039;device_type&#039;: &#039;switch&#039;, &#039;attestation_score&#039;: &#039;&#039;, &#039;sys_updated_by&#039;: &#039;admin&#039;, &#039;sys_created_on&#039;: &#039;2020-11-09 16:36:58&#039;, &#039;cpu_type&#039;: &#039;&#039;, &#039;sys_domain&#039;: &#039;global&#039;, &#039;install_date&#039;: &#039;&#039;, &#039;asset_tag&#039;: &#039;P1000611&#039;, &#039;hardware_substatus&#039;: &#039;&#039;, &#039;fqdn&#039;: &#039;&#039;, &#039;stack_mode&#039;: &#039;&#039;, &#039;change_control&#039;: &#039;&#039;, &#039;internet_facing&#039;: &#039;true&#039;, &#039;physical_interface_count&#039;: &#039;&#039;, &#039;delivery_date&#039;: &#039;&#039;, &#039;hardware_status&#039;: &#039;installed&#039;, &#039;channels&#039;: &#039;&#039;, &#039;install_status&#039;: &#039;installed&#039;, &#039;supported_by&#039;: &#039;&#039;, &#039;name&#039;: &#039;sw1&#039;, &#039;subcategory&#039;: &#039;IP&#039;, &#039;default_gateway&#039;: &#039;&#039;, &#039;assignment_group&#039;: &#039;&#039;, &#039;managed_by_group&#039;: &#039;&#039;, &#039;can_hub&#039;: &#039;false&#039;, &#039;sys_id&#039;: &#039;145f7e7a07102010d42af03c7c1ed06f&#039;, &#039;po_number&#039;: &#039;&#039;, &#039;checked_in&#039;: &#039;&#039;, &#039;sys_class_path&#039;: &#039;\/!!\/!2\/!!\/!,&#039;, &#039;mac_address&#039;: &#039;&#039;, &#039;company&#039;: &#039;&#039;, &#039;justification&#039;: &#039;&#039;, &#039;department&#039;: &#039;&#039;, &#039;snmp_sys_location&#039;: &#039;&#039;, &#039;comments&#039;: &#039;&#039;, &#039;cost&#039;: &#039;&#039;, &#039;sys_mod_count&#039;: &#039;1&#039;, &#039;monitor&#039;: &#039;false&#039;, &#039;ip_address&#039;: &#039;192.168.51.51&#039;, &#039;model_id&#039;: &#039;80af727a07102010d42af03c7c1ed0e3&#039;, &#039;duplicate_of&#039;: &#039;&#039;, &#039;sys_tags&#039;: &#039;&#039;, &#039;cost_cc&#039;: &#039;USD&#039;, &#039;discovery_proto_type&#039;: &#039;&#039;, &#039;order_date&#039;: &#039;&#039;, &#039;schedule&#039;: &#039;&#039;, &#039;environment&#039;: &#039;production&#039;, &#039;due&#039;: &#039;&#039;, &#039;attested&#039;: &#039;false&#039;, &#039;location&#039;: &#039;&#039;, &#039;category&#039;: &#039;Hardware&#039;, &#039;fault_count&#039;: &#039;0&#039;, &#039;lease_id&#039;: &#039;&#039;}) \r\nskipping: [localhost] =&gt; (item={&#039;attested_date&#039;: &#039;&#039;, &#039;can_switch&#039;: &#039;false&#039;, &#039;stack&#039;: &#039;false&#039;, &#039;operational_status&#039;: &#039;operational&#039;, &#039;cpu_manufacturer&#039;: &#039;&#039;, &#039;sys_updated_on&#039;: &#039;2021-04-22 14:08:48&#039;, &#039;discovery_source&#039;: &#039;&#039;, &#039;first_discovered&#039;: &#039;&#039;, &#039;due_in&#039;: &#039;&#039;, &#039;can_partitionvlans&#039;: &#039;false&#039;, &#039;gl_account&#039;: &#039;&#039;, &#039;invoice_number&#039;: &#039;&#039;, &#039;sys_created_by&#039;: &#039;admin&#039;, &#039;ram&#039;: &#039;&#039;, &#039;warranty_expiration&#039;: &#039;&#039;, &#039;cpu_speed&#039;: &#039;&#039;, &#039;owned_by&#039;: &#039;&#039;, &#039;checked_out&#039;: &#039;&#039;, &#039;firmware_manufacturer&#039;: &#039;&#039;, &#039;disk_space&#039;: &#039;&#039;, &#039;sys_domain_path&#039;: &#039;\/&#039;, &#039;discovery_proto_id&#039;: &#039;&#039;, &#039;maintenance_schedule&#039;: &#039;&#039;, &#039;cost_center&#039;: &#039;&#039;, &#039;attested_by&#039;: &#039;&#039;, &#039;dns_domain&#039;: &#039;&#039;, &#039;assigned&#039;: &#039;&#039;, &#039;purchase_date&#039;: &#039;&#039;, &#039;short_description&#039;: &#039;2nd lab switch&#039;, &#039;managed_by&#039;: &#039;&#039;, &#039;range&#039;: &#039;&#039;, &#039;firmware_version&#039;: &#039;&#039;, &#039;can_print&#039;: &#039;false&#039;, &#039;last_discovered&#039;: &#039;&#039;, &#039;ports&#039;: &#039;&#039;, &#039;sys_class_name&#039;: &#039;cmdb_ci_ip_switch&#039;, &#039;cpu_count&#039;: &#039;1&#039;, &#039;manufacturer&#039;: &#039;b7e831bdc0a80169015ae101f3c4d6cd&#039;, &#039;vendor&#039;: &#039;&#039;, &#039;can_route&#039;: &#039;false&#039;, &#039;model_number&#039;: &#039;3550&#039;, &#039;assigned_to&#039;: &#039;&#039;, &#039;start_date&#039;: &#039;&#039;, &#039;bandwidth&#039;: &#039;&#039;, &#039;serial_number&#039;: &#039;222&#039;, &#039;support_group&#039;: &#039;&#039;, &#039;correlation_id&#039;: &#039;&#039;, &#039;unverified&#039;: &#039;false&#039;, &#039;attributes&#039;: &#039;&#039;, &#039;asset&#039;: &#039;0d81877607102010d42af03c7c1ed0e9&#039;, &#039;skip_sync&#039;: &#039;false&#039;, &#039;device_type&#039;: &#039;&#039;, &#039;attestation_score&#039;: &#039;&#039;, &#039;sys_updated_by&#039;: &#039;admin&#039;, &#039;sys_created_on&#039;: &#039;2020-11-09 16:45:14&#039;, &#039;cpu_type&#039;: &#039;&#039;, &#039;sys_domain&#039;: &#039;global&#039;, &#039;install_date&#039;: &#039;&#039;, &#039;asset_tag&#039;: &#039;P1000612&#039;, &#039;hardware_substatus&#039;: &#039;&#039;, &#039;fqdn&#039;: &#039;&#039;, &#039;stack_mode&#039;: &#039;&#039;, &#039;change_control&#039;: &#039;&#039;, &#039;internet_facing&#039;: &#039;true&#039;, &#039;physical_interface_count&#039;: &#039;&#039;, &#039;delivery_date&#039;: &#039;&#039;, &#039;hardware_status&#039;: &#039;installed&#039;, &#039;channels&#039;: &#039;&#039;, &#039;install_status&#039;: &#039;installed&#039;, &#039;supported_by&#039;: &#039;&#039;, &#039;name&#039;: &#039;sw2&#039;, &#039;subcategory&#039;: &#039;IP&#039;, &#039;default_gateway&#039;: &#039;&#039;, &#039;assignment_group&#039;: &#039;&#039;, &#039;managed_by_group&#039;: &#039;&#039;, &#039;can_hub&#039;: &#039;false&#039;, &#039;sys_id&#039;: &#039;5a61877607102010d42af03c7c1ed0f3&#039;, &#039;po_number&#039;: &#039;&#039;, &#039;checked_in&#039;: &#039;&#039;, &#039;sys_class_path&#039;: &#039;\/!!\/!2\/!!\/!,&#039;, &#039;mac_address&#039;: &#039;&#039;, &#039;company&#039;: &#039;&#039;, &#039;justification&#039;: &#039;&#039;, &#039;department&#039;: &#039;&#039;, &#039;snmp_sys_location&#039;: &#039;&#039;, &#039;comments&#039;: &#039;&#039;, &#039;cost&#039;: &#039;&#039;, &#039;sys_mod_count&#039;: &#039;1&#039;, &#039;monitor&#039;: &#039;false&#039;, &#039;ip_address&#039;: &#039;192.168.51.52&#039;, &#039;model_id&#039;: &#039;80af727a07102010d42af03c7c1ed0e3&#039;, &#039;duplicate_of&#039;: &#039;&#039;, &#039;sys_tags&#039;: &#039;&#039;, &#039;cost_cc&#039;: &#039;USD&#039;, &#039;discovery_proto_type&#039;: &#039;&#039;, &#039;order_date&#039;: &#039;&#039;, &#039;schedule&#039;: &#039;&#039;, &#039;environment&#039;: &#039;production&#039;, &#039;due&#039;: &#039;&#039;, &#039;attested&#039;: &#039;false&#039;, &#039;location&#039;: &#039;&#039;, &#039;category&#039;: &#039;Hardware&#039;, &#039;fault_count&#039;: &#039;0&#039;, &#039;lease_id&#039;: &#039;&#039;}) \r\nskipping: [localhost] =&gt; (item={&#039;attested_date&#039;: &#039;&#039;, &#039;can_switch&#039;: &#039;false&#039;, &#039;stack&#039;: &#039;false&#039;, &#039;operational_status&#039;: &#039;operational&#039;, &#039;cpu_manufacturer&#039;: &#039;&#039;, &#039;sys_updated_on&#039;: &#039;2021-04-21 17:44:42&#039;, &#039;discovery_source&#039;: &#039;&#039;, &#039;first_discovered&#039;: &#039;&#039;, &#039;due_in&#039;: &#039;&#039;, &#039;can_partitionvlans&#039;: &#039;false&#039;, &#039;gl_account&#039;: &#039;&#039;, &#039;invoice_number&#039;: &#039;&#039;, &#039;sys_created_by&#039;: &#039;admin&#039;, &#039;ram&#039;: &#039;&#039;, &#039;warranty_expiration&#039;: &#039;&#039;, &#039;cpu_speed&#039;: &#039;&#039;, &#039;owned_by&#039;: &#039;&#039;, &#039;checked_out&#039;: &#039;&#039;, &#039;firmware_manufacturer&#039;: &#039;&#039;, &#039;disk_space&#039;: &#039;&#039;, &#039;sys_domain_path&#039;: &#039;\/&#039;, &#039;discovery_proto_id&#039;: &#039;&#039;, &#039;maintenance_schedule&#039;: &#039;&#039;, &#039;cost_center&#039;: &#039;&#039;, &#039;attested_by&#039;: &#039;&#039;, &#039;dns_domain&#039;: &#039;&#039;, &#039;assigned&#039;: &#039;&#039;, &#039;purchase_date&#039;: &#039;&#039;, &#039;short_description&#039;: &#039;3rd lab switch&#039;, &#039;managed_by&#039;: &#039;&#039;, &#039;range&#039;: &#039;&#039;, &#039;firmware_version&#039;: &#039;&#039;, &#039;can_print&#039;: &#039;false&#039;, &#039;last_discovered&#039;: &#039;&#039;, &#039;ports&#039;: &#039;&#039;, &#039;sys_class_name&#039;: &#039;cmdb_ci_ip_switch&#039;, &#039;cpu_count&#039;: &#039;1&#039;, &#039;manufacturer&#039;: &#039;b7e831bdc0a80169015ae101f3c4d6cd&#039;, &#039;vendor&#039;: &#039;&#039;, &#039;can_route&#039;: &#039;false&#039;, &#039;model_number&#039;: &#039;3550&#039;, &#039;assigned_to&#039;: &#039;&#039;, &#039;start_date&#039;: &#039;&#039;, &#039;bandwidth&#039;: &#039;&#039;, &#039;serial_number&#039;: &#039;333&#039;, &#039;support_group&#039;: &#039;&#039;, &#039;correlation_id&#039;: &#039;&#039;, &#039;unverified&#039;: &#039;false&#039;, &#039;attributes&#039;: &#039;&#039;, &#039;asset&#039;: &#039;514aea5f07632010d42af03c7c1ed010&#039;, &#039;skip_sync&#039;: &#039;false&#039;, &#039;device_type&#039;: &#039;&#039;, &#039;attestation_score&#039;: &#039;&#039;, &#039;sys_updated_by&#039;: &#039;admin&#039;, &#039;sys_created_on&#039;: &#039;2021-04-21 17:44:42&#039;, &#039;cpu_type&#039;: &#039;&#039;, &#039;sys_domain&#039;: &#039;global&#039;, &#039;install_date&#039;: &#039;&#039;, &#039;asset_tag&#039;: &#039;P1000613&#039;, &#039;hardware_substatus&#039;: &#039;&#039;, &#039;fqdn&#039;: &#039;&#039;, &#039;stack_mode&#039;: &#039;&#039;, &#039;change_control&#039;: &#039;&#039;, &#039;internet_facing&#039;: &#039;true&#039;, &#039;physical_interface_count&#039;: &#039;&#039;, &#039;delivery_date&#039;: &#039;&#039;, &#039;hardware_status&#039;: &#039;installed&#039;, &#039;channels&#039;: &#039;&#039;, &#039;install_status&#039;: &#039;installed&#039;, &#039;supported_by&#039;: &#039;&#039;, &#039;name&#039;: &#039;sw3&#039;, &#039;subcategory&#039;: &#039;IP&#039;, &#039;default_gateway&#039;: &#039;&#039;, &#039;assignment_group&#039;: &#039;&#039;, &#039;managed_by_group&#039;: &#039;&#039;, &#039;can_hub&#039;: &#039;false&#039;, &#039;sys_id&#039;: &#039;954aea5f07632010d42af03c7c1ed00f&#039;, &#039;po_number&#039;: &#039;&#039;, &#039;checked_in&#039;: &#039;&#039;, &#039;sys_class_path&#039;: &#039;\/!!\/!2\/!!\/!,&#039;, &#039;mac_address&#039;: &#039;&#039;, &#039;company&#039;: &#039;&#039;, &#039;justification&#039;: &#039;&#039;, &#039;department&#039;: &#039;&#039;, &#039;snmp_sys_location&#039;: &#039;&#039;, &#039;comments&#039;: &#039;&#039;, &#039;cost&#039;: &#039;&#039;, &#039;sys_mod_count&#039;: &#039;0&#039;, &#039;monitor&#039;: &#039;false&#039;, &#039;ip_address&#039;: &#039;192.168.51.53&#039;, &#039;model_id&#039;: &#039;80af727a07102010d42af03c7c1ed0e3&#039;, &#039;duplicate_of&#039;: &#039;&#039;, &#039;sys_tags&#039;: &#039;&#039;, &#039;cost_cc&#039;: &#039;USD&#039;, &#039;discovery_proto_type&#039;: &#039;&#039;, &#039;order_date&#039;: &#039;&#039;, &#039;schedule&#039;: &#039;&#039;, &#039;environment&#039;: &#039;production&#039;, &#039;due&#039;: &#039;&#039;, &#039;attested&#039;: &#039;false&#039;, &#039;location&#039;: &#039;&#039;, &#039;category&#039;: &#039;Hardware&#039;, &#039;fault_count&#039;: &#039;0&#039;, &#039;lease_id&#039;: &#039;&#039;}) \r\nTASK [sw4 didn&#039;t already exist, so create it] **********************************\r\nchanged: [localhost]\r\nPLAY RECAP *********************************************************************\r\nlocalhost                  : ok=10   changed=4    unreachable=0    failed=0    skipped=4    rescued=0    ignored=0   <\/code><\/pre>\n<p>This doesn&#8217;t format super well, but you can see the changed options for each one.<\/p>\n<p>Here&#8217;s the view after the run:<br \/>\n<a href=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_4.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_4-300x149.png\" alt=\"\" width=\"300\" height=\"149\" class=\"aligncenter size-medium wp-image-6741\" srcset=\"https:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_4-300x149.png 300w, https:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_4-768x382.png 768w, https:\/\/gregsowell.com\/wp-content\/uploads\/2021\/04\/Screenshot_4.png 972w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>So my existing devices were updated and new devices were added.<\/p>\n<h2>Conclusion<\/h2>\n<p>So this isn&#8217;t earth shattering, but could be useful if you need to do a one-time or perhaps a regular CMDB update\/sync from another system.  AAP could pull the CMDB entries from one system, then push them into SNOW.  Let me know if you have any questions or comments and happy automating.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It seems these days that at least half of my customers are using SNOW as their ITSM, so I&#8217;m always looking for ways to\u2026<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6734","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/6734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6734"}],"version-history":[{"count":6,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/6734\/revisions"}],"predecessor-version":[{"id":6744,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/6734\/revisions\/6744"}],"wp:attachment":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}