Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mariner support #52

Open
ArchangelSDY opened this issue Sep 2, 2022 · 1 comment
Open

Mariner support #52

ArchangelSDY opened this issue Sep 2, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ArchangelSDY
Copy link
Contributor

Background

In addition to Ubuntu, teams are adopting CBL-Mariner as Linux distribution. AKS also supports it. We'd better make sure kdebug can run smoothly on Mariner.

@ArchangelSDY ArchangelSDY added the enhancement New feature or request label Sep 2, 2022
@Y-Sindo Y-Sindo self-assigned this Sep 16, 2022
@Y-Sindo
Copy link
Member

Y-Sindo commented Mar 17, 2023

tool mode

tcpdump

root [ ~ ]# ./kdebug -t tcpdump
INFO[0000] Exec tcpdump [-nvvv ]
FATA[0000] exec: "tcpdump": executable file not found in $PATH

vmrebootinspect

root [ ~ ]# ./kdebug -t vmrebootinspect
Detected following VM reboots:

reboot   system boot  5.10.167.1-1.cm1 2023-03-03T06:44:55+00:00   still running
reboot   system boot  5.10.167.1-1.cm1 2023-02-15T21:42:36+00:00 - 2023-02-15T21:43:30+00:00  (00:00)
reboot   system boot  5.10.167.1-1.cm1 2023-02-15T08:49:45+00:00 - 2023-02-15T08:50:45+00:00  (00:01)
reboot   system boot  5.10.167.1-1.cm1 2023-02-15T08:29:49+00:00 - 2023-02-15T08:49:35+00:00  (00:19)

You can also use `last` command to inspect above events. Columns in its output are user, login terminal, kernel version, login time, login period

See also:
https://www.baeldung.com/linux/last-command
https://man7.org/linux/man-pages/man1/last.1.html

upgradesinspect

root [ ~ ]# ./kdebug -t upgradesinspect
Skip upgrade inspect in non ubuntu/Debian os

netexec

root [ ~ ]# ./kdebug -t netexec --pid 1234
INFO[0000] Exec nsenter [-n -t 1234]
FATA[0000] exit status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants