MAC Address not updating - Printer Discovery

akashfinning
Tera Contributor

Hi Everyone, 

 

Need your help. We have been Discovering printers in our organisation but what we have found the MAC address is not getting updated with record even though I can see in entries at down there is a network adapter associated with each printer.

I have been discussed this with ServiceNow team and they advised there is a need of customisation in SNMP classify Probe.

Can you please help what customisation we required if anyone has done this in past?

 

Regards,

Akash

#ITOM #CMDB #Printers #MAC Address

1 ACCEPTED SOLUTION

Amit Gujarathi
Giga Sage
Giga Sage

Hi @akashfinning ,
I trust you are doing great.

  1. Navigate to the ServiceNow instance as an administrator.
  2. Go to the "SNMP Classify Probes" module.
  3. Locate the probe associated with printers, typically named something like "Printer Discovery Probe."
  4. Open the probe for editing.

Within the SNMP classify probe customization, you'll need to add logic to extract and update the MAC address for each discovered printer. Here's a general outline of the steps involved:

  1. Identify the SNMP OID (Object Identifier) used to retrieve the MAC address information from the printer device. You can refer to the printer's documentation or consult with your network team to obtain this OID.

  2. Inside the SNMP classify probe, find the section where it processes and populates the discovered printer record.

  3. Add code to extract the MAC address from the SNMP response and update the corresponding field in the printer record. Here's an example using JavaScript syntax:

// Extract the MAC address from the SNMP response
var macAddress = snmpResponse.get("<MAC_ADDRESS_OID>");

// Update the MAC address field in the printer record
current.u_mac_address = macAddress;

Was this answer helpful?


Please consider marking it correct or helpful.


Your feedback helps us improve!


Thank you!


Regards,


Amit Gujrathi



View solution in original post

5 REPLIES 5

akashfinning
Tera Contributor

@Amit Gujarathi 
Any update for me ?