SRXConfig allows you to make changes to your server settings via the command line. However, settings related to Users and Groups will only go into effect for servers using native authentication.
Using the nxcli ADDUSER command shows success on the command line, and add user to Titan Server.
Below are the sample nxcli commands:
Examples:
DOMAIN EXAMPLES (/Target=DOM)
============================
DOMAIN VARS: dump a list of system variables available at the domain level
nxcli [...] /Target=Dom /Action=vars
DOMAIN LIST: list all the domains, local and remote
nxcli [...] /Target=DOM /Action=LIST
DOMAIN GET: Retrieves the configuration for the domain
nxcli [...] /Target=DOM /Action=GET [/DomainGUID="xyz-xyz"]
DOMAIN SET: Updates configuration settings
nxcli [...] /Target=DOM /Action=SET /Dom.DomainDesc="My domain"
SERVER EXAMPLES (/Target=SVR)
============================
Server VARS: dump a list of system variables available at the server level
nxcli [...] /Target=Svr /Action=vars /ServerName="server name" [or] /ServerGuid="<serverGuid>" [or] /Svr.Name="servername"
Server LIST: Lists all the Server, local and remote
nxcli [...] /Target=SVR /Action=LIST /ServerName="my-server-name"
Server GET: Retrieves the configuration for the Server
nxcli [...] /Target=SVR /Action=GET /ServerName="my-server-name" /Fields=Ftp.Enabled
or
nxcli [...] /Target=SVR /Action=GET /Fields="Ftp" /ServerName="my-server-name"
Server SET: Updates configuration settings
nxcli [...] /Target=SVR /Action=SET /Ftp.Enabled="1" /ServerName="my-server-name"
Start/Stop a Server
==================
nxcli [...] /Target=SVR /Action=Start|Stop|Restart /ServerGUID="123-123-1234..."
nxcli [...] /Target=SVR /Action=Start|Stop|Restart /ServerName="Default Server"
USER EXAMPLES (/Target=USR)
============================
User VARS: dump a list of variabels at the user level
nxcli [...] /Target=USR /Action=vars
User LIST: display users for specified server
nxcli [...] /Target=USR /Action=list /ServerName="my-server-name" /Username="john" /AuthGUID=native
Get User PARAMS: display user settings
nxcli [...] /Target=USR /Action=get /ServerName="my-server-name" /Username="john" /AuthGUID=native
nxcli [...] /Target=USR /Action=get /ServerName="my-server-name" /Username="john" /Fields=General /AuthGUID=native
Set User PARAMS: update user params
nxcli [...] /Target=USR /Action=get /ServerName="my-server-name" /Username="john" /AuthGUID=native
nxcli [...] /Target=USR /Action=get /ServerName="my-server-name" /Username="john" /Fields=General /General.UserDesc="new description" /AuthGUID=native
Create User: create a new user
nxcli [...] /Target=USR /Action=create /ServerName="my-server-name" /Username="newuser" /password="the password" /AuthGUID=native
Delete User: create a new user
nxcli [...] /Target=USR /Action=delete /ServerName="my-server-name" /Username="newuser" /AuthGUID=native
Importing a Server
==================
nxcli [...] /Target=SVR /Action=Import /InFile=myfile.nxcfg
"nxcli /Action=Get /Target=SVR /Fields=Sftp" would return the NxServerParamsSftpPoco
"nxcli /Action=Get /Target=SVR /Fields=Sftp /Prop=SftpVersion" would return the NxServerParamsSftpPoco.SftpVersion
"nxcli /Action=Get /Target=SVR /Prop=Sftp.SftpVersion" would return the NxServerParamsSftpPoco.SftpVersion
Example: Retrieve server level FTP configuration
nxcli /AdminUser=<admin> /AdminPass=<test> /Action=GET /Target=SVR /Model=Ftp