Mark, there are couple bugs regarding system links in models\m_printer.php
[code]Line 88: if ($input->ip_address > "") {
should be
Line 88: if ($input->man_ip_address > "") {[/code]
and
[code]Line 121: "$details->system_id",
should be
Line 121: "$linked_sys",[/code]
As mentioned in my previous post, I had problems with duplicate printers. So I modified printer processing like this:
1. system_key was changed from hostname+deviceid to hostname+model in audit script for non-network printers. I noticed that there were often 2 or more printers with the same model on one host because of different deviceid e.g. hp_LaserJet_1160 and hp_LaserJet_1160_(Copy_1). So I decided to use printer model instead of deviceid to get more accurate physical printer count.
2. Omit timestamps when checking if audited network printer (with IP address) already exists in DB. Network printers would always have different timestamps because they get timestamps from different audited systems. So if timestamps are used, you get the same printer inserted as many times as many audited computers use it. For checking if printer has been audited already I use only system_key (which is IP address for network printers) and printer model.
Maybe somebody will find this useful