クライアントコマンド(hcp-ls)
hcp-lsコマンドは、リモート(サーバ、hcpdサーバ)上のファイル一覧を取得するコマンドです。
基本書式#
Usage: hcp-ls [OPTION]... [USER@]HOST[:PORT][:FILE] [:FILE]...   or: hcp-ls [OPTION]... --host=HOST [--port=PORT] [--user=USER] [FILE]...オプション一覧#
hcp-lsコマンドのオプションは以下の通りです。
ファイル一覧取得
| 説明 | 短縮名 | オプション名 | 
|---|---|---|
| 実行するリストコマンド(ls/dir)問い合わせ | q | query-cmdname | 
| リストコマンドのオプション指定 | o | cmd-options | 
| 接続先リモートホストの指定 | host | |
| 接続先リモートホストのサービスポート指定 | port | 
通信方式選択機能
| 説明 | 短縮名 | オプション名 | 
|---|---|---|
| HpFPプロトコルの使用 | hpfp | |
| ポート分離型UDP (HpFP)プロトコルの使用(廃止予定) | udp | 
輻輳制御
| 説明 | 短縮名 | オプション名 | 
|---|---|---|
| 輻輳制御モードの指定(HpFPプロトコル使用時) | hpfp-cong | 
データフロー制御・通信メッセージサイズ制御
| 説明 | 短縮名 | オプション名 | 
|---|---|---|
| MSS(Maximum Segment Size)の指定(HpFPプロトコル使用時) | hpfp-mss | 
データフロー制御・データバッファ設定
| 説明 | 短縮名 | オプション名 | 
|---|---|---|
| 送信バッファサイズの指定(HpFPプロトコル使用時) | hpfp-sndbuf | |
| 受信バッファサイズの指定(HpFPプロトコル使用時) | hpfp-rcvbuf | 
認証
| 説明 | 短縮名 | オプション名 | 
|---|---|---|
| ユーザ名を先に指定してファイル一覧取得 | user | |
| パスワードを先に指定してファイル一覧取得 | password | 
各種監視機能
| 説明 | 短縮名 | オプション名 | 
|---|---|---|
| 調査モード起動(廃止予定) | investigation | 
ログ管理機能
| 説明 | 短縮名 | オプション名 | 
|---|---|---|
| アプリケーションログの出力先指定 | log-file | |
| 各種統計ログの出力先指定 | stat-log-file | |
| 実行記録の出力先指定 | hcp-out | |
| 多重起動モードで起動 | multi-run | 
ソフトウェアの情報確認
| 説明 | 短縮名 | オプション名 | 
|---|---|---|
| バージョン確認 | V | version | 
| 入力パラメータ及び設定情報確認 | config-test | |
| コマンドヘルプの表示 | h | help | 
システム動作環境設定
| 説明 | 短縮名 | オプション名 | 
|---|---|---|
| 設定ファイルのパス指定 | config-file | |
| 設定項目上書き指定 | config-option | 
次のオプションはhcpdコマンドの説明をご参照ください。
--investigation次のオプションはhcpコマンドの説明をご参照ください。
--hpfp, --user, --password, --config-file, --config-option, --log-file, --stat-log-file,--udp, --hpfp-cong, --hpfp-mss, --hpfp-sndbuf, --hpfp-rcvbuf, --multi-runファイル一覧取得#
q, query-cmdname#
=========================================================================対応OS : Linux / Windows書式 : -q | --query-cmdname=========================================================================サーバ上で実行されるリストコマンドの名前を問合せます。以下の何れかが表示されます。
- ls (Linux)
- dir (Windows)
--例:[user@localhost ~]$ hcp-ls -q ...--o, cmd-options#
=========================================================================対応OS : Linux / Windows書式 : -o <options> | --cmd-options=<options>-------------------------------------------------------------------------options既定値 : なし値の範囲 : ls もしくは dirコマンドの引数オプション=========================================================================コマンドのオプションを指定します。空白もしくはハイフン"-"を含む場合は、クオートします。
--例:[user@localhost ~]$ hcp-ls -o "-al" ...--host#
=========================================================================対応OS : Linux / Windows書式 : --host=<remote-host>-------------------------------------------------------------------------remote-host既定値 : なし値の範囲 : IPアドレス もしくは ホスト名=========================================================================接続先のリモートホストを指定します。リスト対象を指定するパスに適用されます。このパラメータを指定した場合、このパスのホスト名を省略することができます。
--例:[user@localhost ~]$ hcp-ls --host=192.168.100.100 ...--port#
=========================================================================対応OS : Linux / Windows書式 : --port=<remote-port>-------------------------------------------------------------------------remote-port既定値 : なし値の範囲 : ポート番号=========================================================================接続先のリモートホストのサービスポート番号を指定します。リスト対象を指定するパスに適用されます。
--例:[user@localhost ~]$ hcp-ls --port=1874 ...--ログ管理機能#
hcp-out#
=========================================================================対応OS : Linux / Windows書式 : --hcp-out=<output-path>-------------------------------------------------------------------------output-path既定値 : なし値の範囲 : ファイルシステムのパス文字列=========================================================================ファイルリスト取得の実行記録を出力するファイルを指定します。リストの実行結果は常に標準出力へ出力されます。
--例:FILE 127.0.0.1:11111:/home/user/Desktop/hcp_dst5--
--例:[user@localhost ~]$ hcp-ls --hcp-out=- ...--ソフトウェアの情報確認#
V, version#
=========================================================================対応OS : Linux / Windows書式 : -V | --version=========================================================================hcp-lsコマンドのバージョンを表示します。
--例:[user@localhost ~]$ hcp-ls -Vhcp-ls client (hcp-ls) 1.2.11_7 / Linux (HpFP2 2.0.0.91_21)--config-test#
=========================================================================対応OS : Linux / Windows書式 : --config-test=========================================================================hcp-lsコマンドの入力パラメータ及び設定情報を出力します。
--例:[user@localhost ~]$ hcp-ls --config-test...
Number of Logical Processors  : 2Number of Physical Processors : 2
Command parameters query-cmdname      : disable cmd-options        : - host     : disable port     : disable hpfp               : disable (TCP used) version            : disable config-test        : enable help               : disable user           : disable password       : disable config-file        : disable log-file           : disable stat-log-file      : disable hcp-out        : - [.hcp.out] multi-run        : disable no-earlier-serv-compat : disable
Configuration parameters PubkeyAuthentication             : yes WinLogonUserAuthentication       : yes PAMAuthentication                : yes LocalPasswordAuthentication      : yes RequireServerCertificateSecurity : yes RejectFallbackServerCertificateSecurity : yes IgnoreCertificateCNInvalid       : yes IgnoreCertificateDateInvalid     : no IgnoreUnknownCA                  : no IgnoreRevocation                 : no CompressLevel                    : -1 HeaderCompress                   : yes ContentCompress                  : yes OCSPRevocationEnabled            : yes StrictHostKeyChecking            : ask ApplicationStatLog               : yes Rotation[size=no:0:0, pattern=no:] TransportStatLog                 : no Rotation[size=no:0:0, pattern=no:] PrivateKeySearchDir              : - [/etc/hcp/keys] PrivateKeyFile                   : - [~/.hcp/id_rsa] CACertificateFile                : - [/etc/hcp/cacert.pem] CACertificatePath                : - CARevocationFile                 : - [/etc/hcp/crl.pem] CARevocationPath                 : - ProtocolVersion                  : 2 MaxConcurrentThread              : 0 UDPTransportExtensionBufferSize  : 2147483648 MaxRequestFileEntryAtOnce        : 50 MaxReceiveFileSize               : unlimited MaxSendFileSize                  : unlimited MaxBufferSize                    : 1073741824 MaxReceiveRate                   : 10000000000 MaxSendRate                      : 10000000000 InitHeaderBlockSize              : 51200 InitContentBlockSize             : 51200 MaxHeaderBlockSize               : 51200 MaxContentBlockSize              : 51200 TransportTimeout                 : 180 FileLock                         : no FileLockTrials                   : 0 FileLockTrialInterval            : 3 AcceptableCryptMethod            : AES256/GCM AES256/CTR/VMAC AES256/CBC AES128/CBC [Intel:AES-NI=yes] AcceptableDigestMethod           : XXH3 SHA256 SHA160 DisableDataIntegrityChecking     : no AcceptDataIntegrityCheckingOnRejection : yes TransportCharEncoding            : UTF8 HostEncoding                     : UTF8 ApplicationLog                   : INFO no Rotation[size=no:0:0, pattern=no:] PubkeyAuthenticationPrior        : yes ApplicationStatLogSecurityEx     : yes--h, help#
=========================================================================対応OS : Linux / Windows書式 : -h | --help=========================================================================hcp-lsコマンドのヘルプを表示します。
--例:[user@localhost ~]$ hcp-ls -h--