SNMP::NPAdmin

SNMP::NPAdmin is a high-level API to query printers via SNMP.
Download

SNMP::NPAdmin Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Robert Lehr
  • Publisher web site:
  • http://search.cpan.org/~bozzio/SNMP-NPAdmin-1.0/NPAdmin.pm

SNMP::NPAdmin Tags


SNMP::NPAdmin Description

SNMP::NPAdmin is a high-level API to query printers via SNMP. SNMP::NPAdmin is a high-level API to query printers via SNMP.SYNOPSIS # object-oriented $p= SNMP::NPAdmin->new( printer => 'porky', community => 'corpslp' ); printf "Your printer, %s, does%s support PCL.n", $printer, ( $p->pcl() ? "" : " not"); # procedural $p= npa_connect( printer => 'porky', community => 'corpslp' ); printf "Your printer, %s, does%s support PCL.n", $printer, ( npa_pcl( $p) ? "" : " not");The SNMP::NPAdmin package is a complete port of a SNMP/printer utility called npadmin that provides a high-level interface to query printers via SNMP without specific knowledge of SNMP MIBs or the printer's vendor-specific configuration.The original npadmin was written in C++ by Ben Woodard who continues to maintain it on SourceForge.The primary objective in this port is to have a maintainable and extensible version of the same functionality that the original npadmin provides.It is not optimized for performance at all; it is optimized for extensibility and maintainability. The original npadmin is very much extremely performance, the idea being to query many printers very quickly, especially since SNMP can be quite slow.To be fair, SNMP::NPAdmin might even be slow by Perl standards due to the extensive use of run-time compilation through the AUTOLOAD subroutine. I don't necessarily believe this since a programmer/sys-admin frequently will not use all of the available methods/subroutines which would typically be compiled during startup; given that only a few methods/subroutines will be called, then only a few will be compiled during the process's lifetime. Probably the difference in speed due to this will be insignificant either way.The design was chosen in order to get as much information into a maintainable table format and make the logic as generic as possible; not for speed.So this is your choice. If you have some unsupported printers and you want to be able to modify the code to support them then use SNMP::NPAdmin. If you need to support a lot of printers continuously with this kind of utility then you should use Ben Woodard's npadmin.Requirements:· Perl Requirements: · Perl


SNMP::NPAdmin Related Software