Discussion:
[rancid] Dealing with autocommand
Joe Chiarelli
2015-11-09 14:35:55 UTC
Permalink
Hi,

I am trying to get rancid to work with my cisco 2621 terminal servers.

However after the use logs in ,we use the autocommand to run the menu feature to access the other systems.


line vty 0 3
access-class 1 in
exec-timeout 30 0
password {hashed}
autocommand menu termsrv
transport input telnet
transport output telnet

How can I send the menu command I have configured to exit the menu on login so rancid will run its commands to backup the config?

Thanks,
Joe


--------------------------------------------------------
The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain information concerning Cablevision and/or its affiliates and subsidiaries that is proprietary, privileged, confidential and/or subject to copyright. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient(s) is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.
--------------------------------------------------------
rdrake
2015-11-18 19:13:40 UTC
Permalink
Post by Joe Chiarelli
Hi,
I am trying to get rancid to work with my cisco 2621 terminal servers.
However after the use logs in ,we use the autocommand to run the menu
feature to access the other systems.
line vty 0 3
access-class 1 in
exec-timeout 30 0
password {hashed}
autocommand menu termsrv
transport input telnet
transport output telnet
How can I send the menu command I have configured to exit the menu on
login so rancid will run its commands to backup the config?
It's been a while since I've done something like this, but it seems like
it might work for you:

You can setup "line vty 4" without the autocommand and only allow rancid
to login on that vty (either by access-class or special password, or
using rotary and using a special telnet port)

http://www.velocityreviews.com/threads/very-simple-question-on-vtys.565689/

There are probably other options. You would need to figure out what the
best of different hackish ways to fix it would be.
Post by Joe Chiarelli
Thanks,
Joe
Loading...