LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-18-2005, 12:38 PM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
change snmp value


Hi.. i have written a small c programe that reads the IPDiscards value..... I am trying to find the best way for checking if my code works fine.. I want to find a way to change the value to the snmp server. But still i dont know if this is possible... Can u plz shed some light on this issue?
Thx a lot
 
Old 07-18-2005, 05:40 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
you have a c program which outputs something to somewhere? as long as you have that, you should be able to use the standard net-snmp daemon to update it's values without much problem. You can easily change your snmpd.conf to run any command you want and provide the result as one, or a series of, MIB's. e.g "exec /usr/local/bin/script" within snmpd.conf will cause that to be executed each time the relevant MIB is read, i blieve the oid range will be under .1.3.6.1.4.1.2021
 
Old 07-19-2005, 03:09 AM   #3
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
Yes i have a simple program in cd that justs takes the integer value of dropped packets... IPDiscards i think... What i need to do is to change this value.. .but plz help me a little more because i dont know how to change it
 
  


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 configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 09:09 AM
NET-SNMP vs UCD-SNMP nitind Red Hat 1 05-20-2005 07:08 AM
SNMP community string change - SERVER CRASH nishil Linux - Networking 2 11-21-2004 10:14 PM
SNMP Help nixinbarrie Linux - Networking 1 09-16-2004 11:54 PM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 11:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:32 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