fw ctl get

説明

指定されたカーネルパラメータの現在値を表示する。

重要:

注:

  • カーネルパラメータを使用すると、Security Gatewayの高度な動作を変更することができます。

  • カーネルパラメータには、integerstring の 2 種類があります。

  • Security Gatewayは、これらのカーネルモジュールファイルから、カーネルパラメータの名前とデフォルト値を取得します。

    • $FWDIR/boot/modules/fw_kern_64.o

    • $FWDIR/boot/modules/fw_kern_64_v6.o

    • $FWDIR/boot/modules/fw_kern_64_3_10_64.o

    • $FWDIR/boot/modules/fw_kern_64_3_10_64_v6.o

    • $PPKDIR/boot/modules/sim_kern_64.o

    • $PPKDIR/boot/modules/sim_kern_64_v6.o

    • $PPKDIR/boot/modules/sim_kern_64_3_10_64.o

    • $PPKDIR/boot/modules/sim_kern_64_3_10_64_v6.o

  • 関連コマンドfw ctl set を参照してください。

  • 関連記事sk33156をご参照ください。すべてのカーネルパラメータとその値を含むファイルの作成

構文

fw [-d] ctl get

      int <Name of Integer Kernel Parameter> [-a]

      str <Name of String Kernel Parameter> [-a]

パラメータ

パラメータ

説明

-d

デバッグモードでコマンドを実行します。

コマンド自体のトラブルシューティングを行う場合のみ使用します。

ベストプラクティス- このパラメータを使用する場合、出力をファイルにリダイレクトするか、script コマンドを使用して CLI セッション全体を保存してください。

<Name of Integer Kernel Parameter>

整数のカーネルパラメータ名を指定する。

<Name of String Kernel Parameter>

文字列カーネルパラメータの名称を指定する。

-a

このカーネルパラメータをこの順序で検索することを指定する。

  1. $FWDIR/boot/modules/fw_*.o

  2. $PPKDIR/boot/modules/sim_*.o

カーネルパラメータが整数の場合の例

[Expert@MyGW:0]# fw ctl get int fw_kdprintf_limit -a
FW:
fw_kdprintf_limit = 100
PPAK 0: fw_kdprintf_limit = 10
[Expert@MyGW:0]#

文字列カーネルパラメータの例

[Expert@MyGW:0]# fw ctl get str fileapp_default_encoding_charset -a
FW:
fileapp_default_encoding_charset = 'UTF-8'
PPAK 0: Get failed.
[Expert@MyGW:0]#