Skip to main content

Function Detail (for Supporting System Operation and Management)

Monitoring Functions#

hcpd is available to run in foreground. All commands can output debug information (logs in debug level) if you change the level. And you can configure timeouts to detect transport disconnection or idling among operations on the server.

Please be careful of unexpected timeouts from changing the log level to debug since producing many logs makes delays of processing on file transfer on some environment, e.g. computers behind NAT.

Related Option

Command NameShort NameOption NameDescription
hcpdfforegroundRunning in foreground
hcpd/hcp/hsync/hrm/hcp-ls/hmkdir/hpwd/hmv/hln/hchmod/hchowninvestigationRunning in investigation mode (deprecated)

Related Configuration

CategoryConfiguration NameDescription
Server ConfigurationTransportTimeoutSet transport timeout
IdleTimeoutSet idling timeout
SystemLogSystem log configuration
SystemLogLevelSystem log level
Client Common ConfigurationTransportTimeoutSet transport timeout
ApplicationLogApplication log configuration
ApplicationLogLevelApplication log level

Performance Evaluation Functions#

This is a function to confirm performances of data processing on sources and network communication. The function is useful for taking benchmarks on your environments and making investigation for causes from which expected performance dose not appears.

Related Option

Command NameShort NameOption NameDescription
hcpNno-sendMeasure disk I/O performance in reading
hcp/hrmnno-diskioMeasure network I/O performance with HCP protocol

Related Configuration

CategoryConfiguration NameDescription
Server ConfigurationMemoryTransferConcurrencyMemory copy parallelism (when disabling local disk I/O)
Client Configuration (hcp)MemoryTransferConcurrencyMemory copy parallelism (when disabling local disk I/O)

Logging Management Functions#

Archaea tools provides the following types of logs.

TargetTypeRecorded ContentInitial ConfigurationDefault Place to Output
ServerSystem LogSystem logsâ—‹/var/log/hcpd.log(Linux)
C:/ProgramData/Clealink/HCP Tools/hcpd.log(Windows)
System Statisticstraffic volume and access status on hcpd daemon runningâ—‹/var/tmp/.hcp.statistics.system(Linux)
C:/ProgramData/Clealink/HCP Tools/Temp/_hcp.statistics.system(Windows)
Application StatisticsRun results of applicationâ—‹/var/tmp/.hcp.statistics.application(Linux)
C:/ProgramData/Clealink/HCP Tools/Temp/_hcp.statistics.application(Windows)
TCP Transport Statisticstraffic and statistics on TCP transport-/var/tmp/.hcp.statistics.transport.tcp.service_<service_num>.<service_port>.thread_<thread_num> (Linux)
C:/ProgramData/Clealink/HCP Tools/Temp/_hcp.statistics.transport.tcp.service_<servicenum>.<service_port>.thread<thread_num>(Windows)
HpFP Transport Statisticstraffic and statistics on HpFP transport-/var/tmp/.hcp.statistics.transport.hpfp.service_<service_num>.<service_port>.thread_<thread_num>(Linux)
C:/ProgramData/Clealink/HCP Tools/Temp/_hcp.statistics.transport.hpfp.service_<service_num>.<service_port>.thread_<thread_num>(Windows)
File Operation LogFile operation logs-/var/log/hcpd.file.operation.log(Linux)
C:/ProgramData/Clealink/HCP Tools/hcpd.file.operation.log(Windows)
ClientApplication LogApplication logsâ—‹stdout
Application StatisticsRun results of applicationâ—‹<user_curdir>.hcp.statistics.application(Linux)
<user_curdir>_hcp.statistics.application(Windows)
TCP Transport Statisticstraffic and statistics on TCP transport-<user_curdir>.hcp.statistics.transport.tcp(Linux)
<user_curdir>_hcp.statistics.transport.tcp(Windows)
HpFP Transport Statisticstraffic and statistics on HpFP transport-<user_curdir>.hcp.statistics.transport.hpfp(Linux)
<user_curdir>_hcp.statistics.transport.hpfp(Windows)

* On Unix platforms, Archaea tools also output logs from syslog subject to its system configuration.

* As other forms of recording running results, it save a running result of a command to a specific file (.hcp.out on Linux and _hcp.out on Windows). This file is overwritten when each command runs. So the file dose not hold records before the current run.

