我要评分
获取效率
正确性
完整性
易理解

Command Format and Parameters

Syntax

vasctl [-h | --help] COMMAND TYPE [-h | --help][OPTIONS]
Table 1 vasctl command parameters

Parameter

Description

COMMAND

Specifies the instruction action.

  • set config: configures settings.
  • query affinity: queries affinity.
  • opt reassign: reassigns core binding.
  • opt recover: restores VM affinity configurations.

TYPE

Specifies the data or object for the operation.

  • sched-policy: configures the scheduling policy.
  • scope: specifies the scope.

If the CLI tool has been installed, you can run the -h or --help command to view the supported items.

  • Full query
    vasctl [-h/--help]

    The vasctl command output is as follows:

    Usage: set config[OPTIONS]
    OPTIONS:
        -sp  ,--sched-policy                      Set scheduling policy, with valid values including dynamic (dynamic affinity) and bind (static core binding).
    
    Usage: query affinity[OPTIONS]
    OPTIONS:
        -s   ,--scope                             Query virtual machine vCPU affinity: 'all' to retrieve affinity information for all virtual machines, 'uuid' to fetch 
                                                  affinity details for a specific virtual machine.
    
    Usage: opt reassign[OPTIONS]
    OPTIONS:
        -s   ,--scope                             Realign virtual machine vCPU: 'all' to reschedule all virtual machines, 'uuid' to reconfigure a specific virtual 
                                                  machine's CPU affinity.
    
    Usage: opt recover[OPTIONS]
    OPTIONS:
         The command does not support any option arguments.
  • Single-command query
    vasctl COMMAND TYPE -h

    The single-command query returns the parameter information related to the command.