LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-02-2007, 07:05 AM   #1
Brix
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
How to Create Simple SNMP Trap Application ( C or C++ )


hi,

Im a newbie here..i would like to ask any idea on how to create a SNMP application in C++ or in C that will be running on a Linux machine. The application would run on the Linux console and then it would just listen for snmp traps sent through the UDP Port 162 and then display the attributes of the received traps. I searched for articles and inputs in the internet and i found out regarding snmptrapd but i guess it is an application ( not a library )..im looking for a library in C++ or in C that will be used in creating the application.

thanks.
 
Old 12-02-2007, 11:42 PM   #2
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,533

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
http://www.agentpp.com/snmp_pp3_x/snmp_pp3_x.html

My previous employer relied on Agent++ (from HP) for our s/w development effort. Frank Fock, the one who manages the site above, saved our "bacon" with the tools at his site. It shaved months off our development time.

Last edited by dwhitney67; 12-02-2007 at 11:43 PM.
 
Old 12-03-2007, 12:56 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
If C++ is NOT a must, have a look at Net-SNMP itself. It is a set
of tools *and* libraries with C & Perl development stuff thrown in.


http://www.net-snmp.org/



Cheers,
Tink
 
Old 12-03-2007, 08:44 AM   #4
Brix
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
If C++ is NOT a must, have a look at Net-SNMP itself. It is a set
of tools *and* libraries with C & Perl development stuff thrown in.


http://www.net-snmp.org/



Cheers,
Tink
Thanks..yah i cod also use C instead of C++...Regarding Net-SNMP, i have read about it and i only found a tool there that could handle SNMP traps which s the snmptrapd but the snmptrapd is just a tool..im looking for a library or function calls that could be used in listening for SNMP Traps in the UDP Port 162. There is a library n Net-SNMP that is for SNMP Traps sending..but for handling and decoding SNMP Traps i still didn't find one. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to send snmp trap & recieve trap in C program minil Programming 3 07-10-2010 09:22 AM
SNMP Trap metallica1973 Linux - Networking 1 11-28-2007 09:14 AM
Want to Create a Simple X Application binarybob0001 Programming 6 11-15-2007 11:49 AM
Snmp Trap shan_nathan Linux - Server 2 09-01-2007 05:49 AM
snmp-trap tied2 Linux - Security 7 07-19-2002 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration