cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1179
Views
5
Helpful
6
Replies
mssnider
Beginner

Using NetConfig to push a new login banner.

LMS 3.2 - RME 4.3.1

I'm having issues using NetConfig to push a new login banner. I believe the issue is because the router or switch returns a line after the command banner login ^ - the router or switch will return a line stating "Enter TEXT message.  End with the character '^'"

Here is an example;

Router(config)#banner login ^

Enter TEXT message.  End with the character '^'

I've tried an Adhoc Netconfig job similar to the following;

banner login ^

This is an example of our new banner.

bla, bla, bla,

bla, bla, bla

This is the end of our new banner.

^

I've also tried using the pre-defined NetConfig task called Banner.

In both instances, the jobs failed due to the following;

"Command(s) failed on the device Insufficient no. of interactive responses(or timeout) for command: banner login ^."

Is there a way to enter a <wait> or something in the adhoc job?

Or, do you know of a way to use NetConfig to push new Banners?

Thanks,

Mike S.

1 ACCEPTED SOLUTION

Accepted Solutions
AFROJ AHMAD
Cisco Employee

Hi Mike,

For multi-line banner command, you *should* use  and 

--Now Run the Banner like below example:

 
banner login ^C**************************************

!!!!! ADVERTENCIA !!!!!

this is the Banner

you will love it

hope it will work for you

******************************************************^C

Thanks-

Afroz

[Do rate the useful post]

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

View solution in original post

6 REPLIES 6
AFROJ AHMAD
Cisco Employee

Hi Mike,

For multi-line banner command, you *should* use  and 

--Now Run the Banner like below example:

 
banner login ^C**************************************

!!!!! ADVERTENCIA !!!!!

this is the Banner

you will love it

hope it will work for you

******************************************************^C

Thanks-

Afroz

[Do rate the useful post]

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

View solution in original post

I created a new Adhoc Netconfig job in the following format.

banner login ^

This is my test banner.

Testing, testing, testing.

^

The odd thing is, the job failed, yet the switch did accept the banner command. The new login banner was there when I connected to it.

Here is the Failed error message;

Command(s) failed on the device Insufficient no. of interactive responses(or timeout) for command: banner login ^

I'd obviously like to know why the job said it failed, yet the command did succeed.

Thanks,

Mike S.

there were few known issue in LMS 3.2 so that could be one of the reason.

I would suggest to upgarde the LMS to LMS 3.2.1

hope my post helped you !!!

Thanks-

Afroz

[Do rate the post]

*** Rating Encourage Contributors *****

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

Your post helped a lot. Thanks!

I figured out why the Netconfig jobs were failing. It was because one of the lines on our new banner was too long (not sure what the character limitation is exactly). I inserted a line break in that sentence and the jobs worked.

I also ended up using the pre-defined Netconfig Task for Banner. It eliminated the need to use the multi-line command you mentioned above.

I just wanted to let you know the end result.

Thanks again for the help,

Mike S.

Thanks for updating us.. this will help other too

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****
Content for Community-Ad