This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

login banner example

What do I need to use in NCM to check for the correct login banner?  Does everything need to be enclosed in quotes?  I cannot get it to match by telling it to look for the regex under the policy rule.

banner login ^

****************************************************************************************

*                                                                                      *

*     USE OF THIS SYSTEM IS RESTRICTED TO AUTHORIZED PERSONNEL. ACCESSING AND/OR       *

*     USING THIS SYSTEM WITHOUT AUTHORIZATION, OR FOR UNAUTHORIZED PURPOSES, IS        *

*     STRICTLY PROHIBITED BY THE COMPANY AND MAY CONSTITUTE A CRIME.  YOUR USE OF      *

*     THIS SYSTEM IS SUBJECT TO MONITORING, blah, blah, blah..............................                          *

*                                                                                      *

****************************************************************************************

^

  • When writing the policy to match this, you may have to use \n character to indicate a new line.  This is because the policy reporter does not understand when a new line occurs, and can be very nit-picky about spacing and new lines when it comes to matching.  The expression might look something like this:

    banner login ^\n****************************************************************************************\n*                                                                                      *\n*    USE OF THIS SYSTEM IS RESTRICTED TO AUTHORIZED PERSONNEL. ACCESSING AND/OR      *\n*    USING THIS SYSTEM WITHOUT AUTHORIZATION, OR FOR UNAUTHORIZED PURPOSES, IS        *\n*    STRICTLY PROHIBITED BY THE COMPANY AND MAY CONSTITUTE A CRIME.  YOUR USE OF      *\n*    THIS SYSTEM IS SUBJECT TO MONITORING, blah, blah, blah..............................                          *\n*                                                                                      *\n****************************************************************************************\n^

    Alternatively, you could try to create a new rule per each line.