Skip to content

Command Line Usage

Command Line Client Management

The G-Health Client comes with a command line tool to allow more flexible access to the same management functions available via the Client Manager.

This can allow one to run tasks such as client registration via PowerShell scripts.

From the G-Health Client install folder the Command Line Interface (CLI) can be used using the executable name ghccli

Easy access to the G-Health Client install folder can realised using the Windows Environment Variable %ghealthclient%.

Use -? with any command

Usage:
  ghccli [command] [options]

Options:
  --version       Show version information
  -?, -h, --help  Show help and usage information

Commands:
  register    Register the client with a G-Health Server
  deregister  Deregister the client from a G-Health Server
  nvrLogon    creates credentials in Gcore for the G-Health client service
  status      Get the status of the client registration with the G-Health Server
  clear       Clear the information from the client
  configure   Configure the G-Health Client

Examples

Display Client Info and Status

ghccli status
Client Name: NVR001
Registration Status: Registered
Nvr Connection: Connected
Servers:
001 - ghealth.mydomain.com:5002

GCore Connection Example

ghccli nvrLogon --username sysadmin --password masterkey

Client Registration Example

ghccli register --host "ghealth.mydomain.com" --port 5002

Client Deregistration & Forced Deregistration Examples

ghccli deregister
ghccli deregister --force

Clear Disks Example

ghccli clear --disks