Syslog

Test suite to check syslog

Test Syslog

Description

Show the system host name and check the syslog message

Scenario

Step 1: Set the following configuration in DUT0:

set system syslog global level info

Step 2: Run command show host name at DUT0 and expect this output:

Show output
osdx

Step 3: Run command file show running://log/messages | tail -n 200 at DUT0 and check if output matches the following regular expressions:

executed a new command: 'show host name'
Show output
2024-06-24 11:26:15.543432 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:19.767922 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:19.920483 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:20.036466 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:31.526767 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:31.653895 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:31.816085 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:35.956840 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:36.121633 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:36.248024 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:48.589056 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:48.738826 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:48.840971 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:53.145146 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:53.303314 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:53.406156 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:57.596542 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:57.735109 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:26:57.874941 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-06-24 11:27:40.393017 daemon-err , staticd[1077]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF1 in VRF 7
2024-06-24 11:27:40.393105 daemon-err , staticd[1077]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF1 in VRF 7
2024-06-24 11:28:12.111290 daemon-err , staticd[1077]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF1 in VRF 8
2024-06-24 11:28:12.111380 daemon-err , staticd[1077]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF1 in VRF 8
2024-06-24 11:28:47.888925 authpriv-err , login[11594]:  pam_tally2(login:auth): pam_get_uid; no such user
2024-06-24 11:28:50.754783 authpriv-err , login[11594]:  pam_tally2(login:auth): pam_get_uid; no such user
2024-06-24 11:28:56.613469 authpriv-err , login[11670]:  pam_tally2(login:auth): pam_get_uid; no such user
2024-06-24 11:28:59.881724 authpriv-err , login[11670]:  pam_tally2(login:auth): pam_get_uid; no such user
2024-06-24 11:29:02.789919 authpriv-err , login[11670]:  pam_tally2(login:auth): pam_get_uid; no such user
2024-06-24 11:29:06.752080 authpriv-err , login[11670]:  pam_mail(login:session): user unknown
2024-06-24 11:31:28.339501 authpriv-err , login[12947]:  pam_mail(login:session): pam_putenv: delete non-existent entry; MAIL
2024-06-24 11:34:25.339030 user-err , OSDxCLI:  #033[31m#012Session idle timeout reached. Closing session#033[0m
2024-06-24 11:34:50.743023 user-err , OSDxCLI:  #033[31m#012Session idle timeout reached. Closing session#033[0m
2024-06-24 11:35:14.799809 user-err , OSDxCLI:  #033[31m#012Session idle timeout reached. Closing session#033[0m
2024-06-24 11:36:48.610266 daemon-err , bgpd[17895]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF dum0 in VRF 0
2024-06-24 11:37:04.409960 daemon-err , ntpd[18685]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:04.410047 daemon-err , ntpd[18685]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:04.866963 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX18Z7ZESHYZojee38uhoqQjFewNUsohRdy8=] finished with status 1
2024-06-24 11:37:04.867169 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:37:04.867273 daemon-err , cfgd[1115]:  \"U2FsdGVkX18Z7ZESHYZojee38uhoqQjFewNUsohRdy8=\" strong-password: score is too weak
2024-06-24 11:37:04.867383 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:37:04.870339 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX18Z7ZESHYZojee38uhoqQjFewNUsohRdy8=\" strong-password: score is too weak#012Commit validation failed#012
2024-06-24 11:37:13.214438 daemon-err , ntpd[18884]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:13.214488 daemon-err , ntpd[18884]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:13.798181 daemon-err , ntpd[18910]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:13.798235 daemon-err , ntpd[18910]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:14.425799 daemon-err , ntpd[18936]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:14.425838 daemon-err , ntpd[18936]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:15.076219 daemon-err , ntpd[18962]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:15.076253 daemon-err , ntpd[18962]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:15.768886 daemon-err , ntpd[18988]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:15.768922 daemon-err , ntpd[18988]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:16.327798 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX18D6MrBpSJ37FmwRB+6WClBIN+o9DQwnE4=] finished with status 1
2024-06-24 11:37:16.327905 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:37:16.327962 daemon-err , cfgd[1115]:  \"U2FsdGVkX18D6MrBpSJ37FmwRB+6WClBIN+o9DQwnE4=\" strong-password: score is too weak
2024-06-24 11:37:16.328013 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:37:16.330740 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX18D6MrBpSJ37FmwRB+6WClBIN+o9DQwnE4=\" strong-password: score is too weak#012Commit validation failed#012
2024-06-24 11:37:16.971774 daemon-err , ntpd[19033]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:16.971810 daemon-err , ntpd[19033]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:17.668807 daemon-err , ntpd[19059]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:17.668864 daemon-err , ntpd[19059]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:18.473407 daemon-err , ntpd[19085]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:18.473443 daemon-err , ntpd[19085]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:19.137078 daemon-err , ntpd[19111]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:19.137141 daemon-err , ntpd[19111]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:19.706025 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX18D6MrBpSJ37FmwRB+6WClBIN+o9DQwnE4=] finished with status 1
2024-06-24 11:37:19.706114 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:37:19.706157 daemon-err , cfgd[1115]:  \"U2FsdGVkX18D6MrBpSJ37FmwRB+6WClBIN+o9DQwnE4=\" strong-password: score is too weak
2024-06-24 11:37:19.706194 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:37:19.708599 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX18D6MrBpSJ37FmwRB+6WClBIN+o9DQwnE4=\" strong-password: score is too weak#012Commit validation failed#012
2024-06-24 11:37:20.287986 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX18D6MrBpSJ37FCEyIpfKKMREtrbNrHFEA8=] finished with status 1
2024-06-24 11:37:20.288094 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:37:20.288157 daemon-err , cfgd[1115]:  \"U2FsdGVkX18D6MrBpSJ37FCEyIpfKKMREtrbNrHFEA8=\" strong-password: score is too weak
2024-06-24 11:37:20.288212 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:37:20.291273 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX18D6MrBpSJ37FCEyIpfKKMREtrbNrHFEA8=\" strong-password: score is too weak#012Commit validation failed#012
2024-06-24 11:37:20.943428 daemon-err , ntpd[19171]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:20.943465 daemon-err , ntpd[19171]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:21.627089 daemon-err , ntpd[19197]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:21.627153 daemon-err , ntpd[19197]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:22.275663 daemon-err , ntpd[19223]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:22.275701 daemon-err , ntpd[19223]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:22.852652 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX18D6MrBpSJ37FmwRB+6WClBIN+o9DQwnE4=] finished with status 1
2024-06-24 11:37:22.852751 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:37:22.852813 daemon-err , cfgd[1115]:  \"U2FsdGVkX18D6MrBpSJ37FmwRB+6WClBIN+o9DQwnE4=\" strong-password: score is too weak
2024-06-24 11:37:22.852868 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:37:22.855193 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX18D6MrBpSJ37FmwRB+6WClBIN+o9DQwnE4=\" strong-password: score is too weak#012Commit validation failed#012
2024-06-24 11:37:23.555566 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX18D6MrBpSJ37FCEyIpfKKMREtrbNrHFEA8=] finished with status 1
2024-06-24 11:37:23.555729 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:37:23.555822 daemon-err , cfgd[1115]:  \"U2FsdGVkX18D6MrBpSJ37FCEyIpfKKMREtrbNrHFEA8=\" strong-password: score is too weak
2024-06-24 11:37:23.555905 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:37:23.558411 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX18D6MrBpSJ37FCEyIpfKKMREtrbNrHFEA8=\" strong-password: score is too weak#012Commit validation failed#012
2024-06-24 11:37:24.096382 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX18D6MrBpSJ37JQ0mKXaaxn/zzXasACXnrQ=] finished with status 1
2024-06-24 11:37:24.096553 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:37:24.096638 daemon-err , cfgd[1115]:  \"U2FsdGVkX18D6MrBpSJ37JQ0mKXaaxn/zzXasACXnrQ=\" strong-password: score is too weak
2024-06-24 11:37:24.096725 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:37:24.099279 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX18D6MrBpSJ37JQ0mKXaaxn/zzXasACXnrQ=\" strong-password: score is too weak#012Commit validation failed#012
2024-06-24 11:37:24.849948 daemon-err , ntpd[19298]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:24.850006 daemon-err , ntpd[19298]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:25.484802 daemon-err , ntpd[19324]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:25.484864 daemon-err , ntpd[19324]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:26.100500 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX18D6MrBpSJ37FmwRB+6WClBIN+o9DQwnE4=] finished with status 1
2024-06-24 11:37:26.100599 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:37:26.100662 daemon-err , cfgd[1115]:  \"U2FsdGVkX18D6MrBpSJ37FmwRB+6WClBIN+o9DQwnE4=\" strong-password: score is too weak
2024-06-24 11:37:26.100715 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:37:26.103135 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX18D6MrBpSJ37FmwRB+6WClBIN+o9DQwnE4=\" strong-password: score is too weak#012Commit validation failed#012
2024-06-24 11:37:26.806341 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX18D6MrBpSJ37FCEyIpfKKMREtrbNrHFEA8=] finished with status 1
2024-06-24 11:37:26.806436 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:37:26.806492 daemon-err , cfgd[1115]:  \"U2FsdGVkX18D6MrBpSJ37FCEyIpfKKMREtrbNrHFEA8=\" strong-password: score is too weak
2024-06-24 11:37:26.806542 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:37:26.808876 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX18D6MrBpSJ37FCEyIpfKKMREtrbNrHFEA8=\" strong-password: score is too weak#012Commit validation failed#012
2024-06-24 11:37:27.459435 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX18D6MrBpSJ37JQ0mKXaaxn/zzXasACXnrQ=] finished with status 1
2024-06-24 11:37:27.459608 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:37:27.459709 daemon-err , cfgd[1115]:  \"U2FsdGVkX18D6MrBpSJ37JQ0mKXaaxn/zzXasACXnrQ=\" strong-password: score is too weak
2024-06-24 11:37:27.459800 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:37:27.461930 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX18D6MrBpSJ37JQ0mKXaaxn/zzXasACXnrQ=\" strong-password: score is too weak#012Commit validation failed#012
2024-06-24 11:37:28.195433 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX18D6MrBpSJ37O/cjtUEGVSIUxE3NmssSZU=] finished with status 1
2024-06-24 11:37:28.195541 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:37:28.195602 daemon-err , cfgd[1115]:  \"U2FsdGVkX18D6MrBpSJ37O/cjtUEGVSIUxE3NmssSZU=\" strong-password: score is too weak
2024-06-24 11:37:28.195658 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:37:28.198268 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX18D6MrBpSJ37O/cjtUEGVSIUxE3NmssSZU=\" strong-password: score is too weak#012Commit validation failed#012
2024-06-24 11:37:36.352890 daemon-err , ntpd[19588]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:36.352950 daemon-err , ntpd[19588]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:44.904686 daemon-err , ntpd[19813]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:44.904724 daemon-err , ntpd[19813]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:52.724072 daemon-err , cfgd[1115]:  [16711]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012
2024-06-24 11:37:53.290747 daemon-err , cfgd[1115]:  [16711]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012
2024-06-24 11:37:54.916103 daemon-err , ntpd[20074]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:54.916151 daemon-err , ntpd[20074]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:55.708749 daemon-err , ntpd[20100]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:55.708784 daemon-err , ntpd[20100]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:37:56.300739 daemon-err , ntpd[20126]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:37:56.300793 daemon-err , ntpd[20126]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:38:07.161301 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX187+w0V0hOm/KUEzv1uE/FqEdsZEWfWilg=] finished with status 1
2024-06-24 11:38:07.161475 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:38:07.161573 daemon-err , cfgd[1115]:  \"U2FsdGVkX187+w0V0hOm/KUEzv1uE/FqEdsZEWfWilg=\" strong-password: score is too weak
2024-06-24 11:38:07.161689 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:38:07.164715 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX187+w0V0hOm/KUEzv1uE/FqEdsZEWfWilg=\" strong-password: score is too weak#012Commit validation failed#012
2024-06-24 11:38:07.747675 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX19qQ2XlGHbroJzUi9fK2tFuVhYVs+8Kch4=] finished with status 1
2024-06-24 11:38:07.747767 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:38:07.747824 daemon-err , cfgd[1115]:  \"U2FsdGVkX19qQ2XlGHbroJzUi9fK2tFuVhYVs+8Kch4=\" strong-password: score is too weak
2024-06-24 11:38:07.747880 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:38:07.750220 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX19qQ2XlGHbroJzUi9fK2tFuVhYVs+8Kch4=\" strong-password: score is too weak#012Commit validation failed#012
2024-06-24 11:38:08.346812 daemon-err , ntpd[20484]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:38:08.346849 daemon-err , ntpd[20484]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:38:16.561877 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX19nZq5fuC58UphBoBDRVlyXtkb20/fiCA0=] finished with status 2
2024-06-24 11:38:16.561945 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:38:16.561999 daemon-err , cfgd[1115]:  \"U2FsdGVkX19nZq5fuC58UphBoBDRVlyXtkb20/fiCA0=\" strong-password: not long enough
2024-06-24 11:38:16.562036 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:38:16.564380 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX19nZq5fuC58UphBoBDRVlyXtkb20/fiCA0=\" strong-password: not long enough#012Commit validation failed#012
2024-06-24 11:38:17.437268 daemon-err , ntpd[20701]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:38:17.437322 daemon-err , ntpd[20701]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:38:24.391041 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX199sTGSoF0Z9JCId+ye7Nott0VHnY4PdSs=] finished with status 3
2024-06-24 11:38:24.391134 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:38:24.391189 daemon-err , cfgd[1115]:  \"U2FsdGVkX199sTGSoF0Z9JCId+ye7Nott0VHnY4PdSs=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters
2024-06-24 11:38:24.391240 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:38:24.393347 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX199sTGSoF0Z9JCId+ye7Nott0VHnY4PdSs=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters#012Commit validation failed#012
2024-06-24 11:38:25.053570 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1+h7q4vTP0uvSliSWjlIjZKkdf9SXauUVA=] finished with status 3
2024-06-24 11:38:25.053681 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:38:25.053744 daemon-err , cfgd[1115]:  \"U2FsdGVkX1+h7q4vTP0uvSliSWjlIjZKkdf9SXauUVA=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters
2024-06-24 11:38:25.053800 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:38:25.056777 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1+h7q4vTP0uvSliSWjlIjZKkdf9SXauUVA=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters#012Commit validation failed#012
2024-06-24 11:38:25.816761 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/afbRW4NBrbuQJjR07IA40RLf6Odgc43A=] finished with status 3
2024-06-24 11:38:25.816846 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:38:25.816900 daemon-err , cfgd[1115]:  \"U2FsdGVkX1/afbRW4NBrbuQJjR07IA40RLf6Odgc43A=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters
2024-06-24 11:38:25.816956 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:38:25.819333 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/afbRW4NBrbuQJjR07IA40RLf6Odgc43A=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters#012Commit validation failed#012
2024-06-24 11:38:26.481259 daemon-err , cfgd[1115]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX19rFRlwBX1QQWQVobTuJqJpUD9vthBN+9o=] finished with status 3
2024-06-24 11:38:26.481428 daemon-err , cfgd[1115]:  [ system ntp authentication-key 1 encrypted-key ]
2024-06-24 11:38:26.481514 daemon-err , cfgd[1115]:  \"U2FsdGVkX19rFRlwBX1QQWQVobTuJqJpUD9vthBN+9o=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters
2024-06-24 11:38:26.481599 daemon-err , cfgd[1115]:  Commit validation failed
2024-06-24 11:38:26.484552 daemon-err , cfgd[1115]:  [16711]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX19rFRlwBX1QQWQVobTuJqJpUD9vthBN+9o=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters#012Commit validation failed#012
2024-06-24 11:38:27.098135 daemon-err , ntpd[20947]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-06-24 11:38:27.098184 daemon-err , ntpd[20947]:  AUTH: authreadkeys: added 1 keys
2024-06-24 11:38:27.611609 daemon-err , cfgd[1115]:  [16711]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012
2024-06-24 11:38:28.174178 daemon-err , cfgd[1115]:  [16711]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012
2024-06-24 11:38:28.727506 daemon-err , cfgd[1115]:  [16711]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012
2024-06-24 11:38:29.265064 daemon-err , cfgd[1115]:  [16711]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012
2024-06-24 11:38:38.320172 local0-notice , osdx-reboot:  shutdown v3.10.1.6 2024-06-24 11:23:25 - 2024-06-24 11:38:38 (up 15 minutes)
2024-06-24 11:38:38.345348 local0-notice , osdx-reboot:  bootup v3.10.1.6 2024-06-24 11:38:38 (reason: Power Failure)
2024-06-24 11:38:49.188136 local0-notice , osdx-reboot:  shutdown v3.10.1.6 2024-06-24 11:23:25 - 2024-06-24 11:38:49 (up 15 minutes)
2024-06-24 11:38:49.235265 local0-notice , osdx-reboot:  bootup v3.10.1.6 2024-06-24 11:38:49 (reason: Power Failure)
2024-06-24 11:38:53.294636 local0-notice , osdx-reboot:  shutdown v3.10.1.6 2024-06-24 11:23:25 - 2024-06-24 11:38:53 (up 15 minutes)
2024-06-24 11:38:53.346118 local0-notice , osdx-reboot:  bootup v3.10.1.6 2024-06-24 11:38:53 (reason: Power Failure)
2024-06-24 11:39:04.209572 local0-notice , osdx-reboot:  shutdown v3.10.1.6 2024-06-24 11:23:25 - 2024-06-24 11:39:04 (up 15 minutes)
2024-06-24 11:39:04.237616 local0-notice , osdx-reboot:  bootup v3.10.1.6 2024-06-24 11:39:04 (reason: Power Failure)
2024-06-24 11:39:15.679197 local0-notice , osdx-reboot:  shutdown v3.10.1.6 2024-06-24 11:23:25 - 2024-06-24 11:39:15 (up 15 minutes)
2024-06-24 11:39:15.710809 local0-notice , osdx-reboot:  bootup v3.10.1.6 2024-06-24 11:39:15 (reason: Power Failure)
2024-06-24 11:39:19.213512 local0-notice , osdx-reboot:  shutdown v3.10.1.6 2024-06-24 11:23:25 - 2024-06-24 11:39:19 (up 15 minutes)
2024-06-24 11:39:19.246370 local0-notice , osdx-reboot:  bootup v3.10.1.6 2024-06-24 11:39:19 (reason: Power Failure)
2024-06-24 11:40:43.149102 daemon-info , systemd[1]:  Stopping System Logging Service...
2024-06-24 11:40:43.149345 syslog-info , rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="1565" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-06-24 11:40:43.151658 daemon-info , systemd[1]:  rsyslog.service: Succeeded.
2024-06-24 11:40:43.151739 daemon-info , systemd[1]:  Stopped System Logging Service.
2024-06-24 11:40:43.152396 daemon-info , systemd[1]:  Starting System Logging Service...
2024-06-24 11:40:43.154966 syslog-info , rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.1901.0]
2024-06-24 11:40:43.155039 syslog-info , rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="2920" x-info="https://www.rsyslog.com"] start
2024-06-24 11:40:43.155325 daemon-info , systemd[1]:  Started System Logging Service.
2024-06-24 11:40:43.157742 daemon-notice , cfgd[1115]:  [379]Completed change to active configuration
2024-06-24 11:40:43.161889 auth-notice , OSDxCLI:  User 'admin' committed the configuration.
2024-06-24 11:40:43.197300 auth-notice , OSDxCLI:  User 'admin' left the configuration menu.
2024-06-24 11:40:43.362328 auth-notice , OSDxCLI:  User 'admin' executed a new command: 'show host name'.

