jamiecaesar / securecrt-tools

SecureCRT scripts, written in Python, for doing various tasks when connected to Cisco equipment.
Apache License 2.0
246 stars 78 forks source link

Help with Ubuntu and SecureCRT8.5 #42

Closed aegcni81 closed 5 years ago

aegcni81 commented 5 years ago

Hello.

I'm new using scripts with SecureCRT, so I want to run the script "Document_Device.py", but it's getting me the following Error: Type must be a string at line 62. I have already copy and rename the script "script_settings_default.py" to "script_settings.py" and change line 29 with the following: settings['savepath'] = '/home/newuser/Documents/SecureCRT-master', all the other required scripts are in that folder.

Thanks in advanced for any help.

Best Regards.

jamiecaesar commented 5 years ago

Based on the script name and the settings .py file, you are running a pretty old version of the scripts which I probably can't even troubleshoot effectively at this point since they have changed so much. I'd recommend pulling down the latest version of the repository first and then letting me know if you run into any problems. For example, there is now a setting.ini file that is automatically created the first time you run any of the scripts (you'll have to update it manually -- no conversion happens from the .py file) and there is much more documentation for this version of them.

There is a "s_document_device.py" script in the newer repo that is the newer version of that script, but pulls its list of commands from the setting.ini file, which you can edit to customize the list. Please follow up if you have any problems with the newer versions and then I'll be able to debug the code much better, if needed.

aegcni81 commented 5 years ago

Thank you very much.

jamiecaesar commented 5 years ago

I assume the script in the updated repository works for you? If not, let me know and I can push updates to these newer versions. I'm going to close this issue for now unless there are problems.