@@ -0,0 +1,1819 @@
+%0Aimport elementtree.ElementTree as ET%0Aimport argparse%0Aimport sys%0Aimport os%0A%0Aparser = argparse.ArgumentParser(description='MRemoteNG XML Parser')%0Aparser.add_argument('--list', '-l', action='store_true',help='List Available Connections')%0Aparser.add_argument('--connect', '-c', nargs=1, help='Connect', type=int)%0A%0A%0A%0Aargs = parser.parse_args()%0Atree = ET.parse('/tmp/confCons.xml')%0Aroot = tree.getroot()%0Ai = 0%0A%0Aif args.list:%0A    for node in tree.getiterator('Node'):%0A        name = node.get('Name')%0A        hostname = node.get('Hostname')%0A        protocol = node.get('Protocol')%0A        username = node.get('Username')%0A        if name and hostname:%0A            i += 1%0A            print '    %25s :: %25s :: %25s :: %25s :: %25i' %25 (name, hostname, protocol, username, i)%0A        else:%0A            print 'This is group ' + name%0Aif args.connect:%0A      #print (%22~Connect%22 + format(args.connect))%0A      for node in tree.getiterator('Node'):%0A        name = node.get('Name')%0A        hostname = node.get('Hostname')%0A        protocol = node.get('Protocol')%0A        username = node.get('Username')%0A        port = node.get('Port')%0A        if name and hostname:%0A            i = i + 1%0A            if int(args.connect%5B0%5D) == i:%0A                 print (name, hostname, protocol,username)%0A                 if protocol == 'SSH2':%0A                     if not username:%0A                         os.system ('ssh %25s -p %25s'  %25 (hostname, port))%0A                         break%0A                     else:%0A                         os.system ('ssh %25s@%25s -p %25s'  %25 (username, hostname, port))%0A                         break%0A                 else:%0A                     print(%22 ~In this version only ssh2%22)%0A                     break%0A            #else:%0A            #    print (%22 ~Connection number not found%22)%0A            #    break%0Aelse:%0A    print (%22~ No Arg%22)%0A

Create mg.py