@@ -10,7 +10,7 @@ title: Network inventory protocol
10
10
### Specification
11
11
12
12
{
13
- 'id': ''string'',
13
+ 'id': ''string'',
14
14
'type': 'netinventory',
15
15
'workers': ''integer'',
16
16
'targets': [
@@ -255,6 +255,7 @@ title: Network inventory protocol
255
255
256
256
<!-- CARTRIDGES node can content any meaningful printer cartridge info
257
257
and it is up to the server to interpret given keys and values -->
258
+ <!-- this element is deprecated, CONSUMABLES should be used instead -->
258
259
<!ELEMENT CARTRIDGES ANY>
259
260
<!-- Following lines are well-known samples, so they are kept as comment
260
261
<!ELEMENT CARTRIDGEBLACK (#PCDATA)>
@@ -285,6 +286,18 @@ title: Network inventory protocol
285
286
<!ELEMENT CARTRIDGEPHOTOBLACK (#PCDATA)>
286
287
End of samples -->
287
288
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
+
288
301
<!-- netinventory module version(string) -->
289
302
<!ELEMENT MODULEVERSION (#PCDATA)>
290
303
<!-- server process ID (integer) -->
0 commit comments