banner



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:

  1. Open theCommand Prompt with admin privileges. In the search bar, entercmd and then right click next to the Command Prompt to selectRun as administrator.

  2. 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.
  3. 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.

  4. 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

-a,-–actuate <license-fundamental> Offline activation

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.

-b,--fill-in <new filepath>

Downloads a Gateway backup.gwbk file and saves the file to the specified path. The path can be either an absolute path or a relative path.

You will be prompted whether it is OK to overwrite the file if another .gwbk file with the same name already exists. You tin can override with the -y selection to forcefulness the file to ever be overwritten.

-c,--clearks

The post-obit feature is new in Ignition version 8.0.3
Click here to check out the other new features

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.

-e, --exportks <new filepath>

The post-obit feature is new in Ignition version 8.0.3
Click hither to check out the other new features

Exports the gateway'south SSL KeyStore in PKCS12 format and saves to the specified path.

-f, --exportpk<new filepath>

The following feature is new in Ignition version eight.0.3
Click here to bank check out the other new features

Exports the individual key from the gateway'south SSL KeyStore in PEM format and saves to the specified path.

-g,--reloadks

The post-obit feature is new in Ignition version viii.0.three
Click here to check out the other new features

Reloads the Gateway's SSL KeyStore from disk. Any update to the KeyStore will be automatically applied to any new connections.

-h,--help

Shows the usage for this command.

-i,--info

Retrieves server condition and port data from the Gateway if it is running.

-k,--port <new port>

Changes the Gateway http port.

-fifty,--sslport <new port>

Changes the Gateway https port.

-n, --nocrypt

The post-obit feature is new in Ignition version 8.0.3
Click here to bank check out the other new features

Add to the consign private key command to not encrypt the private key.

-o,--proper name

The following feature is new in Ignition version 8.0.3
Click here to check out the other new features

Specifies a Gateway proper name while restoring a backup. Additionally, the -y  command now skips prompts asking for a Gateway proper noun override.

-p,--passwd

Enables a countersign change for the initial user.

-r,--restart

Restarts the Gateway.

-s,--restore

Restores a Gateway fill-in (.gwbk) file.

-t,--tdump

Performs a thread dump in the Gateway and prints the dump to the command-line.

-u,--unactivate Offline unactivation

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.

-west,--uselicense <license.ipl path>

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.

-y,--promptyes

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

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel