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

Autucommand

Please I define an auto-command USERNAME and bind it to a username CISCO on R4. When I try o telnet to R4 from R1, I receive error..below is my config..

R4#

username CISCO privilege 15 password 0 CISCO

username CISCO autocommand USERMENU

menu USERMENU title $

Sample menu $

menu USERMENU text 1 "Current configuration"

menu USERMENU command 1 show run

menu USERMENU text 2 "Ping R1"

menu USERMENU command 2 ping 155.1.146.1

menu USERMENU text 3 "Telnet to R6"

menu USERMENU command 3 telnet 155.1.146.6

menu USERMENU text 4 "Exit to shell"

menu USERMENU command 4 menu-exit

menu USERMENU text 5 "Exit"

menu USERMENU command 5 exit

int f0/0 = 155.1.146.4 255.255.255.0

R1#telnet 155.1.146.4

Trying 155.1.146.4 ... Open

User Access Verification

Username: CISCO

Password:

Line has invalid autocommand "USERMENU"

[Connection to 155.1.146.4 closed by foreign host]

R1#

Please why the above error on R1

5 REPLIES
Hall of Fame Super Bronze

Re: Autucommand

Try this

username CISCO autocommand menu USERMENU

HTH,

__

Edison.

New Member

Re: Autucommand

username CISCO autocommand menu USERMENU

the above is not supported on my IOS version. Instead.....

username CISCO autocommand USERMENU

Hall of Fame Super Bronze

Re: Autucommand

It worked on mine:

R0#sh ver | i IOS

Cisco IOS Software, 3600 Software (C3640-IK9S-M), Version 12.4(17), RELEASE SOFTWARE (fc1)

username CISCO privilege 15 password 0 CISCO

username CISCO autocommand menu USERMENU

!

!

menu USERMENU title ^C

Sample menu ^C

menu USERMENU text 1 "Current configuration"

menu USERMENU command 1 show run

menu USERMENU text 2 "Ping R1"

menu USERMENU command 2 ping 155.1.146.1

menu USERMENU text 3 "Telnet to R6"

menu USERMENU command 3 telnet 155.1.146.6

menu USERMENU text 4 "Exit to shell"

menu USERMENU command 4 menu-exit

menu USERMENU text 5 "Exit"

menu USERMENU command 5 exit

R1#telnet 192.168.123.1

Trying 192.168.123.1 ... Open

User Access Verification

Username: CISCO

Password:

Sample menu

1 "Current configuration"

2 "Ping R1"

3 "Telnet to R6"

4 "Exit to shell"

5 "Exit"

[Connection to 192.168.123.1 closed by foreign host]

R1#

New Member

Re: Autucommand

ROUTER(config)#username CISCO au

ROUTER(config)#username CISCO autocommand ?

LINE Command to be automatically issued after the user logs in

ROUTER(config)#username CISCO autocommand menu ?

LINE

From my output above, you can see that the next expected command after "autocommand " is name of the autocommand and not menu keyword.

My router is... (C2800NM-ADVSECURITYK9-M).

Hall of Fame Super Bronze

Re: Autucommand

Can you please just enter the command as I suggested?

The autocommand is simply executing whatever is within the 'LINE' parameter. It's not going to provide you with online help about what command is acceptable or not.

__

Edison.

732
Views
10
Helpful
5
Replies
CreatePlease to create content