Remove control characters from systemctl command output

Change-Id: Idca394bca37bb3d167ec7c3a79a41b699c551172
(cherry picked from commit 198c00cf16)
This commit is contained in:
Takashi Kajinami 2022-06-26 22:08:09 +09:00
parent 9561fbf88f
commit a4d550ec73

View File

@ -277,7 +277,7 @@ if [ `command -v ovs-vsctl` ]; then
sudo ovs-vsctl show > $LOG_DIR/ovs-vsctl_show.txt
fi
sudo netstat -tulpn > $LOG_DIR/netstat.txt
sudo systemctl status --all 2>/dev/null > $LOG_DIR/systemctl.txt
sudo LC_CTYPE=C SYSTEMD_COLORS=false systemctl status --all --no-pager 2>/dev/null > $LOG_DIR/systemctl.txt
for table in raw filter nat mangle ; do
echo $table