Having started in the industry as a Help Desk, I often found one of the responsibilities has always been asset tracking and management.
While many tools do provide asset syncing and reporting tool for computers serial,etc I found them lacking for the other pieces such as display monitors.
I set out to solve that void in my shop by helping our Help Desk easily identify and solve the problem.
The idea was to retrieve the serial number of a connected monitor each time a computer submitted and inventory update.
With a few lines of code, I was able to achieve just that.
The code parses through system Profiler and retrieves the display serial numbers, should there be more than 1 display attached, the result will grow and show all the serial numbers it finds.
The first displayed serial represents the main display and the rest follows.
This code has been very useful in my shop to easily identify who had what display.
The serial number is only revealed when the monitor is connected via HDMI, Thunderbolt or DVI, sorry no VGA.
The code is available on my github and while it is ready to be deployed into Casper, it can easily be tweaked for other reporting tools.