Yeah that works now.

I had to put an IF $Color ENDIF section as it seemed to try to work on an empty array element at some point (at the end of the loop I think). But otherwise, all working fine so far, output as follows:

 Code:
C:\Scripts>kix32 printerquery.kix
Processing INI value: Model
Xerox Phaser 6600DN
Processing INI value: Location
SSD Dispatch
Processing INI value: Cyan
1600
Processing INI value: Magenta
1200
Processing INI value: Yellow
1200
Processing INI value: Black
1800


This is just for a specific printer so far, that'll be the next task (looping through a list of printers). Well, actually, the next task is taking those color values returned by the snmpget and dividing them appropriately by the maximum values to get the percentage left. Fun!


Edited by kelp7 (2015-12-14 01:18 PM)