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
2025-05-13 14:55:15.586280 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:55:15.650024 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF WAN1 in VRF 312
2025-05-13 14:55:15.650136 daemon-err , bgpd[141725]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF WAN1 in VRF 312
2025-05-13 14:55:15.650232 daemon-err , nhrpd[141169]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF WAN1 in VRF 312
2025-05-13 14:55:15.745861 daemon-err , bgpd[141725]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BGP in VRF 310
2025-05-13 14:55:15.745923 daemon-err , nhrpd[141169]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BGP in VRF 310
2025-05-13 14:55:15.746018 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BGP in VRF 310
2025-05-13 14:55:15.837828 daemon-err , nhrpd[141169]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF WAN2 in VRF 311
2025-05-13 14:55:15.837886 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF WAN2 in VRF 311
2025-05-13 14:55:15.837906 daemon-err , bgpd[141725]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF WAN2 in VRF 311
2025-05-13 14:55:16.030582 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:55:25.292740 daemon-err , zebra[116153]:  [HSYZM-HV7HF] Extended Error: Invalid device index
2025-05-13 14:55:25.292797 daemon-err , zebra[116153]:  [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=2444, pid=3803349491
2025-05-13 14:55:25.292819 daemon-err , zebra[116153]:  [HSYZM-HV7HF] Extended Error: Invalid device index
2025-05-13 14:55:25.292839 daemon-err , zebra[116153]:  [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=2445, pid=3803349491
2025-05-13 14:55:25.292955 daemon-err , zebra[116153]:  [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (475[if 313 vrfid 310]) into the kernel
2025-05-13 14:55:25.292984 daemon-err , zebra[116153]:  [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (499[10.1.0.3 if 313 vrfid 310]) into the kernel
2025-05-13 14:55:25.341667 daemon-err , zebra[116153]:  [HSYZM-HV7HF] Extended Error: Invalid device index
2025-05-13 14:55:25.341723 daemon-err , zebra[116153]:  [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=2464, pid=3803349491
2025-05-13 14:55:25.341746 daemon-err , zebra[116153]:  [HSYZM-HV7HF] Extended Error: Invalid device index
2025-05-13 14:55:25.341763 daemon-err , zebra[116153]:  [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=2465, pid=3803349491
2025-05-13 14:55:25.341909 daemon-err , zebra[116153]:  [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (475[if 313 vrfid 310]) into the kernel
2025-05-13 14:55:25.341925 daemon-err , zebra[116153]:  [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (499[10.1.0.3 if 313 vrfid 310]) into the kernel
2025-05-13 14:55:25.358662 daemon-err , zebra[116153]:  [HSYZM-HV7HF] Extended Error: Invalid device index
2025-05-13 14:55:25.358708 daemon-err , zebra[116153]:  [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=2488, pid=3803349491
2025-05-13 14:55:25.358724 daemon-err , zebra[116153]:  [HSYZM-HV7HF] Extended Error: Invalid device index
2025-05-13 14:55:25.358738 daemon-err , zebra[116153]:  [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=2489, pid=3803349491
2025-05-13 14:55:25.358843 daemon-err , zebra[116153]:  [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (483[if 314 vrfid 310]) into the kernel
2025-05-13 14:55:25.358858 daemon-err , zebra[116153]:  [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (500[10.1.0.3 if 314 vrfid 310]) into the kernel
2025-05-13 14:55:25.393166 daemon-err , zebra[116153]:  [HSYZM-HV7HF] Extended Error: Invalid device index
2025-05-13 14:55:25.393221 daemon-err , zebra[116153]:  [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=2508, pid=3803349491
2025-05-13 14:55:25.393250 daemon-err , zebra[116153]:  [HSYZM-HV7HF] Extended Error: Invalid device index
2025-05-13 14:55:25.393266 daemon-err , zebra[116153]:  [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=2509, pid=3803349491
2025-05-13 14:55:25.393279 daemon-err , zebra[116153]:  [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (483[if 314 vrfid 310]) into the kernel
2025-05-13 14:55:25.393292 daemon-err , zebra[116153]:  [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (500[10.1.0.3 if 314 vrfid 310]) into the kernel
2025-05-13 14:55:25.420874 daemon-err , zebra[116153]:  [HSYZM-HV7HF] Extended Error: Invalid device index
2025-05-13 14:55:25.420930 daemon-err , zebra[116153]:  [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=2532, pid=3803349491
2025-05-13 14:55:25.420952 daemon-err , zebra[116153]:  [HSYZM-HV7HF] Extended Error: Invalid device index
2025-05-13 14:55:25.420970 daemon-err , zebra[116153]:  [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=2533, pid=3803349491
2025-05-13 14:55:25.420989 daemon-err , zebra[116153]:  [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (483[if 314 vrfid 310]) into the kernel
2025-05-13 14:55:25.421011 daemon-err , zebra[116153]:  [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (500[10.1.0.3 if 314 vrfid 310]) into the kernel
2025-05-13 14:55:25.444408 daemon-err , zebra[116153]:  [HSYZM-HV7HF] Extended Error: Invalid device index
2025-05-13 14:55:25.444469 daemon-err , zebra[116153]:  [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=2537, pid=3803349491
2025-05-13 14:55:25.444498 daemon-err , zebra[116153]:  [HSYZM-HV7HF] Extended Error: Invalid device index
2025-05-13 14:55:25.444524 daemon-err , zebra[116153]:  [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=2538, pid=3803349491
2025-05-13 14:55:25.444549 daemon-err , zebra[116153]:  [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (475[if 313 vrfid 310]) into the kernel
2025-05-13 14:55:25.444581 daemon-err , zebra[116153]:  [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (499[10.1.0.3 if 313 vrfid 310]) into the kernel
2025-05-13 14:55:28.990743 daemon-err , bgpd[143105]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:55:29.025309 daemon-err , bgpd[143105]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:55:33.810541 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:55:33.816019 daemon-err , zebra[116153]:  [HSYZM-HV7HF] Extended Error: Invalid device index
2025-05-13 14:55:33.816057 daemon-err , zebra[116153]:  [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=2630, pid=3803349491
2025-05-13 14:55:33.816073 daemon-err , zebra[116153]:  [HSYZM-HV7HF] Extended Error: Invalid device index
2025-05-13 14:55:33.816090 daemon-err , zebra[116153]:  [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=2631, pid=3803349491
2025-05-13 14:55:33.816103 daemon-err , zebra[116153]:  [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (483[if 314 vrfid 310]) into the kernel
2025-05-13 14:55:33.816117 daemon-err , zebra[116153]:  [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (500[10.1.0.3 if 314 vrfid 310]) into the kernel
2025-05-13 14:55:33.819741 daemon-err , zebra[116153]:  [HSYZM-HV7HF] Extended Error: Invalid device index
2025-05-13 14:55:33.819771 daemon-err , zebra[116153]:  [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=2653, pid=3803349491
2025-05-13 14:55:33.819787 daemon-err , zebra[116153]:  [HSYZM-HV7HF] Extended Error: Invalid device index
2025-05-13 14:55:33.819807 daemon-err , zebra[116153]:  [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=2654, pid=3803349491
2025-05-13 14:55:33.819830 daemon-err , zebra[116153]:  [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (475[if 313 vrfid 310]) into the kernel
2025-05-13 14:55:33.819847 daemon-err , zebra[116153]:  [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (499[10.1.0.3 if 313 vrfid 310]) into the kernel
2025-05-13 14:55:33.891862 daemon-err , bgpd[143105]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BGP in VRF 315
2025-05-13 14:55:33.891980 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BGP in VRF 315
2025-05-13 14:55:33.892071 daemon-err , nhrpd[142544]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BGP in VRF 315
2025-05-13 14:55:33.975787 daemon-err , nhrpd[142544]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF WAN2 in VRF 316
2025-05-13 14:55:33.975838 daemon-err , bgpd[143105]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF WAN2 in VRF 316
2025-05-13 14:55:33.975856 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF WAN2 in VRF 316
2025-05-13 14:55:34.051872 daemon-err , nhrpd[142544]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF WAN1 in VRF 317
2025-05-13 14:55:34.051924 daemon-err , bgpd[143105]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF WAN1 in VRF 317
2025-05-13 14:55:34.051951 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF WAN1 in VRF 317
2025-05-13 14:55:34.258104 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:55:44.241741 daemon-err , bgpd[144006]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:55:50.985339 daemon-err , bgpd[144006]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:55:50.985399 daemon-err , bgpd[144006]:  [RM0XP-C52DA][EC 33554466] 10.10.0.200 [FSM] Ignoring event BGP_Start in state Connect, prior events BGP_Start, BGP_Start, fd 25
2025-05-13 14:55:55.206523 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:55:55.290081 daemon-err , bgpd[144006]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BFD in VRF 320
2025-05-13 14:55:55.290137 daemon-err , bfdd[144003]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BFD in VRF 320
2025-05-13 14:55:55.290161 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BFD in VRF 320
2025-05-13 14:55:55.486848 daemon-err , zebra[116153]:  [GE156-FS0MJ][EC 100663299] stream_read_try: read failed on fd 51: Connection reset by peer
2025-05-13 14:55:55.487316 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:56:06.144373 daemon-err , bgpd[145013]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:56:12.774686 daemon-err , bgpd[145013]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:56:12.774738 daemon-err , bgpd[145013]:  [RM0XP-C52DA][EC 33554466] 20.20.0.200 [FSM] Ignoring event BGP_Start in state Connect, prior events BGP_Start, BGP_Start, fd 25
2025-05-13 14:56:17.236510 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:56:17.321969 daemon-err , bfdd[145010]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BFD in VRF 321
2025-05-13 14:56:17.322019 daemon-err , bgpd[145013]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BFD in VRF 321
2025-05-13 14:56:17.322040 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BFD in VRF 321
2025-05-13 14:56:17.518944 daemon-err , zebra[116153]:  [GE156-FS0MJ][EC 100663299] stream_read_try: read failed on fd 51: Connection reset by peer
2025-05-13 14:56:17.519983 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:56:25.427534 daemon-err , bgpd[146019]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:56:27.680453 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:56:27.762939 daemon-err , bgpd[146019]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 322
2025-05-13 14:56:27.763083 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 322
2025-05-13 14:56:27.986612 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:56:35.117715 daemon-err , bgpd[146762]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:56:38.622936 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:56:38.695396 daemon-err , bgpd[146762]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 323
2025-05-13 14:56:38.695530 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 323
2025-05-13 14:56:38.884136 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:56:45.616793 daemon-err , bgpd[147390]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:56:47.878579 daemon-err , bgpd[147390]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:56:47.879466 daemon-err , bgpd[147390]:  [MVZKX-EG443][EC 33554452] bgp_process_packet: BGP OPEN receipt failed for peer: 10.0.0.2
2025-05-13 14:56:48.195873 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:56:48.274881 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 324
2025-05-13 14:56:48.274938 daemon-err , bgpd[147390]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 324
2025-05-13 14:56:48.456051 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:56:55.576681 daemon-err , bgpd[148064]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:56:57.838590 daemon-err , bgpd[148064]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:56:57.839337 daemon-err , bgpd[148064]:  [MVZKX-EG443][EC 33554452] bgp_process_packet: BGP OPEN receipt failed for peer: 10.0.0.2
2025-05-13 14:57:02.212761 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:57:02.290184 daemon-err , bgpd[148064]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 325
2025-05-13 14:57:02.290300 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 325
2025-05-13 14:57:02.508340 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:57:09.930440 daemon-err , bgpd[148752]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:57:12.230818 daemon-err , bgpd[148752]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:57:16.656893 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:57:16.737568 daemon-err , bgpd[148752]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 326
2025-05-13 14:57:16.737697 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 326
2025-05-13 14:57:16.920216 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:57:24.587290 daemon-err , bgpd[149435]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:57:26.869740 daemon-err , bgpd[149435]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:57:26.870437 daemon-err , bgpd[149435]:  [MVZKX-EG443][EC 33554452] bgp_process_packet: BGP OPEN receipt failed for peer: 10.0.0.2
2025-05-13 14:57:27.137733 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:57:27.204023 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 327
2025-05-13 14:57:27.204072 daemon-err , bgpd[149435]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 327
2025-05-13 14:57:27.394617 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:57:34.606972 daemon-err , bgpd[150108]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:57:36.865668 daemon-err , bgpd[150108]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:57:36.866784 daemon-err , bgpd[150108]:  [G9KT7-2DSW0][EC 100663299] Can't get local address and port by getsockname: Bad file descriptor
2025-05-13 14:57:36.866828 daemon-err , bgpd[150108]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Bad file descriptor
2025-05-13 14:57:36.866852 daemon-err , bgpd[150108]:  [P90Z5-FP0GJ][EC 33554461] 10.0.0.2: nexthop_set failed, local: (null)p remote: (null)p update_if: (None) resetting connection - intf (Unknown)
2025-05-13 14:57:36.866875 daemon-err , bgpd[150108]:  [NNZ9X-BHX46][EC 100663299] %bgp_getsockname() failed for accept from_peer 10.0.0.2 fd -1 (peer fd 26)
2025-05-13 14:57:36.867148 daemon-err , bgpd[150108]:  [H4B4J-DCW2R][EC 33554455] 10.0.0.2 [Error] bgp_read_packet error: Connection reset by peer
2025-05-13 14:57:37.867779 daemon-err , bgpd[150108]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:57:37.868528 daemon-err , bgpd[150108]:  [MVZKX-EG443][EC 33554452] bgp_process_packet: BGP OPEN receipt failed for peer: 10.0.0.2
2025-05-13 14:57:41.282940 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:57:41.345767 daemon-err , bgpd[150108]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 328
2025-05-13 14:57:41.345878 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 328
2025-05-13 14:57:41.544832 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:57:48.602328 daemon-err , bgpd[150791]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:57:50.861387 daemon-err , bgpd[150791]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:57:55.459063 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:57:55.529658 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 329
2025-05-13 14:57:55.529814 daemon-err , bgpd[150791]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 329
2025-05-13 14:57:55.730131 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:58:03.555599 daemon-err , bgpd[151478]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:58:05.819577 daemon-err , bgpd[151478]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:58:05.820631 daemon-err , bgpd[151478]:  [MVZKX-EG443][EC 33554452] bgp_process_packet: BGP OPEN receipt failed for peer: 10.0.0.2
2025-05-13 14:58:06.364400 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:58:06.443746 daemon-err , bgpd[151478]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 330
2025-05-13 14:58:06.443974 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 330
2025-05-13 14:58:06.640288 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:58:13.643711 daemon-err , bgpd[152155]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:58:15.928533 daemon-err , bgpd[152155]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:58:19.177069 user-err , ERROR:  No value for list_name, action or value.
2025-05-13 14:58:21.421336 daemon-err , bgpd[152155]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:58:21.422649 daemon-err , bgpd[152155]:  [MVZKX-EG443][EC 33554452] bgp_process_packet: BGP OPEN receipt failed for peer: 10.0.0.2
2025-05-13 14:58:21.562792 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:58:21.627672 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 331
2025-05-13 14:58:21.627718 daemon-err , bgpd[152155]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 331
2025-05-13 14:58:21.839170 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:58:30.722114 daemon-err , bgpd[152928]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:58:34.569251 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:58:34.628880 daemon-err , bgpd[152928]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BGP in VRF 332
2025-05-13 14:58:34.628991 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BGP in VRF 332
2025-05-13 14:58:34.821813 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:58:43.360103 daemon-err , bgpd[153548]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:58:47.022380 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:58:47.101151 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BGP in VRF 333
2025-05-13 14:58:47.101299 daemon-err , bgpd[153548]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BGP in VRF 333
2025-05-13 14:58:47.322595 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:58:55.890152 daemon-err , bgpd[154170]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:59:00.782241 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:59:00.867444 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BGP in VRF 334
2025-05-13 14:59:00.867590 daemon-err , bgpd[154170]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BGP in VRF 334
2025-05-13 14:59:01.067031 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:59:11.012257 daemon-err , bgpd[154899]:  [TXY0T-CYY6F][EC 100663299] Can't get remote address and port: Transport endpoint is not connected
2025-05-13 14:59:15.776802 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:59:15.850115 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BGP in VRF 335
2025-05-13 14:59:15.850263 daemon-err , bgpd[154899]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF BGP in VRF 335
2025-05-13 14:59:16.045141 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 14:59:24.633751 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 14:59:24.695562 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF SEG_49680d in VRF 336
2025-05-13 14:59:24.695721 daemon-err , bgpd[155625]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF SEG_49680d in VRF 336
2025-05-13 14:59:24.897870 daemon-err , zebra[116153]:  [KQB7H-NPVW9] ../zebra/zebra_ptm.c:1285 failed to find process pid registration
2025-05-13 15:00:22.403788 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 15:00:22.460738 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 339
2025-05-13 15:01:09.208755 daemon-err , cfgd[1466]:  [2678]Command output: Identity name must be between 1 and 63 characters long and must contain only printed characters (no spaces allowed) Value validation failed
2025-05-13 15:03:09.618134 user-err , ERROR:  Dissociating VRF from service: cnm
2025-05-13 15:03:09.703053 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan3 in VRF 350
2025-05-13 15:03:09.786906 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF tenant2 in VRF 349
2025-05-13 15:03:09.882963 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan2 in VRF 348
2025-05-13 15:03:09.974928 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan1 in VRF 347
2025-05-13 15:03:10.062989 daemon-err , staticd[116160]:  [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF tenant1 in VRF 346
2025-05-13 15:04:13.371009 daemon-err , cfgd[1466]:  [2678]Command output: File name reserved Value validation failed
2025-05-13 15:04:19.595397 daemon-notice , cfgd[1466]:  [2678]Completed change to active configuration
2025-05-13 15:04:19.597661 auth-notice , OSDxCLI:  User 'admin' committed the configuration.
2025-05-13 15:04:19.617430 auth-notice , OSDxCLI:  User 'admin' left the configuration menu.
2025-05-13 15:04:19.742414 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
2025-05-13 15:04:26.324338 daemon-info , systemd[1]:  Created slice system-dhcpd.slice - Slice /system/dhcpd.
2025-05-13 15:04:26.364647 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
2025-05-13 15:04:33.593181 daemon-info , systemd[1]:  Started dhcpd@main.service - "DHCP Server Service instance main".

Test Syslog Regex

Description

Create a new syslog file and collect all the syslog messages matching a specified regex.

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 cli_msg filter CLI app OSDxCLI
set system syslog file cli_msg filter CLI level notice
set system syslog file cli_msg filter CLI regex '(^|[^a-zA-Z0-9_])alert([^a-zA-Z0-9_]|$)'

Step 2: Run command command with alert word at DUT0 and expect this output:

Show output
Command validation failed:
CLI Error: Invalid token [command]
CLI Error: Command error

Step 3: Run command command with alerted word at DUT0 and expect this output:

Show output
Command validation failed:
CLI Error: Invalid token [command]
CLI Error: Command error

Step 4: Run command file show running://log/user/cli_msg/cli_msg | cat at DUT0 and expect this output:

Show output
2025-05-13 15:04:39.885179 auth-notice , OSDxCLI:  User 'admin' entered an invalid command: 'command with alert word'.

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

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

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

Show output
osdx

Step 4: 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
2025-05-13T15:04:46.163558+00:00 10.215.168.64  2025-05-13T15:04:45.762510+00:00 daemon-notice osdx cfgd[1466]:  [2678]Completed change to active configuration
2025-05-13T15:04:46.174913+00:00 10.215.168.64  2025-05-13T15:04:45.774051+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2025-05-13T15:04:46.192000+00:00 10.215.168.64  2025-05-13T15:04:45.791182+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2025-05-13T15:04:46.330875+00:00 10.215.168.64  2025-05-13T15:04:45.930083+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'.
2025-05-13T15:04:46.391941+00:00 10.215.168.64  2025-05-13T15:04:45.991048+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show host name'.
2025-05-13T15:04:49.512083+00:00 10.215.168.64  2025-05-13T15:04:49.111072+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.151 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.151/0.151/0.151/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
2025-05-13T15:04:49.888418+00:00 10.215.168.64  2025-05-13T15:04:49.487377+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show version'.
2025-05-13T15:04:50.093058+00:00 10.215.168.64  2025-05-13T15:04:49.691953+00:00 user-warning osdx OSDxCLI:  Signal 10 received
2025-05-13T15:04:50.107172+00:00 10.215.168.64  2025-05-13T15:04:49.706170+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'set system mode user'.
2025-05-13T15:04:50.981006+00:00 10.215.168.64  2025-05-13T15:04:50.579951+00:00 auth-notice osdx OSDxCLI:  User 'admin' entered the configuration menu.
2025-05-13T15:04:51.062306+00:00 10.215.168.64  2025-05-13T15:04:50.661238+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'delete '.
2025-05-13T15:04:51.176877+00:00 10.215.168.64  2025-05-13T15:04:50.775502+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'.
2025-05-13T15:04:51.243985+00:00 10.215.168.64  2025-05-13T15:04:50.842664+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'show working'.
2025-05-13T15:04:51.351829+00:00 10.215.168.64  2025-05-13T15:04:50.950704+00:00 daemon-info osdx ubnt-cfgd[168982]:  inactive
2025-05-13T15:04:55.412806+00:00 10.215.168.64  2025-05-13T15:04:55.091457+00:00 daemon-notice osdx cfgd[1466]:  [2678]Completed change to active configuration
2025-05-13T15:04:55.427679+00:00 10.215.168.64  2025-05-13T15:04:55.106958+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2025-05-13T15:04:55.445981+00:00 10.215.168.64  2025-05-13T15:04:55.125272+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2025-05-13T15:04:55.723265+00:00 10.215.168.64  2025-05-13T15:04:55.402499+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'.
2025-05-13T15:04:55.785638+00:00 10.215.168.64  2025-05-13T15:04:55.464886+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.123 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.123/0.123/0.123/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
2025-05-13T15:04:56.213128+00:00 10.215.168.64  2025-05-13T15:04:55.892331+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show version'.
2025-05-13T15:04:56.540661+00:00 10.215.168.64  2025-05-13T15:04:56.219871+00:00 user-warning osdx OSDxCLI:  Signal 10 received
2025-05-13T15:04:56.555347+00:00 10.215.168.64  2025-05-13T15:04:56.234553+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'set system mode user'.
2025-05-13T15:04:57.451070+00:00 10.215.168.64  2025-05-13T15:04:57.130229+00:00 auth-notice osdx OSDxCLI:  User 'admin' entered the configuration menu.
2025-05-13T15:04:57.506144+00:00 10.215.168.64  2025-05-13T15:04:57.185314+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'delete '.
2025-05-13T15:04:57.618441+00:00 10.215.168.64  2025-05-13T15:04:57.297582+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'.
2025-05-13T15:04:57.679550+00:00 10.215.168.64  2025-05-13T15:04:57.358701+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'show working'.
2025-05-13T15:04:57.769082+00:00 10.215.168.64  2025-05-13T15:04:57.448219+00:00 daemon-info osdx ubnt-cfgd[169327]:  inactive
2025-05-13T15:05:01.849808+00:00 10.215.168.64  2025-05-13T15:05:00.946422+00:00 daemon-notice osdx cfgd[1466]:  [2678]Completed change to active configuration
2025-05-13T15:05:01.864843+00:00 10.215.168.64  2025-05-13T15:05:00.961916+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2025-05-13T15:05:01.886501+00:00 10.215.168.64  2025-05-13T15:05:00.983743+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2025-05-13T15:05:02.092125+00:00 10.215.168.64  2025-05-13T15:05:01.189361+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'.
2025-05-13T15:05:02.168451+00:00 10.215.168.64  2025-05-13T15:05:01.265640+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.140 ms

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

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

Show output
osdx

Step 4: 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
2025-05-13T15:05:08.680798+00:00 33.33.33.33  2025-05-13T15:05:08.135259+00:00 daemon-notice osdx cfgd[1466]:  [2678]Completed change to active configuration
2025-05-13T15:05:08.693654+00:00 33.33.33.33  2025-05-13T15:05:08.148279+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2025-05-13T15:05:08.709948+00:00 33.33.33.33  2025-05-13T15:05:08.164593+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2025-05-13T15:05:08.859146+00:00 33.33.33.33  2025-05-13T15:05:08.313779+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'.
2025-05-13T15:05:08.926115+00:00 33.33.33.33  2025-05-13T15:05:08.380710+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show host name'.
2025-05-13T15:05:12.034136+00:00 33.33.33.33  2025-05-13T15:05:11.488520+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.147 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.147/0.147/0.147/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
2025-05-13T15:05:12.407878+00:00 33.33.33.33  2025-05-13T15:05:11.862247+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show version'.
2025-05-13T15:05:12.653893+00:00 33.33.33.33  2025-05-13T15:05:12.108256+00:00 user-warning osdx OSDxCLI:  Signal 10 received
2025-05-13T15:05:12.669931+00:00 33.33.33.33  2025-05-13T15:05:12.124290+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'set system mode user'.
2025-05-13T15:05:13.567401+00:00 33.33.33.33  2025-05-13T15:05:13.021505+00:00 auth-notice osdx OSDxCLI:  User 'admin' entered the configuration menu.
2025-05-13T15:05:13.632767+00:00 33.33.33.33  2025-05-13T15:05:13.087071+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'delete '.
2025-05-13T15:05:13.756605+00:00 33.33.33.33  2025-05-13T15:05:13.210893+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'.
2025-05-13T15:05:13.833997+00:00 33.33.33.33  2025-05-13T15:05:13.288282+00:00 auth-notice osdx OSDxCLI:  User 'admin' added a new cfg line: 'show working'.
2025-05-13T15:05:13.927975+00:00 33.33.33.33  2025-05-13T15:05:13.382302+00:00 daemon-info osdx ubnt-cfgd[170017]:  inactive
2025-05-13T15:05:18.557482+00:00 33.33.33.33  2025-05-13T15:05:18.445099+00:00 daemon-notice osdx cfgd[1466]:  [2678]Completed change to active configuration
2025-05-13T15:05:18.557482+00:00 33.33.33.33  2025-05-13T15:05:18.445299+00:00 syslog-warning osdx rsyslogd:  bound address 33.33.33.33 IP free [v8.2302.0 try https://www.rsyslog.com/e/2186 ]
2025-05-13T15:05:18.572815+00:00 33.33.33.33  2025-05-13T15:05:18.460649+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2025-05-13T15:05:18.591266+00:00 33.33.33.33  2025-05-13T15:05:18.479125+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2025-05-13T15:05:18.820482+00:00 33.33.33.33  2025-05-13T15:05:18.708342+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'.
2025-05-13T15:05:18.880018+00:00 33.33.33.33  2025-05-13T15:05:18.767845+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.224 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.224/0.224/0.224/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
2025-05-13T15:05:25.707091+00:00 10.215.168.64  2025-05-13T15:05:25.009470+00:00 daemon-notice osdx cfgd[1466]:  [2678]Completed change to active configuration
2025-05-13T15:05:25.750896+00:00 10.215.168.64  2025-05-13T15:05:25.023580+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2025-05-13T15:05:25.750896+00:00 10.215.168.64  2025-05-13T15:05:25.043546+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2025-05-13T15:05:25.750896+00:00 10.215.168.64  2025-05-13T15:05:25.192839+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'.
2025-05-13T15:05:25.750896+00:00 10.215.168.64  2025-05-13T15:05:25.209713+00:00 syslog-warning osdx rsyslogd:  warning: certificate file is not set [v8.2302.0 try https://www.rsyslog.com/e/2330 ]
2025-05-13T15:05:25.750896+00:00 10.215.168.64  2025-05-13T15:05:25.209763+00:00 syslog-warning osdx rsyslogd:  warning: key file is not set [v8.2302.0 try https://www.rsyslog.com/e/2331 ]
2025-05-13T15:05:27.926962+00:00 10.215.168.64  2025-05-13T15:05:27.501191+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.060 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.060/0.060/0.060/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
2025-05-13T15:05:34.566088+00:00 33.33.33.33  2025-05-13T15:05:33.391965+00:00 daemon-notice osdx cfgd[1466]:  [2678]Completed change to active configuration
2025-05-13T15:05:34.606924+00:00 33.33.33.33  2025-05-13T15:05:33.406769+00:00 auth-notice osdx OSDxCLI:  User 'admin' committed the configuration.
2025-05-13T15:05:34.606924+00:00 33.33.33.33  2025-05-13T15:05:33.434509+00:00 auth-notice osdx OSDxCLI:  User 'admin' left the configuration menu.
2025-05-13T15:05:34.606924+00:00 33.33.33.33  2025-05-13T15:05:33.579300+00:00 syslog-warning osdx rsyslogd:  warning: certificate file is not set [v8.2302.0 try https://www.rsyslog.com/e/2330 ]
2025-05-13T15:05:34.606924+00:00 33.33.33.33  2025-05-13T15:05:33.579356+00:00 syslog-warning osdx rsyslogd:  warning: key file is not set [v8.2302.0 try https://www.rsyslog.com/e/2331 ]
2025-05-13T15:05:34.606924+00:00 33.33.33.33  2025-05-13T15:05:33.582790+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'.
2025-05-13T15:05:36.887980+00:00 33.33.33.33  2025-05-13T15:05:35.913748+00:00 auth-notice osdx OSDxCLI:  User 'admin' executed a new command: 'show host name'.