How to install SNMP extension agent DLL

View: 2262    Dowload: 0   Comment: 0   Post by: naruto  
Author: none   Category: Development Tools   Fields: none

0 point/20 review File has been tested

Download   how-to-install-snmp-extension.zip (15.63 KB)

You need to Sign In to download the file how-to-install-snmp-extension.zip
If you do not have an account then Sign up for free here

Download error   Report copyright violation

This tutorial is the second part of my previous article "How to develop a SNMP extension agent DLL". Here I shall explain how to install the developed SNMP extension agent DLL in Windows 2000. This agent DLL is from the previous part of this article. Please find the source code of this DLL from the previous article. Here I'm demonstrating SNMP on the same computer, which will act as SNMP client and server (i.e., SNMP manager and Agent, respectively). Real thing should be on two computers. To install and experiment on the same computer, we don't need Internet connection. So in this case, we'll be using "127.0.0.1" local IP.

Introduction

By default, Windows 2000 doesn't have SNMP installed. Therefore, install the SNMP services first. For that, go to "Control panel", "AddRemove Programs". Click "Add/Remove Windows components". Check the checkbox "Management and Monitoring Tools". Then on Detail, check "Simple Network Management Protocol". Click Next and complete the installation. Most probably, you will need Windows 2000 CD inserted to complete the installation.

After the installation, go to the Services and make sure you have two new services "SNMP Service" and "SNMP Trap Service". "SNMP Service" corresponds to the service file SNMP.EXE and "SNMP Trap Service" corresponds to the service file SNMPTRAP.EXE. You can find the Services Tool (Management Console Tool) in "Administrative Tools" under "Control Panel".

Configure Services

To configure, on Services (Management Console Tool), right click on "SNMP Service" and click "Properties". Properties dialog will open up. This will look like this...

Select the tab "Traps". Type "public" on "community name" combo box and click "Add to list" button. Then to fire traps to our same computer, click "Add" and add the IP address "127.0.0.1". If you have the luxury of another computer then specify its IP address here.

Now go to "Log On" tab and enable the "Profile 1" by clicking "Enable" button. Also make sure "Local system account" radio button appears selected.

Now to configure security, go to the tab "Security". Check the checkbox "Send authentication trap". Click "Add" under "Accepted community names". On appearing dialog box, select "READ WRITE" on "Community rights", enter "public" on "Community name", and click "OK". If you want to accept requests only from a particular client, then select "Accept SNMP packets from these hosts" and click "Add" underneath that. Type the host name or IP address and click "OK" on the appearing dialog box. After all this, click "Apply" or "OK" and close the "SNMP Service" Properties dialog. If the service is not started, right click and start it. Security tab will look like this...

After finishing "SNMP Service" configuration, select "SNMP Trap Service" and open up the Properties dialog by right clicking on it. On the "Log On" tab, configure as for the service before. Then "Apply" or "OK", and close the "SNMP Trap Service" Properties dialog.

These minimal configurations are enough to run our MyAgent.DLL. All your configurations will be stored under the following registry key:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSNMP

Configure Our Agent

Now we have to configure our extension agent. We have to do this by adding registry entries in two places.

First, go to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSNMPParameters ExtensionAgents registry key using any registry editor. If you have installed the SNMP properly, then you can see several Microsoft agents' entries. What we have got to do is add a string value at the end of all agent entries and add our agent's registry key path. After adding, here is how my registry looks like...

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSet 
                        ServicesSNMPParametersExtensionAgents]
"1"="SOFTWARE\Microsoft\LANManagerMIB2Agent\CurrentVersion"
"2"="SOFTWARE\Microsoft\RFC1156Agent\CurrentVersion"
"3"="SOFTWARE\Microsoft\HostMIB\CurrentVersion"
"4"="SOFTWARE\Microsoft\SNMPMIB\CurrentVersion"
"5"="SOFTWARE\Microsoft\SNMP_EVENTS\CurrentVersion"
"6"="SOFTWARE\Microsoft\ACS\CurrentVersion"
"7"="SOFTWARE\Microsoft\IGMPMibAgent\CurrentVersion"
"8"="SOFTWARE\Microsoft\IPMulticastMibAgent\CurrentVersion"
"9"="SOFTWARE\Microsoft\IPXMibAgent\CurrentVersion"
"10"="SOFTWARE\Microsoft\IASAgent\CurrentVersion"
"11"="SOFTWARE\SNMP\CurrentVersion" <--<note, this="" is="" our="" agent's="" reg="" path="" that="" i="" added="">

