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-12-02 18:52:08.232132 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:13.206571 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:13.413277 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:13.519894 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:27.523245 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:27.716808 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:27.869376 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:32.944875 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:33.105654 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:33.245526 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:47.844122 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:48.060445 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:48.227489 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:53.214486 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:53.396451 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:53.556349 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:58.459223 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:58.583104 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:52:58.737193 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2024-12-02 18:53:53.732977 daemon-err , staticd[1078]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF1 in VRF 183 2024-12-02 18:53:53.733081 daemon-err , staticd[1078]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF1 in VRF 183 2024-12-02 18:54:32.871493 daemon-err , staticd[1078]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF1 in VRF 184 2024-12-02 18:54:32.871583 daemon-err , staticd[1078]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF1 in VRF 184 2024-12-02 18:55:27.192227 daemon-err , cfgd[1120]: External python command [cfg.auto_scripts process ADVISOR1 SCRIPT_1 true] finished with status 1 2024-12-02 18:56:26.333731 user-err , ERROR: `system script SCRIPT_1` validation error 2024-12-02 18:56:26.333792 user-err , ERROR: "Configuration path: [potato] is not valid" 2024-12-02 18:56:26.334196 daemon-err , cfgd[1120]: [25701]Command output:#012Value validation failed#012 2024-12-02 18:56:26.816935 user-err , ERROR: `system script SCRIPT_1` validation error 2024-12-02 18:56:26.817163 user-err , ERROR: system potato: Invalid operational command. 2024-12-02 18:56:26.817709 daemon-err , cfgd[1120]: [25701]Command output:#012Value validation failed#012 2024-12-02 18:56:36.496901 daemon-err , cfgd[1120]: [ service dhcp-server ] 2024-12-02 18:56:36.497022 daemon-err , cfgd[1120]: \"shared-network\" configuration is required 2024-12-02 18:56:36.497133 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 18:56:36.500013 daemon-err , cfgd[1120]: [31669]Command output:#012[ service dhcp-server ]#012\"shared-network\" configuration is required#012Commit validation failed#012 2024-12-02 18:56:36.518152 daemon-err , cfgd[1120]: External python command [cfg.auto_scripts execute_script SCRIPT_1] finished with status 1 2024-12-02 18:57:42.380846 daemon-err , bgpd[388]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF dum0 in VRF 0 2024-12-02 19:00:36.079379 daemon-err , staticd[1078]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan3 in VRF 196 2024-12-02 19:00:36.079644 daemon-err , staticd[1078]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan3 in VRF 196 2024-12-02 19:00:36.158019 daemon-err , staticd[1078]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF tenant2 in VRF 195 2024-12-02 19:00:36.158150 daemon-err , staticd[1078]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF tenant2 in VRF 195 2024-12-02 19:00:36.268563 daemon-err , staticd[1078]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan2 in VRF 194 2024-12-02 19:00:36.268664 daemon-err , staticd[1078]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan2 in VRF 194 2024-12-02 19:00:36.350449 daemon-err , staticd[1078]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan1 in VRF 193 2024-12-02 19:00:36.350552 daemon-err , staticd[1078]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan1 in VRF 193 2024-12-02 19:00:36.446154 daemon-err , staticd[1078]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF tenant1 in VRF 192 2024-12-02 19:00:36.446242 daemon-err , staticd[1078]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF tenant1 in VRF 192 2024-12-02 19:03:37.038515 daemon-err , ntpd[8598]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:03:37.038611 daemon-err , ntpd[8598]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:03:37.609706 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX18EHDNe/M6zL5oLWRO01XUmWl4dwNb4OHg=] finished with status 1 2024-12-02 19:03:37.609953 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:03:37.610064 daemon-err , cfgd[1120]: \"U2FsdGVkX18EHDNe/M6zL5oLWRO01XUmWl4dwNb4OHg=\" strong-password: score is too weak 2024-12-02 19:03:37.610169 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:03:37.617052 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX18EHDNe/M6zL5oLWRO01XUmWl4dwNb4OHg=\" strong-password: score is too weak#012Commit validation failed#012 2024-12-02 19:03:45.677111 daemon-err , ntpd[8797]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:03:45.677176 daemon-err , ntpd[8797]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:03:46.593138 daemon-err , ntpd[8823]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:03:46.593227 daemon-err , ntpd[8823]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:03:47.301267 daemon-err , ntpd[8849]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:03:47.301322 daemon-err , ntpd[8849]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:03:48.084140 daemon-err , ntpd[8875]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:03:48.084197 daemon-err , ntpd[8875]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:03:49.074985 daemon-err , ntpd[8901]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:03:49.075028 daemon-err , ntpd[8901]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:03:49.811291 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX19Pl/65uWMQEHB5DUuizsjKaySPURaEwqk=] finished with status 1 2024-12-02 19:03:49.811436 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:03:49.811592 daemon-err , cfgd[1120]: \"U2FsdGVkX19Pl/65uWMQEHB5DUuizsjKaySPURaEwqk=\" strong-password: score is too weak 2024-12-02 19:03:49.811654 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:03:49.816999 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX19Pl/65uWMQEHB5DUuizsjKaySPURaEwqk=\" strong-password: score is too weak#012Commit validation failed#012 2024-12-02 19:03:50.733893 daemon-err , ntpd[8946]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:03:50.733944 daemon-err , ntpd[8946]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:03:51.748149 daemon-err , ntpd[8972]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:03:51.748202 daemon-err , ntpd[8972]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:03:52.733549 daemon-err , ntpd[8998]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:03:52.733619 daemon-err , ntpd[8998]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:03:53.757560 daemon-err , ntpd[9024]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:03:53.757627 daemon-err , ntpd[9024]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:03:54.580479 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX19Pl/65uWMQEHB5DUuizsjKaySPURaEwqk=] finished with status 1 2024-12-02 19:03:54.580571 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:03:54.580616 daemon-err , cfgd[1120]: \"U2FsdGVkX19Pl/65uWMQEHB5DUuizsjKaySPURaEwqk=\" strong-password: score is too weak 2024-12-02 19:03:54.580666 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:03:54.583551 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX19Pl/65uWMQEHB5DUuizsjKaySPURaEwqk=\" strong-password: score is too weak#012Commit validation failed#012 2024-12-02 19:03:55.368206 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX19Pl/65uWMQEO8FRfF/KGNpXpPFdhC10Qk=] finished with status 1 2024-12-02 19:03:55.368393 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:03:55.368517 daemon-err , cfgd[1120]: \"U2FsdGVkX19Pl/65uWMQEO8FRfF/KGNpXpPFdhC10Qk=\" strong-password: score is too weak 2024-12-02 19:03:55.368611 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:03:55.370849 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX19Pl/65uWMQEO8FRfF/KGNpXpPFdhC10Qk=\" strong-password: score is too weak#012Commit validation failed#012 2024-12-02 19:03:56.185018 daemon-err , ntpd[9084]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:03:56.185079 daemon-err , ntpd[9084]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:03:56.924815 daemon-err , ntpd[9110]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:03:56.924875 daemon-err , ntpd[9110]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:03:57.765058 daemon-err , ntpd[9136]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:03:57.765117 daemon-err , ntpd[9136]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:03:58.550381 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX19Pl/65uWMQEHB5DUuizsjKaySPURaEwqk=] finished with status 1 2024-12-02 19:03:58.550485 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:03:58.550546 daemon-err , cfgd[1120]: \"U2FsdGVkX19Pl/65uWMQEHB5DUuizsjKaySPURaEwqk=\" strong-password: score is too weak 2024-12-02 19:03:58.550607 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:03:58.554773 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX19Pl/65uWMQEHB5DUuizsjKaySPURaEwqk=\" strong-password: score is too weak#012Commit validation failed#012 2024-12-02 19:03:59.543956 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX19Pl/65uWMQEO8FRfF/KGNpXpPFdhC10Qk=] finished with status 1 2024-12-02 19:03:59.544064 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:03:59.544121 daemon-err , cfgd[1120]: \"U2FsdGVkX19Pl/65uWMQEO8FRfF/KGNpXpPFdhC10Qk=\" strong-password: score is too weak 2024-12-02 19:03:59.544174 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:03:59.547408 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX19Pl/65uWMQEO8FRfF/KGNpXpPFdhC10Qk=\" strong-password: score is too weak#012Commit validation failed#012 2024-12-02 19:04:00.346889 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX19Pl/65uWMQEF8fUxDLtrvCMY0M6sqBhso=] finished with status 1 2024-12-02 19:04:00.346988 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:04:00.347047 daemon-err , cfgd[1120]: \"U2FsdGVkX19Pl/65uWMQEF8fUxDLtrvCMY0M6sqBhso=\" strong-password: score is too weak 2024-12-02 19:04:00.347203 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:04:00.349893 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX19Pl/65uWMQEF8fUxDLtrvCMY0M6sqBhso=\" strong-password: score is too weak#012Commit validation failed#012 2024-12-02 19:04:01.387042 daemon-err , ntpd[9216]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:04:01.387085 daemon-err , ntpd[9216]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:04:02.383460 daemon-err , ntpd[9242]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:04:02.383531 daemon-err , ntpd[9242]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:04:03.351078 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX19Pl/65uWMQEHB5DUuizsjKaySPURaEwqk=] finished with status 1 2024-12-02 19:04:03.351319 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:04:03.351466 daemon-err , cfgd[1120]: \"U2FsdGVkX19Pl/65uWMQEHB5DUuizsjKaySPURaEwqk=\" strong-password: score is too weak 2024-12-02 19:04:03.351578 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:04:03.360031 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX19Pl/65uWMQEHB5DUuizsjKaySPURaEwqk=\" strong-password: score is too weak#012Commit validation failed#012 2024-12-02 19:04:04.334285 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX19Pl/65uWMQEO8FRfF/KGNpXpPFdhC10Qk=] finished with status 1 2024-12-02 19:04:04.334536 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:04:04.334662 daemon-err , cfgd[1120]: \"U2FsdGVkX19Pl/65uWMQEO8FRfF/KGNpXpPFdhC10Qk=\" strong-password: score is too weak 2024-12-02 19:04:04.334770 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:04:04.338149 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX19Pl/65uWMQEO8FRfF/KGNpXpPFdhC10Qk=\" strong-password: score is too weak#012Commit validation failed#012 2024-12-02 19:04:05.072760 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX19Pl/65uWMQEF8fUxDLtrvCMY0M6sqBhso=] finished with status 1 2024-12-02 19:04:05.073004 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:04:05.073143 daemon-err , cfgd[1120]: \"U2FsdGVkX19Pl/65uWMQEF8fUxDLtrvCMY0M6sqBhso=\" strong-password: score is too weak 2024-12-02 19:04:05.073264 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:04:05.076439 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX19Pl/65uWMQEF8fUxDLtrvCMY0M6sqBhso=\" strong-password: score is too weak#012Commit validation failed#012 2024-12-02 19:04:05.836225 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX19Pl/65uWMQEFHLhnPR5Xi7hqEIepmjS2s=] finished with status 1 2024-12-02 19:04:05.836338 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:04:05.836390 daemon-err , cfgd[1120]: \"U2FsdGVkX19Pl/65uWMQEFHLhnPR5Xi7hqEIepmjS2s=\" strong-password: score is too weak 2024-12-02 19:04:05.836466 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:04:05.839320 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX19Pl/65uWMQEFHLhnPR5Xi7hqEIepmjS2s=\" strong-password: score is too weak#012Commit validation failed#012 2024-12-02 19:04:15.892602 daemon-err , ntpd[9506]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:04:15.892654 daemon-err , ntpd[9506]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:04:26.518559 daemon-err , ntpd[9731]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:04:26.518639 daemon-err , ntpd[9731]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:04:35.391292 daemon-err , cfgd[1120]: [25701]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012 2024-12-02 19:04:35.953745 daemon-err , cfgd[1120]: [25701]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012 2024-12-02 19:04:37.392586 daemon-err , ntpd[9990]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:04:37.392641 daemon-err , ntpd[9990]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:04:38.288096 daemon-err , ntpd[10018]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:04:38.288153 daemon-err , ntpd[10018]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:04:39.085585 daemon-err , ntpd[10044]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:04:39.085641 daemon-err , ntpd[10044]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:04:50.183589 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1+qtI36CEStDja/HMGlD0qGkzVrYcxJ1B4=] finished with status 1 2024-12-02 19:04:50.183659 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:04:50.183701 daemon-err , cfgd[1120]: \"U2FsdGVkX1+qtI36CEStDja/HMGlD0qGkzVrYcxJ1B4=\" strong-password: score is too weak 2024-12-02 19:04:50.183763 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:04:50.186360 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1+qtI36CEStDja/HMGlD0qGkzVrYcxJ1B4=\" strong-password: score is too weak#012Commit validation failed#012 2024-12-02 19:04:50.929647 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/JENO5gqPQgbrSYqqGG8BUyn8tXntMNBo=] finished with status 1 2024-12-02 19:04:50.929752 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:04:50.929909 daemon-err , cfgd[1120]: \"U2FsdGVkX1/JENO5gqPQgbrSYqqGG8BUyn8tXntMNBo=\" strong-password: score is too weak 2024-12-02 19:04:50.930031 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:04:50.932754 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/JENO5gqPQgbrSYqqGG8BUyn8tXntMNBo=\" strong-password: score is too weak#012Commit validation failed#012 2024-12-02 19:04:51.651532 daemon-err , ntpd[10397]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:04:51.651582 daemon-err , ntpd[10397]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:05:00.744333 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1+43E+jAnLWMdNJXrA0QjV9Vwj+ZH7XoAA=] finished with status 2 2024-12-02 19:05:00.744425 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:05:00.744501 daemon-err , cfgd[1120]: \"U2FsdGVkX1+43E+jAnLWMdNJXrA0QjV9Vwj+ZH7XoAA=\" strong-password: not long enough 2024-12-02 19:05:00.744563 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:05:00.747380 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1+43E+jAnLWMdNJXrA0QjV9Vwj+ZH7XoAA=\" strong-password: not long enough#012Commit validation failed#012 2024-12-02 19:05:01.525139 daemon-err , ntpd[10613]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:05:01.525203 daemon-err , ntpd[10613]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:05:09.716014 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/bDzJKzncis7iZ+CHlWrRKKsEJbRTdmIc=] finished with status 3 2024-12-02 19:05:09.716240 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:05:09.716484 daemon-err , cfgd[1120]: \"U2FsdGVkX1/bDzJKzncis7iZ+CHlWrRKKsEJbRTdmIc=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters 2024-12-02 19:05:09.716601 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:05:09.727250 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/bDzJKzncis7iZ+CHlWrRKKsEJbRTdmIc=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters#012Commit validation failed#012 2024-12-02 19:05:10.463380 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1+noW5b3Z5v352nvRwmzZLSELq3XUj/Gwk=] finished with status 3 2024-12-02 19:05:10.463478 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:05:10.463524 daemon-err , cfgd[1120]: \"U2FsdGVkX1+noW5b3Z5v352nvRwmzZLSELq3XUj/Gwk=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters 2024-12-02 19:05:10.463573 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:05:10.469894 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1+noW5b3Z5v352nvRwmzZLSELq3XUj/Gwk=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters#012Commit validation failed#012 2024-12-02 19:05:11.487700 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1+GpUFgusSMw7rIKeQ0TlmCLRf8d0dtLBI=] finished with status 3 2024-12-02 19:05:11.487916 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:05:11.488009 daemon-err , cfgd[1120]: \"U2FsdGVkX1+GpUFgusSMw7rIKeQ0TlmCLRf8d0dtLBI=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters 2024-12-02 19:05:11.488154 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:05:11.490862 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1+GpUFgusSMw7rIKeQ0TlmCLRf8d0dtLBI=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters#012Commit validation failed#012 2024-12-02 19:05:12.246302 daemon-err , cfgd[1120]: External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/dpj2+fIjgNg7diHDUTu4bxrn7ielKfKY=] finished with status 3 2024-12-02 19:05:12.246414 daemon-err , cfgd[1120]: [ system ntp authentication-key 1 encrypted-key ] 2024-12-02 19:05:12.246470 daemon-err , cfgd[1120]: \"U2FsdGVkX1/dpj2+fIjgNg7diHDUTu4bxrn7ielKfKY=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters 2024-12-02 19:05:12.246528 daemon-err , cfgd[1120]: Commit validation failed 2024-12-02 19:05:12.249768 daemon-err , cfgd[1120]: [25701]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/dpj2+fIjgNg7diHDUTu4bxrn7ielKfKY=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters#012Commit validation failed#012 2024-12-02 19:05:12.982116 daemon-err , ntpd[10863]: AUTH: authreadkeys: reading /etc/ntp.keys 2024-12-02 19:05:12.982162 daemon-err , ntpd[10863]: AUTH: authreadkeys: added 1 keys 2024-12-02 19:05:13.596705 daemon-err , cfgd[1120]: [25701]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012 2024-12-02 19:05:14.144264 daemon-err , cfgd[1120]: [25701]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012 2024-12-02 19:05:14.729861 daemon-err , cfgd[1120]: [25701]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012 2024-12-02 19:05:15.315928 daemon-err , cfgd[1120]: [25701]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012 2024-12-02 19:05:32.652171 daemon-info , systemd[1]: Stopping System Logging Service... 2024-12-02 19:05:32.652676 syslog-info , rsyslogd: [origin software="rsyslogd" swVersion="8.1901.0" x-pid="20775" x-info="https://www.rsyslog.com"] exiting on signal 15. 2024-12-02 19:05:32.653961 daemon-info , systemd[1]: rsyslog.service: Succeeded. 2024-12-02 19:05:32.654364 daemon-info , systemd[1]: Stopped System Logging Service. 2024-12-02 19:05:32.655884 daemon-info , systemd[1]: Starting System Logging Service... 2024-12-02 19:05:32.658767 syslog-info , rsyslogd: imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd. [v8.1901.0] 2024-12-02 19:05:32.658831 syslog-info , rsyslogd: [origin software="rsyslogd" swVersion="8.1901.0" x-pid="11367" x-info="https://www.rsyslog.com"] start 2024-12-02 19:05:32.658885 daemon-info , systemd[1]: Started System Logging Service. 2024-12-02 19:05:32.661544 daemon-notice , cfgd[1120]: [25701]Completed change to active configuration 2024-12-02 19:05:32.666209 auth-notice , OSDxCLI: User 'admin' committed the configuration. 2024-12-02 19:05:32.703613 auth-notice , OSDxCLI: User 'admin' left the configuration menu. 2024-12-02 19:05:32.871000 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-12-02 19:05:42.980427 daemon-info , systemd[1]: Stopping System Logging Service... 2024-12-02 19:05:42.981568 daemon-info , systemd[1]: rsyslog.service: Succeeded. 2024-12-02 19:05:42.981913 daemon-info , systemd[1]: Stopped System Logging Service. 2024-12-02 19:05:42.983587 daemon-info , systemd[1]: Starting System Logging Service... 2024-12-02 19:05:42.986745 daemon-info , systemd[1]: Started System Logging Service. 2024-12-02 19:05:44.082739 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-12-02 19:05:53.261804 daemon-info , systemd[1]: Stopping System Logging Service... 2024-12-02 19:05:53.263071 daemon-info , systemd[1]: rsyslog.service: Succeeded. 2024-12-02 19:05:53.263463 daemon-info , systemd[1]: Stopped System Logging Service. 2024-12-02 19:05:53.264921 daemon-info , systemd[1]: Starting System Logging Service... 2024-12-02 19:05:53.271188 daemon-info , systemd[1]: Started System Logging Service. 2024-12-02 19:05:54.133889 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 1Show 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.193 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.193/0.193/0.193/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-12-02T19:06:05.238817+00:00 10.215.168.64 2024-12-02T19:06:04.736784+00:00 syslog-info osdx rsyslogd: [origin software="rsyslogd" swVersion="8.1901.0" x-pid="12120" x-info="https://www.rsyslog.com"] exiting on signal 15. 2024-12-02T19:06:05.238817+00:00 10.215.168.64 2024-12-02T19:06:04.734623+00:00 daemon-info osdx systemd[1]: Stopping System Logging Service... 2024-12-02T19:06:05.238817+00:00 10.215.168.64 2024-12-02T19:06:04.737423+00:00 daemon-info osdx systemd[1]: rsyslog.service: Succeeded. 2024-12-02T19:06:05.238817+00:00 10.215.168.64 2024-12-02T19:06:04.737836+00:00 daemon-info osdx systemd[1]: Stopped System Logging Service. 2024-12-02T19:06:05.238817+00:00 10.215.168.64 2024-12-02T19:06:04.739289+00:00 daemon-info osdx systemd[1]: Starting System Logging Service... 2024-12-02T19:06:05.238817+00:00 10.215.168.64 2024-12-02T19:06:04.742510+00:00 syslog-info osdx rsyslogd: imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd. [v8.1901.0] 2024-12-02T19:06:05.238817+00:00 10.215.168.64 2024-12-02T19:06:04.742598+00:00 daemon-info osdx systemd[1]: Started System Logging Service. 2024-12-02T19:06:05.243275+00:00 10.215.168.64 2024-12-02T19:06:04.743255+00:00 syslog-info osdx rsyslogd: [origin software="rsyslogd" swVersion="8.1901.0" x-pid="12276" x-info="https://www.rsyslog.com"] start 2024-12-02T19:06:05.243275+00:00 10.215.168.64 2024-12-02T19:06:04.745128+00:00 daemon-notice osdx cfgd[1120]: [25701]Completed change to active configuration 2024-12-02T19:06:05.245374+00:00 10.215.168.64 2024-12-02T19:06:04.748724+00:00 auth-notice osdx OSDxCLI: User 'admin' committed the configuration. 2024-12-02T19:06:05.307463+00:00 10.215.168.64 2024-12-02T19:06:04.806355+00:00 auth-notice osdx OSDxCLI: User 'admin' left the configuration menu. 2024-12-02T19:06:05.557868+00:00 10.215.168.64 2024-12-02T19:06:05.061683+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'. 2024-12-02T19:06:05.682399+00:00 10.215.168.64 2024-12-02T19:06:05.186053+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 1Show 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.194 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.194/0.194/0.194/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-12-02T19:06:06.371926+00:00 10.215.168.64 2024-12-02T19:06:05.875753+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'show version'. 2024-12-02T19:06:06.790910+00:00 10.215.168.64 2024-12-02T19:06:06.294694+00:00 user-warning osdx OSDxCLI: Signal 10 received 2024-12-02T19:06:06.806890+00:00 10.215.168.64 2024-12-02T19:06:06.310512+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'set system mode user'. 2024-12-02T19:06:08.520622+00:00 10.215.168.64 2024-12-02T19:06:08.024442+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'system coredump show'. 2024-12-02T19:06:09.379763+00:00 10.215.168.64 2024-12-02T19:06:08.883516+00:00 auth-notice osdx OSDxCLI: User 'admin' entered the configuration menu. 2024-12-02T19:06:09.585322+00:00 10.215.168.64 2024-12-02T19:06:09.089019+00:00 auth-notice osdx OSDxCLI: User 'admin' added a new cfg line: 'delete'. 2024-12-02T19:06:09.759525+00:00 10.215.168.64 2024-12-02T19:06:09.263227+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-12-02T19:06:18.302254+00:00 10.215.168.64 2024-12-02T19:06:17.625023+00:00 daemon-info osdx systemd[1]: Stopping System Logging Service... 2024-12-02T19:06:18.302254+00:00 10.215.168.64 2024-12-02T19:06:17.626049+00:00 syslog-info osdx rsyslogd: [origin software="rsyslogd" swVersion="8.1901.0" x-pid="12397" x-info="https://www.rsyslog.com"] exiting on signal 15. 2024-12-02T19:06:18.302254+00:00 10.215.168.64 2024-12-02T19:06:17.627386+00:00 daemon-info osdx systemd[1]: rsyslog.service: Succeeded. 2024-12-02T19:06:18.302254+00:00 10.215.168.64 2024-12-02T19:06:17.630030+00:00 daemon-info osdx systemd[1]: Stopped System Logging Service. 2024-12-02T19:06:18.302254+00:00 10.215.168.64 2024-12-02T19:06:17.630132+00:00 daemon-info osdx systemd[1]: Starting System Logging Service... 2024-12-02T19:06:18.302254+00:00 10.215.168.64 2024-12-02T19:06:17.634139+00:00 daemon-info osdx systemd[1]: Started System Logging Service. 2024-12-02T19:06:18.302254+00:00 10.215.168.64 2024-12-02T19:06:17.638433+00:00 daemon-notice osdx cfgd[1120]: [25701]Completed change to active configuration 2024-12-02T19:06:18.302254+00:00 10.215.168.64 2024-12-02T19:06:17.639429+00:00 syslog-info osdx rsyslogd: imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd. [v8.1901.0] 2024-12-02T19:06:18.302254+00:00 10.215.168.64 2024-12-02T19:06:17.639529+00:00 syslog-info osdx rsyslogd: [origin software="rsyslogd" swVersion="8.1901.0" x-pid="12574" x-info="https://www.rsyslog.com"] start 2024-12-02T19:06:18.330398+00:00 10.215.168.64 2024-12-02T19:06:17.667591+00:00 auth-notice osdx OSDxCLI: User 'admin' committed the configuration. 2024-12-02T19:06:18.450235+00:00 10.215.168.64 2024-12-02T19:06:17.782993+00:00 auth-notice osdx OSDxCLI: User 'admin' left the configuration menu. 2024-12-02T19:06:18.969905+00:00 10.215.168.64 2024-12-02T19:06:18.295751+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-12-02T19:06:19.201788+00:00 10.215.168.64 2024-12-02T19:06:18.539495+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 1Show 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=13.3 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 13.288/13.288/13.288/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-12-02T19:06:20.258434+00:00 10.215.168.64 2024-12-02T19:06:19.592697+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'show version'. 2024-12-02T19:06:21.149360+00:00 10.215.168.64 2024-12-02T19:06:20.448382+00:00 user-warning osdx OSDxCLI: Signal 10 received 2024-12-02T19:06:21.183334+00:00 10.215.168.64 2024-12-02T19:06:20.515969+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'set system mode user'. 2024-12-02T19:06:24.816751+00:00 10.215.168.64 2024-12-02T19:06:24.154115+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'system coredump show'. 2024-12-02T19:06:26.069172+00:00 10.215.168.64 2024-12-02T19:06:25.406815+00:00 auth-notice osdx OSDxCLI: User 'admin' entered the configuration menu. 2024-12-02T19:06:26.232080+00:00 10.215.168.64 2024-12-02T19:06:25.569709+00:00 auth-notice osdx OSDxCLI: User 'admin' added a new cfg line: 'delete'. 2024-12-02T19:06:26.572423+00:00 10.215.168.64 2024-12-02T19:06:25.906957+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-12-02T19:06:26.845994+00:00 10.215.168.64 2024-12-02T19:06:26.182993+00:00 daemon-info osdx systemd[1]: Stopping System Logging Service... 2024-12-02T19:06:35.690325+00:00 10.215.168.64 2024-12-02T19:06:35.186954+00:00 daemon-info osdx systemd[1]: Stopping System Logging Service... 2024-12-02T19:06:35.690325+00:00 10.215.168.64 2024-12-02T19:06:35.187442+00:00 syslog-info osdx rsyslogd: [origin software="rsyslogd" swVersion="8.1901.0" x-pid="12695" x-info="https://www.rsyslog.com"] exiting on signal 15. 2024-12-02T19:06:35.690325+00:00 10.215.168.64 2024-12-02T19:06:35.187902+00:00 daemon-info osdx systemd[1]: rsyslog.service: Succeeded. 2024-12-02T19:06:35.690325+00:00 10.215.168.64 2024-12-02T19:06:35.188372+00:00 daemon-info osdx systemd[1]: Stopped System Logging Service. 2024-12-02T19:06:35.690325+00:00 10.215.168.64 2024-12-02T19:06:35.189822+00:00 daemon-info osdx systemd[1]: Starting System Logging Service... 2024-12-02T19:06:35.690325+00:00 10.215.168.64 2024-12-02T19:06:35.193004+00:00 syslog-info osdx rsyslogd: imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd. [v8.1901.0] 2024-12-02T19:06:35.690325+00:00 10.215.168.64 2024-12-02T19:06:35.193137+00:00 syslog-info osdx rsyslogd: [origin software="rsyslogd" swVersion="8.1901.0" x-pid="12875" x-info="https://www.rsyslog.com"] start 2024-12-02T19:06:35.690325+00:00 10.215.168.64 2024-12-02T19:06:35.193211+00:00 daemon-info osdx systemd[1]: Started System Logging Service. 2024-12-02T19:06:35.691292+00:00 10.215.168.64 2024-12-02T19:06:35.194627+00:00 daemon-notice osdx cfgd[1120]: [25701]Completed change to active configuration 2024-12-02T19:06:35.695706+00:00 10.215.168.64 2024-12-02T19:06:35.198773+00:00 auth-notice osdx OSDxCLI: User 'admin' committed the configuration. 2024-12-02T19:06:35.738452+00:00 10.215.168.64 2024-12-02T19:06:35.241634+00:00 auth-notice osdx OSDxCLI: User 'admin' left the configuration menu. 2024-12-02T19:06:36.034459+00:00 10.215.168.64 2024-12-02T19:06:35.537726+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'. 2024-12-02T19:06:36.187240+00:00 10.215.168.64 2024-12-02T19:06:35.689629+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.com" 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 1Show 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.178 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.178/0.178/0.178/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-12-02T19:06:36.903963+00:00 10.215.168.64 2024-12-02T19:06:36.407098+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'show version'. 2024-12-02T19:06:38.072483+00:00 10.215.168.64 2024-12-02T19:06:37.575704+00:00 user-warning osdx OSDxCLI: Signal 10 received 2024-12-02T19:06:38.101630+00:00 10.215.168.64 2024-12-02T19:06:37.604749+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'set system mode user'. 2024-12-02T19:06:40.645221+00:00 10.215.168.64 2024-12-02T19:06:40.148363+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'system coredump show'. 2024-12-02T19:06:41.487136+00:00 10.215.168.64 2024-12-02T19:06:40.990277+00:00 auth-notice osdx OSDxCLI: User 'admin' entered the configuration menu. 2024-12-02T19:06:41.625477+00:00 10.215.168.64 2024-12-02T19:06:41.128649+00:00 auth-notice osdx OSDxCLI: User 'admin' added a new cfg line: 'delete'. 2024-12-02T19:06:41.797806+00:00 10.215.168.64 2024-12-02T19:06:41.300903+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-12-02T19:06:48.435422+00:00 10.215.168.64 2024-12-02T19:06:47.932313+00:00 daemon-info osdx systemd[1]: Stopping System Logging Service... 2024-12-02T19:06:48.435454+00:00 10.215.168.64 2024-12-02T19:06:47.932607+00:00 syslog-info osdx rsyslogd: [origin software="rsyslogd" swVersion="8.1901.0" x-pid="12997" x-info="https://www.rsyslog.com"] exiting on signal 15. 2024-12-02T19:06:48.435454+00:00 10.215.168.64 2024-12-02T19:06:47.933297+00:00 daemon-info osdx systemd[1]: rsyslog.service: Succeeded. 2024-12-02T19:06:48.435454+00:00 10.215.168.64 2024-12-02T19:06:47.933585+00:00 daemon-info osdx systemd[1]: Stopped System Logging Service. 2024-12-02T19:06:48.435454+00:00 10.215.168.64 2024-12-02T19:06:47.934684+00:00 daemon-info osdx systemd[1]: Starting System Logging Service... 2024-12-02T19:06:48.435454+00:00 10.215.168.64 2024-12-02T19:06:47.945105+00:00 syslog-info osdx rsyslogd: imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd. [v8.1901.0] 2024-12-02T19:06:48.435454+00:00 10.215.168.64 2024-12-02T19:06:47.945195+00:00 syslog-info osdx rsyslogd: [origin software="rsyslogd" swVersion="8.1901.0" x-pid="13150" x-info="https://www.rsyslog.com"] start 2024-12-02T19:06:48.435454+00:00 10.215.168.64 2024-12-02T19:06:47.945262+00:00 daemon-info osdx systemd[1]: Started System Logging Service. 2024-12-02T19:06:48.435454+00:00 10.215.168.64 2024-12-02T19:06:47.947695+00:00 daemon-notice osdx cfgd[1120]: [25701]Completed change to active configuration 2024-12-02T19:06:48.435454+00:00 10.215.168.64 2024-12-02T19:06:47.951161+00:00 auth-notice osdx OSDxCLI: User 'admin' committed the configuration. 2024-12-02T19:06:48.435454+00:00 10.215.168.64 2024-12-02T19:06:47.981944+00:00 auth-notice osdx OSDxCLI: User 'admin' left the configuration menu. 2024-12-02T19:06:48.541210+00:00 10.215.168.64 2024-12-02T19:06:48.170598+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'. 2024-12-02T19:06:48.820743+00:00 10.215.168.64 2024-12-02T19:06:48.449997+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'show host name'.