Test Syslog File

Description

Create a new DHCP server and collect all the syslog messages produced by systemd.

Scenario

Step 1: Set the following configuration in DUT0:

set system syslog file systemd_msg
set system syslog file systemd_msg level info
set system syslog file systemd_msg app systemd

Step 2: Set the following configuration in DUT0:

set interfaces ethernet eth1 address 192.168.100.100/24
set service dhcp-server shared-network test subnet 192.168.100.0/24 start 192.168.100.150 stop 192.168.100.155

Step 3: Run command file show running://log/user/systemd_msg/systemd_msg | cat at DUT0 and check if output contains the following tokens:

systemd[1]:  Started "DHCP Server Service instance main".
Show output
2024-06-24 11:40:51.315150 daemon-info , systemd[1]:  Stopping System Logging Service...
2024-06-24 11:40:51.316539 daemon-info , systemd[1]:  rsyslog.service: Succeeded.
2024-06-24 11:40:51.316614 daemon-info , systemd[1]:  Stopped System Logging Service.
2024-06-24 11:40:51.317598 daemon-info , systemd[1]:  Starting System Logging Service...
2024-06-24 11:40:51.320408 daemon-info , systemd[1]:  Started System Logging Service.
2024-06-24 11:40:52.100266 daemon-info , systemd[1]:  Created slice system-dhcpd.slice.
2024-06-24 11:40:52.101340 daemon-info , systemd[1]:  Started "DHCP Server Service instance main".

