Notifications

47 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.

Fixed In

Orlando

Associated Community Threads

There is no data to report.

Article Information

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