08-09-2011 09:59 AM - edited 03-07-2019 01:37 AM
Hi All
Need a little help !
I having an issue getting the Auto command feature to work on a Cat4900m or a ASR1200f.
Please note the Auto Command feature works when configured for Telnet.
Cat 4900M - Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500e-ENTSERVICESK9-M), Version 12.2(53)SG1
Cisco ASR1002F - Cisco IOS Software, IOS-XE Software (PPC_LINUX_IOSD-ADVIPSERVICESK9-M), Version 12.2(33)XNE1
Intention - to configure a username that will log on to the device, perform a "show run", then log out.
Configuration
username inout privilege 15 secret inout
username inout autocommand show running-config
line vty 0 4
access-class Management in vrf-also
exec-timeout 5 0
password 7 xxxxxxxxx
login local
transport input telnet ssh
transport output telnet ssh
line vty 5 15
access-class Management in vrf-also
exec-timeout 5 0
password 7 xxxxxxxxx
login local
transport input telnet ssh
transport output telnet ssh
!
Outcome - this works perfectly when we telnet to the devices but not when we connect via ssh.
When we connect via ssh we are logged on with privilege 15 but the autocommand does not execute and the user stays logged on.
08-09-2011 10:24 AM
For it to work, you need to use aaa new-model and populate the authentication and authorization portions of your AAA config with local as the preferred method.
Regards,
Edison
08-09-2011 10:26 AM
Thanks Ortiz
I shall pass the information on.
Regards
Charles
08-09-2011 10:38 AM
Please let us know how it turned out and rate this thread as resolved if it helped fixed your problem.
Thanks
08-09-2011 10:48 AM
I shall definitely do that my friend
Sent: 09 August 2011 18:39
To: Charles Moore
Subject: - Re: Configuring AUTO Command on a Cat4900 & ASR1002F using SSH
Cisco Support Community <> >
Re: Configuring AUTO Command on a Cat4900 & ASR1002F using SSH
created by Edison Ortiz <> in LAN, Switching and Routing - View the full discussion <>>>
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