Skip to main content
Version: Next

CLI Reference

Reset the Traffic Accounting Statistics​

To reset all local traffic accounting statistics, use the following command on the control server.

vfcli-ctrl server:traffic-statistics reset-all

To reset ALL traffic accounting statistics (including the datastore), use the following command on the control server.

vfcli-ctrl server:traffic-statistics reset-all --include-datastore

Cancel a Task​

You may cancel a task if its run time is more than 10 minutes.

vfcli-ctrl task:cancel

Force Remove a Hypervisor and its Servers​

vfcli-ctrl hypervisor:force-remove

Set a Hypervisor to Re-Commission State​

vfcli-ctrl hypervisor:re-commission

Reset an Administrator Password​

vfcli-ctrl user:reset-admin-password

Reset System Access Credentials​

vfcli-ctrl system:reset-access-credentials

Force Flush Backups based on Storage ID​

vfcli-ctrl backups:force-flush

Regenerate Backup Storage Keys​

vfcli-ctrl backup-storage:reset-key

Disable Captcha​

vfcli-ctrl captcha-off

Disable forcing admins and end users to activate TFA​

vfcli-ctrl tfa-force-off

Change Server Creation Date​

Important

Changing a server creation date will remove the monthly historical traffic statistics.

vfcli-ctrl server:creation-date SERVER_ID 'YYYY-MM-DD HH:MM:SS'

Retrieve Last Used Password for a Server​

vfcli-ctrl server:password show <SERVER_ID>

Admin IP Restrict​

Enable​

vfcli-ctrl admin:ip-restrict enable

Disable​

vfcli-ctrl admin:ip-restrict disable

Add address​

vfcli-ctrl admin:ip-restrict addip IP_TO_ADD

Delete address​

vfcli-ctrl admin:ip-restrict delip IP_TO_DELETE

List addresses​

vfcli-ctrl admin:ip-restrict list

Server Do Not Destroy (DND)​

When DND is enabled for a server, it prevents it from being deleted, re-installed, ISO mounts and password resets. This includes end users, admins, and API. The only way to delete the server is to disable DND.

Enable​

vfcli-ctrl server:dnd enable SERVER_ID

Disable​

vfcli-ctrl server:dnd disable SERVER_ID

Apply storage QoS to all servers by hypervisor​

Regenerates the server configurations and live-applies the disk I/O limits currently stored to every disk on each server.

vfcli-ctrl server:configurations HYPERVISOR_ID --options=storage-qos

Set storage QoS values and apply them​

Sets the disk I/O limits on the every disk on the hypervisor, then live-applies them. Values are passed as column:value pairs.

vfcli-ctrl server:configurations HYPERVISOR_ID --options=storage-qos --qos=read_iops_sec:500,write_iops_sec:500,read_bytes_sec:104857600,write_bytes_sec:104857600

Available QoS columns:

  • read_iops_sec — read operations per second
  • write_iops_sec — write operations per second
  • read_bytes_sec — read throughput in bytes per second
  • write_bytes_sec — write throughput in bytes per second