Test Syslog File Rotate

Description

Create a new DHCP server and collect all syslog messages produced by systemd. This test also rotates 10 saved files when a file weighing 100 kbytes is used.

Scenario

Step 1: Set the following configuration in DUT0:

set system syslog file systemd_msg
set system syslog file systemd_msg level info
set system syslog file systemd_msg app systemd
set system syslog file systemd_msg archive files 10
set system syslog file systemd_msg archive size 100

Step 2: Set the following configuration in DUT0:

set interfaces ethernet eth1 address 192.168.100.100/24
set service dhcp-server shared-network test subnet 192.168.100.0/24 start 192.168.100.150 stop 192.168.100.155

Step 3: Run command file show running://log/user/systemd_msg/systemd_msg | cat at DUT0 and check if output contains the following tokens:

Started "DHCP Server Service instance main".
Show output
2024-06-24 11:41:00.834960 daemon-info , systemd[1]:  Stopping System Logging Service...
2024-06-24 11:41:00.835772 daemon-info , systemd[1]:  rsyslog.service: Succeeded.
2024-06-24 11:41:00.836044 daemon-info , systemd[1]:  Stopped System Logging Service.
2024-06-24 11:41:00.837153 daemon-info , systemd[1]:  Starting System Logging Service...
2024-06-24 11:41:00.839962 daemon-info , systemd[1]:  Started System Logging Service.
2024-06-24 11:41:01.557551 daemon-info , systemd[1]:  Started "DHCP Server Service instance main".

