Generate ArcGIS server Map Services Status (Start/Stop) & all related properties Report

Document created by patel1684 on Aug 12, 2016Last modified by patel1684 on Nov 10, 2018
Version 7Show Document
  • View in full screen mode

Hi All Server Admin,

 

With the help of this python script Admin users are collect & all list down all details relate to map services like:

Service Name, Folder,Type, Status, Min Instances, Max Instances, Max Waiting Time,Max Startup Time,Max Idle Time,Max Usage Time, KML,

WMS, WFS, WCS, Max Records, Cluster, Cache Directory, Jobs Directory, Outputdirectory

 

Reads the following properties from services and writes them to a comma-delimited file

 

Thanks,

Avinash Patel

 

# -*- coding: utf-8 -*-
import requests

r = requests.get('http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer')
print r.status_code
print'ESRI_Census_USA'

r = requests.get('http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsBasemap/MapServer')
print r.status_code
print'TaxParcel/AssessorsBasemap'

r = requests.get('http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsBasemap/MapServer1')
print r.status_code
print'TaxParcel/AssessorsBasemap1'

 

 

==================== RESTART: D:/Avinash Test/probing.py ====================
200
ESRI_Census_USA
200
TaxParcel/AssessorsBasemap
404
TaxParcel/AssessorsBasemap1
>>>

Attachments

    Outcomes