Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[ScreenOS] Can I Automatically Telnet to the NetScreen and capture data?



Article ID: KB3944 KB Last Updated: 14 Mar 2019Version: 4.0
The following information describes how to automatically telnet to the NetScreen and capture data?
  • SecureCRT.EXE /SCRIPT "C:\test.vbs" /TELNET
  • SercureCRT
  • To Automatically log the data to a text file

The following is a visual basic script designed to run on SecureCRT. It will log system info, tech-support, config, sessions, and event logs automatically.

#$language = "VBScript"
#$interface = "1.0"

crt.Screen.Synchronous = True
crt.Screen.Send "netscreen" & VbCr
crt.Screen.Send "netscreen" & VbCr
crt.Screen.Send "set con page 0" & VbCr
crt.Screen.Send "get system" & VbCr
crt.Screen.Send "get conf" & VbCr
crt.Screen.Send "get tech" & VbCr
crt.Screen.Send "get session" & VbCr
crt.Screen.Send "get log event" & VbCr
crt.Screen.Send "set con page 25" & VbCr
crt.Screen.Send "exit" & VbCr
crt.Screen.Send VbCr

This script can be pasted to a text file and saved as test.vbs on c:\

Modification History:
2019/03/15: Content re-reviewed for accuracy. minor updates to the script description.
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search