Windows 2000+ services use will 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 setup on automatic start after operation system load.
Note 1: you must be logged in as an administrator in order 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. 6.4.1), then enable the "Use program as a service" check box. Later, please, specify the startup type of the service. There can be following variants:
Fig. 6.4.1 Service settings
If you want to change program settings while service mode, then enable the "Allow service to interact with desktop" option. In this case, the program will put the icon to the SysTray (fig. 6.4.2). But then your interactive service will be restarted while user log off.
Fig. 6.4.2 Service icon in Systray
If you use data bases or special drivers, before service run, these applications must be run. You can specify what services should be started before SNMP Data Logger in the "Program depends on services" window (fig. 6.4.3).
Fig. 6.4.3 Service settings #2
In some case you need to start SNMP Data Logger before starting other services. In this case you should:
•Switch a start mode of a target service to "Manual";
•Start SNMP Data Logger;
•Set on the target service at the "Services depend on ASDL" tab;
•Select mode when you need start these service;
•Restart SNMP Data Logger.
After you installed the service mode of the program, restart a computer or run the service manually from the "Services" window in the Control panel (fig. 6.4.4)
Fig. 6.4.4 Manual service run (in Windows 2000)
After start of the service, the service processes names will be displayed in a process list: snmploggersrv.exe and snmplogger.exe (fig. 6.4.5). The 'snmploggersrv.exe' application makes interface between the service manager and the SNMP Data Logger software. Unlike srvany.exe utility, our service stops safely.
Fig. 6.4.5 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 help of a command line string. Run snmploggersrv.exe with following parameters:
•/? - short help;
•/I - install service for start in manual mode;
•/A - install service for start in automatic mode;
•/D - install service in off state;
•/R - remove service from computer.