hvragentlistener
Usage
hvragentlistener [-options]... portnum
Description
Command hvragentlistener allows to start, stop, and manage the HVR Agent Listener service. When the HVR Agent Listener service is started, it will listen for a connection request on the supplied portnum
. The mechanism is the same as that of the Linux/Unix daemon (systemd, xinetd, or inetd).
- On Windows, the HVR Agent Listener is a Windows service which is administered with option
-a
. The account under which it is installed must be a member of the administrator group and must be granted the privilege to act as part of the operating system (SeTcbPrivilege). The service can either run as the default system account or (if option-P
is used) it can run under the Fivetran account which created the Windows Service. - On Unix and Linux, the HVR Agent Listener runs as a daemon which can be started with option
-d
and killed with option-k
.
For HVR Agent Listener on Linux and Unix, it is more common to start HVR executables using the system process (systemd, xinetd, or inetd). For more information, see System Configuration for Agent on Linux or System Configuration for Agent on Unix.
When the HVR Agent Listener is executed as a Windows Service, the errors are written to the Windows Event Log (Control Panel ▶ Adminitrative Tools ▶ Event Viewer ▶ Windows Logs ▶ Application).
Options
This section describes the options available for command hvragentlistener.
Parameter | Description |
---|---|
-ax Windows | Administration operations for the HVR Agent Listener service on Windows. Values of
Several
|
-d Unix & Linux | Start HVR Agent Listener as a daemon process. |
| Set environment variable name to value for the HVR processes started by the service. |
| Interactive invocation. HVR Agent Listener stays attached to the terminal instead of redirecting its output to a log file. |
-k Unix & Linux | Stop a running HVR Agent Listener daemon process. |
Windows | Configure HVR Agent Listener service to run under the current login Fivetran account using password |
Examples
This section provides examples of using the hvragentlistener command.
Example 1. Run HVR Agent Listener interactively
Command to run hvragentlistener interactively in the terminal and listen on port number 4343.
hvragentlistener -i 4343
In this method, exiting the shell/terminal will terminate the HVR Agent Listener.
Example 2. Run HVR Agent Listener as daemon process in Linux/Unix
Command to run the hvragentlistener as daemon process in Linux/Unix and listen on port number 4343.
hvragentlistener -d 4343
Example 3. Stop/kill HVR Agent Listener running as daemon process in Linux/Unix
Command to stop/kill the hvragentlistener that is running as daemon process and listening on port 4343.
hvragentlistener -k 4343
Example 4. Create and start the HVR Agent Listener as a Windows service
Command to create and run/start the hvragentlistener as a Windows service and listen on port number 4343.
hvragentlistener -acs 4343
Example 5. Stop and destroy the HVR Agent Listener service in Windows
Command to halt and destroy the hvragentlistener that is running as a Windows service and listening on port number 4343.
hvragentlistener -ahd 4343