Is there a portalscan.py that runs on python 3
I would like to run it on the portal server but it fails as it was written for python 2, which I find interesting as portal uses python 3
I understand you could copy it to another machine but why when you could run it on the machine.
one that runs on both python2 or 3 would be most ideal in this age of ArcGIS for desktop and ArcGIS Pro.
Now assuming that the script applies to your situation and checks the same things, there could be 2 reasons
If I had to guess, the tools that come nested within the Portal installations will migrate toward the ArcGIS API for Python at some point, which would cut 2.7 out of the equation. However, given the target end-date of ArcMap/Catalog for 2021, I'd say it'll likely persist until then.
Additionally, I think an additional force at play is ArcGIS for Server's continued reliance on python 2.7. Looking at the Serverscan.py script, it looks like portalscan.py may have just been a minute derivation thereof.
If I had to guess the "plan" would be to expand the ArcGIS Monitor to do a lot of these checks to compartmentalize the efforts of each part of the system. AGSM comes with python.py file, but isn't used currently in the product it seems -- I'd be interested to see how that develops.