LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-01-2007, 12:30 PM   #1
cools
LQ Newbie
 
Registered: Jul 2007
Posts: 1

Rep: Reputation: 0
snmpget form c


Hi,

I need to get a snmp value by using c. In the terminal I can use the snmpget command with ip, communty and oid as parameters. I installed the libsnmp9-dev package, but I can't find a method that accepts the same parameters. Does this exist in some package?

Thanks in advance,

Tim
 
Old 07-01-2007, 06:31 PM   #2
Russell Griffiths
LQ Newbie
 
Registered: May 2006
Location: Sydney, Australia
Distribution: Red Hat 7.3
Posts: 27

Rep: Reputation: 15
Tim, hi

In the book 'Essential SNMP' by O'Reilly (page 67 to be exact)
there's a listing of SNMP libraries in open source for various languages. Perl, C, C++.

They list

for C : Net-SNMP C Library at http://net-snmp.sourceforge.net, and
for C++ : SNMP++ at http://rosegarden.external.hp.com/snmp++/

One of those should be what you are looking for

Grif
 
  


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
PHP: build query from form entry, then display results in the same form tonedeaf1969 Programming 4 06-22-2007 07:55 AM
SNMPGET and SNMPBULKWALK error elnunez Linux - Networking 0 06-27-2006 05:11 AM
help with snmpget alaios Linux - Networking 4 08-25-2005 06:43 AM
linux snmpd and freebsd snmpget localhost127 *BSD 0 11-20-2004 02:52 PM
snmpget ARP table of router parker Programming 0 08-14-2003 01:42 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:47 PM.

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
Open Source Consulting | Domain Registration