SNMP++3.0d and AGENT++3.4d
Frank Fock
Frank.Fock____t-online.de
Sun May 28 20:40:55 CEST 2000
SNMP++v3.0d and AGENT++v3.4d are now available
for download from http://www.fock.de/agent++
If you upgrade to SNMP++v3.0d, please also upgrade
to AGENT++v3.4d, since SNMP++v3.0d introduces
a new method to store the engine boots counter.
Changes snmp++v3.0d
===================
- Fixed: Bug in Oid::RnCompare()
- Fixed: mpIncSnmpUnknownSecurityModels() increased the
wrong counter.
- Update: The changes of the official SNMP++ 2.84 from HP were
merged into snmp++v3.
- Changed: The snmpEngineBoots counters for different
snmpEntities can now be saved in one file. For this
the function mpInit had to be changed. See
include/v3.h for more information about the new functions
getBootCounter, saveBootCounter and decodeEngineId.
Example:
char *filename = "snmpv3_boot_counter";
unsigned int snmpEngineBoots = 0;
OctetStr engineId("exampleId");
// you may use your own methods to load/store this counter
status = getBootCounter(filename, engineId, snmpEngineBoots);
if ((status != SNMPv3_OK) && (status <
SNMPv3_FILEOPEN_ERROR))
cerr << "Error getBootCounter: " << status << endl;
snmpEngineBoots++;
status = saveBootCounter(filename, engineId,
snmpEngineBoots);
if (status != SNMPv3_OK)
cerr << "Error saveBootCounter: " << status << endl;
mpInit(&snmp, engineId, snmpEngineBoots);
- Fixed: Reports for encryption error were sent with a
securityLevel authPriv, now authNoPriv is used.
Reports for unknown security name were sent with
user 'initial', now the user name of the request
is used.
- Fixed: Snmp::trap now sets the timestamp of traps for WIN32
and for non WIN32 to the same value if the user didn't
set it with pdu::set_notify_timestamp().
Note: Snmp::trap does not set the timestamp to the
uptime of the system or the application. The timestamp
is computed from the time elapsed since 1970/1/1.
- Fixed: msec::refresh() now sets the correct time for WIN32
- Changed: mpAddToEngineIDTable now replaces host and port
when adding an engineID that is already in the table
- Fixed: OctetStr::from_hex_string()
Version 3.4d: CHANGES since Version 3.4c
=========================================
* Updated the examples according to the changed engine
boots counter handling in SNMP++v3.0d
* Fixed: Compilation error with VC++ 6.0 on NT
when compiling without _SNMPv3 defined
(Mib::process_get_bulk_request).
Kind regards,
Frank Fock
More information about the AGENTPP
mailing list