06-06-2009
07:02 PM
- last edited on
03-25-2019
03:24 PM
by
ciscomoderator
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
06-07-2009 07:31 AM
Try this
username CISCO autocommand menu USERMENU
HTH,
__
Edison.
06-07-2009 01:22 PM
username CISCO autocommand menu USERMENU
the above is not supported on my IOS version. Instead.....
username CISCO autocommand USERMENU
06-07-2009 05:35 PM
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#
06-08-2009 04:18 AM
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).
06-08-2009 05:01 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide