This isn't really net-snmp specific.  You need to write a small program
that parses ASCII text and changes known values.  How you do it depends
on your implementation.  I suggest you start Googling phrases like "bash
script text parser" and "text parser example C."  There are plenty of
examples out there in Java, C#, C, C++, etc..

 

Ron

 

________________________________

From: Giuseppe Modugno [mailto:[email protected]] 
Sent: Wednesday, March 02, 2011 9:49 AM
To: [email protected]
Cc: Ron Rader
Subject: RE: Changing community strings automatically

 

On 2 Mar 2011 at 9:26, Ron Rader wrote: 

> It's fairly easy to programmatically rewrite the rwcommunity and
rocommunity strings in 

> snmpd.conf, then restart the agent through the normal init script
mechanism. This is how my 

> project works. 

 

Maybe my question is a FAQ, but may you suggest a method to rewrite
rwcommunity/rocommunity strings in snmpd.conf? 

 

 



The information contained in this message may be privileged and confidential 
and protected from disclosure. If the reader of this message is not the 
intended recipient, or an employee or agent responsible for delivering this 
message to the intended recipient, you are hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited. If you have received this communication in error, please notify us 
immediately by replying to the message and deleting all copies. Thank you.

<<inline: logo.jpg>>

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to