Access Server commands, clear all lines ?
johnnyarks
Member Posts: 136 ■■■□□□□□□□
in CCNA & CCENT
Does anyone know of a command that will clear all console lines on an access server ?
instead of individually inputting
clear line 1,
clear line 2, etc and so on ...
preferably something I can put in the config upon boot, it automatically clears the lines for me ?
instead of individually inputting
clear line 1,
clear line 2, etc and so on ...
preferably something I can put in the config upon boot, it automatically clears the lines for me ?
Comments
-
dmillbank Registered Users Posts: 3 ■□□□□□□□□□Hi Johnny,
Depending on how you have your homelab set up you can expire reverse telnet sessions with the help of keepalives on your access server. This will clear your lines if you terminate a reverse telnet session.
Type in the following and save it to your startup-config on your access server.
Router1# config term Router1(config)# service tcp-keepalives-in Router1(config)# service tcp-keepalives-out Router1(config)# endMore information can be found on Cisco's website:
Using service tcp-keepalives to Avoid Hung Telnet Sessions [Asynchronous Connections] - Cisco Systems -
alxx Member Posts: 755Could also script/program it on your pc with your scripting or programming language of choice
It's pretty easy with python
Python for Unix and Linux System Administration
Just make sure to not store passwords in our script or at least encode themGoals CCNA by dec 2013, CCNP by end of 2014