
Let me know if it works for you or if you having any issues.
#Securecrt script sample code
Very powerful if you want to know timestamp for each line of code i.e %h:%m:%s.%t
#Securecrt script sample mac
This should work for both Win and Mac users. In this quick tutorial (2 steps) I’ll show you where to go to enable local logging as well as the syntax to use to get proper naming convention. They helped me on numerous occasions to confirm integrity and will definitely help you. Personally, I’m saving my logs locally which are also backed up automatically to the cloud for redundant copy. You can always go back and verify what was typed. Not only for compliance/security reasons (with some companies) but it can save you (trust me on that one) in case of a human error. ModelIOSScreen = str(Screen.Saving your session log is a must feature in my opinion. # $language = "python"Ĭrt.Screen.Send("show version" + chr(13))


Everytime i run the script it runs and doesnt error out but the "new.txt" file is blank. I then use the SecureCRT api to pull all of that text from the application screen and then I iterate through the text to and use if statements to match router models to see which one it is. The script sends a show version command that displays information about the router, including the information I need. I'm writing it in Python using the SecureCRT api. I'm writing a script that will find out what router model and what IOS version a Cisco router is using.
