MSFN Forum: Need script to configure snmp - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Need script to configure snmp Rate Topic: -----

#1 User is offline   perlabsrat 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 28-November 07

Posted 30 January 2008 - 01:19 PM

I do a lot of windows installs using a floppy and a winnt.sif answer file.
In part of my configuration I automate the setup of SNMP like this:

[SNMP]
Contact_Name= My Name
Location = MyComany
Service = Physical, Applications, End-to-End, Datalink, Internet
Community_Name = Public
Traps = 127.0.0.1
Accept_CommunityName = Public:Read_Only, Private:Read_Write
Any_Host = yes



There are some times that I can not do the deployment via the sif file so I am looking for a way to script the same settings post install.
Idealy if there were a tool that could just parse the sif file and apply the setting that would be cool but a simple vbs or some other solution would work just as well. Also this should be a stand alone script with no other file dependencies.

Can anyone help to create such a script?

Thanks..


#2 User is offline   adamt 

  • Kwisatz Haderach
  • PipPip
  • Group: Members
  • Posts: 131
  • Joined: 26-July 06
  • OS:Windows 7 x64

Posted 31 January 2008 - 10:08 AM

SNMP config is stored in HKLM\Systsem\CurrentControlSet\Services\SNMP
Mostly you'll probably be looking for the Parameters subkey.

Set these values to what you want, export the .REG file and then use regedit /S or reg.exe to import the .REG file on the target machines.

One quick'n'dirty deployment method for existing servers would be to share the .reg file somewhere central and run

psexec @serverlist.txt "reg.exe /import \\dfsshare\snmp\snmpsetting.reg"

Or something similar.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy