Notifications

27 views

Description

Duplicate cmdb_print_queue_instance records created each time the "Windows - Printers" sensor run. 

Steps to Reproduce

 

01) Discover a windows server that has multiple Win32_TCPIPPrinterPort with same Name

Workaround

  1. Delete duplicate cmdb_print_queue_instance records
  2. Navigate to sensor discovery_sensor.do?sys_id=e2ca913b0a0a0ba5003efbc5a56431bf
  3. Update query in findPrintQueue() to use both name and addr, final function version as follows

    findPrintQueue: function(name, addr) {
    var gr = new GlideRecord("cmdb_ci_print_queue");
    gr.addQuery("ip_address", addr);
    // Following line added:
    gr.addQuery("name", name);
    gr.query();
    if (!gr.next()) {
    gr.setValue("name", name);
    gr.setValue("ip_address", addr);
    gr.insert();
    }

    return gr.sys_id;
    }


Related Problem: PRB1340775

Seen In

There is no data to report.

Intended Fix Version

Orlando

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 11:43:23
Published:2019-04-29