Use of fstat instead of netstat on OpenBSD
Allow to know which PID is listening to a port
This commit is contained in:
parent
afb7427e40
commit
582e8e0c9c
|
@ -313,8 +313,9 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
|
||||||
${FINDMNT_BIN} > ${LOCAL_BACKUP_DIR}/findmnt.txt
|
${FINDMNT_BIN} > ${LOCAL_BACKUP_DIR}/findmnt.txt
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
## Dump network connections with netstat
|
## Dump network connections with fstat
|
||||||
netstat -finet -atn > ${LOCAL_BACKUP_DIR}/netstat.out
|
fstat | head -1 > ${LOCAL_BACKUP_DIR}/netstat.out
|
||||||
|
fstat | grep internet >> ${LOCAL_BACKUP_DIR}/netstat.out
|
||||||
|
|
||||||
## List OpenBSD packages
|
## List OpenBSD packages
|
||||||
pkg_info -m > ${LOCAL_BACKUP_DIR}/packages
|
pkg_info -m > ${LOCAL_BACKUP_DIR}/packages
|
||||||
|
|
Loading…
Reference in a new issue