http://www.solarwinds.com/products/freetools/snmp-enabler-for-windows/enable-snmp.aspx?CMP=BIZ-TAD-TG-SNMP-PP-Q12011

Shauna Hensala




Date: Mon, 29 Aug 2011 08:48:12 -0700
Subject: Re: Setting SNMP communities/traps remotely?
From: [email protected]
To: [email protected]

 Here are snippets of a script I used to use to set some of this stuff during 
server builds.  Most of it is part of our OSD build scripts now but it should 
get you in the neighborhood if the other answers didn't.
 set-ItemProperty 
hklm:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\RFC1156Agent -Name 
sysLocation Vmwareset-ItemProperty 
hklm:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\RFC1156Agent -Name 
sysContact "Windows Engineering"

Get-ItemProperty 
hklm:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\RFC1156Agent 
get-itemproperty 
HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\PermittedManagers
Set-ItemProperty 
HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\PermittedManagers -Name 
1 "LOCALHOST"

Set-ItemProperty 
HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\PermittedManagers -Name 
2 "OurSIMserverName" get-itemproperty 
HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\ValidCommunities

Set-ItemProperty 
HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\ValidCommunities -Name 
server_read_string"4"  Steven Peckhttp://www.blkmtn.org
 
 On Fri, Aug 26, 2011 at 12:23 PM, Mike Leone <[email protected]> wrote:

Hello. We have decided to use a new SNMP community for monitoring. What

I'd like to do is to not have to remote control every Windows box and

change the configuration in "Services". Is there any way to set that

remotely, perhaps with netsh or similar? I want to add "MyCommunity" as

a trap destination, and add that community under the "Security" for

authentication traps. Oh, and I want to add a specific host to the list

of hosts it will accept SNMP packets from. And remove "Public", if it's

in any of those spots.



Is it possible to do that remotely, or am I looking at lots of remote

controlling in my week ahead?



Thanks



~ Finally, powerful endpoint security that ISN'T a resource hog! ~

~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~



---

To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/

or send an email to [email protected]

with the body: unsubscribe ntsysadmin




~ Finally, powerful endpoint security that ISN'T a resource hog! ~

        ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

        

        ---

        To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/

        or send an email to [email protected]

        with the body: unsubscribe ntsysadmin                                   
  
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to