{"action":"created","issue":{"url":"https://api.github.com/repos/ktbyers/netmiko/issues/739","repository_url":"https://api.github.com/repos/ktbyers/netmiko","labels_url":"https://api.github.com/repos/ktbyers/netmiko/issues/739/labels{/name}","comments_url":"https://api.github.com/repos/ktbyers/netmiko/issues/739/comments","events_url":"https://api.github.com/repos/ktbyers/netmiko/issues/739/events","html_url":"https://github.com/ktbyers/netmiko/issues/739","id":303963569,"number":739,"title":"Script doesn't work","user":{"login":"RamVic","id":20332715,"avatar_url":"https://avatars3.githubusercontent.com/u/20332715?v=4","gravatar_id":"","url":"https://api.github.com/users/RamVic","html_url":"https://github.com/RamVic","followers_url":"https://api.github.com/users/RamVic/followers","following_url":"https://api.github.com/users/RamVic/following{/other_user}","gists_url":"https://api.github.com/users/RamVic/gists{/gist_id}","starred_url":"https://api.github.com/users/RamVic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RamVic/subscriptions","organizations_url":"https://api.github.com/users/RamVic/orgs","repos_url":"https://api.github.com/users/RamVic/repos","events_url":"https://api.github.com/users/RamVic/events{/privacy}","received_events_url":"https://api.github.com/users/RamVic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-03-09T20:03:26Z","updated_at":"2018-03-13T01:34:47Z","closed_at":null,"author_association":"NONE","body":"Hello , I have an scipt to make a Bkp FW , Today I saw that the script dont execute , I install python3.6 and netmiko again with\r\n\r\n>  python3.6 -m pip install netmiko\r\n\r\nWhen I try to run the script I am seeing this,\r\nroot@ardc1svpla020:/ # python3.6 /tmp/Config_Routers/bkpfw.py\r\n  File \"/tmp/Config_Routers/bkpfw.py\", line 19\r\n    print host\r\n             ^\r\nSyntaxError: Missing parentheses in call to 'print'\r\n\r\nAnd before that work without parentheses  , I think there is an issue with netmiko\r\n\r\nMy code is \r\n\r\n\r\n#!/usr/local/bin/python3.6\r\nfrom netmiko import ConnectHandler\r\n\r\narchivo = open('/dat/code','r')\r\ncontenido = archivo.read(9)\r\n\r\narchiv = open('/dat/name','r')\r\nnombre = archiv.read(8)\r\n\r\n\r\nplatform = 'cisco_asa'\r\nhost = 'xxxxxxxxxxx'\r\nusername = nombre\r\npassword = contenido\r\nsecret = contenido\r\n\r\nprint host\r\n\r\n\r\nnet_connect = ConnectHandler(device_type=platform, ip=host,username=username,password=password ,secret=secret )\r\n\r\nhostname=net_connect.send_command_timing(\"show hostname\")\r\noutput=net_connect.send_command_timing(\"copy startup-config tftp://10.54.248.56\")\r\n\r\nif 'Address or name of remote host' in output:\r\n    output += net_connect.send_command_timing(\"\\n\")\r\nif 'Destination filename' in output:\r\n    output += net_connect.send_command_timing(hostname)\r\n\r\n\r\nprint output\r\n\r\n\r\n    \r\n"},"comment":{"url":"https://api.github.com/repos/ktbyers/netmiko/issues/comments/372516742","html_url":"https://github.com/ktbyers/netmiko/issues/739#issuecomment-372516742","issue_url":"https://api.github.com/repos/ktbyers/netmiko/issues/739","id":372516742,"user":{"login":"tonypnode","id":20878906,"avatar_url":"https://avatars0.githubusercontent.com/u/20878906?v=4","gravatar_id":"","url":"https://api.github.com/users/tonypnode","html_url":"https://github.com/tonypnode","followers_url":"https://api.github.com/users/tonypnode/followers","following_url":"https://api.github.com/users/tonypnode/following{/other_user}","gists_url":"https://api.github.com/users/tonypnode/gists{/gist_id}","starred_url":"https://api.github.com/users/tonypnode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonypnode/subscriptions","organizations_url":"https://api.github.com/users/tonypnode/orgs","repos_url":"https://api.github.com/users/tonypnode/repos","events_url":"https://api.github.com/users/tonypnode/events{/privacy}","received_events_url":"https://api.github.com/users/tonypnode/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T01:34:47Z","updated_at":"2018-03-13T01:34:47Z","author_association":"CONTRIBUTOR","body":"@RamVic, it's difficult to assist you without seeing the code as you have written it (see my previous comment). And you also seem to have change the issue. \r\n\r\nI would like to recommend that you check out the netmiko slack channel, found here: https://networktocode.slack.com/messages/C0L3D8G76/\r\n\r\nIt's a perfect place to get assistance with a specific implementation"}}
{"actor":{"display_login":"tonypnode"}}