Re: How to add rocommunity public without using conf-files

"[email protected]" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Thank you Wes, I'll try it.

I know that it is no good style, but we don't want to make it configurable.

Hopefully, the writing of the usr\bin file is disabled, because it looks  
pretty strange on a windows system.

However, Thank you Wes.

Am 22.09.2010, 01:32 Uhr, schrieb Wes Hardaker  
<[email protected]>:

>>>>>> On Mon, 20 Sep 2010 10:14:37 +0200, "Sebastian Fabig"  
>>>>>> <[email protected]> said:
>
> SF> What do I have to do to get rid of the conf-file? Right now I only
> SF> need it to set the rocommunity public. If it is not possible to set
> SF> it without a conf-file, is there at least a possibility to disable
> SF> the creation of other other-files (e.g. I found some in the folder
> SF> usr\bin)?
>
> You can force the read-config system to "pretend" to read a string by
> calling netsnmp_config("rocommunity public").
>
> However, the world learned a long time ago that hard coding
> community/access routines like "public" is a very very bad thing to do.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
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
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.