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 login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
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-30 13:16:26.333051 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:16:30.301174 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:16:32.426838 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:16:34.114042 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:16:37.424968 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:16:39.464332 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:16:39.533238 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:16:43.511577 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:16:43.591433 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:16:45.650258 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:16:47.168542 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:16:49.496069 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:16:51.450512 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:16:51.575899 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:16:55.388791 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:16:55.456575 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:16:59.260986 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:17:01.354087 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:17:02.886121 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:17:06.368959 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:17:27.242008 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:17:34.255509 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:17:35.719421 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:17:39.458314 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:19:42.712312 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:19:49.602283 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:19:51.108979 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:19:53.493500 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:20:20.628588 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:20:27.584839 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:20:29.282153 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:20:32.769513 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:20:45.325277 authpriv-err , login[349074]:  pam_mail(login:session): pam_putenv: delete non-existent entry; MAIL
2024-10-30 13:20:53.224298 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:20:59.975495 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:21:01.546972 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:21:05.656592 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:22:13.958928 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:22:20.770072 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:22:22.269185 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:22:25.517444 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:22:44.957830 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:22:51.727368 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:22:53.191957 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:22:55.514555 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:23:03.455704 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:23:11.115507 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:23:12.766659 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:23:16.477823 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:23:21.751702 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:23:28.751221 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:23:30.216866 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:23:33.495485 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:23:38.720981 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:23:45.429952 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:23:46.911158 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:23:49.402650 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:23:57.272059 user-err , OSDxCLI:   Session idle timeout reached. Closing session
2024-10-30 13:24:00.014651 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:24:07.738637 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:24:09.426194 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:24:12.487545 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:24:19.155186 user-err , OSDxCLI:   Session idle timeout reached. Closing session
2024-10-30 13:24:21.581322 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:24:28.343683 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:24:29.940987 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:24:33.441725 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:24:40.030428 user-err , OSDxCLI:   Session idle timeout reached. Closing session
2024-10-30 13:24:42.511247 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:24:49.260086 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:24:50.793723 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:24:53.419758 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:06.467623 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:14.080268 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:15.529653 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:19.221028 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:20.696906 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:22.174810 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:28.521601 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:29.766516 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:31.202956 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:36.866100 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:38.278620 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:39.755901 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:46.770606 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:49.818818 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:51.411793 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:55.668577 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:25:59.643163 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:26:00.352221 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:26:02.981240 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:26:04.557085 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:26:07.391816 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:26:08.500771 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:26:12.816850 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:26:14.439593 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:26:21.266822 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:04.622723 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:06.353755 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:07.301016 user-err , ERROR:  Dissociating VRF from service: cnm
2024-10-30 13:27:07.455082 daemon-err , staticd[1606]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan3 in VRF 281
2024-10-30 13:27:07.455127 daemon-err , staticd[1606]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan3 in VRF 281
2024-10-30 13:27:07.571021 daemon-err , staticd[1606]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF tenant2 in VRF 280
2024-10-30 13:27:07.571075 daemon-err , staticd[1606]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF tenant2 in VRF 280
2024-10-30 13:27:07.674900 daemon-err , staticd[1606]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan2 in VRF 279
2024-10-30 13:27:07.674963 daemon-err , staticd[1606]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan2 in VRF 279
2024-10-30 13:27:07.742860 daemon-err , staticd[1606]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan1 in VRF 278
2024-10-30 13:27:07.742912 daemon-err , staticd[1606]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan1 in VRF 278
2024-10-30 13:27:07.842997 daemon-err , staticd[1606]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF tenant1 in VRF 277
2024-10-30 13:27:07.843058 daemon-err , staticd[1606]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF tenant1 in VRF 277
2024-10-30 13:27:12.401236 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:13.994574 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:15.447999 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:19.346577 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:20.976031 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:22.667101 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:25.585608 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:32.357440 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:34.012233 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:37.288880 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:38.944617 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:40.673346 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:44.723064 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:47.566864 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:49.161000 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:52.653489 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:54.354900 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:55.850032 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:27:56.097438 user-err , ERROR:  Dissociating VRF from service: cnm
2024-10-30 13:27:56.191783 daemon-err , staticd[1606]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 288
2024-10-30 13:27:56.191843 daemon-err , staticd[1606]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 288
2024-10-30 13:27:59.336736 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:28:01.078860 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:28:03.265714 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:28:04.901287 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:28:10.516873 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:28:13.561423 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:28:15.054109 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:28:18.499472 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:28:24.002307 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:28:25.574246 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:28:29.055538 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:28:33.556729 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:28:35.105163 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:28:38.990992 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:28:42.404326 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:28:44.085288 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:28:47.279747 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:29:24.032473 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:29:25.513646 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:29:29.362103 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:29:38.366981 daemon-err , cfgd[1636]:  External python command [op.pki scep info CSR] finished with status 1
2024-10-30 13:29:58.434075 daemon-err , cfgd[1636]:  External python command [op.pki scep info CSR] finished with status 1
2024-10-30 13:30:04.037810 user-err , scep_controller:  Failed to get CA certificate for CSR 'CSR'
2024-10-30 13:30:24.912626 daemon-err , modulelauncher[360015]:  osdx.utils.xos cmd error: swanctl -q
2024-10-30 13:30:24.912682 daemon-err , modulelauncher[360015]:  Command 'swanctl -q' returned non-zero exit status 22.
2024-10-30 13:30:24.988321 daemon-err , cfgd[1636]:  External python command [op.pki scep info CSR] finished with status 1
2024-10-30 13:30:47.029579 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:30:48.715016 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:30:52.795447 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:30:53.352138 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:30:55.399088 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:30:55.641749 user-err , OSDxCLI:  Unable to open config file /etc/aaa/tacacs/acct-tacgroup1: No such file or directory
2024-10-30 13:30:59.918451 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:02.073721 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:02.165467 user-err , OSDxCLI:  TACACS+ authorization failed for [testadmin] (status=16)
2024-10-30 13:31:02.236623 user-err , OSDxCLI:  TACACS+ authorization failed for [testadmin] (status=16)
2024-10-30 13:31:02.336082 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:04.160953 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:06.203497 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:09.867068 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:11.947394 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:11.997001 user-err , OSDxCLI:  TACACS+ authorization failed for [testmonitor] (status=16)
2024-10-30 13:31:13.709598 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:15.699575 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:18.476338 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:19.199116 daemon-err , cfgd[1636]:  [ interfaces ethernet eth0 alarm down ]
2024-10-30 13:31:19.199164 daemon-err , cfgd[1636]:  \"system alarm ALARM_TO_TEST\" does not exist
2024-10-30 13:31:19.199185 daemon-err , cfgd[1636]:  Commit validation failed
2024-10-30 13:31:19.200632 daemon-err , cfgd[1636]:  [361177]Command output: [ interfaces ethernet eth0 alarm down ] \"system alarm ALARM_TO_TEST\" does not exist Commit validation failed
2024-10-30 13:31:20.588814 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:22.075045 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:25.277009 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:28.895035 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:30.448036 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:33.321437 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:34.482223 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:37.313792 user-err , ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30 13:31:37.382175 daemon-info , systemd[1]:  Stopping rsyslog.service - System Logging Service...
2024-10-30 13:31:37.382303 syslog-info , rsyslogd:  [origin software="rsyslogd" swVersion="8.2302.0" x-pid="361908" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-10-30 13:31:37.382758 daemon-info , systemd[1]:  rsyslog.service: Deactivated successfully.
2024-10-30 13:31:37.382849 daemon-info , systemd[1]:  Stopped rsyslog.service - System Logging Service.
2024-10-30 13:31:37.414248 daemon-info , systemd[1]:  Starting rsyslog.service - System Logging Service...
2024-10-30 13:31:37.415958 syslog-info , rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.2302.0]
2024-10-30 13:31:37.415992 syslog-info , rsyslogd:  [origin software="rsyslogd" swVersion="8.2302.0" x-pid="362176" x-info="https://www.rsyslog.com"] start
2024-10-30 13:31:37.416018 daemon-info , systemd[1]:  Started rsyslog.service - System Logging Service.
2024-10-30 13:31:37.417037 daemon-notice , cfgd[1636]:  [361782]Completed change to active configuration
2024-10-30 13:31:37.418735 auth-notice , OSDxCLI:  User 'admin' committed the configuration.
2024-10-30 13:31:37.434141 auth-notice , OSDxCLI:  User 'admin' left the configuration menu.
2024-10-30 13:31:37.557829 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 login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system syslog file systemd_msg filter def app systemd
set system syslog file systemd_msg filter def level info

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
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system syslog file systemd_msg filter def app systemd
set system syslog file systemd_msg filter def level info

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

