Feature Management
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
Section titled “show feature config”[Command] show feature config
[Purpose] Display the configuration of the features.
[View] Privileged User View
[Use Cases]
sonic# show feature configFeature State AutoRestart Owner-------------- --------------- -------------- -------aflpd enabled enabled localbgp enabled enabled localcluster disabled disabled localdatabase always_enabled always_enabled localdhcp disabled enabled localeventd disabled disabled localexporter disabled disabled localiccpd enabled enabled locallldp enabled enabled localmacsec disabled enabled localmgmt-framework enabled enabled localmstpd enabled enabled localmux always_disabled enabled localnat disabled enabled localpmon enabled enabled localproxy enabled enabled localradv enabled enabled localsflow enabled enabled localslad enabled enabled localsnmp enabled enabled localswss enabled enabled localsyncd enabled enabled localteamd enabled enabled localtelemetry enabled enabled localweb enabled enabled localshow feature status
Section titled “show feature status”[Command] show feature status
[Purpose] Display the status information of the features.
[View] Privileged User View
[Use Cases]
sonic# show feature statusFeature State AutoRestart SetOwner-------------- --------------- -------------- ----------aflpd enabled enabledbgp enabled enabledcluster disabled disableddatabase always_enabled always_enableddhcp disabled enabled localeventd disabled disabledexporter disabled disablediccpd enabled enabledlldp enabled enabledmacsec disabled enabledmgmt-framework enabled enabledmstpd enabled enabledmux always_disabled enablednat disabled enabledpmon enabled enabledproxy enabled enabledradv enabled enabledsflow enabled enabledslad enabled enabledsnmp enabled enabledswss enabled enabledsyncd enabled enabledteamd enabled enabledtelemetry enabled enabledweb enabled enabledFeature Config
Section titled “Feature 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}
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 terminalsonic(config)# feature dhcp state enablesonic(config)# feature nat state disablefeature {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 terminalsonic(config)# feature dhcp autorestart enablesonic(config)# feature nat autorestart disablesonic(config)# feature macsec autorestart disablefeature {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 terminalsonic(config)# feature dhcp fallback onsonic(config)# feature nat fallback offsonic(config)# feature macsec fallback off