Update cheatsheets

This commit is contained in:
ivuorinen
2025-02-23 00:19:07 +00:00
parent 4d25c6d1dd
commit 60964ca3f8
8 changed files with 132 additions and 0 deletions

33
tldr/chronyc Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# chronyc
> Query the Chrony NTP daemon.
> More information: <https://chrony-project.org/doc/4.6.1/chronyc.html>.
- Start `chronyc` in interactive mode:
`chronyc`
- Display tracking stats for the Chrony daemon:
`chronyc tracking`
- Print the time sources that Chrony is currently using:
`chronyc sources`
- Display stats for sources currently used by chrony daemon as a time source:
`chronyc sourcestats`
- Step the system clock immediately, bypassing any slewing:
`chronyc makestep`
- Display verbose information about each NTP source:
`chronyc ntpdata`

17
tldr/snmpbulkget Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# snmpbulkget
> Query the next value in the MIB tree and all of its adjacent values.
> More information: <https://manned.org/snmpbulkget>.
- Request the next value from the SNMP agent:
`snmpbulkget -v {{version}} -c {{community}} {{ip}} {{oid}}`
- Display the full Object Identifier (OID) path:
`snmpbulkget -v {{version}} -c {{community}} -O f {{ip}} {{oid}}`

13
tldr/snmpdf Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# snmpdf
> Fetch disk space usage information.
> More information: <https://manned.org/snmpdf>.
- Fetch the disk space usage:
`snmpget -v {{version}} -c {{community}} {{ip}}`

17
tldr/snmpgetnext Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# snmpgetnext
> Query the next value in the MIB tree.
> More information: <https://manned.org/snmpgetnext>.
- Request the next value from the SNMP agent:
`snmpget -v {{version}} -c {{community}} {{ip}} {{oid}}`
- Display the full Object Identifier (OID) path:
`snmpget -v {{version}} -c {{community}} -O f {{ip}} {{oid}}`

13
tldr/snmpset Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# snmpset
> Set a value using the SNMP protocol.
> More information: <https://manned.org/snmpset>.
- Set a value:
`snmpget -v {{version}} -c {{community}} {{ip}} {{oid}} {{value_type}} {{value}}`

13
tldr/snmpstatus Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# snmpstatus
> Fetch fixed MIB status values.
> More information: <https://manned.org/snmpstatus>.
- Fetch the values:
`snmpget -v {{version}} -c {{community}} {{ip}}`

13
tldr/snmptable Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# snmptable
> Fetch data in tabular format.
> More information: <https://manned.org/snmptable>.
- Fetch data:
`snmpget -v {{version}} -c {{community}} {{ip}} {{oid}}`

13
tldr/snmptest Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# snmptest
> Start an interactive SNMP prompt.
> More information: <https://manned.org/snmptest>.
- Start the prompt:
`snmpget -v {{version}} -c {{community}} {{ip}}`