Appendix B. Silent Installation Using CLI
Appendix B. Silent Installation Using CLIAppendix B. Silent Installation Using CLI
You can use the following Command Line Interface commands to run the installation script (nwsetup-tui) without getting prompted for inputs. This enables you to automate the installation of a host by supplying response to the scripts prompts through the command line.
- After you have created a base image on the host, log in to the host with the root credentials.
-
Submit the nwsetup-tui script with the --silent command and the arguments that you want to apply.
The following command string is an example of how you would install a basic NW Server host.
nwsetup-tui --silent --is-head=true --host-name=new-host --master-pass=netwitness --deploy-pass=netwitness --repo-type=1 --custom-firewall=false --ip-override=false --eula=true
Note: In NetWitness Platform version 11.6 or later, deployment account password must contain at least one number, one upper and lower case letter, and one special characters (!@#%^,+ . ) along with the existing policy. The same password policy applies while updating deploy_admin password using nw-manage script.
If deploy_admin password is changed on Primary NW Server, It must be changed on the Warm Standby Server if it exists.
-
(Conditional - For Component Hosts Only) Install the appropriate service Category on the newly provisioned host in the NetWitness Platform Hosts view.
-
Log into NetWitness and go to
(Admin) > Hosts.The New Hosts dialog is displayed with the Hosts view grayed out in the background
Note: If the New Hosts dialog is not displayed, click Discover in the Hosts view toolbar.
-
Select the host in the New Hosts dialog and click Enable.
The New Hosts dialog closes and the host is displayed in the Hosts view.
-
Select that host in the Hosts view (for example, Event Stream Analysis) and click
.The Install Services dialog is displayed.
- Select the appropriate host type in Category and click Install.
-
ArgumentsArguments
- Argument:
‑‑help‑install‑opts
- Description:
Display all the arguments in this table.
- Argument: --eula
- Description:
Accept or decline the End User License Agreement (EULA). Specify:
- true (default) to accept the agreement
- false to decline it and cancel the installation.
For example: --eula=true
- Argument: --is-head
- Description:
Designate the host as the NW Server host or a component host. Specify:
- true for NW Server host.
- false for Component host.
For example: --is-head=true
- Argument: --host-name
- Description:
Specify new hostname. If you do not specify this argument, NetWitness Platform retains the existing hostname.
For example: --host-name=
- Argument:
--master-pass
- Description:
Enter master password. For example:
--master-pass=
- Argument:
--deploy-pass
- Description: Enter deployment password. For example:
--deploy-pass=
- Argument:
--iface-name
- Description:
Specify network interface.
For example: --iface-name=eth0
- Argument:
--ip-override
- Description:
Accept or override IP address found for this host or change the IP configuration found on the host. Specify:
- true provide IP address.
- false use IP address found on the host.
For example: --ip-override=false
- Argument:
--ip-type
- Description:
Select ip address configuration type. Specify:
- 1 Static IP Configuration)
- 2 DCHP
For example: --ip-type=1
- Argument:
--ip-addr
- Description:
For Static IP configuration, enter IP Address for static address.
For example: --ip-addr=
- Argument:
--ip-netmask
- Description:
For Static IP configuration, enter Subnet Mask for static address. For example:
--ip-gateway=
- Argument:
--ip-gateway
- Description: For Static IP configuration, enter default gateway for static address. For example:
--ip-gateway=
- Argument:
--ip-nameserver
- Description:
IP address assigned to DNS server.
--ip-nameserver=
- Argument:
‑‑ip‑nameserver‑secondary
- Description: Optional - IP address assigned to a secondary DNS server.
For example: --ip-nameserver-secondary=
- Argument:
--ip-domain
- Description:
For Static IP configuration, enter Local Domain Name for static address. For example:
--ip-domain=
- Argument:
--repo-type
- Description:
Select type of update repository. Specify:
- 1 Local repository
- 2 External repository
For example: --repo-type=1
- Argument:
--repo-url
- Description: For an external update repository, specify the url of the repository. For example:
--repo-url=
- Argument:
--head-ip
- Description:
For a component host, specify IP Address of the NW Server.
For example: --head-ip=
- Argument: --custom-firewall
- Description:
Disable default firewall configuration and use your custom configuration. Specify:
- true use custom firewall configuration.
- false use default firewall configuration.
For example: --custom-firewall=true
- Argument: --use-nat
- Description:
Configure the host to use Network Address Translation (NAT) based IP addresses:
- true use NAT IPs to connect to other hosts
- false do not use NAT IPs to connect to other hosts (default)
For example: --use-nat=false