> For the complete documentation index, see [llms.txt](https://docs.enginsight.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enginsight.com/docs/support-space/pflichtdaten-fur-das-troubleshooting/anhang/gangige-befehle-zur-systemanalyse.md). Agents can also search and read this documentation through its [MCP server](https://docs.enginsight.com/docs/~gitbook/mcp).

# Gängige Befehle zur Systemanalyse

Hier findest du eine Übersicht über die gängigsten Befehle zur Systemanalyse auf [Linux](#linux)-, [Windows](#windows)- und [macOS](#macos)-Systemen.

***

## Linux <a href="#linux" id="linux"></a>

<table><thead><tr><th width="261.421875" valign="top">Zweck</th><th>Befehl</th></tr></thead><tbody><tr><td valign="top">Systemidentität</td><td><ul><li><code>hostnamectl</code></li><li><code>uname -a</code></li><li><code>cat /etc/os-release</code></li></ul></td></tr><tr><td valign="top">Systemzeit</td><td><code>timedatectl status</code></td></tr><tr><td valign="top">Festplatte</td><td><ul><li><code>df -h</code></li><li><code>du -sh /*</code></li><li><code>ncdu /</code></li></ul></td></tr><tr><td valign="top">Arbeitsspeicher und Last</td><td><ul><li><code>free -h</code></li><li><code>uptime</code></li><li><code>top -b -n 1</code></li><li><code>htop</code></li></ul><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><code>htop</code> ist oft nicht standardmäßig installiert. Installiere in diesem Fall das Tool mit folgendem Befehl nach: <code>sudo apt install htop</code></p></div></td></tr><tr><td valign="top">Ein-/Ausgabe</td><td><ul><li><code>iostat -x 1 5</code></li><li><code>vmstat 1 5</code></li></ul></td></tr><tr><td valign="top">Systemfehler</td><td><ul><li><code>journalctl -p err -b --no-pager</code></li><li><code>dmesg -T</code></li></ul></td></tr><tr><td valign="top">Offene Ports</td><td><code>ss -tulpn</code></td></tr><tr><td valign="top">Netzwerkkonfiguration</td><td><ul><li><code>ip a</code></li><li><code>ip r</code></li></ul></td></tr><tr><td valign="top">Namensauflösung</td><td><ul><li><code>dig &#x3C;FQDN></code></li><li><code>dig +trace &#x3C;FQDN></code></li><li><code>getent hosts &#x3C;FQDN></code></li><li><code>cat /etc/resolv.conf</code></li></ul></td></tr><tr><td valign="top">Portprüfung</td><td><ul><li><code>nc -vz &#x3C;Ziel> &#x3C;Port></code></li><li><code>timeout 5 bash -c '&#x3C;/dev/tcp/&#x3C;Ziel>/&#x3C;Port>'</code></li></ul></td></tr><tr><td valign="top">HTTP und TLS</td><td><ul><li><code>curl -vI https://&#x3C;FQDN></code></li><li><code>openssl s_client -connect &#x3C;FQDN>:443 -showcerts &#x3C;/dev/null</code></li></ul></td></tr><tr><td valign="top">Pfad im Netz</td><td><ul><li><code>mtr -rwc 20 &#x3C;Ziel></code></li><li><code>traceroute &#x3C;Ziel></code></li></ul></td></tr><tr><td valign="top">Paketmitschnitt</td><td><code>sudo tcpdump -i &#x3C;Adapter> -n host &#x3C;Ziel> -w /tmp/mitschnitt.pcap</code></td></tr><tr><td valign="top">Doppelte IP-Adresse</td><td><ul><li><code>sudo arp -a</code></li><li><code>sudo arping -c 4 -I &#x3C;Adapter> &#x3C;IPAdresse></code></li></ul></td></tr><tr><td valign="top">Firewall</td><td><ul><li><code>sudo iptables -L -nv > /tmp/firewall.txt</code></li><li><code>sudo nft list ruleset > /tmp/firewall.txt</code></li></ul></td></tr><tr><td valign="top">Proxy-Umgebung</td><td><code>printenv http_proxy https_proxy no_proxy</code></td></tr><tr><td valign="top">Dienststatus</td><td><ul><li><code>systemctl status &#x3C;Dienst> --no-pager</code></li><li><code>systemctl list-units --failed</code></li></ul></td></tr><tr><td valign="top">Docker</td><td><ul><li><p>Status:</p><ul><li><code>docker compose ps</code></li><li><code>docker stats --no-stream</code></li><li><code>docker compose config</code></li></ul></li><li><p>Logs:</p><ul><li><code>docker compose logs -t --since &#x3C;Zeit> &#x3C;Dienst></code></li></ul></li><li><p>Aufräumen:</p><ul><li><code>docker system prune -a</code></li></ul></li></ul></td></tr></tbody></table>

***

## Windows <a href="#windows" id="windows"></a>

<table><thead><tr><th width="231.85546875">Zweck</th><th>Befehl</th></tr></thead><tbody><tr><td>Systemidentität</td><td><code>Get-ComputerInfo</code></td></tr><tr><td>Systemzeit</td><td><code>w32tm /query /status</code></td></tr><tr><td>Dienste</td><td><code>Get-Service -Name '*nginsight*'</code></td></tr><tr><td>Ereignisse</td><td><code>Get-WinEvent -LogName System -MaxEvents 200</code></td></tr><tr><td>Portprüfung</td><td><code>Test-NetConnection &#x3C;Ziel> -Port &#x3C;Port></code></td></tr><tr><td>Namensauflösung</td><td><code>Resolve-DnsName &#x3C;FQDN></code></td></tr><tr><td>Proxy</td><td><code>netsh winhttp show proxy</code></td></tr><tr><td>Zertifikate</td><td><code>certutil -verify -urlfetch &#x3C;Zertifikatsdatei></code></td></tr><tr><td>Sysmon-Konfiguration</td><td><code>sysmon -c</code></td></tr><tr><td>Speicher</td><td><code>Get-PSDrive -PSProvider FileSystem</code></td></tr></tbody></table>

***

## macOS <a href="#macos" id="macos"></a>

<table><thead><tr><th width="245.94921875">Zweck</th><th>Befehl</th></tr></thead><tbody><tr><td>Systemidentität</td><td><ul><li><code>sw_vers</code></li><li><code>uname -a</code></li></ul></td></tr><tr><td>Systemzeit</td><td><code>sudo systemsetup -getusingnetworktime</code></td></tr><tr><td>Dienststatus</td><td><code>sudo launchctl list</code> (nach „enginsight" filtern)</td></tr><tr><td>Portprüfung</td><td><code>nc -vz &#x3C;Ziel> &#x3C;Port></code></td></tr><tr><td>Namensauflösung</td><td><ul><li><code>dig &#x3C;FQDN></code></li><li><code>scutil --dns</code></li></ul></td></tr></tbody></table>

***
