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 configurationServerIP Vrf------------ -----192.168.0.91 mgmtshow ucentral-client server status
Section titled “show ucentral-client server status”[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 |+--------------+-----------+ucentral-client enable
Section titled “ucentral-client enable”[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# configuresonic(config)# ucentral-client enableucentral-client mode standalone
Section titled “ucentral-client mode standalone”[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]
sonic# configuresonic(config)# ucentral-client mode standaloneucentral-client server
Section titled “ucentral-client server”[Command]
ucentral-client server {* url***|*** x.x.x.x***} [vrf*** vrf_name***]**
[Purpose]
Configure the controller server IP address or URL.
[Parameter]
| Parameter | Description |
|---|---|
| url | The url address of the controller |
| x.x.x.x | The ip address of the controller |
| vrf_name | Specify 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# configuresonic(config)# ucentral-client server 192.168.0.91 vrf mgmt