Starting with NetWorker 8.0, NetWorker uses the /nsr/nsrrc file to define environment variables at NetWorker startup. This can also be used to make dynamic parameter changes such as tcp settings.
Sourcing of this file occurs before starting the NetWorker processes. In previous releases of NetWorker, environment variables were commonly specified in the NetWorker startup script. These startup script files were overwritten when a software upgrade or reinstall occurred. The new /nsr/nsrrc file is not removed when upgrading or reinstalling the software.
Dell NetWorker. Setting environment variables in NetWorker on Unix and Linux. In order to create environment variables in NetWorker on startup, we need to create a file called the "nsrrc" file.
This file is created in the "nsr" directory or wherever you have NetWorker installed. By default it's "/nsr". If the file doesn't exist already, we create the file. It's called "nsrrc". In that file, we put the parameters that we want to change at startup of NetWorker.
So there's two different formats. There's commands we can put in here that we want run at NetWorker startup. Here in our example it's the "sysctl" command in order to change environment variables on the NetWorker server environment. Or we can set a specific environment variable calling that environment variable and setting it and then exporting the variable as we see here with the "NSR_KEEPALIVE_WAIT" variable.
We give the file 755 permissions so that it can be read at startup. We then restart NetWorker in order that the file be read the file being "/nsr/nsrrc". And then we once we start NetWorker, we can confirm that these commands have been run and the settings have been set as we wished.
Here we use the "sysctl" command in order to have a look to see what the setting means right now on the system, and confirm that what was in the "nsrrc" command has been taken into account. In this way, we can set environment variables in NetWorker using the "/nsr/nsrrc" file at NetWorker startup.