每次脚本修改 vCenter ServerPlatform Services Controller 或 vSphere Update Manager 时,TLS 配置实用程序都会执行备份。如果需要备份到特定目录,可以执行手动备份。

关于此任务

Windows 和设备的默认目录有所不同。

操作系统

备份目录

Windows

c:\users\current_user\appdata\local\temp\yearmonthdayTtime

Linux

/tmp/yearmonthdayTtime

过程

  1. 将目录更改为 vSphereTlsReconfigurator,然后更改为 VcTlsReconfigurator 子目录。

    操作系统

    命令

    Windows

    C:\Program Files\VMware\CIS\vSphereTlsReconfigurator\
    cd VcTlsReconfigurator

    Linux

    cd /usr/lib/vmware-vSphereTlsReconfigurator/
    cd VcTlsReconfigurator
  2. 运行以下命令以备份到特定目录。

    操作系统

    命令

    Windows

    directory_path\VcTlsReconfigurator> reconfigureVc backup -d backup_directory_path
    

    Linux

    directory_path/VcTlsReconfigurator> ./reconfigureVc backup -d backup_directory_path
  3. 确认备份成功完成。

    成功的备份类似于以下示例。

    vCenter Transport Layer Security reconfigurator,  version=6.0.0, build=8482376
    For more information, refer to the following article: https://kb.vmware.com/kb/2148819"
    Log file: "C:\ProgramData\VMware\vCenterServer\logs\vmware\vSphere-TlsReconfigurator\VcTlsReconfigurator.log".
    ================= Backing up vCenter Server TLS  configuration ==================
    Using backup directory:  c:\users\admini~1\appdata\local\temp\1\20170202T054311
    Backing up: vmsyslogcollector
    Backing up: vspherewebclientsvc
    Backing up: vmware-autodeploy-waiter
    Backing up: rhttpproxy
    Backing up: VMwareSTS
    Backing up: VMWareDirectoryService      
    
  4. (可选) : 如果稍后必须执行还原,可以运行以下命令。
    reconfigure restore -d tmp directory or custom backup directory path