It's really not that difficult to direct a Unix, Linux or Macintosh client to a different NS server. Simply change the 'Server-1' value in the client.conf, restart the agent and voila! The following shell script will even do it all for you!
The 'Server-1' value in the client.conf file is used by the agent to determine which NS server to communicate with. Changing this value and restarting the agent process will cause the agent to communicate to the new server. If the value specified in 'Server-1' is not a valid NS server, communication will obviously fail.
The same result can be achieved by
This script displays the before value of the 'Server-1' name/value pair in the client.conf file, modifies the value as specified via a command line parameter, restarts the agent process and displays the after value. The process is not complete until the agent process restarts. It may be helpful to manually run 'aex-sendbasicinv' and 'aex-refreshpolicies'.
After downloading this script, run chmod to make it executeable, e.g., "chmod 755 setnsserver,sh" or "chmod u+x setnsserver.sh". The script will not run if it is not executable.
This script requires the use of root privileges or 'sudo' to modify the client.conf file and to restart the agent. If the agent restart process fails or stalls, enter 'ctrl-c' to break the currently running process and rerun the shell script using sudo, e.g., "sudo ./setnsserver.sh".