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-10-09 07:09:12.189079 user-err , ERROR:  `system script SCRIPT_1` validation error
2024-10-09 07:09:12.189114 user-err , ERROR:  system potato: Invalid operational command.
2024-10-09 07:09:12.189341 daemon-err , cfgd[1327]:  [1913]Command output:#012Value validation failed#012
2024-10-09 07:09:16.808954 daemon-err , cfgd[1327]:  [ service dhcp-server ]
2024-10-09 07:09:16.808980 daemon-err , cfgd[1327]:  \"shared-network\" configuration is required
2024-10-09 07:09:16.809008 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:09:16.810826 daemon-err , cfgd[1327]:  [28956]Command output:#012[ service dhcp-server ]#012\"shared-network\" configuration is required#012Commit validation failed#012
2024-10-09 07:09:16.816785 daemon-err , cfgd[1327]:  External python command [cfg.auto_scripts execute_script SCRIPT_1] finished with status 1
2024-10-09 07:09:21.536834 daemon-err , ntpd[29159]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:21.536894 daemon-err , ntpd[29159]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:21.888765 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX18rFJZz/anM+65kJ/Bdu0TfyTr5TRVTvPc=] finished with status 1
2024-10-09 07:09:21.888835 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:09:21.888862 daemon-err , cfgd[1327]:  \"U2FsdGVkX18rFJZz/anM+65kJ/Bdu0TfyTr5TRVTvPc=\" strong-password: score is too weak
2024-10-09 07:09:21.888885 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:09:21.890947 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX18rFJZz/anM+65kJ/Bdu0TfyTr5TRVTvPc=\" strong-password: score is too weak#012Commit validation failed#012
2024-10-09 07:09:27.426057 daemon-err , ntpd[29359]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:27.426079 daemon-err , ntpd[29359]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:27.887745 daemon-err , ntpd[29385]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:27.887768 daemon-err , ntpd[29385]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:28.353648 daemon-err , ntpd[29411]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:28.353677 daemon-err , ntpd[29411]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:28.828150 daemon-err , ntpd[29437]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:28.828179 daemon-err , ntpd[29437]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:29.325819 daemon-err , ntpd[29463]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:29.325861 daemon-err , ntpd[29463]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:29.751787 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/FB7k/1mkQqpqCMCMsEeXJ1MovIjUTNRo=] finished with status 1
2024-10-09 07:09:29.751849 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:09:29.751870 daemon-err , cfgd[1327]:  \"U2FsdGVkX1/FB7k/1mkQqpqCMCMsEeXJ1MovIjUTNRo=\" strong-password: score is too weak
2024-10-09 07:09:29.751894 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:09:29.753744 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/FB7k/1mkQqpqCMCMsEeXJ1MovIjUTNRo=\" strong-password: score is too weak#012Commit validation failed#012
2024-10-09 07:09:30.257716 daemon-err , ntpd[29508]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:30.257738 daemon-err , ntpd[29508]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:30.710709 daemon-err , ntpd[29534]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:30.710729 daemon-err , ntpd[29534]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:31.166853 daemon-err , ntpd[29561]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:31.166875 daemon-err , ntpd[29561]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:31.588123 daemon-err , ntpd[29587]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:31.588144 daemon-err , ntpd[29587]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:32.040492 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/FB7k/1mkQqpqCMCMsEeXJ1MovIjUTNRo=] finished with status 1
2024-10-09 07:09:32.040575 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:09:32.040610 daemon-err , cfgd[1327]:  \"U2FsdGVkX1/FB7k/1mkQqpqCMCMsEeXJ1MovIjUTNRo=\" strong-password: score is too weak
2024-10-09 07:09:32.040640 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:09:32.042594 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/FB7k/1mkQqpqCMCMsEeXJ1MovIjUTNRo=\" strong-password: score is too weak#012Commit validation failed#012
2024-10-09 07:09:32.508038 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/FB7k/1mkQqn/lMDg5l9NDcEwf4I/78MQ=] finished with status 1
2024-10-09 07:09:32.508112 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:09:32.508143 daemon-err , cfgd[1327]:  \"U2FsdGVkX1/FB7k/1mkQqn/lMDg5l9NDcEwf4I/78MQ=\" strong-password: score is too weak
2024-10-09 07:09:32.508172 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:09:32.510305 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/FB7k/1mkQqn/lMDg5l9NDcEwf4I/78MQ=\" strong-password: score is too weak#012Commit validation failed#012
2024-10-09 07:09:33.016147 daemon-err , ntpd[29647]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:33.016168 daemon-err , ntpd[29647]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:33.524088 daemon-err , ntpd[29673]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:33.524111 daemon-err , ntpd[29673]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:34.000177 daemon-err , ntpd[29699]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:34.000207 daemon-err , ntpd[29699]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:34.425860 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/FB7k/1mkQqpqCMCMsEeXJ1MovIjUTNRo=] finished with status 1
2024-10-09 07:09:34.425927 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:09:34.425959 daemon-err , cfgd[1327]:  \"U2FsdGVkX1/FB7k/1mkQqpqCMCMsEeXJ1MovIjUTNRo=\" strong-password: score is too weak
2024-10-09 07:09:34.425989 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:09:34.427457 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/FB7k/1mkQqpqCMCMsEeXJ1MovIjUTNRo=\" strong-password: score is too weak#012Commit validation failed#012
2024-10-09 07:09:34.855172 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/FB7k/1mkQqn/lMDg5l9NDcEwf4I/78MQ=] finished with status 1
2024-10-09 07:09:34.855230 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:09:34.855254 daemon-err , cfgd[1327]:  \"U2FsdGVkX1/FB7k/1mkQqn/lMDg5l9NDcEwf4I/78MQ=\" strong-password: score is too weak
2024-10-09 07:09:34.855276 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:09:34.857049 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/FB7k/1mkQqn/lMDg5l9NDcEwf4I/78MQ=\" strong-password: score is too weak#012Commit validation failed#012
2024-10-09 07:09:35.313824 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/FB7k/1mkQqqofI8CZ7lPTQ4SGfOX08hM=] finished with status 1
2024-10-09 07:09:35.313888 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:09:35.313912 daemon-err , cfgd[1327]:  \"U2FsdGVkX1/FB7k/1mkQqqofI8CZ7lPTQ4SGfOX08hM=\" strong-password: score is too weak
2024-10-09 07:09:35.313942 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:09:35.316049 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/FB7k/1mkQqqofI8CZ7lPTQ4SGfOX08hM=\" strong-password: score is too weak#012Commit validation failed#012
2024-10-09 07:09:35.839651 daemon-err , ntpd[29774]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:35.839674 daemon-err , ntpd[29774]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:36.310570 daemon-err , ntpd[29800]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:36.310592 daemon-err , ntpd[29800]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:36.772087 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/FB7k/1mkQqpqCMCMsEeXJ1MovIjUTNRo=] finished with status 1
2024-10-09 07:09:36.772149 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:09:36.772172 daemon-err , cfgd[1327]:  \"U2FsdGVkX1/FB7k/1mkQqpqCMCMsEeXJ1MovIjUTNRo=\" strong-password: score is too weak
2024-10-09 07:09:36.772194 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:09:36.774316 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/FB7k/1mkQqpqCMCMsEeXJ1MovIjUTNRo=\" strong-password: score is too weak#012Commit validation failed#012
2024-10-09 07:09:37.195317 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/FB7k/1mkQqn/lMDg5l9NDcEwf4I/78MQ=] finished with status 1
2024-10-09 07:09:37.195374 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:09:37.195398 daemon-err , cfgd[1327]:  \"U2FsdGVkX1/FB7k/1mkQqn/lMDg5l9NDcEwf4I/78MQ=\" strong-password: score is too weak
2024-10-09 07:09:37.195420 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:09:37.196967 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/FB7k/1mkQqn/lMDg5l9NDcEwf4I/78MQ=\" strong-password: score is too weak#012Commit validation failed#012
2024-10-09 07:09:37.652680 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/FB7k/1mkQqqofI8CZ7lPTQ4SGfOX08hM=] finished with status 1
2024-10-09 07:09:37.652746 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:09:37.652771 daemon-err , cfgd[1327]:  \"U2FsdGVkX1/FB7k/1mkQqqofI8CZ7lPTQ4SGfOX08hM=\" strong-password: score is too weak
2024-10-09 07:09:37.652792 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:09:37.655272 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/FB7k/1mkQqqofI8CZ7lPTQ4SGfOX08hM=\" strong-password: score is too weak#012Commit validation failed#012
2024-10-09 07:09:38.077583 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/FB7k/1mkQqrpthF164tIFT6UnGLnEHaE=] finished with status 1
2024-10-09 07:09:38.077652 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:09:38.077680 daemon-err , cfgd[1327]:  \"U2FsdGVkX1/FB7k/1mkQqrpthF164tIFT6UnGLnEHaE=\" strong-password: score is too weak
2024-10-09 07:09:38.077710 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:09:38.080010 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/FB7k/1mkQqrpthF164tIFT6UnGLnEHaE=\" strong-password: score is too weak#012Commit validation failed#012
2024-10-09 07:09:43.487718 daemon-err , ntpd[30065]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:43.487738 daemon-err , ntpd[30065]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:48.923203 daemon-err , ntpd[30290]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:48.923227 daemon-err , ntpd[30290]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:53.764104 daemon-err , cfgd[1327]:  [1913]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012
2024-10-09 07:09:54.155753 daemon-err , cfgd[1327]:  [1913]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012
2024-10-09 07:09:55.127477 daemon-err , ntpd[30549]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:55.127500 daemon-err , ntpd[30549]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:55.551581 daemon-err , ntpd[30575]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:55.551604 daemon-err , ntpd[30575]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:09:56.022990 daemon-err , ntpd[30601]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:09:56.023020 daemon-err , ntpd[30601]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:10:03.143516 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1+A+nZU7tjqasN4ulmxNMU3cdLZhVPYEnw=] finished with status 1
2024-10-09 07:10:03.143574 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:10:03.143599 daemon-err , cfgd[1327]:  \"U2FsdGVkX1+A+nZU7tjqasN4ulmxNMU3cdLZhVPYEnw=\" strong-password: score is too weak
2024-10-09 07:10:03.143623 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:10:03.145687 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1+A+nZU7tjqasN4ulmxNMU3cdLZhVPYEnw=\" strong-password: score is too weak#012Commit validation failed#012
2024-10-09 07:10:03.600149 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1+UyWjn9uz2TnPgXJFjpmheUpDVpbDQGO8=] finished with status 1
2024-10-09 07:10:03.600327 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:10:03.600393 daemon-err , cfgd[1327]:  \"U2FsdGVkX1+UyWjn9uz2TnPgXJFjpmheUpDVpbDQGO8=\" strong-password: score is too weak
2024-10-09 07:10:03.600462 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:10:03.603000 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1+UyWjn9uz2TnPgXJFjpmheUpDVpbDQGO8=\" strong-password: score is too weak#012Commit validation failed#012
2024-10-09 07:10:04.096913 daemon-err , ntpd[30959]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:10:04.096946 daemon-err , ntpd[30959]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:10:08.643856 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/RkzrOUShAmvYF+kL6PA3YO3APqKRojbw=] finished with status 2
2024-10-09 07:10:08.643908 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:10:08.643933 daemon-err , cfgd[1327]:  \"U2FsdGVkX1/RkzrOUShAmvYF+kL6PA3YO3APqKRojbw=\" strong-password: not long enough
2024-10-09 07:10:08.643956 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:10:08.645826 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/RkzrOUShAmvYF+kL6PA3YO3APqKRojbw=\" strong-password: not long enough#012Commit validation failed#012
2024-10-09 07:10:09.199729 daemon-err , ntpd[31175]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:10:09.199760 daemon-err , ntpd[31175]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:10:13.413946 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX19f9Cg9udyl9HOVELVQrzNZLD/bWzT7Abc=] finished with status 3
2024-10-09 07:10:13.414001 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:10:13.414035 daemon-err , cfgd[1327]:  \"U2FsdGVkX19f9Cg9udyl9HOVELVQrzNZLD/bWzT7Abc=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters
2024-10-09 07:10:13.414057 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:10:13.415620 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX19f9Cg9udyl9HOVELVQrzNZLD/bWzT7Abc=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters#012Commit validation failed#012
2024-10-09 07:10:13.825358 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/u1KNdREiRm/WFnX3uMvD4a+c6ktjTy0w=] finished with status 3
2024-10-09 07:10:13.825415 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:10:13.825435 daemon-err , cfgd[1327]:  \"U2FsdGVkX1/u1KNdREiRm/WFnX3uMvD4a+c6ktjTy0w=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters
2024-10-09 07:10:13.825460 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:10:13.827138 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/u1KNdREiRm/WFnX3uMvD4a+c6ktjTy0w=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters#012Commit validation failed#012
2024-10-09 07:10:14.273556 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX19HCASjkmPr8vpOTkeRq/DrPzV0+r1jnQM=] finished with status 3
2024-10-09 07:10:14.273611 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:10:14.273632 daemon-err , cfgd[1327]:  \"U2FsdGVkX19HCASjkmPr8vpOTkeRq/DrPzV0+r1jnQM=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters
2024-10-09 07:10:14.273656 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:10:14.275359 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX19HCASjkmPr8vpOTkeRq/DrPzV0+r1jnQM=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters#012Commit validation failed#012
2024-10-09 07:10:14.701377 daemon-err , cfgd[1327]:  External python command [cfg.strong_password check_password system ntp authentication-key 1 encrypted-key U2FsdGVkX1/pcbSgvqpI+D5JfVEsrhUYojxb4fQUBW4=] finished with status 3
2024-10-09 07:10:14.701427 daemon-err , cfgd[1327]:  [ system ntp authentication-key 1 encrypted-key ]
2024-10-09 07:10:14.701450 daemon-err , cfgd[1327]:  \"U2FsdGVkX1/pcbSgvqpI+D5JfVEsrhUYojxb4fQUBW4=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters
2024-10-09 07:10:14.701476 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:10:14.703002 daemon-err , cfgd[1327]:  [1913]Command output:#012[ system ntp authentication-key 1 encrypted-key ]#012\"U2FsdGVkX1/pcbSgvqpI+D5JfVEsrhUYojxb4fQUBW4=\" strong-password: doesn't have uppercase, lowercase, numbers and special characters#012Commit validation failed#012
2024-10-09 07:10:15.227872 daemon-err , ntpd[31420]:  AUTH: authreadkeys: reading /etc/ntp.keys
2024-10-09 07:10:15.227898 daemon-err , ntpd[31420]:  AUTH: authreadkeys: added 1 keys
2024-10-09 07:10:15.590907 daemon-err , cfgd[1327]:  [1913]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012
2024-10-09 07:10:15.970744 daemon-err , cfgd[1327]:  [1913]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012
2024-10-09 07:10:16.326284 daemon-err , cfgd[1327]:  [1913]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012
2024-10-09 07:10:16.648726 daemon-err , cfgd[1327]:  [1913]Command output:#012Login password too weak, too short and/or has not lowercase, uppercase and special characters#012Value validation failed#012
2024-10-09 07:10:30.996464 daemon-err , cfgd[1327]:  [ interfaces ethernet eth0 alarm down ]
2024-10-09 07:10:30.996518 daemon-err , cfgd[1327]:  \"system alarm ALARM_TO_TEST\" does not exist
2024-10-09 07:10:30.996542 daemon-err , cfgd[1327]:  Commit validation failed
2024-10-09 07:10:30.998606 daemon-err , cfgd[1327]:  [31717]Command output:#012[ interfaces ethernet eth0 alarm down ]#012\"system alarm ALARM_TO_TEST\" does not exist#012Commit validation failed#012
2024-10-09 07:10:37.049287 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:38.727509 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:38.754231 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:38.829127 user-err , OSDxCLI:  TACACS+ authorization failed for [testadmin] (status=16)
2024-10-09 07:10:38.879446 user-err , OSDxCLI:  TACACS+ authorization failed for [testadmin] (status=16)
2024-10-09 07:10:38.931623 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:38.966622 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:40.508791 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:41.858643 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:42.262494 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:42.311884 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:42.366734 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:42.452432 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:45.071669 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:46.649342 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:46.675294 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:46.745737 user-err , OSDxCLI:  TACACS+ authorization failed for [testmonitor] (status=16)
2024-10-09 07:10:46.797408 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:46.797729 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:48.455755 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:49.883633 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:50.365359 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:50.418548 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:50.475728 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:50.520549 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:54.056728 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:54.137164 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:54.604858 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:55.672720 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:56.100453 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:56.162704 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:56.288991 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:10:56.400456 user-err , OSDxCLI:  Unable to open config file /etc/aaa/tacacs/acct-tacgroup1: No such file or directory
2024-10-09 07:10:56.400509 user-err , OSDxCLI:  libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory
2024-10-09 07:11:03.359846 daemon-info , systemd[1]:  Stopping System Logging Service...
2024-10-09 07:11:03.360541 syslog-info , rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="31913" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-10-09 07:11:03.361153 daemon-info , systemd[1]:  rsyslog.service: Succeeded.
2024-10-09 07:11:03.361303 daemon-info , systemd[1]:  Stopped System Logging Service.
2024-10-09 07:11:03.362026 daemon-info , systemd[1]:  Starting System Logging Service...
2024-10-09 07:11:03.364177 syslog-info , rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.1901.0]
2024-10-09 07:11:03.364222 daemon-info , systemd[1]:  Started System Logging Service.
2024-10-09 07:11:03.364306 syslog-info , rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="1546" x-info="https://www.rsyslog.com"] start
2024-10-09 07:11:03.365468 daemon-notice , cfgd[1327]:  [628]Completed change to active configuration
2024-10-09 07:11:03.367705 auth-notice , OSDxCLI:  User 'admin' committed the configuration.
2024-10-09 07:11:03.382999 auth-notice , OSDxCLI:  User 'admin' left the configuration menu.
2024-10-09 07:11:03.503381 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-10-09 07:11:08.412707 daemon-info , systemd[1]:  Stopping System Logging Service...
2024-10-09 07:11:08.413390 daemon-info , systemd[1]:  rsyslog.service: Succeeded.
2024-10-09 07:11:08.413646 daemon-info , systemd[1]:  Stopped System Logging Service.
2024-10-09 07:11:08.414251 daemon-info , systemd[1]:  Starting System Logging Service...
2024-10-09 07:11:08.416010 daemon-info , systemd[1]:  Started System Logging Service.
2024-10-09 07:11:08.909537 daemon-info , systemd[1]:  Created slice system-dhcpd.slice.
2024-10-09 07:11:08.910085 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-10-09 07:11:14.634261 daemon-info , systemd[1]:  Stopping System Logging Service...
2024-10-09 07:11:14.634984 daemon-info , systemd[1]:  rsyslog.service: Succeeded.
2024-10-09 07:11:14.635172 daemon-info , systemd[1]:  Stopped System Logging Service.
2024-10-09 07:11:14.635805 daemon-info , systemd[1]:  Starting System Logging Service...
2024-10-09 07:11:14.637490 daemon-info , systemd[1]:  Started System Logging Service.
2024-10-09 07:11:15.192306 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.220 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.220/0.220/0.220/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-10-09T07:11:20.809882+00:00 10.215.168.64  2024-10-09T07:11:19.818564+00:00 daemon-info osdx systemd[1]:  Stopping System Logging Service...
2024-10-09T07:11:20.809882+00:00 10.215.168.64  2024-10-09T07:11:19.818697+00:00 syslog-info osdx rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="2302" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-10-09T07:11:20.809882+00:00 10.215.168.64  2024-10-09T07:11:19.819163+00:00 daemon-info osdx systemd[1]:  rsyslog.service: Succeeded.
2024-10-09T07:11:20.809882+00:00 10.215.168.64  2024-10-09T07:11:19.819375+00:00 daemon-info osdx systemd[1]:  Stopped System Logging Service.
2024-10-09T07:11:20.809882+00:00 10.215.168.64  2024-10-09T07:11:19.820084+00:00 daemon-info osdx systemd[1]:  Starting System Logging Service...
2024-10-09T07:11:20.809882+00:00 10.215.168.64  2024-10-09T07:11:19.821987+00:00 syslog-info osdx rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.1901.0]
2024-10-09T07:11:20.809882+00:00 10.215.168.64  2024-10-09T07:11:19.822030+00:00 daemon-info osdx systemd[1]:  Started System Logging Service.
2024-10-09T07:11:20.809882+00:00 10.215.168.64  2024-10-09T07:11:19.822065+00:00 syslog-info osdx rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="2451" x-info="https://www.rsyslog.com"] start
2024-10-09T07:11:20.809882+00:00 10.215.168.64  2024-10-09T07:11:19.822982+00:00 daemon-notice osdx cfgd[1327]:  [628]Completed change to active configuration
2024-10-09T07:11:20.811738+00:00 10.215.168.64  2024-10-09T07:11:19.825073+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2024-10-09T07:11:20.831646+00:00 10.215.168.64  2024-10-09T07:11:19.845048+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2024-10-09T07:11:20.964485+00:00 10.215.168.64  2024-10-09T07:11:19.977778+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'ping 10.215.168.1      count 1 size 56 timeout 1'.
2024-10-09T07:11:21.017377+00:00 10.215.168.64  2024-10-09T07:11:20.030723+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.174 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.174/0.174/0.174/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-10-09T07:11:21.388397+00:00 10.215.168.64  2024-10-09T07:11:20.401725+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show version'.
2024-10-09T07:11:21.551828+00:00 10.215.168.64  2024-10-09T07:11:20.565165+00:00 user-warning osdx OSDxCLI:  Signal 10 received
2024-10-09T07:11:21.568706+00:00 10.215.168.64  2024-10-09T07:11:20.581882+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'set system mode user'.
2024-10-09T07:11:22.419152+00:00 10.215.168.64  2024-10-09T07:11:21.432378+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'system coredump show'.
2024-10-09T07:11:22.836795+00:00 10.215.168.64  2024-10-09T07:11:21.850004+00:00 auth-notice osdx OSDxCLI:  User 'admin' entered the configuration menu.
2024-10-09T07:11:22.890708+00:00 10.215.168.64  2024-10-09T07:11:21.903889+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'delete'.
2024-10-09T07:11:22.993836+00:00 10.215.168.64  2024-10-09T07:11:22.007113+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-10-09T07:11:26.373861+00:00 10.215.168.64  2024-10-09T07:11:25.994109+00:00 daemon-info osdx systemd[1]:  Stopping System Logging Service...
2024-10-09T07:11:26.373861+00:00 10.215.168.64  2024-10-09T07:11:25.994539+00:00 syslog-info osdx rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="2572" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-10-09T07:11:26.373861+00:00 10.215.168.64  2024-10-09T07:11:25.994911+00:00 daemon-info osdx systemd[1]:  rsyslog.service: Succeeded.
2024-10-09T07:11:26.373861+00:00 10.215.168.64  2024-10-09T07:11:25.995130+00:00 daemon-info osdx systemd[1]:  Stopped System Logging Service.
2024-10-09T07:11:26.373861+00:00 10.215.168.64  2024-10-09T07:11:25.995922+00:00 daemon-info osdx systemd[1]:  Starting System Logging Service...
2024-10-09T07:11:26.373861+00:00 10.215.168.64  2024-10-09T07:11:25.997637+00:00 daemon-info osdx systemd[1]:  Started System Logging Service.
2024-10-09T07:11:26.373861+00:00 10.215.168.64  2024-10-09T07:11:25.998932+00:00 daemon-notice osdx cfgd[1327]:  [628]Completed change to active configuration
2024-10-09T07:11:26.373861+00:00 10.215.168.64  2024-10-09T07:11:25.999064+00:00 syslog-info osdx rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.1901.0]
2024-10-09T07:11:26.373861+00:00 10.215.168.64  2024-10-09T07:11:25.999090+00:00 syslog-info osdx rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="2748" x-info="https://www.rsyslog.com"] start
2024-10-09T07:11:26.376124+00:00 10.215.168.64  2024-10-09T07:11:26.000885+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2024-10-09T07:11:26.416954+00:00 10.215.168.64  2024-10-09T07:11:26.042345+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2024-10-09T07:11:26.553876+00:00 10.215.168.64  2024-10-09T07:11:26.179162+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-10-09T07:11:26.609270+00:00 10.215.168.64  2024-10-09T07:11:26.234498+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.221 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.221/0.221/0.221/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-10-09T07:11:27.106182+00:00 10.215.168.64  2024-10-09T07:11:26.731473+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show version'.
2024-10-09T07:11:27.283625+00:00 10.215.168.64  2024-10-09T07:11:26.909017+00:00 user-warning osdx OSDxCLI:  Signal 10 received
2024-10-09T07:11:27.292626+00:00 10.215.168.64  2024-10-09T07:11:26.917899+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'set system mode user'.
2024-10-09T07:11:28.162805+00:00 10.215.168.64  2024-10-09T07:11:27.788139+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'system coredump show'.
2024-10-09T07:11:28.573477+00:00 10.215.168.64  2024-10-09T07:11:28.198701+00:00 auth-notice osdx OSDxCLI:  User 'admin' entered the configuration menu.
2024-10-09T07:11:28.624627+00:00 10.215.168.64  2024-10-09T07:11:28.249949+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'delete'.
2024-10-09T07:11:28.732173+00:00 10.215.168.64  2024-10-09T07:11:28.357489+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-10-09T07:11:31.976793+00:00 10.215.168.64  2024-10-09T07:11:31.748312+00:00 daemon-info osdx systemd[1]:  Stopping System Logging Service...
2024-10-09T07:11:31.976793+00:00 10.215.168.64  2024-10-09T07:11:31.748663+00:00 syslog-info osdx rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="2869" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-10-09T07:11:31.976793+00:00 10.215.168.64  2024-10-09T07:11:31.749250+00:00 daemon-info osdx systemd[1]:  rsyslog.service: Succeeded.
2024-10-09T07:11:31.976793+00:00 10.215.168.64  2024-10-09T07:11:31.749301+00:00 daemon-info osdx systemd[1]:  Stopped System Logging Service.
2024-10-09T07:11:31.976793+00:00 10.215.168.64  2024-10-09T07:11:31.749920+00:00 daemon-info osdx systemd[1]:  Starting System Logging Service...
2024-10-09T07:11:31.976793+00:00 10.215.168.64  2024-10-09T07:11:31.751798+00:00 syslog-info osdx rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.1901.0]
2024-10-09T07:11:31.976793+00:00 10.215.168.64  2024-10-09T07:11:31.751834+00:00 syslog-info osdx rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="3046" x-info="https://www.rsyslog.com"] start
2024-10-09T07:11:31.976793+00:00 10.215.168.64  2024-10-09T07:11:31.751862+00:00 daemon-info osdx systemd[1]:  Started System Logging Service.
2024-10-09T07:11:31.976793+00:00 10.215.168.64  2024-10-09T07:11:31.752705+00:00 daemon-notice osdx cfgd[1327]:  [628]Completed change to active configuration
2024-10-09T07:11:31.980498+00:00 10.215.168.64  2024-10-09T07:11:31.756418+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2024-10-09T07:11:31.995289+00:00 10.215.168.64  2024-10-09T07:11:31.771218+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2024-10-09T07:11:32.127098+00:00 10.215.168.64  2024-10-09T07:11:31.902910+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'ping 10.215.168.1      count 1 size 56 timeout 1'.
2024-10-09T07:11:32.178574+00:00 10.215.168.64  2024-10-09T07:11:31.954407+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 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.196 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.196/0.196/0.196/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-10-09T07:11:32.551742+00:00 10.215.168.64  2024-10-09T07:11:32.327478+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show version'.
2024-10-09T07:11:32.730970+00:00 10.215.168.64  2024-10-09T07:11:32.506669+00:00 user-warning osdx OSDxCLI:  Signal 10 received
2024-10-09T07:11:32.743746+00:00 10.215.168.64  2024-10-09T07:11:32.519597+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'set system mode user'.
2024-10-09T07:11:33.471527+00:00 10.215.168.64  2024-10-09T07:11:33.247286+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'system coredump show'.
2024-10-09T07:11:33.830687+00:00 10.215.168.64  2024-10-09T07:11:33.606451+00:00 auth-notice osdx OSDxCLI:  User 'admin' entered the configuration menu.
2024-10-09T07:11:33.890571+00:00 10.215.168.64  2024-10-09T07:11:33.666257+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'delete'.
2024-10-09T07:11:33.991425+00:00 10.215.168.64  2024-10-09T07:11:33.767179+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-10-09T07:11:37.231552+00:00 10.215.168.64  2024-10-09T07:11:36.829531+00:00 daemon-info osdx systemd[1]:  Stopping System Logging Service...
2024-10-09T07:11:37.231552+00:00 10.215.168.64  2024-10-09T07:11:36.829681+00:00 syslog-info osdx rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="3167" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-10-09T07:11:37.231572+00:00 10.215.168.64  2024-10-09T07:11:36.830099+00:00 daemon-info osdx systemd[1]:  rsyslog.service: Succeeded.
2024-10-09T07:11:37.231572+00:00 10.215.168.64  2024-10-09T07:11:36.830304+00:00 daemon-info osdx systemd[1]:  Stopped System Logging Service.
2024-10-09T07:11:37.231572+00:00 10.215.168.64  2024-10-09T07:11:36.830978+00:00 daemon-info osdx systemd[1]:  Starting System Logging Service...
2024-10-09T07:11:37.231572+00:00 10.215.168.64  2024-10-09T07:11:36.836564+00:00 syslog-info osdx rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.1901.0]
2024-10-09T07:11:37.231572+00:00 10.215.168.64  2024-10-09T07:11:36.836595+00:00 syslog-info osdx rsyslogd:   [origin software="rsyslogd" swVersion="8.1901.0" x-pid="3320" x-info="https://www.rsyslog.com"] start
2024-10-09T07:11:37.231572+00:00 10.215.168.64  2024-10-09T07:11:36.836626+00:00 daemon-info osdx systemd[1]:  Started System Logging Service.
2024-10-09T07:11:37.231572+00:00 10.215.168.64  2024-10-09T07:11:36.837569+00:00 daemon-notice osdx cfgd[1327]:  [628]Completed change to active configuration
2024-10-09T07:11:37.231572+00:00 10.215.168.64  2024-10-09T07:11:36.839545+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2024-10-09T07:11:37.231579+00:00 10.215.168.64  2024-10-09T07:11:36.864891+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2024-10-09T07:11:37.355413+00:00 10.215.168.64  2024-10-09T07:11:37.027860+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'ping 10.215.168.1      count 1 size 56 timeout 1'.
2024-10-09T07:11:37.513271+00:00 10.215.168.64  2024-10-09T07:11:37.185576+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show host name'.