Re: [cisco-voip] CUCM Bulk TFTP File Upload

2018-06-07 Thread Brian Meade
ot;.format(url_base) >>>>> url_upload = "{}tftpFileUpload.do".format(url_base) >>>>> >>>>> # Allows us to keep track of our login session >>>>> print "\nLogging in to {}...".format(tftp_host), >>>>> connect

Re: [cisco-voip] CUCM Bulk TFTP File Upload

2018-06-06 Thread Ryan Ratliff (rratliff) via cisco-voip
Jun 1, 2018 at 3:38 PM Brian Meade mailto:bmead...@vt.edu>> wrote: So just re-read through everything and sure enough I was sending to the wrong IP when running the script. No wonder it's shown as uploading successfully the entire time. Thanks for you and Stephen's assistance!

Re: [cisco-voip] CUCM Bulk TFTP File Upload

2018-06-06 Thread Charles Goldsmith
"appNav": "cmplatform", >>>> "j_username": tftp_user, >>>> "j_password": tftp_pass >>>> } >>>> >>>> # Our login submission to the server >>>> resp = connection.post(url_login, verify =

Re: [cisco-voip] CUCM Bulk TFTP File Upload

2018-06-06 Thread Ryan Ratliff (rratliff) via cisco-voip
ot; print "Done!" On Fri, Jun 1, 2018 at 3:38 PM Brian Meade mailto:bmead...@vt.edu>> wrote: So just re-read through everything and sure enough I was sending to the wrong IP when running the script. No wonder it's shown as uploading successfully the entire time. Thanks for

Re: [cisco-voip] CUCM Bulk TFTP File Upload

2018-06-06 Thread Charles Goldsmith
> # We need to grab the token the server gives us, so we can pass it back >>> upon upload >>> print "Grabbing a new token...", >>> soup = BeautifulSoup(connection.get(url_upload, verify = False).content) >>> >>> # It's a hidden input

Re: [cisco-voip] CUCM Bulk TFTP File Upload

2018-06-04 Thread Brian Meade
nput element on the upload form with the name of "token" >> token = soup.find("input", {"name": "token"}).get("value") >> print "Found! [{}]\n".format(token) >> >> # Our upload form submission data >> payload = {

Re: [cisco-voip] CUCM Bulk TFTP File Upload

2018-06-04 Thread Brian Meade
;file": (tftp_file, open(tftp_file, "rb"), {"Content-Type": "text/plain"}), > "directory": (None, tftp_path) > } > > # Our upload submission to the server > print "Uploading file: {}...".format(tftp_file), > resp = connection.post(url