Archaea tools provides the following logging management functions for each type of logs.

  • Destination to Output Logs

    You can specify a destination to output logs by changing configuration files of a server and client or using command options.

    If you use the command options, you can specify the destination each command execution. The options are 'log-file' and 'stat-log-file' except for hsync. For hsync, 'hcp-log-file' and 'hcp-stat-log-file' are provided as identical options for them.

  • Log Level

    You can set a log level to logs Archaea tools produces. It can be chosen from EMERG, ALERT, CRIT, ERR, WARNING, INFO and DEBUG that are subject to the Severity of Syslog.

  • Log Rotation

    For each log, you can specify log rotation subject to threshold of a file size or date and time.

Related Option

Command NameShort NameOption NameDescription
hcpdllog-fileSet file path to save system logs
Lstat-log-fileSet base path to save statistics
hcp/hrm/hcp-ls/hmkdir/hpwd/hmv/hln/hchmod/hchown/hchownlog-fileSet file path to save application logs
stat-log-fileSet base path to save statistics
hcp-outSet file path to save running records
multi-runRun in multi-running mode
hsyncvverboseSet verbosity of logs
infoSet categories of logs for INFO level
qquietSet suppressing logs except for errors
log-fileSpecify a log file
hcp-log-fileSpecify a log file for HCP logs
hcp-stat-log-fileSpecify a path of logging HCP statistics
hcp-outSpecify a path to save HCP running records
multi-runRun in multi-running mode

Related Configuration

CategoryConfiguration NameDescription
Server ConfigurationSyslogOptionSet syslog option
SyslogFacilitySet syslog facility
SystemLogSystem log configuration
SystemLogLevelSystem log level
ApplicationStatLogApplication statistics configuration
TransportStatLogTransport statistics configuration
SystemStatLogSystem statistics configuration
FileOperationLogFile operation logging configuration
StatLogPerUserInPrivilegeSeparationSave statistics logs to files determined from each user (when privilege separation being enabled)
ApplicationStatLogSecurityExSet to output a security detail on application statistics
Client Common ConfigurationApplicationLogApplication log configuration
ApplicationLogLevelApplication log level
ApplicationStatLogApplication statistics configuration
TransportStatLogTransport statistics configuration
ApplicationStatLogSecurityExSet to output a security detail on application statistics

Showing Software Information#

This describes functions to show information of the software itself (version), its helps and configuration status decided from configuration files and input parameters.

Normally Archaea tools can show the information using the following options on the command line. When showing it at Windows server, you should see the log file for the information.

Related Option

Command NameShort NameOption NameDescription
hcpd/hcp/hsync/hrm/hcp-ls/hmkdir/hpwd/hmv/hln/hchmod/hchownVversionDisplay the application version
hcpdtconfig-testDisplay configuration and input parameters
hcp/hsync/hrm/hcp-ls/hmkdir/hpwd/hmv/hln/hchmod/hchownconfig-testDisplay the configuration and input parameters
hcpd/hcp/hsync/hrm/hcp-ls/hmkdir/hpwd/hmv/hln/hchmod/hchownhhelpShow command help

System Run-Time Configuration#

For smooth operation on your system, various options, e.g. path of configuration files, PID file's specification, license key specification and signals to stop, are provided.

Related Option

CommandShort NameOption NameDescription
hcpdcconfig-fileSet file path of configuration
ppid-fileSet file path to save PID
klicenseSet file path holding license key
qquitSend signal to stop
hcp/hsync/hrm/hcp-ls/hmkdir/hpwd/hmv/hln/hchmodconfig-fileSet file path of configuration
  • CPU Thread Limitation

This function limits a number of threads that will be running on the process of the software.

Related Configuration

CategoryConfiguration NameDescription
Server ConfigurationMaxConcurrentThreadLimit number of threads to use (Linux)
Client Common ConfigurationMaxConcurrentThreadLimit number of threads to use (Linux)
  • Cooperation with External Application

This is a function to call a script (or program) when running each command of the software is finished.

Related Configuration

CategoryConfiguration NameDescription
Server ConfigurationCallbackScriptSpecify a script to call when running a command is finished

Manipulation of Files and Directories#

You can make the following manipulation to files and directories on the server.

  • Delete
  • List
  • Create Directory
  • Print Working Directory
  • Move
  • Create Link
  • Change File Permission
  • Change Owner and Group

Related Commands

Command NameDescription
hrmRemove files
hcp-lsList files
hmkdirCreate directories
hpwdPrint the working directory
hmvMove files
hlnCreate links
hchmodChange file permissions
hchownChange owner and group of files