Netconfig script failed with error 10: netconfig in RSA NetWitness Logs and Network 11.0.0.0
Issue
When running nwsetup-tui after appliance bootstrap process, it fails with below error on screen.
[2018-03-28T00:46:22+00:00] <3256> (INFO) [nwsetup] Updating network configuration...
netconfig: please specify gateway
Try 'netconfig --help' for usage information.
[2018-03-28T00:46:22+00:00] <3256> (ERROR) [nwsetup] Installation failed [error 10: netconfig]!
netconfig: please specify gateway
Try 'netconfig --help' for usage information.
[2018-03-28T00:46:22+00:00] <3256> (ERROR) [nwsetup] Installation failed [error 10: netconfig]!
And following logs logged at /var/log/netwitness/bootstrap/nwsetu-tui.log.
[2018-03-27T20:54:17+00:00] <11638> (INFO) [nwsetup] Updating network configuration...
[2018-03-27T20:54:17+00:00] <11638> (ERROR) [nwsetup] Installation failed [error 10: netconfig]!
[2018-03-27T20:54:17+00:00] <11638> (ERROR) [nwsetup] Installation failed [error 10: netconfig]!
Cause
A network-info.txt file was created for each appliance when a backup was performed prior to NW 11 upgrade.It should contain the following lines, and each line should have a value. For example:
DEVICE=em1
BOOTPROTO=none
IPADDR=x.x.x.x
NETMASK=255.255.255.0
GATEWAY=x.x.x.x
nameserver xxxxxx
nameserver xxxxxx
search xxx.xxx
In case of a value is missing for a parameter, the netconfig command in nwsetup-tui will fail with error 10.
Resolution
-SSH to appliance-cd /var/netwitness/database/nw-back directory
-cat
Verify the content of the file and if a value is missing, use vi to edit the file and add the value back.
Sample output:
DEVICE=em1
BOOTPROTO=none
IPADDR=x.x.x.x
NETMASK=255.255.255.0
GATEWAY=x.x.x.x
nameserver xxxxxx
nameserver xxxxxx
search server.lan
Product Details
RSA Product Set: NetWitness Logs and NetworkRSA Product/Service Type: Security Analytics Server
RSA Version/Condition: 11.0.0.0
Approval Reviewer Queue
RSA NetWitness Suite Approval Queue