summaryrefslogtreecommitdiff
path: root/src/op_mode/generate_ipsec_debug_archive.py
diff options
context:
space:
mode:
authorsrividya0208 <a.srividya@vyos.io>2024-02-06 00:29:02 -0500
committersrividya0208 <a.srividya@vyos.io>2024-02-06 00:29:02 -0500
commit0c9c496961dc88110da53943a14dd88086ea920d (patch)
treee1c5f02fa773ad47c3a919172de540ac26ebb556 /src/op_mode/generate_ipsec_debug_archive.py
parent22a15d828e1d0052d6690860367ba294d2481a04 (diff)
downloadvyos-1x-0c9c496961dc88110da53943a14dd88086ea920d.tar.gz
vyos-1x-0c9c496961dc88110da53943a14dd88086ea920d.zip
op-mode:T6015:Fix the charon file generated by ipsec debug script
Diffstat (limited to 'src/op_mode/generate_ipsec_debug_archive.py')
-rwxr-xr-xsrc/op_mode/generate_ipsec_debug_archive.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/op_mode/generate_ipsec_debug_archive.py b/src/op_mode/generate_ipsec_debug_archive.py
index 60195d48b..ca2eeb511 100755
--- a/src/op_mode/generate_ipsec_debug_archive.py
+++ b/src/op_mode/generate_ipsec_debug_archive.py
@@ -24,7 +24,6 @@ from vyos.utils.process import rc_cmd
# define a list of commands that needs to be executed
CMD_LIST: list[str] = [
- 'ipsec status',
'swanctl -L',
'swanctl -l',
'swanctl -P',
@@ -36,7 +35,7 @@ CMD_LIST: list[str] = [
'ip route | head -100',
'ip route show table 220'
]
-JOURNALCTL_CMD: str = 'journalctl -b -n 10000 /usr/lib/ipsec/charon'
+JOURNALCTL_CMD: str = 'journalctl --no-hostname --boot --unit strongswan.service'
# execute a command and save the output to a file
def save_stdout(command: str, file: Path) -> None: