Open Frames Download Complete PDF Send Feedback Print This Page

Previous

Next

Update Configuration Files (update_conf_file)

Use this command to add, update, and remove variables from configuration files. If the file does not exist, this command creates it.

Syntax

> update_conf_file <file_name> <var>=<value>

Parameter

Description

<file_name>

Full path and name of the configuration file to update

You do not need to specify the path for these files:

  • fwkern.conf
  • simkern.conf

<var>

Variable to update

<value>

New value for the variable

Examples

> update_conf_file /home/admin/MyConfFile.txt var1=hello         
> cat /home/admin/MyConfFile.txt                                 
-*- 3 blades: 2_01 2_02 2_03 -*-
var1=hello

> update_conf_file /home/admin/MyConfFile.txt var2=24h           
> cat /home/admin/MyConfFile.txt                         
-*- 3 blades: 2_01 2_02 2_03 -*-
var2=24h
var1=hello

> update_conf_file /home/admin/MyConfFile.txt var1=goodbye
> cat /home/admin/MyConfFile.txt                         
-*- 3 blades: 2_01 2_02 2_03 -*-
var2=24h
var1=goodbye

> update_conf_file /home/admin/MyConfFile.txt var2=       
> cat /home/admin/MyConfFile.txt                  
-*- 3 blades: 2_01 2_02 2_03 -*-
var1=goodbye

Configuration file required format:

This command works with configuration files composed of lines where each line defines one variable.

<variable>=<value>

Variable name must not include: =

Note - fwkern.conf and simkern.conf use this format.

 
Top of Page ©2014 Check Point Software Technologies Ltd. All rights reserved. Download Complete PDF Send Feedback Print