systemd\[1\]:\s+Started.*"DHCP Server Service instance main"\.
Show output
2024-10-30 13:31:43.593369 daemon-info , systemd[1]:  Stopping rsyslog.service - System Logging Service...
2024-10-30 13:31:43.594056 daemon-info , systemd[1]:  rsyslog.service: Deactivated successfully.
2024-10-30 13:31:43.594090 daemon-info , systemd[1]:  Stopped rsyslog.service - System Logging Service.
2024-10-30 13:31:43.615551 daemon-info , systemd[1]:  Starting rsyslog.service - System Logging Service...
2024-10-30 13:31:43.618330 daemon-info , systemd[1]:  Started rsyslog.service - System Logging Service.
2024-10-30 13:31:44.279518 daemon-info , systemd[1]:  Started dhcpd@main.service - "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 login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system syslog file systemd_msg archive files 10
set system syslog file systemd_msg archive size 100
set system syslog file systemd_msg filter def app systemd
set system syslog file systemd_msg filter def level info

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
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system syslog file systemd_msg archive files 10
set system syslog file systemd_msg archive size 100
set system syslog file systemd_msg filter def app systemd
set system syslog file systemd_msg filter def level info

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

Started.*"DHCP Server Service instance main"\.
Show output
2024-10-30 13:31:50.934527 daemon-info , systemd[1]:  Stopping rsyslog.service - System Logging Service...
2024-10-30 13:31:50.935336 daemon-info , systemd[1]:  rsyslog.service: Deactivated successfully.
2024-10-30 13:31:50.935457 daemon-info , systemd[1]:  Stopped rsyslog.service - System Logging Service.
2024-10-30 13:31:50.957659 daemon-info , systemd[1]:  Starting rsyslog.service - System Logging Service...
2024-10-30 13:31:50.959530 daemon-info , systemd[1]:  Started rsyslog.service - System Logging Service.
2024-10-30 13:31:51.761692 daemon-info , systemd[1]:  Started dhcpd@main.service - "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 interfaces ethernet eth0 address 10.215.168.64/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system syslog host 10.215.168.1 filter def level info
set system syslog host 10.215.168.1 port 514
set system syslog host 10.215.168.1 protocol udp

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.162 ms

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

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

