A way / tool to count the number of allocated max\min instances for all published services

4134
33
Jump to solution
04-07-2017 10:12 AM
rawansaleh1
Occasional Contributor III

I couldn’t figure out if there are a tool or a way to count the number of allocated max\min instances for all published services. See below

 

Best Regards,

Rawan

0 Kudos
33 Replies
by Anonymous User
Not applicable

Hi 

Please try below link code and generate one output file with all details about services.

From this file you can calculate total instance assigned from one ArcGIS server.

https://community.esri.com/docs/DOC-9922-arcgis-server-map-service-properties 

rawansaleh1
Occasional Contributor III

Dear Avinash Kumar Patel,

 

Thanks for your reply,

Actually, I’m not sure where should I apply this code to get the required information.

Can you please tell me the path in Admin API where I could run this code?

 

Best,

Rawan

0 Kudos
by Anonymous User
Not applicable

Hi Rawan,

You need to copy the code in notepad and make the extension as .py like(avinash.py).

After that you need to double click it

Give inputs like:

Enter user name: avinash
Enter password:
Enter server name: avinash
Output File: D:\avinash.csv
You can get the output file on you save location.

Make sure system have python installed on it like where ArcGIS server or desktop installed on it.

rawansaleh1
Occasional Contributor III

Dear Avinash,

 

Thank you for your answer.

I tried to do what you are mention, but it doesn’t work for me.

When I double click on the “file py” it’s not open like the screenshot you provide.

And I make sure the python is installed. attached

What might be the issue here?

Best,

Rawan

0 Kudos
by Anonymous User
Not applicable

Try like this
In Start menu>search python >select python GUI>then in GUI file>new file>past  your code & save >run it 

0 Kudos
by Anonymous User
Not applicable

Are you able to execute this.

0 Kudos
rawansaleh1
Occasional Contributor III

Dear Avinash,

 

Thank you for your answer and prompt help.

I tried to follow the steps that you mentioned above, I’m able to run the model but it gives me the following error. Should I enhance on the code to make it work fine?

 

Best,

Rawan

0 Kudos
by Anonymous User
Not applicable

Good Morning Rawan,

Check and download the attached python file and try to run it.

No need to spend time on format this code. 

https://community.esri.com/docs/DOC-9922-arcgis-server-map-service-properties 

rawansaleh1
Occasional Contributor III

 

Dear Avinash,

 

Thanks a lot for your effort, it’s working fine with me.

But I still need to enhance this code to sum the min/max instances automatically, is that possible?

 

Best,

Rawan

0 Kudos
by Anonymous User
Not applicable

Hello Rawan,

Good to know its working !

In code its not possible but in out put file you can calculate its not take more that 1 min in out put file.

If you have any idea how its possible Please share with me so i can also try to enhance code.

Thanks,

Avinash patel

0 Kudos