Test Syslog Remote

Description

Add a remote host to send syslog messages and show the host name.

Scenario

Step 1: Set the following configuration in DUT0:

set system syslog host 10.215.168.1 level info
set system syslog host 10.215.168.1 port 514
set system syslog host 10.215.168.1 protocol udp
set interfaces ethernet eth0 address 10.215.168.64/24

Step 2: Ping IP address 10.215.168.1 from DUT0:

admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1
Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data.
64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.138 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.138/0.138/0.138/0.000 ms

Step 3: Run command show host name at DUT0 and expect this output:

Show output
osdx

Note

Check the server {log_file} file and read the {log_msg} log message:

Show output
2024-06-24T11:41:10.384564+00:00 10.215.168.64  2024-06-24T11:41:09.572452+00:00 daemon-info osdx systemd[1]:  Stopping System Logging Service...
2024-06-24T11:41:10.384564+00:00 10.215.168.64  2024-06-24T11:41:09.572707+00:00 syslog-info osdx rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="3627" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-06-24T11:41:10.384564+00:00 10.215.168.64  2024-06-24T11:41:09.572864+00:00 daemon-info osdx systemd[1]:  rsyslog.service: Succeeded.
2024-06-24T11:41:10.384564+00:00 10.215.168.64  2024-06-24T11:41:09.573145+00:00 daemon-info osdx systemd[1]:  Stopped System Logging Service.
2024-06-24T11:41:10.384564+00:00 10.215.168.64  2024-06-24T11:41:09.575281+00:00 daemon-info osdx systemd[1]:  Starting System Logging Service...
2024-06-24T11:41:10.384564+00:00 10.215.168.64  2024-06-24T11:41:09.579159+00:00 syslog-info osdx rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.1901.0]
2024-06-24T11:41:10.384564+00:00 10.215.168.64  2024-06-24T11:41:09.579241+00:00 syslog-info osdx rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="3751" x-info="https://www.rsyslog.com"] start
2024-06-24T11:41:10.384564+00:00 10.215.168.64  2024-06-24T11:41:09.579298+00:00 daemon-info osdx systemd[1]:  Started System Logging Service.
2024-06-24T11:41:10.384564+00:00 10.215.168.64  2024-06-24T11:41:09.579503+00:00 daemon-notice osdx cfgd[1115]:  [379]Completed change to active configuration
2024-06-24T11:41:10.387117+00:00 10.215.168.64  2024-06-24T11:41:09.582214+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2024-06-24T11:41:10.415103+00:00 10.215.168.64  2024-06-24T11:41:09.610158+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2024-06-24T11:41:10.594105+00:00 10.215.168.64  2024-06-24T11:41:09.789221+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'ping 10.215.168.1      count 1 size 56 timeout 1'.
2024-06-24T11:41:10.680409+00:00 10.215.168.64  2024-06-24T11:41:09.875482+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show host name'.

