import jsonrpclib
from pprint import pprint
import ssl

ssl._create_default_https_context = ssl._create_unverified_context

ip = '184.105.247.72'
port = '443'
username = 'admin1'
password = '99saturday'

switch_url = 'https://{}:{}@{}:{}'.format(username, password, ip, port)
switch_url = switch_url + '/command-api'
remote_connect = jsonrpclib.Server(switch_url)

response = remote_connect.runCmds(1, ['show version','show arp'])

pprint (response)
