Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
InfrastructureSeniorOccasionalScenario

A service is reported as running, but clients cannot reach it. What command-line checks do you perform before restarting it?

Answer

Work from the client path inward: resolve the hostname, verify the intended IP and route, test the actual TCP port, confirm the service is listening on the expected interface, map the listener to the correct process, inspect service state and logs, and then check local firewall or proxy configuration if needed. Preserve evidence before restart because restarting may hide the original failure.

Strong answer includes

  • follows DNS to network to listener to process to application logs
  • checks the actual port rather than relying only on ping
  • preserves evidence before restart or force termination

Practical example

For HTTPS on port 8443, resolve the host, test TCP 8443, inspect `ss -lntp` or `netstat -ano`, identify the owner process, then read `journalctl` or Windows Event Log. Restart only after the failing layer is understood.

#linux#windows#troubleshooting#networking#services

Sources

Linux man-pages projectman7.org / Linux man-pages project · Linux processes, signals, networking and system-call-facing command behaviorsystemd manualsystemd project · systemctl, journalctl, service units and systemd operational behaviorWindows commands referenceMicrosoft · Command Prompt utilities including ipconfig, netstat, tasklist, taskkill, sc, findstr, ping, tracert and nslookupPowerShell documentationMicrosoft · PowerShell cmdlets, object pipeline, processes, services, networking, event logs and environment handlingcurl documentationcurl project · HTTP and network diagnostics with curl, including request, response and verbose connection inspection