Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: Support custom responses e.g. to emulate HP JetDirect print server #29

Open
rathann opened this issue Jul 11, 2023 · 0 comments
Open

Comments

@rathann
Copy link

rathann commented Jul 11, 2023

mini-snmpd is mentioned in p910nd print server guide in OpenWRT documentation:
https://openwrt.org/docs/guide-user/services/print_server/p910nd.server#mini_snmpd

However, it's not useful without the patch mentioned there. Obviously, the solution documented there is printer model-specific, but it could be generalized, e.g. in form of text string specified in mini-snmpd configuration, i.e.

custom_response = { OID, response }

which could be set like below to emulate a HP JetDirect print server.

custom_response = { '0.1.3.6.1.4.1.11.2.3.9.1.1.7.0', "MFG:Hewlett-Packard;MDL:HP LaserJet 1020;CLS:PRINTER;DES:HP LaserJet 1020;SN:XXXXXXX;" }

Better yet, the response could be synthesized from USB scan, but I guess that's too specific.

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant