install and configure SNMP on server 2012 using answer file

I am looking to script the installation of SNMP on a windows server 2012 R2. I am running the following:

Add-windowsfeature SNMP-Service
Add-windowsfeature RSAT-SNMP

but I want to use an answer file to also configure the SNMP traps and security. Does anyone have a sample answer file that they can share? Not sure what needs to be in it and how to use it.

If not an answer file, maybe an example of some powershell commands to configure SNMP once installed? I am looking to configure the agents, traps and security tabs.
fcbcAsked:
Who is Participating?
 
fcbcConnect With a Mentor Author Commented:
Thanks. I am really hoping to script it somehow. I will play a little longer and see if I can get it to work I will post something if I do.
0
 
Salah Eddine ELMRABETTechnical Lead Manager (Owner)Commented:
Hi,

I suggest to use Solarwinds FREE SNMP Enabler For Windows witch you can download here http://www.solarwinds.com/products/freetools/snmp-enabler-for-windows/enable-snmp.aspx

This can automate SNMP service Install and SNMP parameters configuration, but recently tested for Win2012 R2 I could'nt install the service but of course you can use it to configure community and security with result output.

Good luck.

Salah
0
 
Salah Eddine ELMRABETTechnical Lead Manager (Owner)Commented:
Hi,

For SNMP service install and start, for sur the tools I syggested can't do this, if you download it and install it you can figure out that only Win2008 option can be found in the setup files path configuration.

But for the second part of your need, it will let you configure community string and security rules in a quick way.

Regards.

Salah
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
fcbcAuthor Commented:
no answer yet
0
 
Salah Eddine ELMRABETTechnical Lead Manager (Owner)Commented:
How no answer yet????
0
 
fcbcAuthor Commented:
Because I am looking to script the install using powershell, not using a third party tool. Sorry.
0
 
Salah Eddine ELMRABETTechnical Lead Manager (Owner)Commented:
Hi,

Here is an example with answer file:

http://00shep.blogspot.com/2012/04/automatically-install-snmp.html

Regards.

Salah
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.