From: Henk de Tombe (henk.de.tombe@qi.nl)
Date: Wed Sep 28 2005 - 14:33:40 GMT-3
Hi Ryan,
You can use AAA as well to set the terminal escape-character.
aaa new-model
aaa authentication login vty local
aaa authorization exec vty local
!
username c privilege 15 password 7 c
username c autocommand terminal escape Z
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
line vty 0 4
authorization exec vty
login authentication vty
autocommand-options nohangup
With AAA you will need authorization as well otherwise the autocommand will
not be processed. See the output below.
BB3(config)#do deb aaa author
AAA Authorization debugging is on
BB3(config)
BB3(config)#do telnet 1.1.1.1
Trying 1.1.1.1 ... Open
User Access Verification
Username: c
Password:
"Z" is the escape character
BB3#
Aug 20 12:41:56.579: AAA/BIND(0000001D): Bind i/f
Aug 20 12:41:57.959: AAA/AUTHOR (0x1D): Pick method list 'vty'
Aug 20 12:41:57.959: AAA/AUTHOR/EXEC(0000001D): processing AV cmd=
Aug 20 12:41:57.959: AAA/AUTHOR/EXEC(0000001D): processing AV
autocmd=terminal escape Z
Aug 20 12:41:57.959: AAA/AUTHOR/EXEC(0000001D): processing AV priv-lvl=15
Aug 20 12:41:57.959: AAA/AUTHOR/EXEC(0000001D): Authorization successful
exit
[Connection to 1.1.1.1 closed by foreign host]
BB3(config)#no aaa author
BB3(config)#no aaa authorization exec vty local
BB3(config)#
BB3(config)#do telnet 1.1.1.1
Trying 1.1.1.1 ... Open
User Access Verification
Username: c
Password:
Aug 20 12:42:21.815: AAA/BIND(0000001E): Bind i/f
BB3>
Aug 20 12:42:23.287: AAA/AUTHOR (0000001E): Method list id=53000007 not
configured. Skip author
BB3>
BB3>
-----Oorspronkelijk bericht-----
Van: nobody@groupstudy.com [mailto:nobody@groupstudy.com] Namens Private
Ryan
Verzonden: dinsdag 27 september 2005 16:34
Aan: Cisco certification
Onderwerp: execute a command after user login
Hi Group,
I want to change the escape character automatically after login
username ccie nohangup password cisco
username ccie autocommand terminal escape-character Z
But the above configuration doesn't work.
if I don't add "nohangup" command, the command prompt will quit after
sucessful login
How can I accomplish it? because I don't want to type this command
whenever I login. Thanks !
Ryan
This archive was generated by hypermail 2.1.4 : Sun Oct 02 2005 - 14:40:16 GMT-3