NetXMS Support Forum

English Support => General Support => Topic started by: saksham.adyso on September 17, 2024, 11:12:17 AM

Title: NXShell properties filename
Post by: saksham.adyso on September 17, 2024, 11:12:17 AM
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?
Title: Re: NXShell properties filename
Post by: uldis on September 17, 2024, 12:28:52 PM
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"'
Title: Re: NXShell properties filename
Post by: saksham.adyso on September 17, 2024, 01:01:27 PM
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.
Title: Re: NXShell properties filename
Post by: uldis on September 17, 2024, 05:47:31 PM
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. 
Title: Re: NXShell properties filename
Post by: Victor Kirhenshtein on October 16, 2024, 03:00:11 PM
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