Hp snmp ++ strategy (draft)

Source: Internet
Author: User
Tags snmp
Hp snmp ++ 1 Overview 1.1 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 /.

 

1.3 old version (v2.8 and earlier)SNMP ++ 2.8 and earlier versions have different support in UNIX and windows, that is, there is a Windows Version dedicated for VC (wsnmp32.lib in this case) and there is an installer. In addition, there are MIB browser routines for Windows (and for Unix ???? For reference. No new version. The detailed description file snmp_pp.doc is provided only in the old version.1.3.2 New VersionThe 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:
  • 2. Use

SNMP ++ supports multiple platforms, including Solaris, 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 UnixMake directly. If there is a problem, adjust some macros/variables in makefile. There is basically no problem in Solaris.

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 the snmppp. DSP of the original version, which is modified based on the following version; there are some project files available under VC, but they cannot be used ).

 

The usage method (stupid enough, don't ask again) is:
  • 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.
  • Libdes-l-4.01.tar.gz
Decompress libdes-l-4.01.tar.gz to the libdes subdirectory of SNMP ++.
  • Place snmp_pp.dsp under DLL and use VC to open it. If source safe appears, kill it!

     

    • # Define dllopt _ declspec (dllexport)

       

      Replace with # ifdef snmp_pp_import # define dllopt _ declspec (dllimport) # else # define dllopt _ declspec (dllexport) # endif in mp_v3.h, in USM * mpgetusm (); add a dllopt, that is, dllopt USM * mpgetusm ();
      • 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

        Document

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 routinesThe 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 windowssnmp ++ 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 UnixThere are examples in UNIX.5 others

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.