36
36
* [ Console config commands] ( #console-config-commands )
37
37
* [ Console connect commands] ( #console-connect-commands )
38
38
* [ Console clear commands] ( #console-clear-commands )
39
- * [ Container Auto-restart] ( #container-auto-restart )
40
- * [ Container Auto-restart show commands] ( #container-auto-restart-show-commands )
41
- * [ Container Auto-restart config command] ( #container-auto-restart-config-command )
42
39
* [ DHCP Relay] ( #dhcp-relay )
43
40
* [ DHCP Relay config commands] ( #dhcp-relay-config-commands )
44
41
* [ Drop Counters] ( #drop-counters )
48
45
* [ ECN] ( #ecn )
49
46
* [ ECN show commands] ( #ecn-show-commands )
50
47
* [ ECN config commands] ( #ecn-config-commands )
48
+ * [ Feature] ( #feature )
49
+ * [ Feature show commands] ( #feature-show-commands )
50
+ * [ Feature config commands] ( #feature-config-commands )
51
51
* [ Gearbox] ( #gearbox )
52
52
* [ Gearbox show commands] ( #gearbox-show-commands )
53
53
* [ Interfaces] ( #interfaces )
@@ -282,6 +282,7 @@ This command lists all the possible configuration commands at the top level.
282
282
acl ACL-related configuration tasks
283
283
bgp BGP-related configuration tasks
284
284
ecn ECN-related configuration tasks
285
+ feature Modify configuration of features
285
286
hostname Change device hostname without impacting traffic
286
287
interface Interface-related configuration tasks
287
288
interface_naming_mode Modify interface naming mode for interacting...
@@ -302,7 +303,6 @@ This command lists all the possible configuration commands at the top level.
302
303
vrf VRF-related configuration tasks
303
304
warm_restart warm_restart-related configuration tasks
304
305
watermark Configure watermark
305
- container Modify configuration of containers
306
306
```
307
307
Go Back To [ Beginning of the document] ( # ) or [ Beginning of this section] ( #getting-help )
308
308
@@ -333,6 +333,7 @@ This command displays the full list of show commands available in the software;
333
333
clock Show date and time
334
334
ecn Show ECN configuration
335
335
environment Show environmentals (voltages, fans, temps)
336
+ feature Show feature status
336
337
interfaces Show details of the network interfaces
337
338
ip Show IP (IPv4) commands
338
339
ipv6 Show IPv6 commands
@@ -365,7 +366,6 @@ This command displays the full list of show commands available in the software;
365
366
vrf Show vrf config
366
367
warm_restart Show warm restart configuration and state
367
368
watermark Show details of watermark
368
- container Show details of container
369
369
```
370
370
371
371
The same syntax applies to all subgroups of ` show ` which themselves contain subcommands, and subcommands which accept options/arguments.
@@ -2079,64 +2079,6 @@ Optionally, you can clear with a remote device name by specifying the `-d` or `-
2079
2079
2080
2080
Go Back To [Beginning of the document](#) or [Beginning of this section](#console)
2081
2081
2082
- ## Container Auto-restart
2083
-
2084
- SONiC includes a feature in which Docker containers can be automatically shut
2085
- down and restarted if one of critical processes running in the container exits
2086
- unexpectedly. Restarting the entire container ensures that configuration is
2087
- reloaded and all processes in the container get restarted, thus increasing the
2088
- likelihood of entering a healthy state.
2089
-
2090
- ### Container Auto-restart show commands
2091
-
2092
- **show container feature autorestart**
2093
-
2094
- This command will display the status of auto-restart feature for containers.
2095
-
2096
- - Usage:
2097
- ```
2098
- show container feature autorestart [ <container_name>]
2099
- ```
2100
-
2101
- - Example:
2102
- ```
2103
- admin@sonic:~ $ show container feature autorestart
2104
- Container Name Status
2105
- -------------- --------
2106
- database enabled
2107
- syncd enabled
2108
- teamd disabled
2109
- dhcp_relay enabled
2110
- lldp enabled
2111
- pmon enabled
2112
- bgp enabled
2113
- swss disabled
2114
- telemetry enabled
2115
- sflow enabled
2116
- snmp enabled
2117
- radv disabled
2118
- ```
2119
-
2120
- Optionally, you can specify a container name in order to display the auto-restart
2121
- feature status for that container only.
2122
-
2123
- ### Container Auto-restart config command
2124
-
2125
- **config container feature autorestart <container_name> <autorestart_status>**
2126
-
2127
- This command will configure the status of auto-restart feature for a specific container.
2128
-
2129
- - Usage:
2130
- ```
2131
- config container feature autorestart <container_name> (enabled | disabled)
2132
- ```
2133
-
2134
- - Example:
2135
- ```
2136
- admin@sonic:~ $ sudo config container feature autorestart database disabled
2137
- ```
2138
-
2139
- Go Back To [Beginning of the document](#) or [Beginning of this section](#container-auto-restart)
2140
2082
2141
2083
## DHCP Relay
2142
2084
@@ -2437,6 +2379,109 @@ The list of the WRED profile fields that are configurable is listed in the below
2437
2379
2438
2380
Go Back To [Beginning of the document](#) or [Beginning of this section](#ecn)
2439
2381
2382
+ ## Feature
2383
+
2384
+ SONiC includes a capability in which Feature state can be enabled/disabled
2385
+ which will make corresponding feature docker container to start/stop.
2386
+
2387
+ Also SONiC provide capability in which Feature docker container can be automatically shut
2388
+ down and restarted if one of critical processes running in the container exits
2389
+ unexpectedly. Restarting the entire feature container ensures that configuration is
2390
+ reloaded and all processes in the feature container get restarted, thus increasing the
2391
+ likelihood of entering a healthy state.
2392
+
2393
+ ### Feature show commands
2394
+
2395
+ **show feature status**
2396
+
2397
+ This command will display the status of feature state.
2398
+
2399
+ - Usage:
2400
+ ```
2401
+ show feature status [ <feature_name>]
2402
+ ```
2403
+
2404
+ - Example:
2405
+ ```
2406
+ admin@sonic:~ $ show feature status
2407
+ Feature State AutoRestart
2408
+ ---------- -------------- --------------
2409
+ bgp enabled enabled
2410
+ database always_enabled always_enabled
2411
+ dhcp_relay enabled enabled
2412
+ lldp enabled enabled
2413
+ pmon enabled enabled
2414
+ radv enabled enabled
2415
+ snmp enabled enabled
2416
+ swss always_enabled enabled
2417
+ syncd always_enabled enabled
2418
+ teamd always_enabled enabled
2419
+ telemetry enabled enabled
2420
+ ```
2421
+ **show feature autorestart**
2422
+
2423
+ This command will display the status of auto-restart for feature container.
2424
+
2425
+ - Usage:
2426
+ ```
2427
+ show feature autorestart [ <feature_name>]
2428
+ ```
2429
+
2430
+ - Example:
2431
+ ```
2432
+ admin@sonic:~ $ show feature autorestart
2433
+ Feature AutoRestart
2434
+ ---------- --------------
2435
+ bgp enabled
2436
+ database always_enabled
2437
+ dhcp_relay enabled
2438
+ lldp enabled
2439
+ pmon enabled
2440
+ radv enabled
2441
+ snmp enabled
2442
+ swss enabled
2443
+ syncd enabled
2444
+ teamd enabled
2445
+ telemetry enabled
2446
+ ```
2447
+
2448
+ Optionally, you can specify a feature name in order to display
2449
+ status for that feature
2450
+
2451
+ ### Feature config commands
2452
+
2453
+ **config feature state <feature_name> <state>**
2454
+
2455
+ This command will configure the state for a specific feature.
2456
+
2457
+ - Usage:
2458
+ ```
2459
+ config feature state <feature_name> (enabled | disabled)
2460
+ ```
2461
+
2462
+ - Example:
2463
+ ```
2464
+ admin@sonic:~ $ sudo config feature state bgp disabled
2465
+ ```
2466
+
2467
+ **config feature autorestart <feature_name> <autorestart_status>**
2468
+
2469
+ This command will configure the status of auto-restart for a specific feature container.
2470
+
2471
+ - Usage:
2472
+ ```
2473
+ config feature autorestart <feature_name> (enabled | disabled)
2474
+ ```
2475
+
2476
+ - Example:
2477
+ ```
2478
+ admin@sonic:~ $ sudo config feature autorestart bgp disabled
2479
+ ```
2480
+ NOTE: If the existing state or auto-restart value for a feature is "always_enabled" then config
2481
+ commands are don't care and will not update state/auto-restart value.
2482
+
2483
+ Go Back To [Beginning of the document](#) or [Beginning of this section](#feature)
2484
+
2440
2485
## Gearbox
2441
2486
2442
2487
This section explains all the Gearbox PHY show commands that are supported in SONiC.
0 commit comments