NetWorker Services verify if running and include stopping and restarting services (both UNIX and Windows)
Summary: NetWorker Services verify if running and include stopping and restarting services (both UNIX and Windows).
Instructions
Windows Operating Systems
1. Open an administrative PowerShell prompt on the NetWorker server.
2. Verify which NetWorker packages are installed:
Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*" | Where-Object { $_.DisplayName -like "*NetWorker*" } | Select-Object DisplayName, DisplayVersion, InstallDate
3. Verify that NMC services are running (if installed):
Get-Service | Where-Object { $_.DisplayName -like "*GST*" } | Select-Object Name, DisplayName, Status
Example:
PS C:\Users\Administrator.NETWORKER> Get-Service | Where-Object { $_.DisplayName -like "*GST*" } | Select-Object Name, DisplayName, Status
Name DisplayName Status
---- ----------- ------
EMC GST Database Service EMC GST Database Service Running
EMCGSTWebServer EMC GST Web Service Running
gstd EMC GST Service Running
gstSnmpTrapd EMC GST Trap Handler Running
4. Verify backup server, and client services are running:
Get-Service | Where-Object { $_.DisplayName -like "*NetWorkrer*" } | Select-Object Name, DisplayName, Status
Example:
PS C:\Users\Administrator.NETWORKER> Get-Service | Where-Object { $_.DisplayName -like "*NetWorker*" } | Select-Object Name, DisplayName, Status
Name DisplayName Status
---- ----------- ------
NetWorker WebUI Database NetWorker WebUI Database Stopped
nsrd NetWorker Backup and Recover Server Running
nsrexecd NetWorker Remote Exec Service Running
nsrpsd NetWorker Snapshot Management Service Running
nwui NetWorker Management Web UI Server Running
To stop the services for NetWorker.
Run the following command from an admin command prompt to stop all services: net stop nsrexecd /y
To stop the NetWorker Web User Interface (NWUI) service: net stop nwui
Optionally any nsr or save processes can be terminated with taskkill:
taskkill /F /IM nsr*
taskkill /F /IM save*
Steps to Rename Some Directories and/or Files.
1. Go to the Windows explorer and open to the directory where networker is installed (default location --> C:\Program Files\EMC NetWorker\).
2. Under the ..\nsr\logs\ directory, rename the daemon.raw. When NetWorker services start, a new log is generated automatically.
3. For NMC servers, Under the ..\Management\GST\logs, rename the gstd.raw. When NetWorker services start, a new log is generated automatically.
4. Under the ..\nsr\res directory, there is a JOBSDB directory - this is not required all the time but if you are having issues with the NMC and not reflecting correctly as in nsrwatch rename JOBSDB directory.
To start the services for NetWorker.
To start NetWorker server and client services, run: net start nsrd
To start the NMC service, run: net start gstd
To start only the client service, run: net start nsrexecd
To start the NWUI service, run: net start nwui
If system is a NetWorker server, the \nsr\logs\daemon.raw reports "open for business" once all services have started and databases checked in. If real-time rendering is enabled there should be a rendered daemon.log file; otherwise, the .raw file can be rendered:
1. Open an administrative command prompt in the ..\nsr\logs\ directory.
2. Render the daemon.raw: nsr_render_log daemon.raw |find /i "open for business"
157127 MM/DD/YYYY HH:MM:SS AM/PM 1 8 0 9452 4100 0 <networker_server> nsrmmdbd MDB notice Media database is open for business
This indicates that the server is back in a fully operational state.
UNIX/LINUX Operating Systems
1. Connect to the NetWorker server using SSH or console connection as root.
2. Verify which NetWorker packages are installed:
sudo su -, or (2) remain as the SSH user and perform each of the following commands with sudo prefix.
Red Hat, CentOS, Oracle Linux, SUSE: rpm -qa | grep lgto
Debian or Ubuntu: dpkg -i | grep lgto
3. Verify that NetWorker services are running: systemctl status networker
4. Verify that the NetWorker Management Console (NMC) service is running (if installed): systemctl status gst
5. Verify that the NetWorker Web User Interface (NWUI) service is running (if installed): systemctl status nwui
To stop the services for NetWorker.
1. From a root command prompt, run the following command to stop server and client services: nsr_shutdown
2. To stop the NMC services run: systemctl stop gst
3. To stop the NWUI service run: systemctl stop nwui
4. To verify that no services processes are running, run the ps command:
ps -ef | grep nsr
NMC server processes:
ps -ef | grep gst
NWUI services:
ps -ef | grep nwui
5. If there are any leftover running processes, they can be stopped by running: kill -9 PID
Steps to Rename Some Directories and/or Files.
1. To rename the daemon.raw run: mv /nsr/logs/daemon.raw /nsr/logs/daemon_$(date -I).raw
2. To rename the NetWorker JOBSDB run: mv /nsr/res/jobsdb /nsr/res/jobsdb_$(date -I)
nsrwatch command is showing something different - then rename this directory.
3. Rename the NMC's gstd.raw file:
mv /opt/lgtonmc/logs/gstd.raw /opt/lgtonmc/logs/gstd_$(date -I).raw
mv /nsr/logs/daemon.raw /nsr/logs/daemon_$(date -I).raw
To start the services for NetWorker.
To start NetWorker server and client services, run: systemctl start networker
To start the NMC service, run: systemctl start gst
To start the NWUI service, run: systemctl start nwui
If system is a NetWorker server, the /nsr/logs/daemon.raw reports "open for business" once all services have started and databases checked in. If real-time rendering is enabled there should be a rendered daemon.log file; otherwise, the .raw file can be rendered:
1. From a root command prompt: cd /nsr/logs/
2. Render the daemon.raw: nsr_render_log daemon.raw |grep -i "open for business"
157127 MM/DD/YYYY HH:MM:SS AM/PM 1 8 0 9452 4100 0 <networker_server> nsrmmdbd MDB notice Media database is open for business
This indicates that the server is back in a fully operational state.
Additional Information
- NetWorker: Methods for Identifying NetWorker Software version
- NetWorker: Log Files and Locations
- NetWorker Processes and Ports
- NetWorker: How to use nsr_render_log to render .raw log files
- NetWorker: How to automatically render daemon.raw to daemon.log in real time
- NetWorker: How to set the log rollover/truncation time