So.. I am trying to create a new rule to make sure port security is enabled on all ports on all switches.
I can have it look for the string, "switchport port-security" but if it finds it 1 time it states the switch is compliant. How to I have it check each interface to make sure it is enabled on ALL switch ports.
Also, another issue.
I am trying to create a rule to make sure only 1 user is configured on the switch. I have it look for that user, but how to I have it search to see if more than one username is configured.
I will not know what the username will be, so I need to make sure if more than one username is configured it flags it as a finding.
If I have it look for "username" and "username" it finds two, but it finds the same one on the same line as the first. so I need to have it find one, then continue through the rest of the config, not find the same string again.
Hope that makes sense.
This is confusing, frustrating and super cool at the same time.
Thanks in advance.
Mitch