ndscheck as part of nightly check adds the printer that are not available on CEPS automatically, following is the message it display when it does so:
===
New Printer: 171.71.21.168
Unable to use DNS name
Generated device name from hwaddr: xx-c55527
Set ipaddr: 171.71.21.168
Cannot find printer model "deskjet 5800" in the model table
Set hwaddr: 00306ec55527
Set mem: 8192
Set duplexer: N
Set config source: manual
Set nic model: J6077A
Set nic version: B.25.31
Set serial number: MY3BE1N1K1TQ
Set loccode: SJ-13-1
===
However, "deskjet 5800" printer model doesn't exist on CEPS, eventually this device gets deleted by ndscheck as shown below:
===
Printer: xx-c55527 (ip=171.71.21.168)
Inactive, auto-created record
Auto created record - deleting
Execute: pradmin dev xx-c55527 del
===
Since CEPS doesn't delete the device record literally from its DB, such records continue to exist in CEPS main table, albiet its useless. This would lead to increase in DB size as well as unnecessary computation that takes place every night.
To address this problem, I think before adding such devices, it should first check whether the particular model being added exists on CEPS, if not, do not add the device itself. If device is not added, there is no need to delete it.
In addition to this, there should be one more condition that if the device is inactive and whether corresponding model exist OR not in CEPS main table, do not add the device.
Ticket moved from /p/ceps/feature-requests/316/
Can't be converted: