cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
1062
Views
0
Helpful
4
Replies

Configuring AUTO Command on a Cat4900 & ASR1002F using SSH

charles-moore
Level 1
Level 1

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.

4 Replies 4

Edison Ortiz
Hall of Fame
Hall of Fame

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

Thanks Ortiz

I shall pass the information on.

Regards

Charles

Please let us know how it turned out and rate this thread as resolved if it helped fixed your problem.

Thanks

I shall definitely do that my friend

From: ediortiz

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 <>

Review Cisco Networking products for a $25 gift card