Secondly, we should create the registry key path that we specified previously. Under this key, create a string value and name it as "Pathname" and put the actual DLL path. After adding, here is how my registry looks like...

[HKEY_LOCAL_MACHINESOFTWARESNMPCurrentVersion]
"Pathname"="H:\VC++ Dev\SNMP\MyAgent\Release\MyAgent.dll"

How to install SNMP extension agent DLL

How to install SNMP extension agent DLL Posted on 13-05-2014  This tutorial is the second part of my previous article "How to develop a SNMP extension agent DLL". Here I shall explain how to install the developed SNMP extension agent DLL in Windows 2000. This agent DLL is from the previous part of this article. Please find the source code of this DLL from the previous article. Here I'm demonstrating SNMP on the same computer, which will act as SNMP client and server (i.e., SNMP manager and Agent, respectively). Real thing should be on two computers. To install and experiment on the same computer, we don't need Internet connection. So in this case, we'll be using "127.0.0.1" local IP. 5/10 2262

Comment:

To comment you must be logged in members.

Files with category

  • Changes in Programmer Tools' Infrastructure

    View: 3161    Download: 0   Comment: 0   Author: none  

    Changes in Programmer Tools' Infrastructure

    Category: Development Tools
    Fields: Other

    0.5625/8 review
    The article describes some observations concerning changes in the infrastructure of tools used by programmers in everyday work. First of all, these changes are related to the release of Visual Studio 2010.

  • An Overview of the NuGet Ecosystem

    View: 3639    Download: 0   Comment: 0   Author: none  

    An Overview of the NuGet Ecosystem

    Category: Development Tools
    Fields: none

    0.45/10 review
    NuGet is a free, open source package management system for .NET and consists out of a few client tools (NuGet Command Line and NuGet Visual Studio Extension) and the official NuGet Gallery hosted at http://www.nuget.org/. Combined, these tools and...

  • Folder Listener: A Tool to Watch File System Activity in any Folder

    View: 3323    Download: 5   Comment: 0   Author: none  

    Folder Listener: A Tool to Watch File System Activity in any Folder

    Category: Development Tools
    Fields: none

    1.3333333333333/6 review
    Most of the time when you are doing some development or testing, you might need to know what changes are made in a particular folder. This requirement frequently arises when you are testing /developing software that copies /delete files in the...

  • Generating synchronous method stubs from asynchronous method pairs

    View: 2964    Download: 1   Comment: 0   Author: none  

    Generating synchronous method stubs from asynchronous method pairs

    Category: Development Tools
    Fields: Other

    0.64285714285714/7 review
    During the development of a GSM Modem API, I found I was repeating a lot of code for encapsulating the synchronous versions of asynchronous method templates. The common pattern for such code implements asynchronous methods with the same name as the...

  • How to Minify js and CSS file using Visual Studio 2012

    View: 1912    Download: 0   Comment: 0   Author: none  

    How to Minify js and CSS file using Visual Studio 2012

    Category: Development Tools
    Fields: Other

    1.125/4 review
    In my previous article I have talked about what is Microsoft’s Web Optimization Framework and how to use this framework in Asp.net web form application. There are two pillars of this framework bundling and minification. So this framework...

  • A New Approach to Designing Web Applications

    View: 3868    Download: 0   Comment: 0   Author: none  

    A New Approach to Designing Web Applications

    Category: Development Tools
    Fields: Other

    0/9 review
    With all the hay being made about UML modeling, you'd think that was the only way to design an application. I've got news for you. It's the wrong approach. Now, before you flame me for my heresy, read the rest of this paragraph. Much like the 60%...

  • How to install SNMP extension agent DLL

    View: 2262    Download: 0   Comment: 0   Author: none  

    How to install SNMP extension agent DLL

    Category: Development Tools
    Fields: none

    0/20 review
    This tutorial is the second part of my previous article "How to develop a SNMP extension agent DLL". Here I shall explain how to install the developed SNMP extension agent DLL in Windows 2000. This agent DLL is from the previous part of this...

  • The Web Developer Checklist : A One-Stop-Shop for Improving the Web

    View: 2726    Download: 0   Comment: 0   Author: none  

    The Web Developer Checklist : A One-Stop-Shop for Improving the Web

    Category: Development Tools
    Fields: Education - Schools

    0/1 review
    I’ve been searching for some time for a single resource that I could go to check a variety of best-practices and methods of improving the performance of my sites and applications and I can now mark that off of my list.

 

File suggestion for you

File top downloads

logo codetitle
Codetitle.com - library source code to share, download the file to the community
Copyright © 2015. All rights reserved. codetitle.com Develope by Vinagon .Ltd