Trying to add MAC Address to Network Printer Discovery

Russ Hancock
Tera Expert

Hello,

I am trying to use Discovery (Helsinki) to discover Network Printers (using SNMP), but am not currently able to update the mac_address field on the cmdb.ci table.   I have added the following SNMP field to the "SNMP - Printing" probe and sensor, and the MAC Address is now being retrieved, but is still not being updated in the CMDB!   Can someone help?

Thanks

find_real_file.png

7 REPLIES 7

Ryan Zulli
ServiceNow Employee
ServiceNow Employee

Hi Russell,



Not knowing your level of experience with Discovery or SN...We highly suggest that you do not modify OOB probes/sensors directly as this will impact future upgrades.   That said you could create a new exploration probe, add the SNMP Field that you have highlighted above and then create the appropriate sensor to parse the payload and set the mac_address attribute.



Or



Most likely the network adapter related list is being populated with IP/Mac already - you could create a Business Rule to copy the MAC from the cmdb_ci_network_adapter table to the main printer form.


Thanks Ryan!   Since I am successfully using a Discovery Identifier based on the MAC Address, I believe you are correct that the MAC Address must already be getting populated in the network adapter related list.   I like your idea of simply creating a business rule...   I will try that and post back!


FYI, since the OOB "SNMP - Classify" sensor is already returning the Network Printer MAC Address that I added above to "SNMP Printing", I went ahead and removed that change.   I have also already defined a business rule for the cmdb_ci table, which is where our "mac_address" field is stored (as opposed to the cmdb_ci_network_adapter table).   Our cmdb_ci_printer table is inheriting this attribute from cmdb_ci.   In my business rule script on the CMDB_CI table, I see that all the rest of the attributes I need are available, except for "current.mac_address".   When I look at the XML returned from the Discovery "SNMP - Classify" sensor, I see the MAC address I need, but for some reason it isn't getting updated on the CMDB_CI table!  



Any ideas?



Thanks!


Send me or cut/paste your business rule here....