Skip to content
Ask AI

Controller Configuration

[Command]

show ucentral-client server configuration

[Purpose]

Show the configuration of the controller server on the device.

[View]

System View

[Usage Scenario]

When using a controller to manage the switch, you can use this command to view the configuration of the controller server address on the switch.

[Use Cases]

sonic# show ucentral-client server configuration
ServerIP      Vrf
------------  -----
192.168.0.91  mgmt

[Command]

show ucentral-client server status

[Purpose]

Show the connection status between the device and the controller server.

[View]

System View

[Usage Scenario]

When using a controller to manage the switch, you can use this command to view the connection status between the switch and the controller server.

[Use Cases]

sonic# show ucentral-client server status
+--------------+-----------+
| ServerIP     | status    |
+==============+===========+
| 192.168.0.91 | connected |
+--------------+-----------+

[Command]

ucentral-client enable

[Purpose]

Enable the controller management function. After enabling this function, the device can be managed by the controller.

[View]

System Configuration View

[Usage Scenario]

When using a controller to manage the device, this service must be enabled. The controller manages and monitors the switch through the ucentral service.

[Use Cases]

sonic# configure
sonic(config)# ucentral-client enable

[Command] ucentral-client node standalone

[Purpose] Enable the WEB-UI management function of the device.

[View] System Configuration View

[Notes] After this function is enabled, the device cannot be managed by the controller. The WEBUI can be used to configure the switch. Enter https://X.X.X.X:8080 in the browser to log in to the WEB interface and configure the switch functions. The username/password is the system login credentials of the switch.

[Use Cases]

Terminal window
sonic# configure
sonic(config)# ucentral-client mode standalone

[Command]

ucentral-client server {* url***|*** x.x.x.x***} [vrf*** vrf_name***]**

[Purpose]

Configure the controller server IP address or URL.

[Parameter]

ParameterDescription
urlThe url address of the controller
x.x.x.xThe ip address of the controller
vrf_nameSpecify which VRF interface the switch uses to connect to the controller, typically mgmt or default

[View]

System Configuration View

[Usage Scenario]

When using a controller to manage the device, you need to configure the controller’s server IP address or URL on the switch. If using a URL, you must ensure that the switch has a correctly configured DNS to resolve that URL.

[Use Cases]

sonic# configure
sonic(config)# ucentral-client server 192.168.0.91 vrf mgmt