perlabsrat Posted January 30, 2008 Share Posted January 30, 2008 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 NameLocation = MyComany Service = Physical, Applications, End-to-End, Datalink, InternetCommunity_Name = PublicTraps = 127.0.0.1Accept_CommunityName = Public:Read_Only, Private:Read_WriteAny_Host = yesThere 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.. Link to comment Share on other sites More sharing options...
adamt Posted January 31, 2008 Share Posted January 31, 2008 SNMP config is stored in HKLM\Systsem\CurrentControlSet\Services\SNMPMostly 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 runpsexec @serverlist.txt "reg.exe /import \\dfsshare\snmp\snmpsetting.reg"Or something similar. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now