Re: [snmpsim-users] consult a problem with snmpsim
Brought to you by:
elie
|
From: Ilya E. <il...@gl...> - 2013-05-14 10:32:57
|
1. Choose a non-priveleged user and group (create new or use existing
nobody/nogroup) and pass them to simulator via the
--process-user & --process-group options.
More info here:
http://snmpsim.sourceforge.net/simulating-agents.html
2. Just remove these files from your variation directory. However they
won't be used anyway unless you refer to them from your data files.
-ilya
On 05/14/13 14:07, Ni, Weslie wrote:
> Ok, I see now.
> New question:
> 1. When I use root to execute the below command
> snmpsimd.py --data-dir=./public --agent-udpv4-endpoint=192.168.233.130:1161
> I got this : ERROR: cant drop priveleges: Must drop priveleges to a non-priveleged user&group
> But it's OK when I use another non-root group user.
> Why and how to fix?
>
> 2. how to exclude those variation modules, say, delay, notification, .etc?
>
> Thanks.
> :-)
>
>
> -----Original Message-----
> From: Ilya Etingof [mailto:il...@gl...]
> Sent: Tuesday, May 14, 2013 5:26 AM
> To: Ni, Weslie
> Subject: Re: [snmpsim-users] consult a problem with snmpsim
>
> The logic is like this: transport IDs consist of the constant prefix
> 1.3.6.1.6.1.1 plus an integer which corresponds to the position of the --agent-udpv4-endpoint option on snmpsimd.py command-line.
>
> That is:
>
> 1.3.6.1.6.1.1.0 - first endpoint on the command-line
> 1.3.6.1.6.1.1.1 - second endpoint on the command-line
> 1.3.6.1.6.1.1.2 - third endpoint on the command-line ...
>
> -ilya
>
> On 05/14/13 11:56, Ni, Weslie wrote:
>> Here is snippet:
>> For example, to make Simulator reporting from particular file to a
>> Manager at 192.168.1.10 whenever community name "public" is used and
>> queries are sent to Simulator over UDP/IPv4 to 192.168.1.1 interface
>> (which is reported by Simulator under transport ID 1.3.6.1.6.1.1.0),
>> data file public/1.3.6.1.6.1.1.0/192.168.1.10.snmprec whould be used
>> for building responses.
>>
>> I get a question:
>> How to know transport ID according to binding endpoint before the simulator run?
>> I think I need to generate data files before start the simulator.
>>
>>
>> -----Original Message-----
>> From: Ilya Etingof [mailto:il...@gl...]
>> Sent: Tuesday, May 14, 2013 2:48 AM
>> To: Ni, Weslie
>> Subject: Re: [snmpsim-users] consult a problem with snmpsim
>>
>> Hi,
>>
>> Just pass multiple --agent-udpv4-endpoint=<ip:port> options, one option per virtual IP.
>>
>> http://snmpsim.sourceforge.net/simulating-agents.html
>>
>> Then watch "transport-id" simulator reports on startup and put your data files under the names of those transport IDs.
>>
>> http://snmpsim.sourceforge.net/transport-based-variation.html
>>
>> -ilya
>
>
|