Re: what should I know to write test applications of snmp agent

This is a discussion on Re: what should I know to write test applications of snmp agent within the SNMP Coders forums, part of the Networking and Network Related category; 2008/5/7 anilkumar <anilkumar@winfoware.com>: > My current requirement is to write test applications of snmp ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 6 Days Ago
Dave Shield
 
Posts: n/a
Default Re: what should I know to write test applications of snmp agent

2008/5/7 anilkumar <anilkumar@winfoware.com>:
> My current requirement is to write test applications of snmp agent( eg for
> bandwidth measuring) in C language.(c, linux).
>
> what all the basic things I should know?


There are two aspects you need to be clear about.

a) What information you need to work with
b) How to send an SNMP request, and handle the results.


> How to start about it?


I would start by forgetting about writing your own code.
Begin by using the existing command-line tools
(snmpget, snmpgetnext, snmpwalk, etc), and try
interrogating your remote agent that way.

This will help you clarify exactly what information you
need to retrieve. You may find that a shell script built
using these tools is actually sufficient for your needs.
(Which would save you having to write code at all).

Even if you do then decide to write a dedicated application,
the experience gained with the command-line tools will
help you in designing the behaviour of your application.

You can also look at the source for snmpget.c et al,
to show how to create an SNMP request, send it,
and process the results.

But I would definitely start with a command-line driven
approach.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757...un.com/javaone
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:22 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0