If you have hosts in your environment that use custom entries, or if you want to use NAT IPv4 addresses for your hosts, this topic provides instructions for configuring these settings.
Manage Custom Host Entries in /etc/hosts
If you identify hosts in your environment that need custom entries, you can add custom entries for your hosts in the /etc/hosts.user file.
To add custom host entries:
- From the console, log in to the host on which to define custom entries.
- Add the custom entry to the /etc/hosts.user file.
To update or refresh a custom entry in /etc/hosts:
Run the following command:
nw-manage --refresh-host --host-key <ID, IP, hostname or display name of host>
Manage Public or NAT IPv4 Addresses for Hosts
To add or update public or Network Address Translation (NAT) IPv4 addresses for NW Hosts, run the following command:
nw-manage --update-host --host-id <NW Server Host UUID> --ipv4-public <IP address>
Manage Custom Jetty Configuration
If you want to have custom jetty configurations or additional JAVA_OPTIONS that persist during the upgrade, this topic provides the instructions for configuring custom jetty settings.
To add custom jetty configuration
- From SSH prompt, create a copy of jetty configuration as jetty.user using the below command.
$ cp /etc/default/jetty
- Edit /etc/default/jetty.user and add/edit the environment-specific configuration. For ex: If you update -default values of Xmx and -Xms, it will be applicable for this configuration file.
- Restart the jetty service.
- Remove [ -f /etc/default/jetty.user ] && source /etc/default/jetty.user in case it is present for jetty.user.