Use these command-line utilities to expedite the deployment of Workspace ONE Intelligence Hub on your Linux devices. The ws1HubUtil application is located at the agent binary directory under the installation directory: /opt/vmware/ws1-hub/bin.
ws1HubUtil installed on the Linux device includes the following options and commands:
- Version
- Help
Available Commands
- Beacon
- Enroll
- Logs
- Resource
- Sample
- Sensor
- Service
- Status
- Unenroll
- Upgrade

Version: The Version argument shows the hub installed version.
sudo ./ws1HubUtil --version
sudo ./ws1HubUtil -v
Help: The Help argument shows the help message.
sudo ./ws1HubUtil --help
sudo ./ws1HubUtil -h
sudo ./ws1HubUtil beacon
sudo ./ws1HubUtil enroll --user xyz --password xyz --group xyz --server https://<host>.com
| Command-line argument |
Short Name |
Value |
Description |
Comments |
|---|---|---|---|---|
| --user |
-u |
Enrollment user string |
User credentials generated from console. |
Prompts you to enter the details if the command line argument is not entered. |
| --password |
-p |
Password String |
Credentials generated from console. |
Prompts you to enter the details if the command line argument is not entered. |
| --group |
-g |
Organization group String |
Organization groupID to which device must enroll. |
Prompts you to enter the details if the command line argument is not entered. |
| --token |
-t |
Enrollment Token |
Used for token based enrollment |
Used if OG enrollment type is set for token. Token can also be passed as --group field. |
| --server |
-s |
Server String |
**Fully qualified** Workspace ONE UEM console URL to which the device has to enroll. The URL is typically the device services URL not necessarily the console URL. For example, https://ds135.awmdm.com. |
Prompts you to enter the details if the command line argument is not entered. |
| --proxy-server |
Proxy server info |
Use during enrollment if hub needs to use proxy info (optional) |
Provide the proxy server info using this argument. If enrollment goes through a proxy, |
|
| --proxy-user |
Proxy username |
Username for the proxy (optional) |
Applicable if --proxyserver is provided and if proxy requires username and password. |
|
| --proxy-password |
Proxy password |
Password for the proxy (optional) |
Applicable if --proxyserver is provided and if proxy requires username and password. |
sudo ./ws1HubUtil logs --collect --path "/home/test/Downloads"
| Command Options Long Name | Value | Description | Comments |
|---|---|---|---|
| --collect | Collects the logs in a zip file and copies to the /tmp folder. | The default path for moving the logs is /tmp. We collect the Hub and Assist logs and zip them. File format example: ws1-hub-20060102150405.zip |
|
| --path | Folder path | Folder path to copy the log zip file. | Overrides the default folder path to copy the zipped log file. |
sudo ./ws1HubUtil resource --sync
Sample: The Sample command notifies the hub scheduler to trigger a sample immediately. By default, the hub collects and sends all the samples. Also, a customized sample can be triggered. The allowed sample types are - system, network, certificate, profile, or all.
sudo ./ws1HubUtil sample
sudo ./ws1HubUtil sample --type
Example: ./ws1HubUtil sample --type network.
| Command-line argument | Value | Description | Comments |
|---|---|---|---|
| --type | system | network | certificate | profile | all | Notifies the scheduler to trigger sample immediately. | Queues a sample job to the hub scheduler with the specified sample type. |
| Sample Type | Samples Collected |
|---|---|
| system | System | memory | device capability |
| network | Network adapter | WLAN |
| certificate | certificate |
| profile | profile |
| all | All of the sample types |
sudo ./ws1HubUtil sensor --sync
sudo ./ws1HubUtil sensor --get --name "sensor_name" --pretty
Using --pretty in the command is optional.
| Command Options Long Name | Value | Description | Comments |
|---|---|---|---|
| --sync | Notifies scheduler to trigger sensor sync | A sensor sync job queues the hub scheduler,fetching latest sensors, running periodic sensors, and transmitting the latest values | |
| --get | Argument to return sensor values | Returns the JSON response with sensor name and value | |
| --name This command is optional. |
Name of the sensor being returned | Along with --get calls to fetch the named sensor value | |
| --pretty This command is optional. |
Formats the sensor name/value | Formats the JSON response of the sensor --get |
sudo ./ws1HubUtil service [--start] or [--stop]
| Command Options Long Name | Value | Description | Comments |
|---|---|---|---|
| --start | Starts hub services | ||
| --stop | Stops hub services |
sudo ./ws1HubUtil status --enroll --pretty
| Command Options Long Name | Value | Description | Comments |
|---|---|---|---|
| --enroll | Returns the enrollment status of the device. | Returns the enrollment status in JSON format. Also, returns the current group ID and enrolled user name. | |
| --dependency | Returns the install status of these apps. Hub is dependent of multiple system apps like Ruby, network-manager, and others. | Returns the install status and their priority. The result is JSON based. | |
| --profile | Returns the installed profile list along with version. | JSON based response with profile name and version. | |
| --pretty This command is optional. |
Formats the status result/value JSON response. | Pretty-printing the status result. |
sudo ./ws1HubUtil unenroll
If preferred, manually uninstall the the Intelligent Hub using the command line on the device. It is not necessary to run both commands because an unenroll command is sent before the uninstall.
Examples:
$ sudo apt remove workspaceone-intelligent-hub
$ sudo zypper remove workspaceone-intelligent-hub
$ sudo /opt/Workspace-ONE-Intelligent-Hub/uninstall.sh
sudo ./ws1HubUtil upgrade