SNMP Printers and Powershell/Javascript
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2013 12:55 PM
hi All,
I'm a new admin in the SN World (long time HPSM one though) so please bare with me.
We have large number of Zebra and Intermec printers in our environment that I have taught Discovery how to identify using their OIDs. It now correctly creates printer records for them however Discovery is unable to determine their serial #s. Most of these devices support HTTP and I can lookup their serial #s on their web pages and that leads me to my question. Would it be possible to fire a Powershell script or Javascript within the SNMP - Identify probe to retrieve the serial # from their web pages?
If so could someone please give me a high level overview of what I need to do within the probes and sensors?
I believe the basic steps would be to
- duplicate the existing SNMP - Identity probe and sensor
- then add the new powershell or javascript probes and sensors to the new identity probe
I can figure out the Javascript/Powershell to retrieve the serial #s.
thanks for any assistance.
Aaron
- Labels:
-
Discovery
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2013 01:59 PM
You can trigger any type of probe off of a classifier, but I'm not sure if you want to spend all the time writing a powershell script to pull back a network printer serial number.
Upload the necessary MIB, if it isn't there already, into something like iReason MIB Browser and track down the exact path to the serial number. It should be available somewhere in the tree. The SNMP - PDU probe/sensor combo should give you everything you need to write that custom probe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2016 10:17 AM
Hi Aaron
Did you ever figure this out? I know 3 1/2 years later might be a bit of a long time to have given it some thought, but I'm a bit at a loss.
I was able to write an SNMP probe/sensor to retrieve the serial numbers, however the problem with the Zebra MIBs (yes, there are at least 2) is that the only serial number field that I can find in one of them -- ...esi.general.genSerialNumber does not match up with the one on the device...sort of. It seems as though there are 2 serial numbers on the device. genSerialNumber matches one of them, but it's NOT the one reported on the printer web page. That is the other one.
The other MIB doesn't even have a serial number field. The closest I can find is ...zebra.zbrGeneralInfo.zbrGeneralUniqueId. Unfortunately I don't have one of those printers nearby to check. The web pages for these printers don't show a serial number.
I guess the moral is that Zebra printers (or at least their MIBs) suck. Unfortunately we have nearly 500 of them deployed, so I can't really just ignore them. Any assistance is greatly appreciated.
Thanks
Liam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2018 11:50 AM
Hi all,
can you please share what scripts you wrote to get Zebra printers recognized? we only found 1 Zebra MIB and so far it didn't make any difference in recognizing Zebra printers. The discovery fails on them....
Thank you,
Pavlo.