Feature Management
Feature View
Table 1 Feature View
Command | Purpose |
|---|---|
show feature config | Display the configuration of the features. |
show feature status | Display the status information of the features. |
show feature config
[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 localshow feature status
[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 enabledFeature Config
Table 2 Feature Config
Command | Purpose |
|---|---|
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}
[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 disablefeature {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 disablefeature {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