Tuesday 27 May 2014

Simple Putty Session Config Generator

So, this is probably a familiar story for most SysAdmins/Network engineers. You go somewhere new and seem to spend an inordinate amount of time trying to locate the hostnames/ip addresses of network devices you need to manage. As a Cisco engineer my work is predominately SSH/Telnet based and it becomes incredibly irritating to be scrabbling around trying to find device IP addresses, especially in larger environments.

You might find this little script I've written if this sounds at all familiar! I'm not sure why no one has done this before but this small script will happily take CSV based data in and spit out a windows registry format you can import to give you the saved putty sessions you are probably used to. The data should be provided in the following format:
Hostname,IPaddress,Protocol,PortNumber

(You may need to 'Show all content' if warned as this blog post used cross-site scripting to parse the PHP script. Blogger won't let me do it here!)

EDIT: It appears my attempt to put the PHP in an object here hasn't really worked. You can view the script here: http://tinyurl.com/oave9j7

No comments:

Post a Comment