@@ -10,7 +10,7 @@ title: Network inventory protocol
1010### Specification
1111
1212 {
13- 'id': ''string'',
13+ 'id': ''string'',
1414 'type': 'netinventory',
1515 'workers': ''integer'',
1616 'targets': [
@@ -255,6 +255,7 @@ title: Network inventory protocol
255255
256256 <!-- CARTRIDGES node can content any meaningful printer cartridge info
257257 and it is up to the server to interpret given keys and values -->
258+ <!-- this element is deprecated, CONSUMABLES should be used instead -->
258259 <!ELEMENT CARTRIDGES ANY>
259260 <!-- Following lines are well-known samples, so they are kept as comment
260261 <!ELEMENT CARTRIDGEBLACK (#PCDATA)>
@@ -285,6 +286,18 @@ title: Network inventory protocol
285286 <!ELEMENT CARTRIDGEPHOTOBLACK (#PCDATA)>
286287 End of samples -->
287288
289+ <!-- consumables list ->
290+ <!ELEMENT CONSUMABLES (CONSUMABLE)+>
291+
292+ <!-- a single consumable ->
293+ <!ELEMENT CONSUMABLE (TYPE, COLOR, VALUE, UNIT)>
294+ <!ELEMENT TYPE (#PCDATA)>
295+ <!ELEMENT COLOR (#PCDATA)>
296+ <!ELEMENT VALUE (#PCDATA)>
297+ <!ELEMENT UNIT (#PCDATA)>
298+ <!-- use MAX if available, or assume it's 100 when UNIT is not set -->
299+ <!ELEMENT MAX (#PCDATA)>
300+
288301 <!-- netinventory module version(string) -->
289302 <!ELEMENT MODULEVERSION (#PCDATA)>
290303 <!-- server process ID (integer) -->
0 commit comments