![]() ![]() ![]() More at issue is that since you're on a server version of Windows, where terminal services is present, a specific license agreement is required in order to run SecureCRT in terminal server or Citrix type environments. Unfortunately, support for Windows 2003 was dropped a while ago, so the most recent version of SecureCRT you can run on that platform would be 7.3.7. ![]() To determine if your license is eligible for registering version 4.1, check your license's issue date to see if it's in the range listed in the upgrade eligibility chart for legacy products online on our web site. Upgrading to version 4.1 or newer would be the solution. In 4.1 and later versions, SecureCRT began displaying the auth banner message as text within the terminal window, rather than in a pop-up requiring interaction. The auth banner appears before you have the opportunity to complete authentication while script execution begins/resumes after authentication has been completed. The pop-up you're seeing is likely the auth banner prompt sent to SecureCRT from the server to which you're connecting. SecureCRT v3.4's scripting capabilities will not help you solve this problem, unfortunately. It's impressive that SecureCRT 3.4 has been chugging along for you for so long. It connects to the equipment in a new tab, but what I expect is that the script will keep doing the same it did for the host1 (X.X.X.a) and send the same boring stuff to the host2 (X.X.X.b) via ssh2 tab, and continue the itterative process until I do this for all the equipments I need.That takes me way way way back to the days of yore when I started working here at VanDyke Software as a "Code Ranger". # Build a command-line string to pass to the Connect method.Ĭmd = "/SSH2 /L %s /PASSWORD %s /C AES-128-CTR /M SHA1 %s" % (usr, passwd, host)Ĭrt.Screen.Send("copy running-config tftp:\r")Ĭrt.Screen.WaitForString("Host name or IP address (control-c to abort): ?")Ĭrt.Screen.WaitForString("Destination file name (control-c to abort): ?")Ĭrt.Screen.Send("X.X.X.a_running_config\r")Ĭmd2 = "/SSH2 /L %s /PASSWORD %s /C AES-128 /M SHA1 %s" % (usr, passwd, host2) Passwd = ("Enter TACACS for" host, "Login", "", True) Usr = ("Enter the user name for" host, "Username", "", True) Select Default Session, click Edit Default Settings then select Log File. # Prompt for a username and password instead of embedding it in a script. On the top bar click Optionsthen Global Options. # username and password and hostname on the command line as well as # Connect to an SSH server using the SSH2 protocol. Personal Background: A complete beginner in the python language. I was changing the expected text, but it doesn't seem to recognize the correct tab or doesn't read the correct one. I was playing with the line 30, but it doesn't seem to have any effect. SecureCRT 6.6 and later allows arguments to be passed to the script being launched. One important thing is that I have to tab each session of each individual routers, because it doesn't permit doing an ssh direct from the active cli, so I had to improvise and implement this "connect in TAB", I'm suspecting that the secureCRT doesn't know if it is in the new tab I've opened so, it doesn't know where to send the commands. The Run Script command lets you employ a powerful script in VisualBasic, Jscript, Python, or other scripting language, with full access to the SecureCRT interface and shell functionality. I'm modifying a script in python to run in securecrt 8.5.2 in order to backup the running-config of some cisco ASR9K equipment I have in charge, but the script seems to end abruptly after the second sucessful ssh2 hop (2nd tab) and does not send the commands I scripted (the exit in this specifical example), here's the code I have, as I'd said it's a modified version of the one's in vandyke page for opening ssh2. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |