Monitoring and Debugging L2/L3 protocols
Find and Configure the Log File
By default, the syslog local-file is ram. The log file name is "message" which is in the directory "/tmp/log"
admin@XorPlus$cd /tmp/log admin@XorPlus$ls lastlog lighttpd messages wtmp
You can use "tail -f /tmp/log/message" to tail the log message.
You can change the syslog local-file to disk.The log file name is "message" which is in the directory of "/var/log"
admin@XorPlus# set system syslog local-file disk admin@XorPlus# commit Commit OK. Save done. admin@XorPlus# admin@XorPlus$cd /var/log/ admin@XorPlus$ls apt dmesg fsck last_death lastlog messages news ntpstats wtmp admin@XorPlus$
You can use "tail -f /var/log/message" to tail the log message.
Enable Important Debugs
Enable debug interface:
##Global Interface traceoptions. admin@XorPlus# set interface traceoptions flag ? Possible completions: <[Enter]> Execute this command all Configure all tracing config Configure configuration tracing ethernet-switching-options Configure ethernet-switching-options tracing mlag-trace Configure mlag event tracing neighbor-event Configure neighbor event tracing packets Configure received or sent packets event tracing port-security Configure port security tracing raw-packet Configure receive raw packet tracing route-event Configure route event tracing static-ethernet-switching Configure static-ethernet-switching tracing admin@XorPlus# set interface traceoptions flag config ? Possible completions: <[Enter]> Execute this command disable Disable tracing admin@XorPlus# set interface traceoptions flag config disable false admin@XorPlus# commit Commit OK. Save done. admin@XorPlus# admin@XorPlus# set interface traceoptions line-card ? Possible completions: <[Enter]> Execute this command statistics Configure line card statistic module trace trace-level Configure line card trace level trace-type Configure line card trace type admin@XorPlus# set interface traceoptions line-card trace-level all disable false admin@XorPlus# commit Commit OK. ##Per physical interface traceoptions. admin@Xorplus# set interface gigabit-ethernet ge-1/1/1 traceoptions flag Possible completions: <[Enter]> Execute this command all Configure received and sent packets event tracing message-in Configure received packets event tracing message-out Configure sent packets event tracing admin@Xorplus# set interface gigabit-ethernet ge-1/1/1 traceoptions flag message-in disable false admin@XorPlus# commit Commit OK. ##Per aggregate interface traceoptions of mlag. admin@Xorplus# set interface aggregate-ethernet ae1 traceoptions mlag flag Possible completions: <[Enter]> Execute this command all Configure all the mlag tracing event Configure mlag event tracing hello Configure mlag hello tracing igmp Configure mlag igmp tracing mac-sync Configure mlag mac-sync tracing packet Configure mlag packet tracing state-change Configure mlag state change tracing stp Configure mlag stp tracing timer Configure mlag timer tracing admin@Xorplus# set interface aggregate-ethernet ae1 traceoptions mlag flag hello disable false admin@XorPlus# commit Commit OK.
Enable debug of protocals:
admin@Xorplus# set protocols Possible completions: <[Enter]> Execute this command arp Configure ARP bfd Configure BFD bgp Configure BGP inter-domain routing dhcp Dynamic Host Configuration Protocol dot1x 802.1x protocol igmp Configure the IGMP protocol igmp-snooping Configure the igmp snooping lacp Link Aggregation Control Protocol lldp Link Layer Discovery Protocol 802.1AB mpls Configure MPLS neighbour Configure Neighbour Discovery Protocol netconf Configure NETCONF ospf4 Configure the OSPF protocol ospf6 Configure the OSPFv3 protocol pimsm4 Configure the IPv4 PIM-SM protocol rip RIP configuration sflow Configure sflow snmp Simple network management protocol configuration spanning-tree Configure Spanning Tree static Configure static routes udld Unidirectional Link Detection Protocol vrrp Configure VRRP admin@Xorplus# set protocols bfd traceoptions flag Possible completions: <[Enter]> Execute this command all Configure all tracing config Configure configuration tracing event Configure BFD session event tracing fsm Configure FSM state tracing packet Configure all packet tracing operations raw-packet Dump raw packets BFD read from or send to sockets timer Configure timer tracing admin@Xorplus# set protocols bfd traceoptions flag timer disable false admin@XorPlus# commit Commit OK.
Enable debug of LLDP:
## LLDP global traceoptions. admin@Xorplus# set protocols lldp traceoptions flag Possible completions: <[Enter]> Execute this command all Configure all events and packets tracing configuration Configure configuration tracing message-in Configure received message tracing message-out Configure send message tracing state-change Configure LLDP state change tracing admin@Xorplus# set protocols lldp traceoptions flag message-in disable false admin@XorPlus# commit Commit OK. ##LLDP per interface traceoptions. admin@Xorplus# set protocols lldp traceoptions interface ge-1/1/1 flag Possible completions: <[Enter]> Execute this command all Configure all events and packets tracing configuration Configure configuration tracing message-in Configure received message tracing message-out Configure send message tracing state-change Configure LLDP state change tracing admin@Xorplus# set protocols lldp traceoptions interface ge-1/1/1 flag configuration disable false admin@XorPlus# commit Commit OK.
Enable debug of LACP:
## LACP global traceoptions. admin@Xorplus# set protocols lacp traceoptions flag Possible completions: <[Enter]> Execute this command all Configure all events and packets tracing configuration Configure configuration tracing message-in Configure received message tracing message-out Configure send message tracing state-change Configure LACP state change tracing admin@Xorplus# set protocols lacp traceoptions flag message-in disable false admin@XorPlus# commit Commit OK. ##LACP per interface traceoptions. admin@Xorplus# set protocols lacp traceoptions interface ge-1/1/1 flag Possible completions: <[Enter]> Execute this command all Configure all events and packets tracing configuration Configure configuration tracing message-in Configure received message tracing message-out Configure send message tracing state-change Configure LACP state change tracing admin@Xorplus# set protocols lacp traceoptions interface ge-1/1/1 flag configuration disable false admin@XorPlus# commit Commit OK.
Enable debug of UDLD:
## UDLD global traceoptions. admin@Xorplus# set protocols udld traceoptions Possible completions: <[Enter]> Execute this command all Configure all events and packets tracing configuration Configure configuration tracing event Configure event tracing interface Interface name for tracing, such as ge-1/1/n or te-1/1/n packet Configure the sending/receiving packets tracing raw-packet Configure UDLD raw packet tracing state-change Configure state change tracing timer Configure UDLD timer tracing admin@Xorplus# set protocols udld traceoptions event disable false admin@XorPlus# commit Commit OK. ##UDLD per interface traceoptions. admin@Xorplus# set protocols udld traceoptions interface ge-1/1/1 flag Possible completions: <[Enter]> Execute this command all Configure all events and packets tracing configuration Configure configuration tracing event Configure event tracing packet Configure the sending/receiving packet tracing raw-packet Configure udld raw packet tracing state-change Configure state change tracing timer Configure udld timer tracing admin@Xorplus# set protocols udld traceoptions interface ge-1/1/1 flag configuration disable false admin@XorPlus# commit Commit OK.
Enable debug of BGP:
admin@XorPlus# set protocols bgp traceoptions flag ? Possible completions: <[Enter]> Execute this command FSM Configure FSM state tracing all Configure all tracing operations configuration Configure configuration tracing damp Configure damp tracing event Configure FSM Event tracing keepalive Configure keepalive packet tracing nexthop-resolution Configure nexthop resolution with RIB tracing notification Configure notification packet tracing notify-snmp Configure notify snmp tracing open Configure open packet tracing packet Configure all packet tracing operations policy Configure policy configuration tracing raw-packet Dump raw packets BGP read from or send to sockets route-refresh Configure route refresh packet tracing timer Configure timers tracing update Configure update packet tracing admin@XorPlus# set protocols bgp traceoptions flag all disable false admin@XorPlus# commit Commit OK. Save done. admin@XorPlus#
Enable debug of ospf4:
admin@XorPlus# set protocols ospf4 traceoptions flag ? Possible completions: <[Enter]> Execute this command adjacency-event Configure tracing of adjacency events all Configure all tracing operations config Configure tracing of configuration database-description Configure tracing of database description packets event Configure tracing of OSPF state machine events flooding Configure tracing of lsa flooding hello Configure tracing of hello packets lsa-ack Configure tracing of LSA acknowledgment packets lsa-generation Configure tracing of lsa-generation events lsa-request Configure tracing of LSA request packets lsa-update Configure tracing of LSA update packets packets Configure tracing of all OSPF packets retransmission Configure tracing of lsa-packets retransmission route Configure tracing of routing information spt Configure tracing of spt calculations timer Configure tracing of routing protocol timer processing admin@XorPlus# set protocols ospf4 traceoptions flag all disable false admin@XorPlus# commit
Enable debug of stp:
admin@XorPlus# set protocols spanning-tree traceoptions interface ge-1/1/1 ? Possible completions: <[Enter]> Execute this command all Configure all tracing operations bridge-detection-machine Configure bridge detection state machine tracing configuration Configure configuration tracing events Configure events tracing message-in Configure receive message tracing message-out Configure send message tracing port-information-machine Configure port information state machine tracing port-migration-machine Configure port migration state machine tracing port-receive-machine Configure port receive state machine tracing port-role-selection-machine Configure port role selection state machine tracing port-role-transition-machine Configure port role transition state machine tracing port-state-transition-machine Configure port state transition state machine tracing port-transmit-machine Configure port transmit state machine tracing state-machine-variables Configure state machine variables tracing timers Configure timers tracing topology-change-machine Configure topology change state machine tracing admin@XorPlus# set protocols spanning-tree traceoptions interface ge-1/1/1 all disable false admin@XorPlus# commit Commit OK. Save done. admin@XorPlus#
Enable debug of igmp:
admin@XorPlus# set protocols igmp traceoptions flag ? Possible completions: <[Enter]> Execute this command all Configure all tracing operations event Configure event tracing leave Configure leave tracing query Configure query tracing report Configure report tracing admin@XorPlus# set protocols igmp traceoptions flag all disable false admin@XorPlus# commit Commit OK. Save done. admin@XorPlus#
Find the Core Dump File
When the device crashes, it will create a core file which can be found in a directory called pica/core.
admin@XorPlus$pwd /pica/core
Find the last_death file for Troubleshooting
You can view the last_death file after the device crashes. It will record the last log message.
admin@XorPlus$pwd /var/log admin@XorPlus$ls apt dmesg fsck last_death lastlog messages news ntpstats wtmp
Copyright © 2025 Pica8 Inc. All Rights Reserved.