We use SFTP to transfer files for NinthBrain and Protean. Below is a set of instructions to help with the setup. To set this up you will need to have access to your server and rights to make modifications.
Collect information from NinthBrain or Protean
Before you start make sure you get the following items from NinthBrain or Protean so that you can complete the process:
· Username
· Password
Instructions
If on Version 6.9.1.0+
The Output can simply be set the the SFTP path in this format: sftp://user:password@host[:port]/path/
Example -
Username: NinthBrain_FlightVector
Password: password
Host: sftp.ninthbrain.com
Port: 22
Path: Optional (would contain a specific folder name on the SFTP site)
Full Output: sftp://NinthBrain_FlightVector:password@sftp.ninthbrain.com:22/
sftp://protean_username:password@proteanhub.com:31234/incoming/
- Download the SFTP zip
- Create a folder in your Flight Vector Server folder inside you C drive in the Softtech folder of your Program Files X86. Below images show you the file path
- You will want to extract the directory_to_sftp.zip into the above-mentioned folder… NinthBrain or Protean based on which service you are using.
- Once you have the files extracted you will see the following inside of your folder above. (Remember that if you are using NinthBrain you will see that instead of the shown Protean)
- Create a new folder in this file and call it ‘outgoing’. See second image below
Open your config.json file. It will look like the image below. (To make sure it safes accurately it is best to right-click and run it as an administrator)
- Change “read_from”: to the new path of the outgoing folder and flip the slashes (change from back slashes to forward slashes) as shown
- C:/Program Files (x86)/SofttechLLC/FlightVectorServer/Protean/outgoing
- Change “destination_host”: according to your service
- Protean will be
- Proteanhub.com:31234
- NinthBrain will be
- “Sftp.ninthbrain.com:22”
- Protean will be
- Change “username”: and “password” to the username and password provided to you by either Protean or NinthBrain
- Change “write_directory”: to
- For NinthBrain
- “/”
- For Protean
- “incoming/”
- For NinthBrain
- You may need to update the Winscp file path if you add in the location that is different than the below (do not forget the double back slashes and to add winscp.com to the end of the path)
**"\" = Sequence indicator and "/" = to separate elements in file paths
CAD Settings
Now that we have our files and directories set up, we need to make a few modifications in the CAD.
- Go to Settings in the CAD and type in Version 3, you will see the below items.
- Click on ‘Version 3 XML Output’
- Insert the path from your ‘read_from’ section in the config.json file
- C:\Program Files (x86)\SofttechLLC\FlightVectorServer\Protean\outgoing
- Click on ‘Version 3 XML Output’
Starting the Service
- Open a command prompt. Type CMD in your search bar.
- Then you need to maneuver to the appropriate file location in the command prompt
- You can click in the path from the file explorer, then either right-click and copy or ctrl+c to copy the path
- If you switch to your command prompt window you can type ‘cd’ then a space and do a ctrl+v to paste the path, then hit enter
- From here we want to type ‘nssm install’ it is important to have the space and spelling correct, then hit enter
- Now you need to fill in the Path, Startup directory, Service name.
- Remember that if you are using NinthBrain to replace Protean with NinthBrain.
- Remember that if you are using NinthBrain to replace Protean with NinthBrain.
- After you have the data entered, click on ‘Install service’
- Now let’s start the service. Search for Services in your Windows Search bar and select services
- Scroll to ‘Protean’ or ‘NinthBrain’ and highlight the service
- Right-click on ‘Protean’ and select ‘Properties’
- Go to the ‘Log On’ tab and make sure your login credentials are here to ensure it will start appropriately.
- Then click ‘Start’ from the left side menu, as shown below.
Test the Connection
- Go to your CAD and from the Utilities menu select ‘Create NEMSIS File’
- You will need to enter a request number to test the generation of the file
- From here go to your Outgoing folder and you should see the file there briefly before it is consumed by either NinthBrain or Protean.
Trouble-Shoot Connection Issues
Sometimes we go through all of this setup and we encounter issues. Generally it is easy to diagnose the issue. Here are the steps to check.
WINSCP Tool:
- First you need to install WINSCP, if you don’t already have it. Here is a link. Follow the steps, one by one
- https://winscp.net/eng/download.php
- When you open WINSCP you will need to enter the username, password, and paths from your config.json file
- Once you enter the data, then login
- It should open your path right where you need it. You should see the incoming folder as seen below. Click on it.
- Open your outgoing folder from before and drag and drop the file that you generated into the incoming folder. See below.
- You should then see the file populate as shown below.
If this is not working correctly please contact us so that we can assist you further.
**If the files are being consumed when running the executable, but not when running as a service, it could be the service account’s WinSCP profile did not trust Protean/Ninth Brain. To address, Run WinSCP as the service account, when you receive the prompt to “Trust the Key” select Yes. You should then be able to run the service as normal
Comments
0 comments
Please sign in to leave a comment.