How to disable or enable the SFCB service (CIM Server) on the ESX/ESXi host
search cancel

How to disable or enable the SFCB service (CIM Server) on the ESX/ESXi host

book

Article ID: 313877

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

This article provides the commands to enable and disable the SFCB service on the ESX/ESXi host.

VMSA-2021-0014 documents an authentication vulnerability with SFCB
Please click 
HERE for more information on this advisory before proceeding with this workaround
 
You may want to disable the SFCB service if it causes the vpxa watchdog service to restart management services by using all the available memory and swapping the space in the service console.

SFCB is disabled by default. The service starts when you install a third-party CIM VIB, for example, when you run the esxcli software vib install -n VIBname command.

Note: The CIM (Common Information Model) agent is the process which provides hardware health information. Disabling this service will disable some sensors reported in the hardware health status.

image.png


Environment

VMware ESXi 4.0.x Embedded
VMware ESXi 4.0.x Installable
VMware vSphere ESXi 7.0.x
VMware vSphere ESXi 5.5
VMware vSphere ESXi 5.1
VMware ESX 4.1.x
VMware ESX 4.0.x
VMware vSphere ESXi 5.0
VMware vSphere ESXi 7.0.0
VMware vSphere ESXi 6.0
VMware vSphere ESXi 6.7
VMware ESXi 4.1.x Embedded
VMware vSphere ESXi 6.5
VMware ESXi 4.1.x Installable

Resolution

Details on the available powercli options to disable the service are documented here
 
There is no requirement to reboot the ESXi host to disable/enable the service

To enable or disable the CIM agent on an ESXi 6.x and ESXi 7.x host using the vSphere Client

1. Login the the vSphere Client

2. Select the ESXi Host 

3. Click on Configure -- Services

4. Click on "Cim Server" as per the screenshot below


CIM_Server Running.jpg


5. Click on Stop and then click on "ok" in the window that pops up - see screen shot below


Stop_Cim.jpg


6. Change the "Startup Policy" to "Start and stop manually" by clicking on the "Edit Startup Policy" button

Change_Cim_Startup.jpg

7. The final state of CIM Server service should be "Stopped" and "Start and stop manually"

final state.jpg

8. Reverse the steps above to re-enable the service i.e. Change the settings to "Running" by clicking "Start" and change the Startup policy to "Start and stop with host"


To disable the CIM agent on an ESXi 6.x and ESXi 7.0.x host and earlier versions using the command line
  1. Log in to the ESXi host in the Tech Support Mode as root. For more information, see Tech Support Mode for Emergency Support (1003677).
     
  2. Run these commands:

    # chkconfig sfcbd-watchdog off
    # /etc/init.d/sfcbd-watchdog stop


    confirm that the setting have taken by running

    # chkconfig sfcbd-watchdog 
    # /etc/init.d/sfcbd-watchdog status


    Final output should be similar to 

    putty_sfcb.jpg

     

     
    Note: Changing the chkconfig disables the sfcbd service and is persistent across reboots.

    To re-enable the CIM agent on the ESXi host, run these commands:

    # chkconfig sfcbd-watchdog on
    # /etc/init.d/sfcbd-watchdog start


    Note: To check the status of the agent on ESXi, run this command.

    # /etc/init.d/sfcbd-watchdog status

    Note: The CIM service starts automatically when you install a third-party CIM VIB.


Additional Information

Disabling an ESXi CIM provider when it fails or is unstable
次のエラーで hostd がセッションを使い果たし、ESX/ESXi ホストが切断される:SOAP session count limit reached
ESXi/ESXi ホスト上で CIM エージェントを無効にする方法
如何禁用 ESX/ESXi 主机中的 CIM 代理