The silent install option is provided for system administrators wishing to automate the process of installing Snare Enterprise Agent for MSSQL.
Command line options
The Snare Enterprise Agent for MSSQL installer has a number of command line options to support silent, automated installations in either deployment scenario:
...
Info |
---|
When loading in an INF file for the MSSQL agent, ensure you use the parameters /SnarePass and /Reinstall. |
Silent Install Setup Information File (INF)
To silently deploy a completely configured agent, the installer requires the help of a Setup Information File, also known as an INF file. To produce a working INF file, follow these steps:
- Install the Snare Enterprise Agent for MSSQL using the Wizard.
- Using the web interface configure the agent's Network, Remote Control and Heartbeat settings.
- Configure one or more audit policies targeting just one MSSQL instance.
- Ensure you have administrator rights, open a command prompt and browse to the directory where SnareMSSQL is installed.
- Run the following commands:
SnareMSSQL -x
Export the information and error messages, along with the INF file contents to the screen.SnareMSSQL -x <INFfile>
Export the information and error messages to the screen and write the INF file contents to INFILE where <INFfile> is any file name for output, for use with the /LoadInf command line option.
- You will be prompted with:
Please enter the Encryption Password for sensitive information
Enter and re-enter the password as directed for either the Service Account and/or the Sensitive Information encryption. - Your encrypted Installation Password will be displayed. Note down the Installation Password. The /SnarePass command line option will accept this encrypted password and use it to decrypt the sensitive information in INFfile.
Silent Deployment
To install using the silent installer:
- Copy the Snare binary to your Snare installation e.g. c:\program files\snaremssql
- Ensure you have administrator rights, open a command prompt and browse to the directory where the setup program is stored.
- To install the SnareMSSQL application with the options specified in the mysettings.INF file, and not display any pop-up windows and create installation log files, run the file:
Snare-MSSQL-Agent-v
{Version}-
multiarch{Architecture}
.exe /verysilent /suppressmsgboxes /reinstall /LoadInf="mysettings.inf" /SnarePass="TG7Syk1ryEo=" /Log="c:\temp\mylogfile"
This option is suitable for packaging and non-interactive installations.
For deployment in a failover cluster scenario, this command only needs to be run on one node by an account with administrator privileges that extends to all nodes in the cluster. - To install the agent using the network configuration settings allowing access to the remote control interface with password set:
Snare-MSSQL-Agent-v
/usehostip=1 /destination=10.1.1.1 /destport=514 /sockettype=0 /reinstall /verysilent /remoteallow=1 /accesskey=mypassword{Version}-
multiarch{Architecture}
.exe
...