Navigation: Program use > Program options > Service mode on Windows 2000+ >
Windows 2000+ services let you:
•Control service on local and remote computers, including remote computers with Windows 2000+ system.
•Setup actions on emergency service restore in case of failure, for example, auto service or computer restart (only on computers with Windows 2000 or later).
•Create for services other names and descriptions, to find them easier (only on computers with system Windows 2000 or later).
•Run service before user login (password input).
•Service can be configured on automatic start after operation system load.
Note 1: you must be logged in as an administrator to change the configuration or control the service in any way (start, stop, pause, continue).
Note 2: On Windows Vista and later you should start the program with elevated administrator privileges.
If you want to use the program as a service application, then, please, go to the "Options -> Program options -> Windows service" tab (fig. 29), then enable the "Use program as a service" checkbox. Later, please, specify the start-up type of the service. There are the following variants:
Fig. 29. Service settings
|1.||Automatic - the service starts automatically with Windows, before user login.|
|2.||Manual - you can start the service application from the "Services" control panel (fig. 32).|
|3.||Disabled - the service is disabled, and does not start at all.|
If you want to change the program settings while the program works in the service mode, you can start a second instance of the program on your desktop, make the necessary changes, and restart the service with the new settings.
Old Windows versions (before Windows Vista) allows you to use the service in the interactive mode. In this case, the program places an icon in the system area (fig. 30).
Fig. 30. Service icon in Systray
If the service should write data a database or use another service on your computer, they should be started before SNMP Data Logger. You can configure a list of these services on the "Program depends on services" tab (fig. 31).
Fig. 31. Service settings #2
Sometimes, you may need to start SNMP Data Logger before starting other services. In this case, you should:
•Switch the start mode of a target service to "Manual."
•Start SNMP Data Logger.
•Select the necessary service on the "Depending services" tab.
•Select the mode when the logger will start the selected service.
•Restart SNMP Data Logger.
After you configured SNMP Data Logger to work in the service mode, you need to restart a computer or start the service manually from the "Services" control panel (fig. 32).
Fig. 32. Manual service run (in Windows 2000)
When the service is running, two processes should appear in the Task Manager: snmploggersrv.exe and snmplogger.exe (fig. 33). The 'snmploggersrv.exe' application implements an interface between the service manager and the SNMP Data Logger software. Unlike srvany.exe utility, our service stops safely.
Fig. 33. Process list
If you want to configure the program as a service, then you must be logged with administrator rights. The service application can be controlled, stopped, or removed with the help of a command-line. Run snmploggersrv.exe with the following parameters:
•/? - a short help.
•/I - install service for starting in then manual mode.
•/A - install service for starting in the automatic mode.
•/D - install service in the disabled state.
•/R - remove service from the computer.