Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@medium(
name='rule_6_1_1_ensure_accounting_destination_is_configured',
platform=['juniper_junos'],
commands=dict(chk_cmd='')
commands=dict(chk_cmd1='show configuration system accounting destination | match "server" | count')
)
def rule_6_1_1_ensure_accounting_destination_is_configured(commands, ref):
assert '' in commands.chk_cmd, ref
assert int(commands.chk_cmd1.strip()) >= 1, ref
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@medium(
name='rule_6_1_2_ensure_accounting_of_logins',
platform=['juniper_junos'],
commands=dict(chk_cmd='')
commands=dict(chk_cmd1='show configuration system accounting')
)
def rule_6_1_2_ensure_accounting_of_logins(commands, ref):
assert '' in commands.chk_cmd, ref
assert 'events login;' in commands.chk_cmd1, ref