Categories
Welcome Center
Education & Development
Discussions
Certification Preparation
Recent Posts
Groups
Free Resources
Ebooks
Free Workshops
Trending Certifications Infographic
Infosec Training
IT & Security Training
Live Boot Camps
Security Awareness Training
About Infosec Institute
Home
Certification Preparation
Cisco
CCST & CCNA (Entry-level & Associate)
Access Server commands, clear all lines ?
johnnyarks
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 ?
Find more posts tagged with
Save $250 on 2025 certification boot camps from Infosec!
Book now with code EOY2025
Button
Comments
dmillbank
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)#
end
More information can be found on Cisco's website:
Using service tcp-keepalives to Avoid Hung Telnet Sessions [Asynchronous Connections] - Cisco Systems
alxx
Could 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 them
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of
INFOSEC Boot Camps
$250
OFF
Use code
EOY2025
to receive $250 off your 2025 certification boot camp!
BROWSE BOOT CAMPS