[cisco-voip] CUCM Bulk TFTP File Upload

Brian Meade bmeade90 at vt.edu
Fri Jun 1 16:06:17 EDT 2018


Thanks Tommy!

Have you tested against CUCM 11.x okay?

I need to build the dependencies to fully run yours.  I tried pulling out
the important upload code but seeing the same issue I'm having with my code.

Thanks,
Brian Meade

On Fri, Jun 1, 2018 at 1:18 PM, Schlotterer, Tommy <
tschlotterer at presidio.com> wrote:

> Brian,
>
>
>
> Here is my really hacky python script to do this.
>
>
>
> Thanks
>
>
> Tommy
>
>
>
> *From:* cisco-voip [mailto:cisco-voip-bounces at puck.nether.net] *On Behalf
> Of *Brian Meade
> *Sent:* Friday, June 1, 2018 9:54 AM
> *To:* cisco-voip voyp list <cisco-voip at puck.nether.net>
> *Subject:* [cisco-voip] CUCM Bulk TFTP File Upload
>
>
>
> *EXTERNAL EMAIL*
>
>
>
>
>
> Does anyone have a working script for this?
>
>
>
> I put together a script in python to do this but hitting some issues.
>
>
>
> Right now I’ve got it to the point that it’s trying to upload a single
> file.
>
>
>
> I used Fiddler to copy what I saw for a working request through a browser.
>
>
>
> I first do a Get to the cmplatform page to get a cookie.
>
>
>
> I then do a Post to the /cmplatform/j_security_check page to authenticate
> that cookie.
>
>
>
> I then do a Get to /cmplatform/tftpFileUpload.do to get a Struts Token.
>
>
>
> I then do a Post to /cmplatform/tftpFileUpload.do with the Struts token,
> filename, and directory details.
>
>
>
> This looks to be successful as I get a "File uploaded successfully"
> message returned but then I can't find the file on the TFTP File Management
> page.
>
>
>
> I tried using the curl methods I found here (
> https://communities.cisco.com/docs/DOC-43506 ) but no luck there.  Not
> sure if this works in 11.5 without grabbing the Struts token.   Without a
> token, I get an error message saying something to the affect of I hit the
> Submit button twice.
>
>
>
> Here's what it looks like when my script runs in Fiddler:
>
>
>
>
>
> This looks almost exactly like the real example through a browser I
> captured minus a few headers I tried manually adding with no luck.
>
>
>
> Python script attached.
>
>
>
>
> Tommy Schlotterer | Systems Engineer - Collaboration
> Presidio (NASDAQ: PSDO) | presidio.com
> 20 N Saint Clair 3rd Floor, Toledo, OH 43604
> <https://maps.google.com/?q=20+N+Saint+Clair+3rd+Floor,+Toledo,+OH+43604&entry=gmail&source=g>
> D: 419.214.1415 | C: 419.706.0259 | tschlotterer at presidio.com
>
>
>
> [image: Future. Built.] <http://www.presidio.com>
>
>
> Follow us:
>
> [image: Follow Presidio on Twitter] <http://www.twitter.com/presidio>
>
>
>
>
> *This message w/attachments (message) is intended solely for the use of
> the intended recipient(s) and may contain information that is privileged,
> confidential or proprietary. If you are not an intended recipient, please
> notify the sender, and then please delete and destroy all copies and
> attachments. Please be advised that any review or dissemination of, or the
> taking of any action in reliance on, the information contained in or
> attached to this message is prohibited.*
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20180601/1915da85/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 363906 bytes
Desc: not available
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20180601/1915da85/attachment.png>


More information about the cisco-voip mailing list