31
31
* [ BGP] ( #bgp )
32
32
* [ BGP show commands] ( #bgp-show-commands )
33
33
* [ BGP config commands] ( #bgp-config-commands )
34
- * [ Container Auto-restart] ( #container-autorestart-commands )
35
- * [ Container Auto-restart show commands] ( #container-autorestart-show-commands )
36
- * [ Container Auto-restart config command] ( #container-autorestart-config-command )
37
34
* [ DHCP Relay] ( #dhcp-relay )
38
35
* [ DHCP Relay config commands] ( #dhcp-relay-config-commands )
39
36
* [ Drop Counters] ( #drop-counters )
43
40
* [ ECN] ( #ecn )
44
41
* [ ECN show commands] ( #ecn-show-commands )
45
42
* [ ECN config commands] ( #ecn-config-commands )
43
+ * [ Feature] ( #feature )
44
+ * [ Feature show commands] ( #feature-show-commands )
45
+ * [ Feature config commands] ( #feature-config-commands )
46
46
* [ Interfaces] ( #interfaces )
47
47
* [ Interface Show Commands] ( #interface-show-commands )
48
48
* [ Interface Config Commands] ( #interface-config-commands )
@@ -256,6 +256,7 @@ This command lists all the possible configuration commands at the top level.
256
256
acl ACL-related configuration tasks
257
257
bgp BGP-related configuration tasks
258
258
ecn ECN-related configuration tasks
259
+ feature Modify configuration of features
259
260
hostname Change device hostname without impacting traffic
260
261
interface Interface-related configuration tasks
261
262
interface_naming_mode Modify interface naming mode for interacting...
@@ -273,7 +274,6 @@ This command lists all the possible configuration commands at the top level.
273
274
vlan VLAN-related configuration tasks
274
275
warm_restart warm_restart-related configuration tasks
275
276
watermark Configure watermark
276
- container Modify configuration of containers
277
277
```
278
278
Go Back To [ Beginning of the document] ( # ) or [ Beginning of this section] ( #getting-help )
279
279
@@ -304,6 +304,7 @@ This command displays the full list of show commands available in the software;
304
304
clock Show date and time
305
305
ecn Show ECN configuration
306
306
environment Show environmentals (voltages, fans, temps)
307
+ feature Show feature status
307
308
interfaces Show details of the network interfaces
308
309
ip Show IP (IPv4) commands
309
310
ipv6 Show IPv6 commands
@@ -335,7 +336,6 @@ This command displays the full list of show commands available in the software;
335
336
vlan Show VLAN information
336
337
warm_restart Show warm restart configuration and state
337
338
watermark Show details of watermark
338
- container Show details of container
339
339
```
340
340
341
341
The same syntax applies to all subgroups of ` show ` which themselves contain subcommands, and subcommands which accept options/arguments.
@@ -1888,63 +1888,6 @@ This command is used to remove particular IPv4 or IPv6 BGP neighbor configuratio
1888
1888
1889
1889
Go Back To [Beginning of the document](#) or [Beginning of this section](#bgp)
1890
1890
1891
- ## Container Auto-restart
1892
- SONiC includes a feature in which Docker containers can be automatically shut
1893
- down and restarted if one of critical processes running in the container exits
1894
- unexpectedly. Restarting the entire container ensures that configureation is
1895
- reloaded and all processes in the container get restarted, thus increasing the
1896
- likelihood of entering a healthy state.
1897
-
1898
- ### Container Auto-restart show commands
1899
-
1900
- **show container feature autorestart**
1901
-
1902
- This command will display the status of auto-restart feature for containers.
1903
-
1904
- - Usage:
1905
- ```
1906
- show container feature autorestart [ <container_name>]
1907
- ```
1908
-
1909
- - Example:
1910
- ```
1911
- admin@sonic:~ $ show container feature autorestart
1912
- Container Name Status
1913
- -------------- --------
1914
- database enabled
1915
- syncd enabled
1916
- teamd disabled
1917
- dhcp_relay enabled
1918
- lldp enabled
1919
- pmon enabled
1920
- bgp enabled
1921
- swss disabled
1922
- telemetry enabled
1923
- sflow enabled
1924
- snmp enabled
1925
- radv disabled
1926
- ```
1927
-
1928
- Optionally, you can specify a container name in order to display the auto-restart
1929
- feature status for that container only.
1930
-
1931
- ### Container Auto-restart config command
1932
-
1933
- **config container feature autorestart <container_name> <autorestart_status>**
1934
-
1935
- This command will configure the status of auto-restart feature for a specific container.
1936
-
1937
- - Usage:
1938
- ```
1939
- sudo config container feature autorestart <container_name> (enabled | disabled)
1940
- ```
1941
-
1942
- - Example:
1943
- ```
1944
- admin@sonic:~ $ sudo config container feature autorestart database disabled
1945
- ```
1946
- Go Back To [Beginning of the document](#) or [Beginning of this section](#container-autorestart-commands)
1947
-
1948
1891
## DHCP Relay
1949
1892
1950
1893
### DHCP Relay config commands
@@ -2246,6 +2189,109 @@ The list of the WRED profile fields that are configurable is listed in the below
2246
2189
2247
2190
Go Back To [Beginning of the document](#) or [Beginning of this section](#ecn)
2248
2191
2192
+ ## Feature
2193
+
2194
+ SONiC includes a capability in which Feature state can be enabled/disabled
2195
+ which will make corresponding feature docker container to start/stop.
2196
+
2197
+ Also SONiC provide capability in which Feature docker container can be automatically shut
2198
+ down and restarted if one of critical processes running in the container exits
2199
+ unexpectedly. Restarting the entire feature container ensures that configuration is
2200
+ reloaded and all processes in the feature container get restarted, thus increasing the
2201
+ likelihood of entering a healthy state.
2202
+
2203
+ ### Feature show commands
2204
+
2205
+ **show feature status**
2206
+
2207
+ This command will display the status of feature state.
2208
+
2209
+ - Usage:
2210
+ ```
2211
+ show feature status [ <feature_name>]
2212
+ ```
2213
+
2214
+ - Example:
2215
+ ```
2216
+ admin@sonic:~ $ show feature status
2217
+ Feature State AutoRestart
2218
+ ---------- -------------- --------------
2219
+ bgp enabled enabled
2220
+ database always_enabled always_enabled
2221
+ dhcp_relay enabled enabled
2222
+ lldp enabled enabled
2223
+ pmon enabled enabled
2224
+ radv enabled enabled
2225
+ snmp enabled enabled
2226
+ swss always_enabled enabled
2227
+ syncd always_enabled enabled
2228
+ teamd always_enabled enabled
2229
+ telemetry enabled enabled
2230
+ ```
2231
+ **show feature autorestart**
2232
+
2233
+ This command will display the status of auto-restart for feature container.
2234
+
2235
+ - Usage:
2236
+ ```
2237
+ show feature autorestart [ <feature_name>]
2238
+ ```
2239
+
2240
+ - Example:
2241
+ ```
2242
+ admin@sonic:~ $ show feature autorestart
2243
+ Feature AutoRestart
2244
+ ---------- --------------
2245
+ bgp enabled
2246
+ database always_enabled
2247
+ dhcp_relay enabled
2248
+ lldp enabled
2249
+ pmon enabled
2250
+ radv enabled
2251
+ snmp enabled
2252
+ swss enabled
2253
+ syncd enabled
2254
+ teamd enabled
2255
+ telemetry enabled
2256
+ ```
2257
+
2258
+ Optionally, you can specify a feature name in order to display
2259
+ status for that feature
2260
+
2261
+ ### Feature config commands
2262
+
2263
+ **config feature state <feature_name> <state>**
2264
+
2265
+ This command will configure the state for a specific feature.
2266
+
2267
+ - Usage:
2268
+ ```
2269
+ config feature state <feature_name> (enabled | disabled)
2270
+ ```
2271
+
2272
+ - Example:
2273
+ ```
2274
+ admin@sonic:~ $ sudo config feature state bgp disabled
2275
+ ```
2276
+
2277
+ **config feature autorestart <feature_name> <autorestart_status>**
2278
+
2279
+ This command will configure the status of auto-restart for a specific feature container.
2280
+
2281
+ - Usage:
2282
+ ```
2283
+ config feature autorestart <feature_name> (enabled | disabled)
2284
+ ```
2285
+
2286
+ - Example:
2287
+ ```
2288
+ admin@sonic:~ $ sudo config feature autorestart bgp disabled
2289
+ ```
2290
+ NOTE: If the existing state or auto-restart value for a feature is "always_enabled" then config
2291
+ commands are don't care and will not update state/auto-restart value.
2292
+
2293
+ Go Back To [Beginning of the document](#) or [Beginning of this section](#feature)
2294
+
2249
2295
## Update Device Hostname Configuration Commands
2250
2296
2251
2297
This sub-section of commands is used to change device hostname without traffic being impacted.
0 commit comments