fw ctl get

Description

Shows the current value of the specified kernel parameter.

Important:

  • In a Cluster, you must configure all the Cluster Members in the same way.

  • In VSX Gateway, the configured values of kernel parameters apply to all existing Virtual Systems and Virtual Routers.

Notes:

  • Kernel parameters let you change the advanced behavior of your Security Gateway.

  • There are two types of kernel parameters - integer and string.

  • Security Gateway gets the names and the default values of the kernel parameters from these kernel module files:

    • $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

  • Refer to the related command fw ctl set.

  • Refer to the related article sk33156: Creating a file with all the kernel parameters and their values

Syntax

fw [-d] ctl get

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

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

Parameters

Parameter

Description

-d

Runs the command in debug mode.

Use only if you troubleshoot the command itself.

Best Practice - If you use this parameter, then redirect the output to a file, or use the script command to save the entire CLI session.

<Name of Integer Kernel Parameter>

Specifies the name of the integer kernel parameter.

<Name of String Kernel Parameter>

Specifies the name of the string kernel parameter.

-a

Specifies to search for this kernel parameter in this order:

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

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

Example for an integer kernel parameter

[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]#

Example for a string kernel parameter

[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]#