Show output
osdx

Note

Check the server /var/log/10.215.168.64/.log file and read the executed a new command: 'show host name' log message:

Show output
2024-10-30T13:31:57.645560+00:00 10.215.168.64  2024-10-30T13:31:56.697816+00:00 daemon-info osdx systemd[1]:  Stopping rsyslog.service - System Logging Service...
2024-10-30T13:31:57.645560+00:00 10.215.168.64  2024-10-30T13:31:56.697979+00:00 syslog-info osdx rsyslogd:  [origin software="rsyslogd" swVersion="8.2302.0" x-pid="362783" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-10-30T13:31:57.645560+00:00 10.215.168.64  2024-10-30T13:31:56.698442+00:00 daemon-info osdx systemd[1]:  rsyslog.service: Deactivated successfully.
2024-10-30T13:31:57.645575+00:00 10.215.168.64  2024-10-30T13:31:56.698522+00:00 daemon-info osdx systemd[1]:  Stopped rsyslog.service - System Logging Service.
2024-10-30T13:31:57.645582+00:00 10.215.168.64  2024-10-30T13:31:56.723118+00:00 daemon-info osdx systemd[1]:  Starting rsyslog.service - System Logging Service...
2024-10-30T13:31:57.645626+00:00 10.215.168.64  2024-10-30T13:31:56.725004+00:00 syslog-info osdx rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.2302.0]
2024-10-30T13:31:57.645626+00:00 10.215.168.64  2024-10-30T13:31:56.725048+00:00 syslog-info osdx rsyslogd:  [origin software="rsyslogd" swVersion="8.2302.0" x-pid="362919" x-info="https://www.rsyslog.com"] start
2024-10-30T13:31:57.645636+00:00 10.215.168.64  2024-10-30T13:31:56.725142+00:00 daemon-info osdx systemd[1]:  Started rsyslog.service - System Logging Service.
2024-10-30T13:31:57.646207+00:00 10.215.168.64  2024-10-30T13:31:56.725750+00:00 daemon-notice osdx cfgd[1636]:  [361782]Completed change to active configuration
2024-10-30T13:31:57.672301+00:00 10.215.168.64  2024-10-30T13:31:56.751736+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2024-10-30T13:31:57.694259+00:00 10.215.168.64  2024-10-30T13:31:56.773745+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2024-10-30T13:31:57.755584+00:00 10.215.168.64  2024-10-30T13:31:56.835027+00:00 daemon-warning osdx zebra[1601]:  [RZ3YY-GPH41][EC 100663310] snmp[warning]: Warning: Failed to connect to the agentx master agent ([NIL]):
2024-10-30T13:31:57.840846+00:00 10.215.168.64  2024-10-30T13:31:56.920330+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-30T13:31:57.898698+00:00 10.215.168.64  2024-10-30T13:31:56.978131+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 interfaces ethernet eth0 address 10.215.168.64/24
set interfaces ethernet eth0 vrf VRF0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system syslog host 10.215.168.1 filter def level info
set system syslog host 10.215.168.1 local-vrf VRF0
set system syslog host 10.215.168.1 port 514
set system syslog host 10.215.168.1 protocol udp
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.163 ms

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

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

Show output
osdx

Note