Test Syslog Remote With VRF

Description

Add a remote host to send syslog messages through a VRF and show the host name.

Scenario

Step 1: Set the following configuration in DUT0:

set system syslog host 10.215.168.1 level info
set system syslog host 10.215.168.1 port 514
set system syslog host 10.215.168.1 protocol udp
set system syslog host 10.215.168.1 local-vrf VRF0
set interfaces ethernet eth0 address 10.215.168.64/24
set interfaces ethernet eth0 vrf VRF0
set system vrf VRF0

Step 2: Ping IP address 10.215.168.1 from DUT0:

admin@DUT0$ ping 10.215.168.1 vrf VRF0 count 1 size 56 timeout 1
Show output
ping: Warning: source address might be selected on device other than VRF0.
PING 10.215.168.1 (10.215.168.1) from 10.215.168.64 VRF0: 56(84) bytes of data.
64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.138 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.138/0.138/0.138/0.000 ms

Step 3: Run command show host name at DUT0 and expect this output:

Show output
osdx

Note

Check the server {log_file} file and read the {log_msg} log message:

Show output
2024-06-24T11:41:11.213020+00:00 10.215.168.64  2024-06-24T11:41:10.408037+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show version'.
2024-06-24T11:41:11.857775+00:00 10.215.168.64  2024-06-24T11:41:11.052857+00:00 user-warning osdx OSDxCLI:  Signal 10 received
2024-06-24T11:41:11.870451+00:00 10.215.168.64  2024-06-24T11:41:11.065540+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'set system mode user'.
2024-06-24T11:41:13.208463+00:00 10.215.168.64  2024-06-24T11:41:12.403525+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'system coredump show'.
2024-06-24T11:41:13.894011+00:00 10.215.168.64  2024-06-24T11:41:13.089050+00:00 auth-notice osdx OSDxCLI:  User 'admin' entered the configuration menu.
2024-06-24T11:41:14.034538+00:00 10.215.168.64  2024-06-24T11:41:13.229588+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'delete'.
2024-06-24T11:41:14.220047+00:00 10.215.168.64  2024-06-24T11:41:13.415122+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'set system login user admin authentication encrypted-password $6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'.
2024-06-24T11:41:19.374761+00:00 10.215.168.64  2024-06-24T11:41:18.927606+00:00 daemon-info osdx systemd[1]:  Stopping System Logging Service...
2024-06-24T11:41:19.374761+00:00 10.215.168.64  2024-06-24T11:41:18.928119+00:00 syslog-info osdx rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="3872" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-06-24T11:41:19.374761+00:00 10.215.168.64  2024-06-24T11:41:18.928971+00:00 daemon-info osdx systemd[1]:  rsyslog.service: Succeeded.
2024-06-24T11:41:19.374761+00:00 10.215.168.64  2024-06-24T11:41:18.929049+00:00 daemon-info osdx systemd[1]:  Stopped System Logging Service.
2024-06-24T11:41:19.375199+00:00 10.215.168.64  2024-06-24T11:41:18.930007+00:00 daemon-info osdx systemd[1]:  Starting System Logging Service...
2024-06-24T11:41:19.375199+00:00 10.215.168.64  2024-06-24T11:41:18.933312+00:00 daemon-info osdx systemd[1]:  Started System Logging Service.
2024-06-24T11:41:19.375199+00:00 10.215.168.64  2024-06-24T11:41:18.934238+00:00 syslog-info osdx rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.1901.0]
2024-06-24T11:41:19.375199+00:00 10.215.168.64  2024-06-24T11:41:18.934303+00:00 syslog-info osdx rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="4024" x-info="https://www.rsyslog.com"] start
2024-06-24T11:41:19.375199+00:00 10.215.168.64  2024-06-24T11:41:18.935136+00:00 daemon-notice osdx cfgd[1115]:  [379]Completed change to active configuration
2024-06-24T11:41:19.379394+00:00 10.215.168.64  2024-06-24T11:41:18.939270+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2024-06-24T11:41:19.421487+00:00 10.215.168.64  2024-06-24T11:41:18.981339+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2024-06-24T11:41:19.636172+00:00 10.215.168.64  2024-06-24T11:41:19.195997+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'ping 10.215.168.1  vrf VRF0    count 1 size 56 timeout 1'.
2024-06-24T11:41:19.716834+00:00 10.215.168.64  2024-06-24T11:41:19.276656+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show host name'.

