This quest will need an expert proficient in VBS script and an application called SecureCRT.
Is it possible to have script that activate logging in all the separate tabs and log the out to a particular folder.
For example, in screenshot you can see there are five tabs with five different sessions. You can also see a folder in the 'Connect in Tab' dialogue box called GLBP Lab 58.
I would like help compiling a script that will activate the log session for each of the tabs and select the appropriate folder from where the session originated - in this case GLBP Lab 58
Just so as to start the ball rolling the following is a script that will log a single session, at a specified folder. Hopefully, an expert will be able to use this as baseline.
# $language = "VBScript"# $interface = "1.0"' This script sets a specific logfile, enables logging then connects' to a server. After capturing the output of a command to the logfile' logging is disabled and it disconnects.Sub Main ' Set the name of the log file name "YYMMDD.log" ' Dim logfile logfile = "C:\TEMP\mysession.log" crt.Session.LogFileName = logfile ' Enable logging ' crt.Session.Log True ' Send a unix command. The output of the command will ' be captured to the logfile. ' crt.Screen.Send "date" & vbCr ' Wait again for my login prompt or 5 seconds ' crt.Screen.WaitForString "linux$", 5 ' Turn off synchronous mode crt.Screen.Synchronous = false ' Stop logging and disconnect. ' crt.Session.Log False crt.Session.DisconnectEnd Sub
I afraid my answer will not satisfy you. After went thru SecureCRT docs on scripting. I do not think that can be done. If you read all the property and method exposed by CRT object, there is nothing about folder it contains from. Thus the session will not know from what container (folder) it starts.
However, you still have a work around here. You can use the title of the Windows/Tab, what you need to do is to set each connection with additional windows propety, this can be done on connection properties->Appearance->Wi
You then need to switch on next tab index to make it active so that the title will change to new tab index title.
Just my 2 cent.