Page 1 of 1

viewConfFile - Display the Profile

Posted: Mon Oct 01, 2018 11:12 am
by Stefan
Dear PTV Team,

we used to gain some information out of the following http request:

Code: Select all

http://<IP>:50030/pages/viewConfFile.jsp?name=xroute-AUFTRAG.properties
this request now leads into a 404 error. Is there an other way to display one specific profile directly (like AUFTRAG in the mentioned example)?

Re: viewConfFile - Display the Profile

Posted: Mon Oct 01, 2018 11:37 am
by Bernd Welter
Hello Stefan,

I was surprised, too. Looks like the page you refer to is no longer part of our development output.
I therefore recommend to access the server via it's management console (if enabled) to gather that info.

In the meantime I'll forward your statement to DEV. Not sure whether removing the file was a concious decision or by mistake.

Best regards,
Bernd

Re: viewConfFile - Display the Profile

Posted: Mon Oct 01, 2018 3:30 pm
by Bernd Welter
Hello Stefan,

looks like this piece of implementation has changed through the years. And this s not a stable definition (and never was).
Check the following syntax of the corresponding URL:

http://127.0.0.1:50030/pages/serverCommand.jsp
https://xroute-eu-n-test.cloud.ptvgroup ... efault.xml
http://127.0.0.1:50030/pages/serverComm ... efault.xml

serverCommand.jsp Parameters
This servlet and its parameters are for internal use only and may change between releases without explicit notice. Use at your own risk.
  • systemInfo=json
    Returns an application/json system information description
  • listConfigurations=json
    Returns an overview of the server-sided settings files and profiles
  • ?readSettings=<filename>
    Returns the content of the server settings file with the given filename, or a 500 error message. The filename may not contain a path but must include the proper suffix (.properties or .conf).
  • ?readProfile=<filename>
    Returns the content of the server profile with the given name, or a 500 error message. The filename may not contain a path but must include the proper suffix (.xml).
  • ?readLicense
    Returns the content of the server license file.
  • ?restartServer
    Does not return
  • ?shutdownServer
    Does not return