Edit sensor configuration

In Central Management Console (CMC) and Guardian sensors, use the command-line Interface (CLI) to configure the Nozomi Networks solution.

You can access the command-line interface (CLI) in two ways:
  • use the cli command in a text-console when connected to the sensor, either directly or through secure shell (SSH)
  • in the web GUI, select Administration > Settings > CLI

Examples:

A command issued via the cli command in a shell:
root@ch-lab-sg-guardian-stable:~ # cli
> conf.user configure vi gc old_ghost_nodes 3600
{"result"=>true}
success
A command issued (through pipe) to the cli command in a shell:
root@ch-lab-sg-guardian-stable:~ # echo conf.user configure vi gc old_ghost_nodes 3600 | cli
> {"result"=>true}
success
>root@ch-lab-sg-guardian-stable:~ #

There are cases, on Remote Collector sensors for example, where cli command doesn't work; in those cases or to fine-tune user-defined configuration or mass-import rules from other systems it's required to manually edit the /data/cfg/n2os.conf.user. In this section we will see how to change and apply a configuration rule.

Please log into the shell console, either through SSH, or shell console, and issue the following commands.

  • Use vi or nano to edit /data/cfg/n2os.conf.user
  • Edit a configuration rule with the text editor, see the next sections for some examples
  • Write configuration changes to disk and exit the text editor

Next sections cover all the necessary details about the supported configuration rules.