Which Of The Following Windows Command Line Utilities
To run the Gateway Control-line Utility, open up a command shell and type: gwcmd <option>. This example uses the Windows platform:
- Open theCommand Prompt with admin privileges. In the search bar, entercmd and then right click next to the Command Prompt to selectRun as administrator.
- Any time y'all run any of the Gateway command utility options, you demand to run them from the directory that Ignition is installed in. The default install directory is:C:/Program Files/Inductive Automation/Ignition.
-
From here, you can enter any of the command options listed in the tabular array below. This case is of a Gateway backup using the following command: gwcmd -b "C:/Gateway Backups/Backup_190108.gwbk".
Using spaces in a file path
When using spaces in a file path name, use quotation marks effectually the full path name, as shown in the example above. Forwards or astern slashes can be used to separate folders. The file path includes the disk name, folder path, and file proper name.
-
The above command created a Gateway Backup on the C drive, in the Gateway Backups folder with a file name of Backup_190108.gwbk. The image beneath shows all the commands used in Steps 2 and 3.
Use the Command-line Utility to Start or Cease the Gateway
One of the common uses for the Command-Line Utility is to outset or stop the Gateway.
Windows
Ignition's installation directory containsstart-ignition.bat andstop-ignition.bat, which tin get-go or terminate the service. Example:
C:\Programme Files\Inductive Automation\Ignition> offset-ignition.bat
However, you can also use Windows native service commands to control the running land of the Gateway:
Linux
You can command the service using theignition.sh script. Information technology tin can be called with theshowtimeandcease parameters to perform the relevant operations.
For example:
/usr/local/bin/ignition/ignition.sh start
Additionally, you tin use native terminal commands to start or end the service:
Mac OS X
You tin access the service from the install directory using the "ignition.sh" script. On a typical Mac install using the dmg installer, the full command (without a custom location specified) is the following:
/usr/local/ignition/ignition.sh start
Command-line Utility 'gwcmd' Options
The following table lists all available 'gwcmd' options.
Options | Clarification |
|---|---|
| | Creates an activation_request.txt file that tin can exist used to request a license.ipl file from the Anterior Automation website. You must specify the license key to use for activation. The activation_request.txt file is saved in the current directory. |
| | Downloads a Gateway backup You will be prompted whether it is OK to overwrite the file if another |
| | The post-obit feature is new in Ignition version 8.0.3 Clears the gateway's SSL / TLS setup. The gateway's SSL / TLS connector will be immediately shut down. |
-d, --disabled | Use with the --restore flag to disable all items after gateway restoration and restart. |
| | The post-obit feature is new in Ignition version 8.0.3 Exports the gateway'south SSL KeyStore in PKCS12 format and saves to the specified path. |
| | The following feature is new in Ignition version eight.0.3 Exports the individual key from the gateway'south SSL KeyStore in PEM format and saves to the specified path. |
| | The post-obit feature is new in Ignition version viii.0.three Reloads the Gateway's SSL KeyStore from disk. Any update to the KeyStore will be automatically applied to any new connections. |
| | Shows the usage for this command. |
| | Retrieves server condition and port data from the Gateway if it is running. |
| | Changes the Gateway http port. |
| | Changes the Gateway https port. |
| | The post-obit feature is new in Ignition version 8.0.3 Add to the consign private key command to not encrypt the private key. |
| | The following feature is new in Ignition version 8.0.3 Specifies a Gateway proper name while restoring a backup. Additionally, the |
| | Enables a countersign change for the initial user. |
| | Restarts the Gateway. |
| | Restores a Gateway fill-in (.gwbk) file. |
| | Performs a thread dump in the Gateway and prints the dump to the command-line. |
| | Creates an unactivation_message.txt file that yous tin use to unactivate a license via the Inductive Automation website. The unactivation_message.txt file is saved in the current directory. |
| | Applies a license.ipl file that was downloaded from the Inductive Automation website. You must supply the location of the license.ipl file. If information technology is in the current directory, apply license.ipl for the location. |
| | Automatically answers aye to any prompt that may announced in the above commands, such as permission to overwrite an existing file. |
Reset the Password
If something happened and you lot can't go into the Gateway Webpage anymore, you may demand to reset the master username/password. You tin can use this Gateway Command-line Utility to reset the chief password for the user with full privileges. This ' gwcmd ' utility triggers arrangement commissioning, and prompts the user to enter a username and password for the main user (with total privileges) afterward the Gateway restarts.
Which Of The Following Windows Command Line Utilities,
Source: https://docs.inductiveautomation.com/display/DOC80/Gateway+Command-line+Utility
Posted by: penceharriew.blogspot.com

0 Response to "Which Of The Following Windows Command Line Utilities"
Post a Comment