Is there are any way to find a printer status using java socket program? This program need to identified printer status. such as
- Printer ON/OFF/IDEAL.
- Current Job.
- Paper level in try.
- toner leave.
I used javax.print API, this help me to print a documents in the printer and it list down 4 attributes
printer-is-accepting-jobs: accepting-jobs
printer-name: myPrinter
queued-job-count: 0
color-supported: not-supported
some guys ask me to use snmp4j or LPR to know the status.
i wrote an application using snmp. i couldn't success on it. You can find the code form following link snmp application. In this code(Line no 38 SNMPManager client = new SNMPManager("udp:127.0.0.1/161");
we need to give the ip address of the printer. so i gave tcp/ip:127.0.0.1/161) i got an exception Exception in thread "main" java.lang.IllegalArgumentException: Address type tcp/ip unknown
, i expecting a help to solve this.