NXShell properties filename

Started by saksham.adyso, September 17, 2024, 11:12:17 AM

Previous topic - Next topic

saksham.adyso

I want to set NXShell properties through the .properties file (not through the command line). I have tried nxshell.porperties and netxms-client.properties, but they don't work. What is the correct name of the properties file for NXShell?

uldis

Hi, you would need to use java parameter JAVA_TOOL_OPTIONS and set it in /etc/profile, for example

export JAVA_TOOL_OPTIONS='-Dnetxms.server="127.0.0.1" -Dnetxms.user="admin" -Dnetxms.password="admin"'

saksham.adyso

NXShell does not support the use of properties file? It is better for me to use a properties file rather than an environment variable or a command line.

uldis

Hi, thank you for your feedback. May we kindly ask if you could create a new topic in Feature Requests section and team will take it forward. 

Victor Kirhenshtein

Added in 5.1 - nxshell now reads nxshell.properties if available in current directory or classpath. You can also specify path to properties file in command line.

Best regards,
Victor