How exactly did you get this to work using the Calculate Value tool???
I inserted this in my Modelbuilder via Calculated Value and it worked. Now to pull the whole thing together...
Thinking a little further (and I haven't tried this) - you might be able to do an advanced field calculation and within that have the python calls to restart the services via the agssom. Not sure if that would work, but it would be an interesting idea. (maybe I'm just over complicating it now).Hope this helps some
import os os.system(r"X:\ArcGIS\Tools\Stop_All_ArcServer_Services.bat")
X:\ArcGIS\Tools\AGSSOM\AGSSOM.exe [ServerName] -x *all*
>> agssom.exe -x *all*
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.