Any IT Dept. knows, that a correct inventory is almost impossible to accomplish. I decided that there had to be a way to force my co-workers into accurately moving assets and recording their changes in inventory. My solution was a two part process. Make the inventory very easy to access and edit and make the inventory an necessary part of our daily tasks. First I started by creating a new inventory.
We were using an old Access DB that had started to die. By the time I got hired, the forms in it were not functional. You had to actually edit the table itself. I couldn’t believe that any info in there could be correct. I decided to make a web based inventory instead. Using PHP & MYSQL, I was able to create the back-end pretty quickly. Then it came to style, I created an interactive map that you actually click on the rooms to see assets assigned to that space. It’s decent looking but I found people still weren’t using it like they should.
Then I got the idea to make an iPhone version. We could all get iPod touches and be able to move inventory while we’re standing at the machine. This would be fun also. After about a week I had something that looked like a native app. Everyone thought it was cool and simple to use. But I couldn’t see people using it too much more than they do the current DB. I decided to force them.
By making things dependent on the inventory being correct, you are forcing your fellow co-workers to get on the ball and make sure things are correct. How did I accomplish this? Printers. Yup, printers are assigned based on their room in inventory. The machine you moved isn’t get the correct printers? Does the computer name match it’s asset? Is the asset in the correct room in inventory? Oh, it’s not? Well move it to the correct room in inventory and then reboot the machine.
This has me thrilled knowing that the inventory will be correct, printers are easy to assign and everyone has the ability to do these tasks themselves. No you don’t need to call the network admin to add the printer. Just move it into the correct room. This solution is also cross platform. I created an applescript for the macs and my partner in crime created a VB script for the PC’s. Hopefully our days of chasing around incorrect inventory are over.
I thought it was important for people to not think of their inventory as a burden but maybe an important tool in keeping everything running. Our inventory is becoming the brain of every script we write. Active Directory used to be the bees knees but with both Macs and PCs, we need something more versitile. PHP & Mysql filled the bill perfectly.







We are looking at doing the same thing at my work, which is a school district. What did you use to create the back end for php and mysql? If at all possible can you post your table structure.
Thanks
Joe
We are just using an Xserve running Apache, MySQL & PHP. This formula has changed slightly. The PC side still references the inventory but the Mac side is using Open Directory. Our Macs generally don’t move or break. They are also the minority so we haven’t had issues with them. It’s the Dells that get recycled into other spaces, etc. that cause us the most grief. The table contains the following:
id, asset, model, room, department, user, serialThen the Windows guru crafted a script for the XP machines to reference the name in a web address like the following http://inventory/printer_lookup.php?asset=1205522
What they get back is just a room number. The script uses that to assign a printer. It’s hard to explain but hopefully you get the idea.
What you described is something I could really use. I’ve been searching for solutions to do inventory using QR code labels. Right now I use a combination of OCS Inventory and GLPI. It works pretty well but I need more options. Sadly I’m one of the few Mac admins that does not have an iPhone. I have an Android phone and have been working with some developers to get a QR code to web based inventory system. I couldn’t find any information on this article to download the software you made.
I’d be willing to help test and debug the software. I’m semi-fluent in PHP and more fluent in MySQL.
Thanks
- Trey