跳转到内容
Ask AI

Feature Management

此内容尚不支持你的语言。

Table 1 Feature View

CommandPurpose
show feature configDisplay the configuration of the features.
show feature statusDisplay the status information of the features.

[Command] show feature config

[Purpose] Display the configuration of the features.

[View] Privileged User View

[Use Cases]

sonic# show feature config
Feature State AutoRestart Owner
-------------- --------------- -------------- -------
aflpd enabled enabled local
bgp enabled enabled local
cluster disabled disabled local
database always_enabled always_enabled local
dhcp disabled enabled local
eventd disabled disabled local
exporter disabled disabled local
iccpd enabled enabled local
lldp enabled enabled local
macsec disabled enabled local
mgmt-framework enabled enabled local
mstpd enabled enabled local
mux always_disabled enabled local
nat disabled enabled local
pmon enabled enabled local
proxy enabled enabled local
radv enabled enabled local
sflow enabled enabled local
slad enabled enabled local
snmp enabled enabled local
swss enabled enabled local
syncd enabled enabled local
teamd enabled enabled local
telemetry enabled enabled local
web enabled enabled local

[Command] show feature status

[Purpose] Display the status information of the features.

[View] Privileged User View

[Use Cases]

sonic# show feature status
Feature State AutoRestart SetOwner
-------------- --------------- -------------- ----------
aflpd enabled enabled
bgp enabled enabled
cluster disabled disabled
database always_enabled always_enabled
dhcp disabled enabled local
eventd disabled disabled
exporter disabled disabled
iccpd enabled enabled
lldp enabled enabled
macsec disabled enabled
mgmt-framework enabled enabled
mstpd enabled enabled
mux always_disabled enabled
nat disabled enabled
pmon enabled enabled
proxy enabled enabled
radv enabled enabled
sflow enabled enabled
slad enabled enabled
snmp enabled enabled
swss enabled enabled
syncd enabled enabled
teamd enabled enabled
telemetry enabled enabled
web enabled enabled

Table 2 Feature Config

CommandPurpose
feature {dhcp|macsec|nat|snmp|web|telemetry|lldp|exporter|ptp|l2mcd} state {enable|disable}Set the state of the feature.
feature {dhcp|macsec|nat|snmp|web|telemetry|lldp|exporter|ptp|l2mcd} autorestart {enable|disable}Set the auto-restart property of the feature.
feature {dhcp|macsec|nat|snmp|web|telemetry|lldp|exporter|ptp|l2mcd} fallback {on|off}Set the fallback property of the feature.

feature {dhcp|macsec|nat|snmp|web|telemetry|lldp|exporter|ptp|l2mcd} state {enable|disable}

Section titled “feature {dhcp|macsec|nat|snmp|web|telemetry|lldp|exporter|ptp|l2mcd} state {enable|disable}”

[Command] feature {dhcp|macsec|nat|snmp|web|telemetry|lldp|exporter|ptp|l2mcd} state {enable|disable}

[Purpose] Set the state of the feature.

[View] Global Configuration View

[Use Cases]

sonic# configure terminal
sonic(config)# feature dhcp state enable
sonic(config)# feature nat state disable

feature {dhcp|macsec|nat|snmp|web|telemetry|lldp|exporter|ptp|l2mcd} autorestart {enable|disable}

Section titled “feature {dhcp|macsec|nat|snmp|web|telemetry|lldp|exporter|ptp|l2mcd} autorestart {enable|disable}”

[Command] feature {dhcp|macsec|nat|snmp|web|telemetry|lldp|exporter|ptp|l2mcd} autorestart {enable|disable}

[Purpose] Set the auto-restart property of the feature.

[View] Global Configuration View

[Use Cases]

sonic# configure terminal
sonic(config)# feature dhcp autorestart enable
sonic(config)# feature nat autorestart disable
sonic(config)# feature macsec autorestart disable

feature {dhcp|macsec|nat|snmp|web|telemetry|lldp|exporter|ptp|l2mcd} fallback {on|off}

Section titled “feature {dhcp|macsec|nat|snmp|web|telemetry|lldp|exporter|ptp|l2mcd} fallback {on|off}”

[Command] feature {dhcp|macsec|nat|snmp|web|telemetry|lldp|exporter|ptp|l2mcd} fallback {on|off}

[Purpose] Set the fallback property of the feature.

[View] Global Configuration View

[Use Cases]

sonic# configure terminal
sonic(config)# feature dhcp fallback on
sonic(config)# feature nat fallback off
sonic(config)# feature macsec fallback off