Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Running mutiple snmpd daemons on Windows

0 views
Skip to first unread message

Priya Raghavendra

unread,
Apr 14, 2011, 4:34:02 AM4/14/11
to
Hi,

My requirement is to run two snmpd daemons on the same windows machine.

i.e. the first instance can use the default port addresss of 161 and 162.

Now for the second instance I want to use some other port address say 171 and 172.

How do I do this?

If I see the file C:\WINDOWS\system32\drivers\etc\services there is this entry,

snmp 161/udp #SNMP

snmptrap 162/udp snmp-trap #SNMP trap

How do I add a second entry in this file for the second snmpd daemon?

Thanks,

Priya

________________________________

http://www.mindtree.com/email/disclaimer.html

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Dave Shield

unread,
Apr 14, 2011, 4:39:08 AM4/14/11
to
On 14 April 2011 09:34, Priya Raghavendra

<Priya_Ra...@mindtree.com> wrote:
> My requirement is to run two snmpd daemons on the same windows machine.
>
> i.e. the first instance can use the default port addresss of 161 and 162.

The SNMP agent only uses one port (161 by default).

Port 162 is used for receiving SNMP traps.
This is handled by a different program (e.g. snmptrapd).

> Now for the second instance I want to use some other port address say 171 and 172.

If you want the agent to listen for requests on port 171, then just specify this
as the last parameter of the command:

snmpd .... 171

See the snmpd man page for more details

> If I see the file C:\WINDOWS\system32\drivers\etc\services

No - don't touch that file.


Dave

Priya Raghavendra

unread,
Apr 14, 2011, 4:44:28 AM4/14/11
to
Thanks.
But my requirement is to run two SNMP Agents, one on Port 161 and another on Port 171.

How do I do this?

________________________________________
From: dave....@googlemail.com [dave....@googlemail.com] on behalf of Dave Shield [D.T.S...@liverpool.ac.uk]
Sent: Thursday, April 14, 2011 2:09 PM
To: Priya Raghavendra
Cc: net-snm...@lists.sourceforge.net
Subject: Re: Running mutiple snmpd daemons on Windows

On 14 April 2011 09:34, Priya Raghavendra
<Priya_Ra...@mindtree.com> wrote:
> My requirement is to run two snmpd daemons on the same windows machine.
>
> i.e. the first instance can use the default port addresss of 161 and 162.

The SNMP agent only uses one port (161 by default).

Port 162 is used for receiving SNMP traps.
This is handled by a different program (e.g. snmptrapd).

> Now for the second instance I want to use some other port address say 171 and 172.

If you want the agent to listen for requests on port 171, then just specify this
as the last parameter of the command:

snmpd .... 171

See the snmpd man page for more details

> If I see the file C:\WINDOWS\system32\drivers\etc\services

No - don't touch that file.


Dave

________________________________

http://www.mindtree.com/email/disclaimer.html

Dave Shield

unread,
Apr 14, 2011, 4:51:54 AM4/14/11
to
On 14 April 2011 09:44, Priya Raghavendra

<Priya_Ra...@mindtree.com> wrote:
> But my requirement is to run two SNMP Agents, one on Port 161 and another on Port 171.
>
> How do I  do this?

You start the first one normally, (snmpd ..... )
then start the second one specifying the non-standard port to use
(snmpd .... 171)

Dave

0 new messages