CONFIG_CHECK Examples

The following are examples of using CONFIG_CHECK against a Juniper device:

<custom_item>

type: CONFIG_CHECK

description: "Audit Syslog host message severity"

regex: "syslog host [0-9\.]+"

expect: "syslog host [0-9\.]+ 6 .+"

</custom_item>

<custom_item>

type: CONFIG_CHECK

description: "Audit Syslog host"

regex: "syslog host [0-9\.]+"

number_of_lines: "^1$"

</custom_item>

<custom_item>

type: CONFIG_CHECK

description: "Audit Syslog host"

regex: "syslog host [0-9\.]+"

not_expect: "syslog host 1.2.3.4"

</custom_item>

<custom_item>

type: CONFIG_CHECK

description: "Audit Syslog settings"

regex: "syslog .+"

</custom_item>