LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 11:38 AM   #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, 04:40 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 02: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



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

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

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