openshift-kni / debug-tools

debug and troubleshooting tools to check CNF workload configuration - unsupported
Apache License 2.0
0 stars 10 forks source link

add machineinfo command #35

Closed ffromani closed 3 years ago

ffromani commented 3 years ago

It's very useful to get the same picture as the kubelet will.

Signed-off-by: Francesco Romani fromani@redhat.com

openshift-ci[bot] commented 3 years ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fromanirh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/openshift-kni/debug-tools/blob/main/OWNERS)~~ [fromanirh] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
yanirq commented 3 years ago

how do we get the list of all the available commands ? only via CLI ? or are we going to expose some sort of documentation for that as well ?

ffromani commented 3 years ago

how do we get the list of all the available commands ? only via CLI ? or are we going to expose some sort of documentation for that as well ?

Yep, via CLI. The idea is to keep the CLI as living documentation

$ ./_output/knit help
knit allows to check system settings for low-latency workload

Usage:
  knit [flags]
  knit [command]

Available Commands:
  cpuaff      show cpu thread affinities
  help        Help about any command
  irqaff      show IRQ/softirq thread affinities
  irqwatch    watch IRQ counters
  lscpu       show the system CPU details
  lspci       show the system PCI details
  lstopo      show the system topology
  machineinfo show cadvisor's machine info
  podres      show currently allocated pod resources
  wait        wait forever, or until a UNIX signal (SIGINT, SIGTERM) arrives

Flags:
  -C, --cpulist string   isolated cpu set to check (see man (7) cpuset - List format (default "0-16383")
  -D, --debug            enable debug log
  -h, --help             help for knit
  -J, --json             output as JSON
  -P, --procfs string    procfs root (default "/proc")
  -S, --sysfs string     sysfs root (default "/sys")

Use "knit [command] --help" for more information about a command.