Reference: TanOS command line interface
Tanium Appliances contain a command line interface (CLI) that you can access from SSH.
Requirements
To access all CLI commands, you must access the CLI as a user with the tanadmin role. Some CLI commands are available to users with the tanuser role, as noted in Tanium platform commands.
Syntax
ssh -q[t] <user>@<ip-or-fqdn> <command> [action/options] ...
Tanium platform commands
|
Command |
Description |
|---|---|
|
add hub |
Install the Tanium Zone Server Hub add-on to an existing Tanium Server role. |
|
configure cap <action> |
Configure the Tanium Cloud Access Point role. This command has the following options:
Usage example: ssh -q user@appliance configure cap set sample-zsb1 sample-zsb2 443 |
|
configure ipsec <action> |
Configure IPsec communication with a peer Appliance in an Array. Both Appliances must have the same Tanium role of either Tanium Server or Tanium Module Server. This command has the following actions:
|
|
configure tms sync <action> |
Configure the Tanium Module Server synchronization feature, which copies content from an active Tanium Module Server to a standby Tanium Module Server. To use this feature, you must:
For more information about Tanium Module Server synchronization, see Schedule sync jobs. This command has the following actions:
|
|
dec proxy |
Install, upgrade or remove the Direct Connect (DEC) Zone Proxy. Available options:
|
|
help |
Show a list of available commands. Add |
|
install aio [version] |
Install the specified version of the Tanium All-in-One role. Run the command without a version to display the available versions found on the Appliance. Usage example: ssh -q user@appliance install aio 7.8.4.1234
Note: Use Tanium Appliances configured with the All-in-One role only for evaluation purposes. Tanium does not support All-in-One deployments in production environments.Do not allow a Tanium Appliance that is configured with the All-in-One role to accept inbound connections from the internet.
|
|
install cap |
Install the Tanium Cloud Access Point role. |
|
install tms [version] |
Install the specified version of the Tanium Module Server role. Run the command without a version to display the available versions found on the Appliance. Usage example: ssh -q user@appliance install tms 7.8.4.1234 |
|
install ts [version] |
Install the specified version of the Tanium Server role. Run the command without a version to display the available versions found on the Appliance. Usage example:
CODE
|
|
install tzs [version] |
Install the specified version of the Tanium Zone Server role. Run the command without a version to display the available versions found on the Appliance. Usage example:
CODE
Important: Make sure to import the public key to the Zone Server Appliance before you run this command (TanOS menu 2-I).The public keys are stored in the tanium-init.dat file. For detailed steps, see Import the Tanium Server public key file to the Zone Server.
|
|
manage ldaps <action> |
Manage the LDAPS or StartTLS CA certificates used by the Tanium Server. This command has the following actions:
|
|
promote tms <user> <serial> |
Promote a secondary Tanium Module Server to become the active Module Server in the Array, where
Important: Run this command from an Array Manager Appliance.
This command performs the following actions:
Usage example: ssh -q user@appliance promote tms MyAdminConsoleUser 8ca9c7bae2e8ec27-5484b887017201d5 <<< 'mypassword123' |
|
remove hub |
Remove the Tanium Zone Server Hub add-on. |
|
set manifest url { <type> <value> | defaults } |
Set the URL of a Tanium manifest. For type, specify main or labs. For value, specify the URL for the corresponding manifest. To restore the default manifest URLs, use set manifest url defaults. |
|
show fingerprint { ts | tzs | hub | soap } |
Show the Tanium fingerprint for the Tanium Server ( Usage example: ssh -q user@appliance show fingerprint ts |
|
show manifest urls [json] |
Show the URLs for the main and labs Tanium manifests. By default, the URLs are returned in plain text. Use the json option to return the URLs in JSON format. |
|
sync tms |
Copy the contents of the active Tanium Module Server to the standby Tanium Module Server. Run this command in interactive mode using the -t option for ssh to ensure proper cleanup after canceling. You can send this command to the Array Manager or the active Module Server. Usage example ssh -qt user@appliance sync tms |
|
upgrade tanium [version] |
Upgrade the Tanium software on the Appliance to the specified version. Run the command without a version to display the available versions found on the Appliance. ssh -q user@appliance upgrade tanium 7.8.4.1234 |
Appliance Array commands
|
Command |
Description |
|---|---|
|
add array member <ip_address> |
Add another Appliance with the specified IP address to the Appliance Array that is defined on the current Appliance.
Tip:
When you run this command, it might include interactive prompts to trust the new Array member and to enter the password for the new Array member. If you are using this command in a script, you can avoid these prompts as follows:
|
|
array assign roles <action> |
Use a JSON document to assign the desired roles to Array members and perform necessary setup steps. This command has the following actions:
In the JSON configuration file template you retrieve from the
|
|
array create health-check |
Generate a new health check report on each Array member. Any previous reports are deleted. After running this command, the results of the latest report are stored in the health.log file in the /outgoing directory on each Array member. |
|
array dec proxy [ list | upgrade <version> | show versions ] |
Upgrade Direct Connect (DEC) Zone Proxy installations across all Zone Servers in the Array. Zone Servers that do not have DEC Proxy installed are not affected. Upload the DEC Proxy RPM file to the /incoming directory on the primary Tanium Server before running the upgrade. Available options:
Usage example: ssh -q user@appliance array dec proxy upgrade 1.1.0-14 |
|
array restart replication |
Restart LDAP replication for the local authentication service to resolve internal LDAP errors. |
|
array self test |
Run a self-test on all Array members. |
|
array sync partitions |
Create backups of the active partitions by copying their contents to the inactive partitions for each affected Appliance in the Array. This may take a while to complete. Tanium services are stopped during the backup. Appliances that do not have alternate partitions are not affected. |
|
array upgrade appliance [--interactive] [version] |
Upgrade TanOS on all Appliances in the Array to the specified version. Run this command only on the primary Tanium Server in the Array. Run the command without a version to display the available versions found on the Appliance. Use the --interactive flag to respond to confirmation prompts during the upgrade rather than accepting default responses. Requires ssh -t. Usage example: ssh -q user@appliance array upgrade appliance 1.9.0.1234 |
|
array upgrade tanium [version] |
Upgrade the Tanium software on all Appliances in the Array to the specified version. Run the command without a version to display the available versions found on the Appliance.
Important: Load all RPMs to the incoming directory on the primary Tanium Server before running this command.
Usage example: ssh -q user@appliance array upgrade tanium 7.8.4.1234 |
|
create array <ip_address> <name of array> |
Create an Appliance Array with the specified name (spaces accepted) and add the current Appliance as a member, using the specified IP address. |
|
promote member <serial_number> |
Promote an Array member with the Tanium Server role to be an Array Manager. Specify the serial number of the Tanium Server to promote. |
|
demote member <serial_number> |
Demote an Array Manager so it can no longer manage the Array. The Appliance remains an Array member. Specify the serial number of the Appliance to demote. To find the serial number of an Appliance, run report info.
Important: Run this command from a different Array Manager, not from the Appliance you are demoting. The Array supports a maximum of two managers; do not demote the last manager, as this leaves the Array unmanageable.
|
|
refresh array |
Retrieve current membership from the other Appliances in the Array. This information is refreshed on all Appliances in the Array. |
|
reset array |
Remove the current Appliance from the Appliance Array. |
TanOS management commands
|
Command |
Description |
|---|---|
|
create backup <backup_type> [user@SCP_host]> |
Create a core or comprehensive backup bundle, and copy it to the /outgoing directory and optionally an SCP destination. For backup_type, use core or comprehensive. |
|
create health-check |
Generate a new health check report. Any previous reports are deleted. After running this command, the results of the latest report are stored in the health.log file in the /outgoing directory. If a health check is already running, the command outputs the cached report from the previous run and returns exit code 16.
Tip: To generate a new health check report on all Array members, use the array create health-check command.
|
|
create tsg { -list | <tsg-type> } [sftp-destination] |
Create a Tanium Support Gatherer (TSG) ZIP file and optionally upload it to an SFTP destination. Specify a Use the Optionally, specify the
Note: You can use the
A option with the ssh command to use agent forwarding to authenticate with the SFTP destination. Agent forwarding requires an SSH agent (such as ssh-agent in OpenSSH) to be running on your local host. For more information, see the documentation for your SSH client. Alternatively, you can generate an SSH key pair using the TanOS console for the specified TanOS user and add the public key to the SFTP destination's authorized keys. For more information, see Manage SSH keys for TanOS users.
Usage examples: ssh -q user@appliance create tsg connect ssh -qtA user@appliance create tsg appliance username@sftphost.example:newfilename.zip |
|
download package <URL|token> |
Download a package from download.tanium.com to the /incoming directory. Specify either the full URL of the download or the token from the URL.
Tip: No download URL or token is necessary to download an available upgrade package for TanOS. For more information, see command download package Appliance-upgrade.
Usage examples: ssh -q user@appliance download package https://download.tanium.com/hGAE28KOIAv0OYVtBIZk5IPv5o_iWBVeAhabcdefghi ssh -q user@appliance download package hGAE28KOIAv0OYVtBIZk5IPv5o_iWBVeAhabcdefghi
Note:
This command includes an interactive prompt to confirm the download. You can supply yes as a here string on stdin to skip the prompt automatically. For example: ssh -q user@appliance download package hGAE28KOIAv0OYVtBIZk5IPv5o_iWBVeAhabcdefghi <<< 'yes' |
|
download package appliance-upgrade <version> |
Download an upgrade package for a specific version of TanOS to the /incoming directory. Usage example:
Note:
This command includes an interactive prompt to confirm the download. You can supply yes as a here string on stdin to skip the prompt automatically. For example: ssh -q user@appliance download package appliance-upgrade 1.9.0 <<< 'yes' |
|
export security key <key_type> |
Export the RAID or GRUB key to the /outgoing directory. For key_type, specify raid or grub. |
|
netdiag <action> |
View network diagnostics. This command has the following actions:
|
|
performance <tool> [options] |
Manage performance data collection. The following tools are available:
Options:
|
|
reboot appliance [--force] |
Reboot the Appliance. This command includes an interactive prompt to confirm the reboot. You can supply yes as a here string on stdin to skip the prompt automatically. For example: ssh -q user@appliance reboot appliance <<< 'yes' Use the --force flag to skip the confirmation prompt and stop any existing maintenance action before rebooting. The reboot runs in the background and the SSH session returns immediately. |
|
report info [text|json] |
Report basic information for the Appliance, including the serial number, Server name, TanOS version, role, and Tanium version. Specify json to output the report in JSON format. The default format is text. This command is available to users with the |
|
reset software |
Removes all Tanium Core Platform software from the Appliance, but preserves TanOS settings such as network and system user configuration.
Note:
This command includes an interactive prompt to confirm the reset. You can supply yes as a here string on stdin to skip the prompt automatically. For example: ssh -q user@appliance reset software <<< 'yes' |
|
rotate security key grub |
Generate a new GRUB key |
|
security export aide |
Export the last run Advanced Intrusion Detection Environment (AIDE) report to the /outgoing directory. |
|
security initialize aide |
Enable AIDE and weekly AIDE reports. |
|
security run aide |
Manually run an AIDE report. |
|
security set <setting> <value> |
Configure advanced security settings. Available settings, with the available values for each setting, are as follows:
Note:
Enabling FIPS mode includes an interactive prompt. You can supply yes as a here string on stdin to skip the prompt automatically. For example: ssh -q user@appliance security set fips enabled <<< 'yes' |
|
security show [json] |
Show advanced security settings. To return settings in JSON format, specify json. |
|
|
Control Tanium Core Platform and TanOS services This command has the following actions:
You can indicate multiple services using the following aliases:
Usage examples: ssh -q user@appliance service list ssh -q user@appliance service status all_tanium ssh -q user@appliance service restart taniumserver.service |
|
set backup key |
Set the public key to encrypt backup files. The public key must be in PEM format. When the key is imported successfully, the command displays the key ID. |
|
set fqdn |
Set the FQDN for the Appliance. This command is available only when the Appliance does not have a role installed. Usage example: ssh -q user@appliance set fqdn Appliance.example.com |
|
set nameservers |
Set one or more DNS name servers for the Appliance. Any existing name servers are overwritten. Usage example: ssh -q user@appliance set nameservers 8.8.8.8 9.9.9.9 |
|
set ntp <server1> [server2] |
Set NTP servers for the Appliance. To configure an NTP server that requires authentication, you can specify a colon-separated value for the argument that contains the server name, key ID, key type, and key value. Usage example: ssh -q user@appliance set ntp ntp.secret.corp:42:SHA1:bfb7759a67daeb65410490b4d98bb9da7d1ea2ce |
|
show nameservers |
Show the DNS name servers for the Appliance. |
|
show ntp |
Show the NTP servers that are configured and connection information. This command is available to users with the |
|
show ssh-host-fingerprints |
Show the SSH host fingerprints. |
|
sync partitions |
Create a backup of the active partition by copying its contents to the inactive partition. This may take a while to complete. Tanium services are stopped during the backup. |
|
upgrade appliance [--interactive] [version] |
Upgrade TanOS to the specified version on the Appliance. Run the command without a version to display the available versions found on the Appliance. Use the --interactive flag to respond to confirmation prompts during the upgrade rather than accepting default responses. Requires ssh -t. Usage example: ssh -q user@appliance upgrade appliance 1.9.0 |
TanOS user management commands
|
Command |
Description |
|---|---|
|
add pubkeys |
Add entries to the authorized_keys file for the user. The command prompts you to paste the contents of keys to add, or you can provide the key file or contents on stdin. This command is available to users with the Usage example: ssh -q user@appliance add pubkeys < ~/.ssh/my-key.pub
Tip:
You can use the ssh-copy-id command in OpenSSH to add an SSH public key from your local host to any TanOS user with the tanadmin role on the Tanium Appliance. For example:
CODE
|
|
configure mfa <action> |
Configure authentication requirements and multifactor settings. This command has the following actions:
Usage examples: ssh -q user@appliance exempt user backup-admin ssh -q user@appliance enable global mfa |
|
copy pubkeys tancopy |
Copy the SSH keys for the current user to the authorized_keys file for the |
|
delete pubkeys |
Remove entries from the authorized_keys file for the user. The command prompts you to paste the contents of keys to delete, or you can provide key contents on stdin.
Tip:
Use the following command to list the contents of the authorized_keys file. You can copy the contents of individual keys from the provided list. ssh -q user@appliance show pubkeys authorized_keys This command is available to users with the Usage example: ssh -q user@appliance delete pubkeys < key-to-delete.pub |
|
ldap-auth <action> |
Configure LDAP authentication for TanOS users. This command has the following actions:
The following TanOS LDAP settings are configurable with the
|
|
local-auth <action> |
Manage Tanium Console user accounts in the local authentication service when it is enabled. For more information, see Configure the local authentication service for Tanium Console users. This command has the following actions:
|
|
register ssh-host <remote_host> [scan] |
Add entries to SSH known_hosts file for the current user. You can provide fingerprints for the remote host on stdin, or you can use the scan option to automatically discover and add the fingerprints of a remote host. For example: ssh -q user@Array_manager register ssh-host 192.168.15.115 < fingerprints.txt ssh -q user@Array_manager register ssh-host 192.168.15.253 scan
Note: For a higher level of security, explicitly provide the fingerprints that you have verified to belong to the remote host on stdin instead of using the
scan option.
|
|
show pubkeys <key_type> |
Show the SSH public keys for the current user. Key types:
|
|
set password |
Change the password for the current user. This command prompts for the new password when run interactively, or you can supply the new password on stdin. This command is available to users with the Usage example: ssh -q user@appliance set password <<< 'my-new-password' |
|
|
Manage TanOS system users. This command has the following actions:
|
Examples
Show a list of commands
Command:
ssh -q tanadmin@10.10.10.55 help
Example response:
The following commands are available in the TanOS CLI.
Tanium Platform
install aio: Install the All-in-One role
install ts: Install the Tanium Server role
install tms: Install the Tanium Module Server role
install tzs: Install the Tanium Zone Server role
add hub: Add a Zone Server Hub to a TS or AiO
remove hub: Remove the Tanium Zone Server Hub
upgrade tanium: Upgrade Tanium software
configure module service: Configure the Tanium Server to use a Module Server
register module service: Register the Tanium Module Server
TanOS Appliance Array
create Array: Create a new Appliance Array
reset Array: Reset this Appliance's Array configuration
add Array member: Add a Member to the Array
TanOS Management
report info: Report information about the Appliance
reset software: Reset the software on the Appliance
upgrade Appliance: Upgrade the Appliance
set backup key: Set the Backup Encryption Key
copy pubkeys tancopy: Copy the user's SSH keys to tancopy
To see more information about each command, run it with the option "help". E.g.
ssh -q user@appliance install ts help
Show help for the install aio command
Command:
ssh -q tanadmin@10.10.10.55 install aio help
Example response:
Install the All-in-One role
Installs the All-in-One role (TaniumServer and TaniumModuleServer) onto the Appliance. This option requires the password to be used for the 'tanium'
console user.
Usage: install aio <version>
Example: ssh -q user@appliance install aio 7.8.4.1234
Menu: 1-1
Install the Tanium Zone Server Hub add-on
Command:
ssh -q tanadmin@10.10.10.55 add hub
Example response:
staging /opt/utils/installers/TaniumZoneServer-7.8.4.1234-1.x86_64.rpm
Checking RPM signatures
Signature verification succeeded.
Installing Tanium Zone Server
Preparing packages...
TaniumZoneServer-7.8.4.1234-1.x86_64
TaniumZoneServer service installed. Complete installation by:
1. Set ServerName with '/opt/Tanium/TaniumZoneServer/TaniumZoneServer config set ServerName <name>'
2. Set any desired optional settings (ServerPort, LogVerbosityLevel, etc) by running '/opt/Tanium/TaniumZoneServer/TaniumZoneServer config set <key> <value>'
3. Copy tanium-init.dat file into /opt/Tanium/TaniumZoneServer/TaniumZoneServer
4. Enable the TaniumZoneServer with 'systemctl enable taniumzoneserver'
5. Start the TaniumZoneServer with 'systemctl start taniumzoneserver'
If you are configuring this to be a TaniumZoneServer Hub do the following:
1. '/opt/Tanium/TaniumZoneServer/TaniumZoneServer config set ZoneHubFlag 1'
2. Create a file named ZoneServerList.txt in the /opt/Tanium/TaniumZoneServer/ directory with the ip addresses/FQDNs of the ZoneServers
Tanium Zone Server Installation completed
Configuring Zone Server Hub
Add-On Zone Server Hub install - copied public key
Tanium Zone Server Installation completed
Retrieve Appliance information
Command:
ssh -q tanadmin@10.10.10.55 report info
Example response:
Serial Number: 5c7a65fd-2b96-4732-b2a1-fd9f56b8801e
Name: ts1
TanOS Version: 1.9.0.1234
Role: Tanium Server
TaniumServer: 7.8.4.1234