Check the server /var/log/10.215.168.64/.log file and read the executed a new command: 'show host name' log message:

Show output
2024-10-30T13:31:58.336336+00:00 10.215.168.64  2024-10-30T13:31:57.415746+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show version'.
2024-10-30T13:31:58.519208+00:00 10.215.168.64  2024-10-30T13:31:57.598615+00:00 user-warning osdx OSDxCLI:  Signal 10 received
2024-10-30T13:31:58.537812+00:00 10.215.168.64  2024-10-30T13:31:57.617211+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'set system mode user'.
2024-10-30T13:31:59.243824+00:00 10.215.168.64  2024-10-30T13:31:58.323232+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'system coredump show'.
2024-10-30T13:31:59.608860+00:00 10.215.168.64  2024-10-30T13:31:58.688239+00:00 auth-notice osdx OSDxCLI:  User 'admin' entered the configuration menu.
2024-10-30T13:31:59.670440+00:00 10.215.168.64  2024-10-30T13:31:58.749799+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'delete'.
2024-10-30T13:31:59.783183+00:00 10.215.168.64  2024-10-30T13:31:58.862564+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-30T13:31:59.846044+00:00 10.215.168.64  2024-10-30T13:31:58.925436+00:00 user-err osdx ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30T13:31:59.846914+00:00 10.215.168.64  2024-10-30T13:31:58.926394+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'show working'.
2024-10-30T13:32:03.614878+00:00 10.215.168.64  2024-10-30T13:32:03.002412+00:00 daemon-info osdx systemd[1]:  Stopping rsyslog.service - System Logging Service...
2024-10-30T13:32:03.614878+00:00 10.215.168.64  2024-10-30T13:32:03.002599+00:00 syslog-info osdx rsyslogd:  [origin software="rsyslogd" swVersion="8.2302.0" x-pid="363014" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-10-30T13:32:03.614878+00:00 10.215.168.64  2024-10-30T13:32:03.003102+00:00 daemon-info osdx systemd[1]:  rsyslog.service: Deactivated successfully.
2024-10-30T13:32:03.614878+00:00 10.215.168.64  2024-10-30T13:32:03.003207+00:00 daemon-info osdx systemd[1]:  Stopped rsyslog.service - System Logging Service.
2024-10-30T13:32:03.614878+00:00 10.215.168.64  2024-10-30T13:32:03.017557+00:00 daemon-info osdx systemd[1]:  Starting rsyslog.service - System Logging Service...
2024-10-30T13:32:03.614878+00:00 10.215.168.64  2024-10-30T13:32:03.019439+00:00 syslog-info osdx rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.2302.0]
2024-10-30T13:32:03.614878+00:00 10.215.168.64  2024-10-30T13:32:03.019482+00:00 daemon-info osdx systemd[1]:  Started rsyslog.service - System Logging Service.
2024-10-30T13:32:03.614878+00:00 10.215.168.64  2024-10-30T13:32:03.019763+00:00 syslog-info osdx rsyslogd:  [origin software="rsyslogd" swVersion="8.2302.0" x-pid="363180" x-info="https://www.rsyslog.com"] start
2024-10-30T13:32:03.614878+00:00 10.215.168.64  2024-10-30T13:32:03.020403+00:00 daemon-notice osdx cfgd[1636]:  [361782]Completed change to active configuration
2024-10-30T13:32:03.653554+00:00 10.215.168.64  2024-10-30T13:32:03.059187+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2024-10-30T13:32:03.669387+00:00 10.215.168.64  2024-10-30T13:32:03.075047+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2024-10-30T13:32:03.903442+00:00 10.215.168.64  2024-10-30T13:32:03.309099+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-30T13:32:03.958859+00:00 10.215.168.64  2024-10-30T13:32:03.364547+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 interfaces ethernet eth0 address 10.215.168.64/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system syslog host 10.215.168.1 filter def level info
set system syslog host 10.215.168.1 local-interface eth0
set system syslog host 10.215.168.1 port 514
set system syslog host 10.215.168.1 protocol udp

Step 2: Ping IP address 10.215.168.1 from DUT0:

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

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

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

Show output
osdx

Note

Check the server /var/log/10.215.168.64/.log file and read the executed a new command: 'show host name' log message:

