Adding new system

CaraquetFlyer

Dabbler
Joined
Feb 6, 2019
Messages
13
Hello,

When adding a new system in TrueCommand, please let us add a port number as some of our systems are behind a firewall or sharing an IP's.

What port is it requesting to connect to a system: 22, 80 ?

Thanks,
 

kenmoore

TrueCommand Project Lead
iXsystems
Joined
May 1, 2019
Messages
51
Bug Ticket Created: https://jira.ixsystems.com/browse/TC-896

Right now the TrueCommand middleware uses port 80 to open a connection to the NAS:
wss://<IP>/websocket -> On the NAS (nginx relay) this gets redirected to port 6000 for the websocket connection to the NAS middleware.

If this issue is only a validation errror in the webUI, you should be able to open up the API Tester page and submit the servers/add API call directly to the middleware - bypassing the UI input validation.
For full documentation/examples about the middleware API, you can click the "?" button on the TrueCommand login screen, or just put "/docs" on the end of the TrueCommand IP/URL (https://<my.tc.system>/docs)

Example:
------
Namespace: servers
Name: add
Arguments:

Code:
{
  "ip" : "system IP with port number",
  "login_user" : "root",
  "login_password" : "server_password",
  "nickname" : "server_nickname"
}


Edit: The "IP" is supposed to be lowercase in the arguments. Not sure why the forums keep trying to auto-format a code block....
 

kenmoore

TrueCommand Project Lead
iXsystems
Joined
May 1, 2019
Messages
51
Bug ticket resolved. Fixes will be included in the next version release.

Don't bother with the manual server registration. There was a pre-connection "ping" test which used port 80 to verify the host was active before the websocket connection to the NAS was attemped, so that test will still fail at the present time. This was also fixed to respect any custom port number specified for the NAS.
 
Top