Skip to content

Commit

Permalink
Update misc.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecmd authored Feb 4, 2024
1 parent 26dba07 commit 368f8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Random good-to-know things about SONiC that we wish were better documented
| Enter KLISH | `sonic-cli` |
| Set interface description | `sonic-db-cli CONFIG_DB hset "PORT|Ethernet94" description "some fancy description"` |
| Reset configuration | `sonic-cfggen -H -k "$(sonic-cfggen -d -v 'DEVICE_METADATA.localhost.hwsku')" --print-data > /etc/sonic/config_db.json` |
| Reset configuration w/ new SKU | `sonic-cfggen -H -k "MySKU" --print-data > /etc/sonic/config_db.json; sed 's/^HWSKU=.*/HWSKU=MySKU/' /etc/sonic/sonic-environment` |
| Reset configuration w/ new SKU | `sonic-cfggen -H -k "MySKU" --print-data > /etc/sonic/config_db.json; sed -i 's/^HWSKU=.*/HWSKU=MySKU/' /etc/sonic/sonic-environment` |
| Hardware reset SFP module | `sudo sfputil reset Ethernet0`
| Save configuration before rebooting to new image | `sudo config save -y /host/old_config/config_db.json`

Expand Down

0 comments on commit 368f8bc

Please sign in to comment.