Test Syslog Remote With Interface

Description

Add a remote host to send syslog messages through a specific interface and show the host name.

Scenario

Step 1: Set the following configuration in DUT0:

set system syslog host 10.215.168.1 level info
set system syslog host 10.215.168.1 port 514
set system syslog host 10.215.168.1 protocol udp
set interfaces ethernet eth0 address 10.215.168.64/24
set system syslog host 10.215.168.1 local-interface eth0

Step 2: Ping IP address 10.215.168.1 from DUT0:

admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1
Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data.
64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.232 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.232/0.232/0.232/0.000 ms

Step 3: Run command show host name at DUT0 and expect this output:

Show output
osdx

Note

Check the server {log_file} file and read the {log_msg} log message:

Show output
2024-06-24T11:41:20.200265+00:00 10.215.168.64  2024-06-24T11:41:19.760058+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show version'.
2024-06-24T11:41:20.510851+00:00 10.215.168.64  2024-06-24T11:41:20.070680+00:00 user-warning osdx OSDxCLI:  Signal 10 received
2024-06-24T11:41:20.523276+00:00 10.215.168.64  2024-06-24T11:41:20.083089+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'set system mode user'.
2024-06-24T11:41:21.836859+00:00 10.215.168.64  2024-06-24T11:41:21.396685+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'system coredump show'.
2024-06-24T11:41:22.420986+00:00 10.215.168.64  2024-06-24T11:41:21.980810+00:00 auth-notice osdx OSDxCLI:  User 'admin' entered the configuration menu.
2024-06-24T11:41:22.548332+00:00 10.215.168.64  2024-06-24T11:41:22.108170+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'delete'.
2024-06-24T11:41:22.670630+00:00 10.215.168.64  2024-06-24T11:41:22.230451+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'set system login user admin authentication encrypted-password $6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'.
2024-06-24T11:41:27.586915+00:00 10.215.168.64  2024-06-24T11:41:26.723964+00:00 daemon-info osdx systemd[1]:  Stopping System Logging Service...
2024-06-24T11:41:27.586915+00:00 10.215.168.64  2024-06-24T11:41:26.724154+00:00 syslog-info osdx rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="4145" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-06-24T11:41:27.586915+00:00 10.215.168.64  2024-06-24T11:41:26.725306+00:00 daemon-info osdx systemd[1]:  rsyslog.service: Succeeded.
2024-06-24T11:41:27.586915+00:00 10.215.168.64  2024-06-24T11:41:26.725368+00:00 daemon-info osdx systemd[1]:  Stopped System Logging Service.
2024-06-24T11:41:27.586933+00:00 10.215.168.64  2024-06-24T11:41:26.726771+00:00 daemon-info osdx systemd[1]:  Starting System Logging Service...
2024-06-24T11:41:27.587357+00:00 10.215.168.64  2024-06-24T11:41:26.729401+00:00 syslog-info osdx rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.1901.0]
2024-06-24T11:41:27.587357+00:00 10.215.168.64  2024-06-24T11:41:26.729465+00:00 daemon-info osdx systemd[1]:  Started System Logging Service.
2024-06-24T11:41:27.587365+00:00 10.215.168.64  2024-06-24T11:41:26.729510+00:00 syslog-info osdx rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="4299" x-info="https://www.rsyslog.com"] start
2024-06-24T11:41:27.588372+00:00 10.215.168.64  2024-06-24T11:41:26.730278+00:00 daemon-notice osdx cfgd[1115]:  [379]Completed change to active configuration
2024-06-24T11:41:27.591167+00:00 10.215.168.64  2024-06-24T11:41:26.733029+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2024-06-24T11:41:27.635539+00:00 10.215.168.64  2024-06-24T11:41:26.777632+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2024-06-24T11:41:27.808420+00:00 10.215.168.64  2024-06-24T11:41:26.950501+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'ping 10.215.168.1      count 1 size 56 timeout 1'.
2024-06-24T11:41:27.887975+00:00 10.215.168.64  2024-06-24T11:41:27.030081+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show host name'.

