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-03-18 14:11:55.564293 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_TUN in VRF 93 2025-03-18 14:11:55.564449 daemon-err , nhrpd[42798]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_TUN in VRF 93 2025-03-18 14:11:55.564489 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_TUN in VRF 93 2025-03-18 14:11:55.564517 daemon-err , nhrpd[42798]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_TUN in VRF 93 2025-03-18 14:11:55.652086 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 94 2025-03-18 14:11:55.652143 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 94 2025-03-18 14:11:55.652185 daemon-err , nhrpd[42798]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 94 2025-03-18 14:11:55.652211 daemon-err , nhrpd[42798]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 94 2025-03-18 14:11:55.744065 daemon-err , nhrpd[42798]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_LAN in VRF 92 2025-03-18 14:11:55.744145 daemon-err , nhrpd[42798]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_LAN in VRF 92 2025-03-18 14:11:55.744390 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_LAN in VRF 92 2025-03-18 14:11:55.744422 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_LAN in VRF 92 2025-03-18 14:12:50.471177 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:12:50.552439 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_LAN in VRF 96 2025-03-18 14:12:50.552525 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_LAN in VRF 96 2025-03-18 14:13:18.656805 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:13:18.747176 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 97 2025-03-18 14:13:18.747252 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 97 2025-03-18 14:13:45.338228 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:13:45.409732 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 98 2025-03-18 14:13:45.409806 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 98 2025-03-18 14:14:13.588344 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:14:13.658408 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 100 2025-03-18 14:14:13.658467 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 100 2025-03-18 14:14:13.778179 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_LAN in VRF 99 2025-03-18 14:14:13.778244 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_LAN in VRF 99 2025-03-18 14:14:40.797665 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:14:40.895287 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 102 2025-03-18 14:14:40.895339 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 102 2025-03-18 14:14:40.971139 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_LAN in VRF 101 2025-03-18 14:14:40.971222 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_LAN in VRF 101 2025-03-18 14:16:53.783648 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:16:53.863764 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_LAN in VRF 109 2025-03-18 14:16:53.863841 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_LAN in VRF 109 2025-03-18 14:17:21.552764 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:17:21.625447 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 112 2025-03-18 14:17:21.625501 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 112 2025-03-18 14:17:50.317010 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:17:50.425902 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_LAN in VRF 115 2025-03-18 14:17:50.425971 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_LAN in VRF 115 2025-03-18 14:17:50.517766 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 116 2025-03-18 14:17:50.517838 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 116 2025-03-18 14:18:19.340336 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:18:19.425010 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_LAN in VRF 118 2025-03-18 14:18:19.425075 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_LAN in VRF 118 2025-03-18 14:18:19.516694 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 119 2025-03-18 14:18:19.516759 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF_WAN in VRF 119 2025-03-18 14:18:26.253308 daemon-err , zebra[1415]: [PWG9W-384QK][EC 4043309090] Unknown netlink nlmsg_type (100) vrf 0 2025-03-18 14:18:26.258655 daemon-err , zebra[1415]: [PWG9W-384QK][EC 4043309090] Unknown netlink nlmsg_type (101) vrf 0 2025-03-18 14:18:26.258720 daemon-err , zebra[1415]: [PWG9W-384QK][EC 4043309090] Unknown netlink nlmsg_type (100) vrf 0 2025-03-18 14:18:37.244343 daemon-err , zebra[1415]: [PWG9W-384QK][EC 4043309090] Unknown netlink nlmsg_type (101) vrf 0 2025-03-18 14:20:34.147081 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:20:34.219613 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF B in VRF 127 2025-03-18 14:20:34.219689 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF B in VRF 127 2025-03-18 14:20:34.291434 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF A in VRF 126 2025-03-18 14:20:34.291502 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF A in VRF 126 2025-03-18 14:20:55.184825 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:20:55.281541 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF B in VRF 130 2025-03-18 14:20:55.281625 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF B in VRF 130 2025-03-18 14:20:55.369316 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF A in VRF 129 2025-03-18 14:20:55.369529 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF A in VRF 129 2025-03-18 14:23:36.603365 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:23:36.704561 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 140 2025-03-18 14:23:36.704638 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF RED in VRF 140 2025-03-18 14:24:34.676394 daemon-err , cfgd[1459]: [22287]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-03-18 14:26:29.714344 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:26:29.821912 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan3 in VRF 145 2025-03-18 14:26:29.821966 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan3 in VRF 145 2025-03-18 14:26:29.917701 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF tenant2 in VRF 144 2025-03-18 14:26:29.917772 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF tenant2 in VRF 144 2025-03-18 14:26:29.993737 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan2 in VRF 143 2025-03-18 14:26:29.993800 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan2 in VRF 143 2025-03-18 14:26:30.073703 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan1 in VRF 142 2025-03-18 14:26:30.073783 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF wan1 in VRF 142 2025-03-18 14:26:30.165722 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF tenant1 in VRF 141 2025-03-18 14:26:30.165816 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF tenant1 in VRF 141 2025-03-18 14:26:54.795598 daemon-err , zebra[1415]: [HSYZM-HV7HF] Extended Error: Nexthop device is not up 2025-03-18 14:26:54.795672 daemon-err , zebra[1415]: [WVJCK-PPMGD][EC 4043309093] netlink-dp (NS 0) error: Network is down, type=RTM_NEWNEXTHOP(104), seq=3479, pid=4132149301 2025-03-18 14:26:54.795712 daemon-err , zebra[1415]: [X5XE1-RS0SW][EC 4043309074] Failed to install Nexthop (1403[if 2]) into the kernel 2025-03-18 14:29:23.766767 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:23.855792 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:23.994304 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:28.043138 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:28.208838 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:28.290697 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:37.716419 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:37.852612 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:37.959621 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:41.980924 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:42.103081 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:42.200789 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:52.970993 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:53.105129 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:53.205032 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:57.219761 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:57.361914 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:29:57.459616 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:30:08.027745 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:30:08.174295 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:30:08.277671 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:30:12.282313 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:30:12.416238 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:30:12.511047 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:30:16.499966 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:30:16.614070 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:30:16.727218 user-err , OSDxCLI: libtacplus_map unable to open tacacs client_map_file /var/run/tacacs_client_map: No such file or directory 2025-03-18 14:34:13.935080 authpriv-err , login[81295]: pam_mail(login:session): pam_putenv: delete non-existent entry; MAIL 2025-03-18 14:37:46.171184 user-err , OSDxCLI: Session idle timeout reached. Closing session 2025-03-18 14:38:10.720909 user-err , OSDxCLI: Session idle timeout reached. Closing session 2025-03-18 14:38:33.622902 user-err , OSDxCLI: Session idle timeout reached. Closing session 2025-03-18 14:39:20.975980 authpriv-err , login[84837]: Permission denied 2025-03-18 14:39:21.394482 auth-err , sshd[84845]: error: PAM: pam_open_session(): Permission denied 2025-03-18 14:39:46.107285 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:39:46.192128 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF LOC in VRF 160 2025-03-18 14:39:46.192195 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF LOC in VRF 160 2025-03-18 14:39:46.276132 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF AP in VRF 159 2025-03-18 14:39:46.276203 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF AP in VRF 159 2025-03-18 14:39:46.376166 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF WAN in VRF 161 2025-03-18 14:39:46.376237 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF WAN in VRF 161 2025-03-18 14:39:59.829767 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:39:59.898190 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF LOC in VRF 164 2025-03-18 14:39:59.898248 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF LOC in VRF 164 2025-03-18 14:40:00.002088 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF AP in VRF 163 2025-03-18 14:40:00.002157 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF AP in VRF 163 2025-03-18 14:40:00.122118 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF WAN in VRF 165 2025-03-18 14:40:00.122188 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF WAN in VRF 165 2025-03-18 14:40:36.185467 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:40:36.260945 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF1 in VRF 167 2025-03-18 14:40:36.261002 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF1 in VRF 167 2025-03-18 14:41:44.395383 user-err , ERROR: Dissociating VRF from service: cnm 2025-03-18 14:41:44.482606 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF1 in VRF 168 2025-03-18 14:41:44.482663 daemon-err , staticd[1420]: [VCGF0-X62M1][EC 100663301] INTERFACE_STATE: Cannot find IF VRF1 in VRF 168 2025-03-18 14:42:30.058319 daemon-err , modulelauncher[90668]: osdx.utils.xos cmd error: useradd -s '/sbin/tacacs_shell' -m -N -g 'cfg_monitor' -G 'frrvty,frr,osdxcfg,sudo,adm,dip,disk,users' tacacs0 2025-03-18 14:42:30.058361 daemon-err , modulelauncher[90668]: Command 'useradd -s '/sbin/tacacs_shell' -m -N -g 'cfg_monitor' -G 'frrvty,frr,osdxcfg,sudo,adm,dip,disk,users' tacacs0' returned non-zero exit status 9. 2025-03-18 14:42:30.061578 daemon-err , modulelauncher[90668]: osdx.utils.xos cmd error: useradd -s '/sbin/tacacs_shell' -m -N -g 'cfg_operator' -G 'frrvty,frr,osdxcfg,sudo,adm,dip,disk,users' tacacs5 2025-03-18 14:42:30.061612 daemon-err , modulelauncher[90668]: Command 'useradd -s '/sbin/tacacs_shell' -m -N -g 'cfg_operator' -G 'frrvty,frr,osdxcfg,sudo,adm,dip,disk,users' tacacs5' returned non-zero exit status 9. 2025-03-18 14:42:30.065453 daemon-err , modulelauncher[90668]: osdx.utils.xos cmd error: useradd -s '/sbin/tacacs_shell' -m -N -g 'cfg_admin' -G 'frrvty,frr,osdxcfg,sudo,adm,dip,disk,users' tacacs15 2025-03-18 14:42:30.065495 daemon-err , modulelauncher[90668]: Command 'useradd -s '/sbin/tacacs_shell' -m -N -g 'cfg_admin' -G 'frrvty,frr,osdxcfg,sudo,adm,dip,disk,users' tacacs15' returned non-zero exit status 9. 2025-03-18 14:42:34.355846 authpriv-err , login[90798]: Permission denied 2025-03-18 14:42:34.791750 auth-err , sshd[90806]: error: PAM: pam_open_session(): Permission denied 2025-03-18 14:43:05.563127 daemon-err , cfgd[1459]: [90825]Command output: File name reserved Value validation failed 2025-03-18 14:43:12.780842 daemon-notice , cfgd[1459]: [90825]Completed change to active configuration 2025-03-18 14:43:12.783330 auth-notice , OSDxCLI: User 'admin' committed the configuration. 2025-03-18 14:43:12.808607 auth-notice , OSDxCLI: User 'admin' left the configuration menu. 2025-03-18 14:43:12.969141 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-03-18 14:43:20.879081 daemon-info , systemd[1]: Created slice system-dhcpd.slice - Slice /system/dhcpd. 2025-03-18 14:43:20.909253 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-03-18 14:43:30.185943 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 1Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.174 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.174/0.174/0.174/0.000 ms
Step 3: Run command show host name
at DUT0
and expect this output:
Show output
osdx
Note
Check the server /var/log/10.215.168.64/.log
file and read the
executed a new command: 'show host name'
log message:
Show output
2025-03-18T14:43:37.950763+00:00 10.215.168.64 2025-03-18T14:43:37.299369+00:00 daemon-notice osdx cfgd[1459]: [90825]Completed change to active configuration 2025-03-18T14:43:37.986754+00:00 10.215.168.64 2025-03-18T14:43:37.335336+00:00 auth-notice osdx OSDxCLI: User 'admin' committed the configuration. 2025-03-18T14:43:38.031275+00:00 10.215.168.64 2025-03-18T14:43:37.380110+00:00 auth-notice osdx OSDxCLI: User 'admin' left the configuration menu. 2025-03-18T14:43:38.214245+00:00 10.215.168.64 2025-03-18T14:43:37.562946+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'. 2025-03-18T14:43:38.304475+00:00 10.215.168.64 2025-03-18T14:43:37.653213+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 1Show output
ping: Warning: source address might be selected on device other than: VRF0 PING 10.215.168.1 (10.215.168.1) from 10.215.168.64 VRF0: 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.200 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.200/0.200/0.200/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-03-18T14:43:38.797435+00:00 10.215.168.64 2025-03-18T14:43:38.146107+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'show version'. 2025-03-18T14:43:38.984064+00:00 10.215.168.64 2025-03-18T14:43:38.332874+00:00 user-warning osdx OSDxCLI: Signal 10 received 2025-03-18T14:43:39.006212+00:00 10.215.168.64 2025-03-18T14:43:38.354833+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'set system mode user'. 2025-03-18T14:43:40.063937+00:00 10.215.168.64 2025-03-18T14:43:39.412783+00:00 auth-notice osdx OSDxCLI: User 'admin' entered the configuration menu. 2025-03-18T14:43:40.180600+00:00 10.215.168.64 2025-03-18T14:43:39.529257+00:00 auth-notice osdx OSDxCLI: User 'admin' added a new cfg line: 'delete '. 2025-03-18T14:43:40.288235+00:00 10.215.168.64 2025-03-18T14:43:39.637012+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-03-18T14:43:40.412671+00:00 10.215.168.64 2025-03-18T14:43:39.761492+00:00 auth-notice osdx OSDxCLI: User 'admin' added a new cfg line: 'show working'. 2025-03-18T14:43:45.782818+00:00 10.215.168.64 2025-03-18T14:43:45.610370+00:00 daemon-notice osdx cfgd[1459]: [90825]Completed change to active configuration 2025-03-18T14:43:45.818646+00:00 10.215.168.64 2025-03-18T14:43:45.646289+00:00 auth-notice osdx OSDxCLI: User 'admin' committed the configuration. 2025-03-18T14:43:45.855636+00:00 10.215.168.64 2025-03-18T14:43:45.683438+00:00 auth-notice osdx OSDxCLI: User 'admin' left the configuration menu. 2025-03-18T14:43:46.063980+00:00 10.215.168.64 2025-03-18T14:43:45.891654+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-03-18T14:43:46.146569+00:00 10.215.168.64 2025-03-18T14:43:45.974302+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 1Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.195 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.195/0.195/0.195/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-03-18T14:43:46.639457+00:00 10.215.168.64 2025-03-18T14:43:46.467201+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'show version'. 2025-03-18T14:43:46.939682+00:00 10.215.168.64 2025-03-18T14:43:46.767403+00:00 user-warning osdx OSDxCLI: Signal 10 received 2025-03-18T14:43:46.963170+00:00 10.215.168.64 2025-03-18T14:43:46.790896+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'set system mode user'. 2025-03-18T14:43:47.953790+00:00 10.215.168.64 2025-03-18T14:43:47.781521+00:00 auth-notice osdx OSDxCLI: User 'admin' entered the configuration menu. 2025-03-18T14:43:48.068951+00:00 10.215.168.64 2025-03-18T14:43:47.896683+00:00 auth-notice osdx OSDxCLI: User 'admin' added a new cfg line: 'delete '. 2025-03-18T14:43:48.176967+00:00 10.215.168.64 2025-03-18T14:43:48.004653+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-03-18T14:43:48.299483+00:00 10.215.168.64 2025-03-18T14:43:48.127204+00:00 auth-notice osdx OSDxCLI: User 'admin' added a new cfg line: 'show working'. 2025-03-18T14:43:53.574881+00:00 10.215.168.64 2025-03-18T14:43:53.378115+00:00 daemon-notice osdx cfgd[1459]: [90825]Completed change to active configuration 2025-03-18T14:43:53.611214+00:00 10.215.168.64 2025-03-18T14:43:53.414414+00:00 auth-notice osdx OSDxCLI: User 'admin' committed the configuration. 2025-03-18T14:43:53.636540+00:00 10.215.168.64 2025-03-18T14:43:53.440007+00:00 auth-notice osdx OSDxCLI: User 'admin' left the configuration menu. 2025-03-18T14:43:53.821588+00:00 10.215.168.64 2025-03-18T14:43:53.625009+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'. 2025-03-18T14:43:53.911144+00:00 10.215.168.64 2025-03-18T14:43:53.714563+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 1Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.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
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-03-18T14:44:01.490560+00:00 33.33.33.33 2025-03-18T14:44:00.536403+00:00 daemon-notice osdx cfgd[1459]: [90825]Completed change to active configuration 2025-03-18T14:44:01.531762+00:00 33.33.33.33 2025-03-18T14:44:00.577721+00:00 auth-notice osdx OSDxCLI: User 'admin' committed the configuration. 2025-03-18T14:44:01.557358+00:00 33.33.33.33 2025-03-18T14:44:00.603420+00:00 auth-notice osdx OSDxCLI: User 'admin' left the configuration menu. 2025-03-18T14:44:01.733684+00:00 33.33.33.33 2025-03-18T14:44:00.779785+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'. 2025-03-18T14:44:01.822411+00:00 33.33.33.33 2025-03-18T14:44:00.868401+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'show host name'. 2025-03-18T14:44:04.973688+00:00 33.33.33.33 2025-03-18T14:44:04.019699+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 1Show output
ping: Warning: source address might be selected on device other than: VRF0 PING 10.215.168.1 (10.215.168.1) from 10.215.168.64 VRF0: 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.203 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.203/0.203/0.203/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-03-18T14:44:05.586844+00:00 33.33.33.33 2025-03-18T14:44:04.632826+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'show version'. 2025-03-18T14:44:05.878026+00:00 33.33.33.33 2025-03-18T14:44:04.924037+00:00 user-warning osdx OSDxCLI: Signal 10 received 2025-03-18T14:44:05.897530+00:00 33.33.33.33 2025-03-18T14:44:04.943296+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'set system mode user'. 2025-03-18T14:44:06.925406+00:00 33.33.33.33 2025-03-18T14:44:05.971349+00:00 auth-notice osdx OSDxCLI: User 'admin' entered the configuration menu. 2025-03-18T14:44:07.056771+00:00 33.33.33.33 2025-03-18T14:44:06.102726+00:00 auth-notice osdx OSDxCLI: User 'admin' added a new cfg line: 'delete '. 2025-03-18T14:44:07.168454+00:00 33.33.33.33 2025-03-18T14:44:06.214378+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-03-18T14:44:07.313292+00:00 33.33.33.33 2025-03-18T14:44:06.359267+00:00 auth-notice osdx OSDxCLI: User 'admin' added a new cfg line: 'show working'. 2025-03-18T14:44:13.107140+00:00 33.33.33.33 2025-03-18T14:44:12.904884+00:00 daemon-notice osdx cfgd[1459]: [90825]Completed change to active configuration 2025-03-18T14:44:13.107140+00:00 33.33.33.33 2025-03-18T14:44:12.905298+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-03-18T14:44:13.142318+00:00 33.33.33.33 2025-03-18T14:44:12.940419+00:00 auth-notice osdx OSDxCLI: User 'admin' committed the configuration. 2025-03-18T14:44:13.168425+00:00 33.33.33.33 2025-03-18T14:44:12.966563+00:00 auth-notice osdx OSDxCLI: User 'admin' left the configuration menu. 2025-03-18T14:44:13.381376+00:00 33.33.33.33 2025-03-18T14:44:13.179534+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-03-18T14:44:13.463717+00:00 33.33.33.33 2025-03-18T14:44:13.261770+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 1Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.267 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.267/0.267/0.267/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-03-18T14:44:21.553473+00:00 10.215.168.64 2025-03-18T14:44:20.499596+00:00 daemon-notice osdx cfgd[1459]: [90825]Completed change to active configuration 2025-03-18T14:44:21.595841+00:00 10.215.168.64 2025-03-18T14:44:20.536551+00:00 auth-notice osdx OSDxCLI: User 'admin' committed the configuration. 2025-03-18T14:44:21.595841+00:00 10.215.168.64 2025-03-18T14:44:20.562841+00:00 auth-notice osdx OSDxCLI: User 'admin' left the configuration menu. 2025-03-18T14:44:21.595841+00:00 10.215.168.64 2025-03-18T14:44:20.739377+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'. 2025-03-18T14:44:21.595841+00:00 10.215.168.64 2025-03-18T14:44:21.010549+00:00 syslog-warning osdx rsyslogd: warning: certificate file is not set [v8.2302.0 try https://www.rsyslog.com/e/2330 ] 2025-03-18T14:44:21.595841+00:00 10.215.168.64 2025-03-18T14:44:21.010674+00:00 syslog-warning osdx rsyslogd: warning: key file is not set [v8.2302.0 try https://www.rsyslog.com/e/2331 ] 2025-03-18T14:44:23.649923+00:00 10.215.168.64 2025-03-18T14:44:23.118709+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 1Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data. 64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.196 ms --- 10.215.168.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.196/0.196/0.196/0.000 ms
Step 3: Run command show host name
at DUT0
and expect this output:
Show output
osdx
Note
Check the server /var/log/33.33.33.33/.log
file and read the
executed a new command: 'show host name'
log message:
Show output
2025-03-18T14:44:31.419061+00:00 33.33.33.33 2025-03-18T14:44:30.775385+00:00 daemon-notice osdx cfgd[1459]: [90825]Completed change to active configuration 2025-03-18T14:44:31.463838+00:00 33.33.33.33 2025-03-18T14:44:30.815118+00:00 auth-notice osdx OSDxCLI: User 'admin' committed the configuration. 2025-03-18T14:44:31.463838+00:00 33.33.33.33 2025-03-18T14:44:30.840719+00:00 auth-notice osdx OSDxCLI: User 'admin' left the configuration menu. 2025-03-18T14:44:31.463838+00:00 33.33.33.33 2025-03-18T14:44:30.890833+00:00 syslog-warning osdx rsyslogd: warning: certificate file is not set [v8.2302.0 try https://www.rsyslog.com/e/2330 ] 2025-03-18T14:44:31.463838+00:00 33.33.33.33 2025-03-18T14:44:30.890931+00:00 syslog-warning osdx rsyslogd: warning: key file is not set [v8.2302.0 try https://www.rsyslog.com/e/2331 ] 2025-03-18T14:44:31.536221+00:00 33.33.33.33 2025-03-18T14:44:31.020183+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'. 2025-03-18T14:44:31.762051+00:00 33.33.33.33 2025-03-18T14:44:31.245897+00:00 auth-notice osdx OSDxCLI: User 'admin' executed a new command: 'show host name'.