Using the command-line interface

The command-line interface provides a quick way to view proxy statistics and configure Content Gateway if you do not have access to a browser or if you prefer to use a UNIX shell-like command interface.

Note: This facility is not available when Content Gateway is hosted on a Forcepoint appliance. Instead, use the Content Gateway manager and see your appliance documentation.

You can execute individual commands or script multiple commands in a shell. See Content Gateway commands.

Steps

  1. Become root:
    su
  2. Change to the Content Gateway bin directory (/opt/WCG/bin). Run Content Gateway commands from this directory.
    • Commands take the form:

      content_line -<command_argument>

    • To view a configuration setting, enter the following command:

      content_line -r <var>

      Here, <var> is the variable associated with the configuration option (for a list of the variables, refer to Configuration variables).

    • To change the value of a configuration setting, enter the following command:

      content_line -s <var> -v <value>

      Here, <var> is the variable associated with the configuration option and <value> is the value you want to use.

  3. For a list of content_line commands, enter:

    content_line -h

    Note:

    If the Content Gateway bin directory is not in your path, prepend the command with “./”.

    For example:

    ./content_line -h