ADDGROUP and ADDUSER command limitations with non-native authentication

ADDGROUP and ADDUSER command limitations with non-native authentication



ADDGROUP and ADDUSER command limitations with non-native authentication

Question

How to use ADDGROUP and ADDUSER command in cmd and what are the limitations?

Reasoning

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.

Answer

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



    • Related Articles

    • How To: List users via PowerShell, NXCLI, or SQLite

      How To: List users via PowerShell, NXCLI, or SQLite Question How to get a list of users via PowerShell, NXCLI, and/or SQLite Answer Below are the scripts that will list the users via PowerShell, NXCLI, and/or SQLite. Script for PowerShell $list = ...
    • How To: Install Titan NexGen via CMD

      How To: Install Titan NexGen via CMD Question How can I install the Titan server in Windows via the command prompt? Answer Follow the step-by-step procedure below. Pre-requisites The Titan NexGen is installed. Below are the links to install Titan ...
    • How To: Use Hybrid Authentication In Titan

      Related To Titan SFTP Server and Titan MFT Server. Question How can I use hybrid authentication in Titan? Reasoning I would like to be able to manage native user accounts and windows user accounts under one server instance to simplify administration. ...
    • Command Line Interface (CLI) and Example

      Command Line Interface (CLI) and Example Question Is there information on a CLI (Command Line Interface) for use with Titan Server? Are there any sample uses? Reasoning I would like to work programmatically with Titan Server Answer Yes, Titan Server ...
    • How To: Check if a Specified Port is in Use

      How To: Check if a Specified Port is in Use Question I restarted my Titan Server, and I get the message “Error Starting Server: Port conflict”. I Checked the server, and the specified port is not in use. Reasoning A port conflict error typically ...