Show output
2024-10-30T13:32:04.390601+00:00 10.215.168.64  2024-10-30T13:32:03.796249+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show version'.
2024-10-30T13:32:04.566610+00:00 10.215.168.64  2024-10-30T13:32:03.972232+00:00 user-warning osdx OSDxCLI:  Signal 10 received
2024-10-30T13:32:04.581943+00:00 10.215.168.64  2024-10-30T13:32:03.987584+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'set system mode user'.
2024-10-30T13:32:04.739010+00:00 10.215.168.64  2024-10-30T13:32:04.144629+00:00 daemon-warning osdx zebra[1601]:  [RZ3YY-GPH41][EC 100663310] snmp[warning]: Warning: Failed to connect to the agentx master agent ([NIL]):
2024-10-30T13:32:05.354080+00:00 10.215.168.64  2024-10-30T13:32:04.759668+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'system coredump show'.
2024-10-30T13:32:05.678397+00:00 10.215.168.64  2024-10-30T13:32:05.084031+00:00 auth-notice osdx OSDxCLI:  User 'admin' entered the configuration menu.
2024-10-30T13:32:05.735030+00:00 10.215.168.64  2024-10-30T13:32:05.140544+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'delete'.
2024-10-30T13:32:05.849170+00:00 10.215.168.64  2024-10-30T13:32:05.254684+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-30T13:32:05.910486+00:00 10.215.168.64  2024-10-30T13:32:05.316084+00:00 user-err osdx ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30T13:32:05.911341+00:00 10.215.168.64  2024-10-30T13:32:05.317043+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'show working'.
2024-10-30T13:32:09.583198+00:00 10.215.168.64  2024-10-30T13:32:08.742392+00:00 daemon-info osdx systemd[1]:  Stopping rsyslog.service - System Logging Service...
2024-10-30T13:32:09.583198+00:00 10.215.168.64  2024-10-30T13:32:08.742577+00:00 syslog-info osdx rsyslogd:  [origin software="rsyslogd" swVersion="8.2302.0" x-pid="363275" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-10-30T13:32:09.583198+00:00 10.215.168.64  2024-10-30T13:32:08.743190+00:00 daemon-info osdx systemd[1]:  rsyslog.service: Deactivated successfully.
2024-10-30T13:32:09.583198+00:00 10.215.168.64  2024-10-30T13:32:08.743298+00:00 daemon-info osdx systemd[1]:  Stopped rsyslog.service - System Logging Service.
2024-10-30T13:32:09.583198+00:00 10.215.168.64  2024-10-30T13:32:08.777349+00:00 daemon-info osdx systemd[1]:  Starting rsyslog.service - System Logging Service...
2024-10-30T13:32:09.583198+00:00 10.215.168.64  2024-10-30T13:32:08.780438+00:00 syslog-info osdx rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.2302.0]
2024-10-30T13:32:09.583198+00:00 10.215.168.64  2024-10-30T13:32:08.780475+00:00 syslog-info osdx rsyslogd:  [origin software="rsyslogd" swVersion="8.2302.0" x-pid="363441" x-info="https://www.rsyslog.com"] start
2024-10-30T13:32:09.583198+00:00 10.215.168.64  2024-10-30T13:32:08.780499+00:00 daemon-info osdx systemd[1]:  Started rsyslog.service - System Logging Service.
2024-10-30T13:32:09.583269+00:00 10.215.168.64  2024-10-30T13:32:08.780670+00:00 daemon-notice osdx cfgd[1636]:  [361782]Completed change to active configuration
2024-10-30T13:32:09.621983+00:00 10.215.168.64  2024-10-30T13:32:08.819124+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2024-10-30T13:32:09.639007+00:00 10.215.168.64  2024-10-30T13:32:08.836280+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2024-10-30T13:32:09.782668+00:00 10.215.168.64  2024-10-30T13:32:08.979933+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-30T13:32:09.838126+00:00 10.215.168.64  2024-10-30T13:32:09.035384+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show host name'.

Test Syslog Remote With Local-address and UDP

Description

Add a remote host to send syslog messages through a specific local-address and show the host name.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces dummy dum0 address 33.33.33.33/24
set interfaces ethernet eth0 address 10.215.168.64/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system syslog host 10.215.168.1 filter def level info
set system syslog host 10.215.168.1 local-address 33.33.33.33
set system syslog host 10.215.168.1 port 514
set system syslog host 10.215.168.1 protocol udp

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.116 ms

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

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

Show output
osdx

Note

Check the server /var/log/33.33.33.33/.log file and read the executed a new command: 'show host name' log message:

Show output
2024-10-30T13:32:15.415307+00:00 33.33.33.33  2024-10-30T13:32:14.898033+00:00 daemon-info osdx systemd[1]:  Stopping rsyslog.service - System Logging Service...
2024-10-30T13:32:15.415307+00:00 33.33.33.33  2024-10-30T13:32:14.898210+00:00 syslog-info osdx rsyslogd:  [origin software="rsyslogd" swVersion="8.2302.0" x-pid="363536" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-10-30T13:32:15.415307+00:00 33.33.33.33  2024-10-30T13:32:14.898675+00:00 daemon-info osdx systemd[1]:  rsyslog.service: Deactivated successfully.
2024-10-30T13:32:15.415307+00:00 33.33.33.33  2024-10-30T13:32:14.898772+00:00 daemon-info osdx systemd[1]:  Stopped rsyslog.service - System Logging Service.
2024-10-30T13:32:15.415307+00:00 33.33.33.33  2024-10-30T13:32:14.936848+00:00 daemon-info osdx systemd[1]:  Starting rsyslog.service - System Logging Service...
2024-10-30T13:32:15.415307+00:00 33.33.33.33  2024-10-30T13:32:14.938880+00:00 daemon-info osdx systemd[1]:  Started rsyslog.service - System Logging Service.
2024-10-30T13:32:15.415307+00:00 33.33.33.33  2024-10-30T13:32:14.939378+00:00 syslog-info osdx rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.2302.0]
2024-10-30T13:32:15.415398+00:00 33.33.33.33  2024-10-30T13:32:14.940071+00:00 daemon-notice osdx cfgd[1636]:  [361782]Completed change to active configuration
2024-10-30T13:32:15.415398+00:00 33.33.33.33  2024-10-30T13:32:14.940116+00:00 syslog-info osdx rsyslogd:  [origin software="rsyslogd" swVersion="8.2302.0" x-pid="363687" x-info="https://www.rsyslog.com"] start
2024-10-30T13:32:15.441406+00:00 33.33.33.33  2024-10-30T13:32:14.966034+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2024-10-30T13:32:15.466039+00:00 33.33.33.33  2024-10-30T13:32:14.990690+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2024-10-30T13:32:15.614828+00:00 33.33.33.33  2024-10-30T13:32:15.139499+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-30T13:32:15.669670+00:00 33.33.33.33  2024-10-30T13:32:15.194315+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show host name'.

Test Syslog Remote With Local-address and VRF

Description

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

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces dummy dum0 address 33.33.33.33/24
set interfaces ethernet eth0 address 10.215.168.64/24
set interfaces ethernet eth0 vrf VRF0
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system syslog host 10.215.168.1 filter def level info
set system syslog host 10.215.168.1 local-address 33.33.33.33
set system syslog host 10.215.168.1 local-vrf VRF0
set system syslog host 10.215.168.1 port 514
set system syslog host 10.215.168.1 protocol udp
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.136 ms

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

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

Show output
osdx

Note

Check the server /var/log/33.33.33.33/.log file and read the executed a new command: 'show host name' log message:

Show output
2024-10-30T13:32:16.071801+00:00 33.33.33.33  2024-10-30T13:32:15.596392+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show version'.
2024-10-30T13:32:16.267484+00:00 33.33.33.33  2024-10-30T13:32:15.792070+00:00 user-warning osdx OSDxCLI:  Signal 10 received
2024-10-30T13:32:16.282285+00:00 33.33.33.33  2024-10-30T13:32:15.806907+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'set system mode user'.
2024-10-30T13:32:16.604324+00:00 33.33.33.33  2024-10-30T13:32:16.128906+00:00 daemon-warning osdx zebra[1601]:  [RZ3YY-GPH41][EC 100663310] snmp[warning]: Warning: Failed to connect to the agentx master agent ([NIL]):
2024-10-30T13:32:16.982158+00:00 33.33.33.33  2024-10-30T13:32:16.506718+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'system coredump show'.
2024-10-30T13:32:17.313235+00:00 33.33.33.33  2024-10-30T13:32:16.837803+00:00 auth-notice osdx OSDxCLI:  User 'admin' entered the configuration menu.
2024-10-30T13:32:17.370237+00:00 33.33.33.33  2024-10-30T13:32:16.894774+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'delete'.
2024-10-30T13:32:17.481271+00:00 33.33.33.33  2024-10-30T13:32:17.005862+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-30T13:32:17.541711+00:00 33.33.33.33  2024-10-30T13:32:17.066254+00:00 user-err osdx ERROR:  unexpected Traceback (most recent call last):   File "osdx/bin/op/fan_control.py", line 23, in _send_fan_control_cmd FileNotFoundError: [Errno 2] No such file or directory
2024-10-30T13:32:17.543591+00:00 33.33.33.33  2024-10-30T13:32:17.068230+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'show working'.
2024-10-30T13:32:21.538456+00:00 33.33.33.33  2024-10-30T13:32:21.094558+00:00 daemon-info osdx systemd[1]:  Stopping rsyslog.service - System Logging Service...
2024-10-30T13:32:21.538456+00:00 33.33.33.33  2024-10-30T13:32:21.094747+00:00 syslog-info osdx rsyslogd:  [origin software="rsyslogd" swVersion="8.2302.0" x-pid="363782" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-10-30T13:32:21.538456+00:00 33.33.33.33  2024-10-30T13:32:21.095195+00:00 daemon-info osdx systemd[1]:  rsyslog.service: Deactivated successfully.
2024-10-30T13:32:21.538456+00:00 33.33.33.33  2024-10-30T13:32:21.095285+00:00 daemon-info osdx systemd[1]:  Stopped rsyslog.service - System Logging Service.
2024-10-30T13:32:21.538456+00:00 33.33.33.33  2024-10-30T13:32:21.112554+00:00 daemon-info osdx systemd[1]:  Starting rsyslog.service - System Logging Service...
2024-10-30T13:32:21.538456+00:00 33.33.33.33  2024-10-30T13:32:21.114373+00:00 syslog-info osdx rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.2302.0]
2024-10-30T13:32:21.538473+00:00 33.33.33.33  2024-10-30T13:32:21.114398+00:00 syslog-info osdx rsyslogd:  [origin software="rsyslogd" swVersion="8.2302.0" x-pid="363970" x-info="https://www.rsyslog.com"] start
2024-10-30T13:32:21.538473+00:00 33.33.33.33  2024-10-30T13:32:21.114419+00:00 daemon-info osdx systemd[1]:  Started rsyslog.service - System Logging Service.
2024-10-30T13:32:21.538560+00:00 33.33.33.33  2024-10-30T13:32:21.114833+00:00 syslog-warning osdx rsyslogd:  bound address 33.33.33.33 IP free [v8.2302.0 try https://www.rsyslog.com/e/2186 ]
2024-10-30T13:32:21.539519+00:00 33.33.33.33  2024-10-30T13:32:21.115723+00:00 daemon-notice osdx cfgd[1636]:  [361782]Completed change to active configuration
2024-10-30T13:32:21.565065+00:00 33.33.33.33  2024-10-30T13:32:21.141218+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2024-10-30T13:32:21.580307+00:00 33.33.33.33  2024-10-30T13:32:21.156518+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2024-10-30T13:32:21.816871+00:00 33.33.33.33  2024-10-30T13:32:21.393061+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-30T13:32:21.877369+00:00 33.33.33.33  2024-10-30T13:32:21.453545+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 interfaces ethernet eth0 address 10.215.168.64/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system syslog host 10.215.168.1 filter def 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 permitted-peer rsyslog.server.com

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.181 ms

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

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

Show output
osdx

Note

Check the server /var/log/10.215.168.64/.log file and read the executed a new command: 'show host name' log message:

Show output
2024-10-30T13:32:27.785775+00:00 10.215.168.64  2024-10-30T13:32:26.875752+00:00 daemon-info osdx systemd[1]:  Stopping rsyslog.service - System Logging Service...
2024-10-30T13:32:27.785775+00:00 10.215.168.64  2024-10-30T13:32:26.875896+00:00 syslog-info osdx rsyslogd:  [origin software="rsyslogd" swVersion="8.2302.0" x-pid="364074" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-10-30T13:32:27.785775+00:00 10.215.168.64  2024-10-30T13:32:26.876392+00:00 daemon-info osdx systemd[1]:  rsyslog.service: Deactivated successfully.
2024-10-30T13:32:27.785775+00:00 10.215.168.64  2024-10-30T13:32:26.876500+00:00 daemon-info osdx systemd[1]:  Stopped rsyslog.service - System Logging Service.
2024-10-30T13:32:27.785775+00:00 10.215.168.64  2024-10-30T13:32:26.908021+00:00 daemon-info osdx systemd[1]:  Starting rsyslog.service - System Logging Service...
2024-10-30T13:32:27.785775+00:00 10.215.168.64  2024-10-30T13:32:26.911329+00:00 syslog-info osdx rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.2302.0]
2024-10-30T13:32:27.785775+00:00 10.215.168.64  2024-10-30T13:32:26.911371+00:00 syslog-info osdx rsyslogd:  [origin software="rsyslogd" swVersion="8.2302.0" x-pid="364252" x-info="https://www.rsyslog.com"] start
2024-10-30T13:32:27.785775+00:00 10.215.168.64  2024-10-30T13:32:26.911399+00:00 daemon-info osdx systemd[1]:  Started rsyslog.service - System Logging Service.
2024-10-30T13:32:27.832141+00:00 10.215.168.64  2024-10-30T13:32:26.912615+00:00 daemon-notice osdx cfgd[1636]:  [361782]Completed change to active configuration
2024-10-30T13:32:27.832141+00:00 10.215.168.64  2024-10-30T13:32:26.938399+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2024-10-30T13:32:27.832141+00:00 10.215.168.64  2024-10-30T13:32:26.954508+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2024-10-30T13:32:27.832141+00:00 10.215.168.64  2024-10-30T13:32:27.083915+00:00 daemon-warning osdx zebra[1601]:  [RZ3YY-GPH41][EC 100663310] snmp[warning]: Warning: Failed to connect to the agentx master agent ([NIL]):
2024-10-30T13:32:27.832141+00:00 10.215.168.64  2024-10-30T13:32:27.100072+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-30T13:32:27.832141+00:00 10.215.168.64  2024-10-30T13:32:27.105087+00:00 syslog-warning osdx rsyslogd:  warning: certificate file is not set [v8.2302.0 try https://www.rsyslog.com/e/2330 ]
2024-10-30T13:32:27.832141+00:00 10.215.168.64  2024-10-30T13:32:27.105117+00:00 syslog-warning osdx rsyslogd:  warning: key file is not set [v8.2302.0 try https://www.rsyslog.com/e/2331 ]
2024-10-30T13:32:27.937491+00:00 10.215.168.64  2024-10-30T13:32:27.264841+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show host name'.

Test Syslog Remote Local Address Single TLS

Description

Add a secured remote host to send syslog messages and show the host name from a fiven local-address

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces dummy dum0 address 33.33.33.33/24
set interfaces ethernet eth0 address 10.215.168.64/24
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system syslog host 10.215.168.1 filter def level info
set system syslog host 10.215.168.1 local-address 33.33.33.33
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 permitted-peer rsyslog.server.com

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.088 ms

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

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

Show output
osdx

Note

Check the server /var/log/33.33.33.33/.log file and read the executed a new command: 'show host name' log message:

Show output
2024-10-30T13:32:34.100835+00:00 33.33.33.33  2024-10-30T13:32:33.199388+00:00 daemon-info osdx systemd[1]:  Stopping rsyslog.service - System Logging Service...
2024-10-30T13:32:34.100835+00:00 33.33.33.33  2024-10-30T13:32:33.199757+00:00 syslog-info osdx rsyslogd:  [origin software="rsyslogd" swVersion="8.2302.0" x-pid="364356" x-info="https://www.rsyslog.com"] exiting on signal 15.
2024-10-30T13:32:34.100955+00:00 33.33.33.33  2024-10-30T13:32:33.200384+00:00 daemon-info osdx systemd[1]:  rsyslog.service: Deactivated successfully.
2024-10-30T13:32:34.100955+00:00 33.33.33.33  2024-10-30T13:32:33.200417+00:00 daemon-info osdx systemd[1]:  Stopped rsyslog.service - System Logging Service.
2024-10-30T13:32:34.100955+00:00 33.33.33.33  2024-10-30T13:32:33.235580+00:00 daemon-info osdx systemd[1]:  Starting rsyslog.service - System Logging Service...
2024-10-30T13:32:34.100955+00:00 33.33.33.33  2024-10-30T13:32:33.238292+00:00 syslog-info osdx rsyslogd:  imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.2302.0]
2024-10-30T13:32:34.100955+00:00 33.33.33.33  2024-10-30T13:32:33.238327+00:00 syslog-info osdx rsyslogd:  [origin software="rsyslogd" swVersion="8.2302.0" x-pid="364511" x-info="https://www.rsyslog.com"] start
2024-10-30T13:32:34.100955+00:00 33.33.33.33  2024-10-30T13:32:33.238349+00:00 daemon-info osdx systemd[1]:  Started rsyslog.service - System Logging Service.
2024-10-30T13:32:34.100955+00:00 33.33.33.33  2024-10-30T13:32:33.239411+00:00 daemon-notice osdx cfgd[1636]:  [361782]Completed change to active configuration
2024-10-30T13:32:34.100955+00:00 33.33.33.33  2024-10-30T13:32:33.278426+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2024-10-30T13:32:34.100955+00:00 33.33.33.33  2024-10-30T13:32:33.300283+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2024-10-30T13:32:34.100955+00:00 33.33.33.33  2024-10-30T13:32:33.445297+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-30T13:32:34.100955+00:00 33.33.33.33  2024-10-30T13:32:33.531548+00:00 syslog-warning osdx rsyslogd:  warning: certificate file is not set [v8.2302.0 try https://www.rsyslog.com/e/2330 ]
2024-10-30T13:32:34.100955+00:00 33.33.33.33  2024-10-30T13:32:33.531611+00:00 syslog-warning osdx rsyslogd:  warning: key file is not set [v8.2302.0 try https://www.rsyslog.com/e/2331 ]
2024-10-30T13:32:34.741040+00:00 33.33.33.33  2024-10-30T13:32:34.179740+00:00 daemon-warning osdx zebra[1601]:  [RZ3YY-GPH41][EC 100663310] snmp[warning]: Warning: Failed to connect to the agentx master agent ([NIL]):
2024-10-30T13:32:35.290174+00:00 33.33.33.33  2024-10-30T13:32:34.728848+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show host name'.