Test Syslog Remote Single TLS

Description

Add a secured remote host to send syslog messages and show the host name.

Scenario

Step 1: Set the following configuration in DUT0:

set system syslog host 10.215.168.1 level info
set system syslog host 10.215.168.1 port 10514
set system syslog host 10.215.168.1 protocol tcp
set system syslog host 10.215.168.1 tls ca running://ca.crt
set system syslog host 10.215.168.1 tls permittedPeer "Rsyslog-server"
set interfaces ethernet eth0 address 10.215.168.64/24

Step 2: Ping IP address 10.215.168.1 from DUT0:

admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1
Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data.
64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.132 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.132/0.132/0.132/0.000 ms

Step 3: Run command show host name at DUT0 and expect this output:

Show output
osdx

Note

Check the server {log_file} file and read the {log_msg} log message:

Show output
2024-06-24T11:41:28.356188+00:00 10.215.168.64  2024-06-24T11:41:27.498284+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show version'.
2024-06-24T11:41:28.964502+00:00 10.215.168.64  2024-06-24T11:41:28.106554+00:00 user-warning osdx OSDxCLI:  Signal 10 received
2024-06-24T11:41:28.977729+00:00 10.215.168.64  2024-06-24T11:41:28.119852+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'set system mode user'.
2024-06-24T11:41:30.404756+00:00 10.215.168.64  2024-06-24T11:41:29.546821+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'system coredump show'.
2024-06-24T11:41:31.009066+00:00 10.215.168.64  2024-06-24T11:41:30.151076+00:00 auth-notice osdx OSDxCLI:  User 'admin' entered the configuration menu.
2024-06-24T11:41:31.124785+00:00 10.215.168.64  2024-06-24T11:41:30.266853+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'delete'.
2024-06-24T11:41:31.235371+00:00 10.215.168.64  2024-06-24T11:41:30.377411+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'set system login user admin authentication encrypted-password $6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'.
2024-06-24T11:41:36.235779+00:00 10.215.168.64  2024-06-24T11:41:35.923100+00:00 daemon-info osdx systemd[1]:  Stopping System Logging Service...
2024-06-24T11:41:36.279684+00:00 10.215.168.64  2024-06-24T11:41:35.923748+00:00 syslog-info osdx rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="4420" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-06-24T11:41:36.279684+00:00 10.215.168.64  2024-06-24T11:41:35.924994+00:00 daemon-info osdx systemd[1]:  rsyslog.service: Succeeded.
2024-06-24T11:41:36.279684+00:00 10.215.168.64  2024-06-24T11:41:35.925094+00:00 daemon-info osdx systemd[1]:  Stopped System Logging Service.
2024-06-24T11:41:36.279684+00:00 10.215.168.64  2024-06-24T11:41:35.926617+00:00 daemon-info osdx systemd[1]:  Starting System Logging Service...
2024-06-24T11:41:36.279684+00:00 10.215.168.64  2024-06-24T11:41:35.937203+00:00 daemon-info osdx systemd[1]:  Started System Logging Service.
2024-06-24T11:41:36.279684+00:00 10.215.168.64  2024-06-24T11:41:35.938929+00:00 syslog-info osdx rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.1901.0]
2024-06-24T11:41:36.279684+00:00 10.215.168.64  2024-06-24T11:41:35.938991+00:00 syslog-info osdx rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="4548" x-info="https://www.rsyslog.com"] start
2024-06-24T11:41:36.279684+00:00 10.215.168.64  2024-06-24T11:41:35.939161+00:00 daemon-notice osdx cfgd[1115]:  [379]Completed change to active configuration
2024-06-24T11:41:36.279684+00:00 10.215.168.64  2024-06-24T11:41:35.941493+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2024-06-24T11:41:36.279684+00:00 10.215.168.64  2024-06-24T11:41:35.975020+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2024-06-24T11:41:36.419627+00:00 10.215.168.64  2024-06-24T11:41:36.177568+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'ping 10.215.168.1      count 1 size 56 timeout 1'.
2024-06-24T11:41:36.637527+00:00 10.215.168.64  2024-06-24T11:41:36.395460+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show host name'.