| 197 | # |
| 198 | # Some examples and comments provided by Bob Martel from csuohio.edu |
| 199 | # |
| 200 | # For several printers I could not get the page count using snmpget. I |
| 201 | # resorted to snmpwalk: |
| 202 | # |
| 203 | # requester: external(/opt/local/net-snmp/bin/snmpwalk -v 1 -Cc -c public %(printer)s | grep mib-2.43.10.2.1.4.1.1 | cut -d " " -f4) |
| 204 | # |
| 205 | # The last example is still more ugly, some of the printers only provided |
| 206 | # their counters without names, but at least always on the same line: |
| 207 | # |
| 208 | # requester: external(/opt/local/net-snmp/bin/snmpwalk -v 1 -Cc -c public -Ov %(printer)s | grep Counter32 | tail -2 | head -1 | cut -d " " -f2) |
| 209 | # |
| 210 | # |