2023-06-11 Michal Josef Špaček * Makefile.PL, MANIFEST, ...: Packaging improvements 2022-11-23 Simon Leinen * test/get-cisco-power-usage.pl: New demo script 2017-06-24 Allan Jude * lib/SNMP_Session.pm: Apply Socket6 patch from FreeBSD ports 2008-03-19 Simon Leinen * lib/SNMP_Session.pm: Improved initialization of the flags for non-blocking behavior in receive_response_3(). The __DIE__ and __WARN__ signal handlers should be bound to the defaults, because the caller might be binding those and get in our way. Also, we only want to compute the flags once, on initialization. 2007-12-22 Simon Leinen * lib/SNMP_util.pm, lib/SNMP_Session.pm, lib/BER.pm: Upgraded to Artistic License 2.0. Copyright notice updated for 2008. * Artistic: Upgraded to Artistic License 2.0, from http://svn.perl.org/viewcvs/parrot/trunk/LICENSE?view=markup&rev=19096 2007-11-01 Simon Leinen * lib/SNMP_util.pm: New MIB parsing code from Mike Mitchell. 2007-10-13 Simon Leinen * lib/SNMP_Session.pm ($VERSION): Upgraded to 1.11, to pick up change to SNMP_util.pm. * changes.html: Document loop detection fix in SNMP_util.pm. * faq.html, index.html: Updated my e-mail address. * README, README.SNMP_util, lib/SNMP_Session.pm, lib/SNMP_util.pm, changes.html: Changed Tobi Oetiker's mail address. * README, index.html: Changed MRTG URL. * lib/SNMP_util.pm: [All changes from Mike Mitchell] Global replace || => or, && => and, to avoid precedence errors. (snmpwalk_flg): Improved loop detection. 2007-10-13 Simon Leinen * lib/SNMP_Session.pm ($VERSION): Upgraded to 1.11, to pick up change to SNMP_util.pm. * README, README.SNMP_util, changes.html, lib/SNMP_Session.pm: Changed Tobi Oetiker's mail address. * lib/SNMP_util.pm: [All changes from Mike Mitchell] Changed Tobi Oetiker's mail address. Global replace || => or, && => and, to avoid precedence errors. (snmpwalk_flg): Improved loop detection. * README: Changed MRTG URL. 2007-05-18 Simon Leinen * README, changes.html, index.html: Updated copyright. * lib/SNMP_util.pm (Check_OID): Fix regexp for qualified OID case (Mike Mitchell). 2007-05-03 Simon Leinen * lib/SNMP_Session.pm: Added Mike Fischer as a contributor. ($VERSION): Incremented to 1.10. (receive_response_3): Added optional "dont_block" argument. If this is present and non-zero, pass MSG_DONTWAIT to the recv() call. MSG_DONTWAIT is wrapped in an eval, to avoid breaking the code on systems that don't have the flag. (request_response_5): Pass dont_block=1 to receive_response_3. According to Mike Fisher, Linux sometimes blocks on recv() even though a select() for readability has returned, for example when a checksum fails. 2007-05-03 Simon Leinen * lib/SNMP_Session.pm: Added Mike Fischer as a contributor. ($VERSION): Incremented to 1.10. (receive_response_3): Added optional "dont_block" argument. If this is present and non-zero, pass MSG_DONTWAIT to the recv() call. MSG_DONTWAIT is wrapped in an eval, to avoid breaking the code on systems that don't have the flag. (request_response_5): Pass dont_block=1 to receive_response_3. According to Mike Fisher, Linux sometimes blocks on recv() even though a select() for readability has returned, for example when a checksum fails. 2007-01-06 Simon Leinen * lib/BER.pm: Updated copyright notice. (pretty_print): Use PDU names according to RFC3416. 2006-12-21 Simon Leinen * test/cricket-genconf-sensor: Try to install newly generated configuration, where possible. * test/cricket-genconf-sensor: Added header comment. * test/cricket-genconf-sensor: New script. 2006-12-15 Simon Leinen * test/entls (router_pretty_name): New subroutine, greps RANCID configuration file for `hostname' command. Caches the result so that files are only opened once. (print_physical): Use new forms of per-router defaults. * test/entls: Changed so that `-t' generates a Cricket configuration file to measure all transceivers that support DOM (Digital Optical Monitoring). This involves some structural changes. (print_phys_tree): Implemented in terms of the new `print_phys_tree_1'. (print_phys_tree_1): Maintain a stack of parent nodes when traversing the node tree. This stack is stored in each node's `parent_stack' slot, and can be used by the node class' `tostring' method. * test/entls ($print_vendor_type, $print_ent_physical_index): New variables. (Entity::PhysicalEntry::tostring): Added optional printing of index and entPhysicalVendorType, controlled by the above variables. 2006-10-12 Simon Leinen * lib/SNMP_Session.pm, lib/BER.pm: Updated copyright string. 2006-08-06 Simon Leinen * faq.html: Updated SNMPv3 text, mentioning that SNMPv3 is supported by MRTG 2.13 and up, using Net::SNMP. * lib/SNMP_util.pm (snmpLoad_OID_Cache): Strip single or double quotes around the OID and value. This allows us to read SunNet Manager OID files, which are also distributed by e.g. Cisco (ftp://ftp.cisco.com/pub/mibs/oid). Idea by Jan van Keulen, code cleanup by Mike Mitchell. 2006-07-13 Simon Leinen * lib/SNMP_Session.pm ($VERSION): Incremented to 1.08. * lib/SNMP_Session.pm (BEGIN): Bind the __DIE__ signal handler, so that detection of IPv6 capability works even when someone else has bound that handler. (Patch from Tobi Oetiker.) 2006-04-09 Simon Leinen * lib/SNMP_Table.pm (snmp_row_to_object): Added. 2006-04-05 Simon Leinen * test/trap-listener: Added prettyfication of OIDs. Suppressed less-than-useful output such as the trap community or the source port. 2006-03-16 Simon Leinen * README: Update copyright notice for 2006. 2006-02-17 Simon Leinen * test/entls: New "entls" script. 2006-01-20 Simon Leinen * test/qosls: Slight improvements in output for readability. * README: Credit Jan van Keulen. * lib/SNMP_Session.pm ($VERSION): Incremented to 1.08. * lib/SNMP_util.pm: Some fixes from Mike Mitchell, notably in the area of OID translation. 2006-01-17 Simon Leinen * test/find-admin-up-oper-down.pl: Find interfaces that are admin up but oper down. 2006-01-15 Simon Leinen * index.html: Fixed $session -> $trap_session in trap receipt example. Thanks to rahul shah for noticing this. 2005-12-10 Simon Leinen * lib/SNMP_Session.pm (SNMPv2c_Session::map_table_start_end): Slight reindentation. * lib/SNMP_Session.pm (SNMPv2c_Session::map_table_start_end): Call `SNMP_Session::index_compare' rather than just `index_compare'. 2005-11-05 Simon Leinen * faq.html: Upgraded SNMP URI syntax reference from draft to RFC 4088. 2005-07-12 Simon Leinen * changes.html: Added missing `mailto:'. * index.html, changes.html: README.SNMP_util -> dist/ 2005-07-08 Simon Leinen * lib/SNMP_util.pm (snmpwalk_flg): Bug fix by Laurent Girod. 2005-04-24 Simon Leinen * lib/SNMP_Table.pm: Repository : :ext:diotima:/home/leinen/CVS Module : SNMP_Session/lib Working dir: ~/perl/SNMP_Session/lib/ In directory .: Up-To-Date 1.38 BER.pm Up-To-Date 1.145 SNMP_Session.pm Added SNMP_Table.pm Up-To-Date 1.51 SNMP_util.pm --------------------- End --------------------- -- last cmd: cvs -f status -v -- 2005-03-29 Simon Leinen * test/qosls: *** empty log message *** * test/if-counters.pl: New options: -B to avoid use of get-bulk. -C to avoid use of curses. * test/bgpls: *** empty log message *** 2005-01-21 Simon Leinen * faq.html: Updated. 2004-12-19 Simon Leinen * test/msdpls: Added `-n' option to suppress resolving IP addresses. (usage): Made more readable. * test/msdpls (usage): Explain options. * test/msdpls (usage): Added. 2004-12-07 Simon Leinen * lib/SNMP_Session.pm: Removed strange formatting. 2004-11-05 Simon Leinen * test/sorrento-nest-list (%short_types): Added a few new types. (@nestmasters): Beginning of update. 2004-10-29 Simon Leinen * lib/SNMP_Session.pm: Require BER.pm 1.05. ($VERSION): Incremented to 1.07. * lib/SNMP_Session.pm: context_flag -> context_flag() to fix error message from "use strict subs" with recent Perl versions. Acknowledged Gerry Dalton. * changes.html: Documented 1.06 (SNMPv2 inform parsing) and 1.07 (strict subs bug with newer Perl versions) changes to SNMP_Session.pm. * MANIFEST (META.yml): Added by MakeMaker. * README: Added Gerry Dalton. 2004-09-17 Simon Leinen * test/if-counters.pl: Added `-s' option to look at L3 switching statistics on a Catalyst 6500 and probably some other Cisco L3 switches. (out_switching_engine): New subroutine. 2004-09-15 Simon Leinen * test/msdpls: Added `-d' flag. Added debugging output. 2004-09-04 Simon Leinen * lib/SNMP_Session.pm: Mention Andrew Cornford-Matheson in the header comment. * lib/SNMP_Session.pm ($VERSION): 1.05 -> 1.06. (decode_trap_request): Understand inform requests, too. 2004-09-02 Simon Leinen * README, index.html: CMU SNMP -> Net-SNMP. * index.html (decode_trap_request): Mention that it supports SNMPv2 informs, too. * README (Contributors): Added Andrew Cornford-Matheson. (decode_trap_request): Mention that it supports SNMPv2 informs, too. * changes.html: Upgraded to 1.05. 2004-08-23 Simon Leinen * index.html: New distribution site http://www.switch.ch/misc/leinen/snmp/perl/dist/ Made pointers more absolute. 2004-07-15 Simon Leinen * lib/BER.pm ($VERSION): Upped to 1.05. (BEGIN): Register various pretty printers. (pretty_printer): Simplified because most types are handled by registered pretty printers now. * lib/SNMP_Session.pm ($VERSION): Upped to 1.05. * changes.html: Document 1.04 change (in SNMP_util.pm). * ChangeLog: Updated using C-x v a. * index.html: Updated copyright years. * lib/SNMP_util.pm, lib/SNMP_Session.pm ($VERSION): Upped to 1.04. * lib/SNMP_util.pm (snmpget, snmpgetnext, snmpset): Use wantarray() to determine whether to return an array or just the first value. 2004-07-15 Simon Leinen * lib/SNMP_util.pm, lib/SNMP_Session.pm ($VERSION): Upped to 1.04. * lib/SNMP_util.pm (snmpget, snmpgetnext, snmpset): Use wantarray() to determine whether to return an array or just the first value. 2004-06-22 Simon Leinen * README: Updated copyright years. 2004-03-22 Simon Leinen * lib/SNMP_util.pm: Require recent versions of BER.pm and SNMP_Session.pm. ($VERSION): Incremented to 1.03. * lib/SNMP_Session.pm ($VERSION): Incremented to 1.03. * changes.html (SNMP_util.pm): Documented 1.03 fix. * lib/SNMP_util.pm (snmpwalk_flg): Added missing line from Mike Mitchell's patch. 2004-03-21 Simon Leinen * lib/SNMP_Session.pm ($VERSION): Incremented to 1.02. * changes.html: Document BER.pm 1.01 and 1.02. * lib/SNMP_Session.pm: Require BER.pm 1.01, because previous versions lack support for a variant of integer encoding. ($VERSION): Incremented to 1.01. 2004-02-17 Simon Leinen * BER-1.01-Mike-Mitchell.diff, BER-1.01-02.diff: Applied. * lib/SNMP_util.pm (snmpwalkhash, snmpwalk_flg): Implemented the new hash-reference argument. * changes.html: Documented BER.pm and SNMP_util.pm news in 1.02. * test/ber-test.pl: Use strict. Added function prototypes. * lib/BER.pm (%pretty_printer): New variable. This is a hash of pretty-printers per BER type code. It is manipulated by register_pretty_printer() and unregister_pretty_printer(), and used by pretty_print(). (register_pretty_printer, unregister_pretty_printer): New subroutines, contributed by Mike Mitchell. (pretty_print): If a pretty-printer has been registered for the type code, call it. (encode_intlike): In the Math::BigInt case, copy the integer before taking its bmod(), because bmod() is destructive. * README.SNMP_util: Document additional optional `hash ref' argument to snmpwalkhash(). 2004-02-08 Simon Leinen * lib/BER.pm (decode_intlike_s): Use decode_length(). (decode_length): Accept an optional second argument, specifying the offset into the first argument at which to begin parsing. This eliminates a substr() operation for every object. The callers have been adapted accordingly. * README: Added Milen Pavlov. 2003-12-14 Simon Leinen * lib/SNMP_Session.pm ($VERSION): 0.99 -> 1.00. * changes.html: 0.100 -> 1.00. * test/iftop: Added support for 64-bit counters. * lib/SNMP_Session.pm ($default_use_16bit_request_ids): New variable. (encode_request_3): Obey `use_16bit_request_ids' in request ID generation. * changes.html: Added note on `use_16bit_request_ids'. * README: Added Luc Pauwels as a contributor. 2003-12-04 Simon Leinen * index.html: Added new "Served Individual Item Link" to the "Essential SNMP" book on Amazon, but commented it out because it breaks the formatting. Removed the "NEW" icon from the existing Essential SNMP pointer. 2003-11-26 Simon Leinen * test/iftop: Adding iftop * test/README (iftop): Added URL. * test/README, MANIFEST: Added Dave Plonka's `iftop'. 2003-11-09 Simon Leinen * changes.html: Document Mike Mitchell's snmpset support for all known types. * lib/SNMP_util.pm (snmpset): Encode all known types. 2003-11-07 Simon Leinen * changes.html: Mentioned Christopher J. Tengi. * README, lib/SNMP_util.pm: Added Christopher J. Tengi to contributors list. * changes.html: Document 0.99 changes. * lib/SNMP_util.pm ($VERSION): Incremented to 0.99. * lib/SNMP_util.pm (snmpset): Support Gauge32 values. 2003-10-20 Simon Leinen * lib/SNMP_Session.pm ($VERSION): Incremented to 0.99. * lib/SNMP_Session.pm (SNMPv1_Session::open): Simplify initial request_id generation. * lib/SNMP_Session.pm (encode_request_3): Handle avoid_negative_request_ids in a saner way. Thanks to Mike Mitchell. 2003-09-26 Simon Leinen * test/trap-send: Added forward declarations. Thanks to Bret Allibone for pointing out the problem. 2003-09-09 Simon Leinen * changes.html: Documented 0.98 changes. * lib/SNMP_Session.pm ($VERSION): Incremented to 0.98. * lib/SNMP_Session.pm: Require BER version 0.95. Fixed a portability issue in the IPv6 code. * lib/SNMP_util.pm: Require BER version 0.95. 2003-09-08 Simon Leinen * lib/SNMP_util.pm: Changes from Mike Mitchell: Depend on SNMP_Session.pm 0.97. Fix parsing of OIDs with multiple quoted strings. ($VERSION): Incremented to 0.98. 2003-09-02 Simon Leinen * lib/SNMP_Session.pm: Undid most of the last change. * lib/SNMP_Session.pm: Removed ``use strict "subs"'' in a few places. * README: Added Joerg Kummer to credits. * lib/SNMP_util.pm ($VERSION): Increased to 0.97. (snmpset): Added TimeTicks support, courtesy Joerg Kummer. * changes.html: TimeTicks support in snmpset. * changes.html: Added IPv6; $default_avoid_negative_request_ids notes. * contrib/SNMP_util.pm, test/util-trap.pl, test/v6-list-prefixes, test/vc-counters.pl, test/verio-problem.pl: Initial import of the essential parts of SNMP_Session * contrib/SNMP_util.pm, test/util-trap.pl, test/v6-list-prefixes, test/vc-counters.pl, test/verio-problem.pl: New file. * faq.html, p2.htm, security.html, test/atol-test.c, test/bad-trap.pl, test/bay-atm-test.pl, test/bgp-check-routes, test/bulkwalkbug.pl, test/cammer, test/capturetest.pl, test/counter64-test.pl, test/d.pl, test/digital-bug, test/fore-test.pl, test/inexist.pl, test/list-bgp4-table, test/mcount.pl, test/mdebug, test/negative-counter.pl, test/sequence-bug.pl, test/set-test.pl, test/shipmr, test/snmptrap.note, test/snmptrap.pl: Initial import of the essential parts of SNMP_Session * faq.html, p2.htm, security.html, test/atol-test.c, test/bad-trap.pl, test/bay-atm-test.pl, test/bgp-check-routes, test/bulkwalkbug.pl, test/cammer, test/capturetest.pl, test/counter64-test.pl, test/d.pl, test/digital-bug, test/fore-test.pl, test/inexist.pl, test/list-bgp4-table, test/mcount.pl, test/mdebug, test/negative-counter.pl, test/sequence-bug.pl, test/set-test.pl, test/shipmr, test/snmptrap.note, test/snmptrap.pl: New file. 2003-06-30 Simon Leinen * README: Updated Philippe Simonet's e-mail. Added Valerio Bontempi and Lorenzo Colitti. * lib/SNMP_Session.pm ($SNMP_Session::default_avoid_negative_request_ids): Exported. 2003-06-04 Simon Leinen * lib/SNMP_Session.pm: Changes from Lorenzo Colitti: Avoid eval() in some places to make code more robust. 2003-05-29 Simon Leinen * test/wwwtest: Also use CGI.pm to generate HTML. * test/wwwtest (snmp_get, write_query_form): Use CGI.pm methods. * test/wwwtest: Use CGI.pm for query parsing. Open SNMPv2c_Session. (parse_query): Deleted. ($ipv4_only_p): New variable. * test/test.pl: Parse option arguments: `-4', `-v (1|2)'. * test/test.pl: Add subroutine prototypes; use strict. Use additional arguments to SNMP_Session->open to activate IPv6 code. * lib/SNMP_Session.pm (SNMPv1_Session::open): Create an IO::Socket::INET object, rather than an IO::Socket::INET6 object, whenever sockfamily is AF_INET. (SNMPv2c_Session::open): Avoid trying to bless() an undefined object, to improve error diagnostics. * test/wwwtest: Added subroutine prototypes. ($community_file_name): New variable. (write_query_form): Compute