1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

IBM i Services Directory : QSYS2.TCPIP_Info ビュー 自身のIBM i 接続情報を表示

Posted at

このIBM i サービスを実行するリクエスターとIBM i とのTCP/IP接続情報を返します。

概要

■表名:QSYS2.TCPIP_INFO
■カテゴリ:通信サービス
■サポート:IBM i 7.2 Base以降
■参照URL(IBM i 7.5):https://www.ibm.com/docs/ja/i/7.5?topic=services-tcpip-info-view

使用例:

SELECT * FROM QSYS2.TCPIP_INFO ;

実行結果はこちら。
image.png

このコマンドを実行したリクエスターのポート・IPアドレス、サーバーのホスト名、接続ポート・IPアドレスなどが表示されます。

参考:CLPの類似のプログラミング例

こちらの記事にクライアントのIPアドレスを取得するコマンドサンプルを掲載しています。

比較するとIBM i サービスは楽だなーと分かりますね。

1
0
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?