Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

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.

Everyone's tags (4)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Using NetConfig to push a new login banner.

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 ****
6 REPLIES
Cisco Employee

Using NetConfig to push a new login banner.

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 ****
New Member

Using NetConfig to push a new login banner.

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.

Cisco Employee

Using NetConfig to push a new login banner.

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 ****
New Member

Using NetConfig to push a new login banner.

Your post helped a lot. Thanks!

New Member

Using NetConfig to push a new login banner.

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.

Cisco Employee

Using NetConfig to push a new login banner.

Thanks for updating us.. this will help other too

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****
491
Views
5
Helpful
6
Replies
CreatePlease to create content