Hp snmp ++ strategy
1 Overview
1.1
"Times New Roman" "class =" T4 "> prepared
SNMP ++ is developed by HP.
1.2 website
The original website is http://rosegarden.external.hp.com/snmp?#/. it is closed for unknown reasons. Development continues. The new version is available at http://www.agentpp.com/index.html. You can view the original relics at http://www.sa-ha.de/snmp /.
Version 1.3
1.3.1 old version (v2.8 and earlier)
SNMP ++ 2.8 and earlier versions have different support in UNIX and windows, that is, dedicated
The Windows version of VC (wsnmp32.lib in this case) has an installer.
In addition, there are MIB browser routines dedicated for Windows (and
UNIX ???? For reference. No new version.
The detailed description file snmp_pp.doc is provided only in the old version.
1.3.2 New Version
The new version is recommended for vomiting blood, eliminating a lot of pests and adding some features. Major differences between the new and old versions include:
- New releases no longer have separate Windows Versions
- The new version supports SNMPv3 (libdes library is required)
- The new version supports multithreading.
If you want to know the version changes of SNMP ++, you can view the information on the website and the changes files released in each version.
The following describes how to use SNMP ++ v3.2.2. Do not ask questions about earlier versions ~~~~~~
1.4 Copyright
Snmp_pp.doc (please check it !!!) :
Permission to use, copy, modify, distribute
And/or encrypt this software and/or its documentation is hereby GRANTED
Without metadata. User agrees to display the above copyright notice and
This license notice in all copies of the software and any
Documentation of the Software. User agrees to assume all liability
The use of the software; Hewlett-Packard makes no representations
About the suitability of this software for any purpose. It is provided
"As-is without warranty of any kind, either express or implied.
User hereby grants a royalty-free license to any and all derivatives
Based upon this software code base.
Agent ++ and agentx ++ have different copyright statements.
2. Use
SNMP ++ supports multiple platforms, including Solaris and HP
UNIX and windows. The usage method is slightly different, but the principle is the same: generate the library file, and use the header file and library file for development.
2.1 Unix
Make directly. If there is a problem, adjust some macros/variables in makefile. There is basically no problem in Solaris.
The new version supports SNMPv3 and uses the libdes encryption/Decryption library, but you can also configure it to not support V3. Modify the config. h file and comment out the corresponding switch options.
2.2 Windows
2.2.1
VC
We recommend that you generate a DLL for your own SNMP development.
The initial version requires wsnmp32.lib and the new version does not.
2.2.1.1 Method 1: directly use the source file
In your project, add the source files of SNMP ++ and libdes to compile. Note:
- If you do not need to support SNMPv3, you can add macro definition _ no_snmpv3. libdes is not required at this time.
- Some files do not need to be added, such as SNMP ++ files with warning and files with main function in libdes.
-
2.2.1.2 Method 2: generate DLL
MSO-Hansi-font-family: "Times New Roman" "> Reuse
The new version does not contain makefile or DSW/DSP files that support windows. As an alternative, you can use the snmp_pp.dsp documentation provided below to generate a DLL (thanks to alwayscy for providing the original snmppp. DSP, the following version is modified based on it; there are some projects available under VC, but it cannot be used ).
The usage method (stupid enough, don't ask again) is:
- Decompress snmp1_1_v3.2.2.tar.gz
Decompress snmp1_1_v3.2.2.tar.gz to the SNMP ++ folder, which contains SRC,
Include, Lib, and other subfolders.
- Decompress libdes-l-4.01.tar.gz
Decompress libdes-l-4.01.tar.gz to the libdes subdirectory of SNMP ++.
Create a folder DLL under SNMP ++. Place snmp_pp.dsp under the DLL and use VC to open it. If the source
Safe, kill it!
If you do not need SNMPv3, you can define the _ no_snmpv3 macro. The libdes package is no longer required. However, it does not matter if you keep it. Another important task is (maybe the updated version is not needed ):
Define the macro in SMI. h
# Define dllopt
_ Declspec (dllexport)
Replace
# Ifdef
Snmp_pp_import
# Define dllopt
_ Declspec (dllimport)
# Else
# Define dllopt
_ Declspec (dllexport)
# Endif
In mp_v3.h
* Mpgetusm (); add a dllopt, that is
Dllopt USM *
Mpgetusm ();
F7.
For example, create an snmpget sub-directory and an snmpget project under SNMP ++. Ensure that all files using SNMP ++ contain snmp_pp.h. Add/d to setting.
"Snmp_pp_import"
/I "../include"; Add ../lib/snmp_pp.lib to the link of setting, and find snmp_pp.dll during running.
2.2.2 C ++ Builder
Currently missing.
2.2.3 cygwin
No.
3 Documentation
The snmp1_00002.8release file snmp_pp.doc is available, but will not be available in future releases.
As far as I know, the document is not updated. If anyone finds any updated version or other useful documents, please let us know. Thank you for your attention ~~~
4 routines
The examples provided by the development kit are sufficient to illustrate the problem. Please study them yourself. It is unlikely that others will provide better help.
Console routines are common to various platforms. The example is located in leleexamples, which is roughly
- Snmpbulk
- Snmpget
- Snmpnext
- Snmpset
- SNMPTRAP
- Snmpwalk
It mainly demonstrates the basic and derivative usage of various PDU/functions and is also an almost standard SNMP command.
4.1 windows spp28br routine
SNMP ++ 2.8 has a Windows example. You can continue to use the new version.
This is a MIB browser sample program: SNMP ++
2.8 browser for Win32.
Because the pdu_cont.h file is no longer available in 3.2.2, you need to remove the relevant code.
4.2 Unix
There are examples in UNIX.
5 others