Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Juniper #80

Merged
merged 11 commits into from
Jul 11, 2024
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
Loading