RE: Changing community strings automatically

"Ron Rader" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <C88FF64CFD06EE4B91C5B89CD48379FE66266E@dellserver.cipheroptics.local>
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.

------------------------------------------------------------------------------
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
logo.jpg (image/jpeg, 7.7 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.