I try to build a batch-file which makes use of the managecachetiles.py which comes with the installation of ArcGIS Server.
but if I try to run it, it fails with getting a token.
I dived a bit into the source code of this script and I think the problem is our base deployment. I want to run the script on the arcgis server-machine but the portal with token generator are on the other machine.
how can I still continue with building a script for caching map services?
I have tried as well to build a model in model builder to do this, but if I run this on the server it can't create a proper mapserver-object.
so now we are a bit stuck.