Hi,
i am trying to wrote a compliance rule for motd banner.
the is a example:
banner motd ^CC
####################################################################################
You are presently logged in to a ABC company.
Unauthorized access to this device is strictly prohibited!-----Match found until this line using the below Regex(in Bold)
Disconnect immediately if you are not an authorized user!
banner\smotd.*\n####################################################################################.*\nYou are presently logged in to a ABC company\.*\n.*\nUnauthorized access to this device is strictly prohibited\!\n.*
as soon as i go for Disconnect immediately if you are not an authorized user!, it violated it.
banner\smotd.*\n####################################################################################.*\nYou are presently logged in to a ABC company\.*\n.*\nUnauthorized access to this device is strictly prohibited\!\nDisconnect immediately if you are not an authorized user\!------This is violating
If I try to match the above regex on regex101.com it works,but if i try the same on Solarwinds it gives me an violation error
Can any one point me where i am doing the mistake.TIA