Monitoring and Troubleshooting

Monitoring and Troubleshooting

Quiz Page

Test your understanding of key concepts with a short quiz. A quick way to check what you know before moving on.

Lab Page

Hands-on practice exercises to reinforce what you’ve learned. Work through real scenarios in a guided environment.

Notes

Ping and traceroute are popular troubleshooting tools on any device, and Junos is no exception. There are some advanced options available though (see the command summary below).

Unlike some other vendors, Juniper rely heavily on log files, rather than just writing to screen. Log files are stored in /var/logs. The messages file, in particular, is very useful.

Often there are so many entries in a log file that it’s hard to find what you need. If you want to see just the most recent entries, show the log, and pipe it through the ‘last’ command.

We can monitor log files with the ‘monitor’ command. This shows the newest log entries on the screen as they are added.

Use match with monitor to filter in real-time.

Traceoptions are like debugs on other vendor devices. They are configured per feature that we want to troubleshoot.

Traceoptions write enties to log files, rather than to the screen, but we can use ‘monitor’ to see the entries on the screen as well.

Redirect traceoptions to a syslog server using destination-override syslog host.

If you want to limit who can access a traceoptions file, use world-readable or no-world-readable.

When logging, add explicit-priority to include syslog levels.

If you need assistance, you will need to call JTAC. It will help if you export logs and other relevant information ahead of time.

Command Summary

CommandModeDescription
ping IP rapidOperationalA rapid ping (Cisco style)
ping IP bypass-routingOperationalBypass the routing table for a ping
ping IP routing-instance NAMEOperationalPing using a routing instance
traceroute monitor IPOperationalContinually monitor a path
request system storage cleanupOperationalFree up space
show log messagesOperationalShow the messages log
show log FILENAMEOperationalShow any log file
show system boot-messagesOperationalShow system boot logs
monitor startOperationalBegin monitoring a file in real-time to see changes as they happen
monitor listOperationalSee a list of files being monitored
monitor stopOperationalStop monitoring a file
set system syslog hostConfigurationConfigure a syslog server
set system syslog … source-addressConfigurationConfigure a syslog source IP
set system syslog consoleConfigurationSend syslogs to the console
monitor interfaceOperationalSee interface stats in real-time
monitor interface trafficOperationalMonitor all interfaces at once
monitor traffic interfaceOperationalA tcpdump style packet capture (traffic to the RE)
set … traceoptions file FILENAME flag ITEMConfigurationConfigure traceoptions
show chassis alarmsOperationalSee any current alarms
show chassis environmentOperationalCheck temperature, fan status, etc
show chassis temperature-thresholdsOperationalCheck temperature warning levels
show chassis hardwareOperationalSee the hardware in your platform
show chassis fpcOperationalGet line card details
show chassis clusterOperationalGet cluster information 
show chassis routing-engineOperationalGet RE details
show system core-dumpsOperationalCollect core-dump information
show system alarmsOperationalShow system alarms
show system boot-messagesOperationalShow messages logged during boot
show system licenseOperationalShow licensing information
show system storageOperationalShow disk usage
show system uptimeOperationalSee when the system last booted
show system process extensiveOperationalShow a full list of processes
request system haltOperationalPower down the system
request system power-offOperationalPower down the system
request system software addOperationalUpdate Junos
request system configuration rescue saveOperationalUpdate the rescue configuration
request system configuration rescue deleteOperationalDelete the rescue configuration
request chassis routing-engine master switchOperationalChange over the active RE
request chassis fpc slot NUMBER restartOperationalRestart a line card
rollback rescueConfigurationLoad the rescue configuration
request support information | save /var/log/FILENAMEOperationalCollect JTAC support information
file archive compress source /var/log/* destination /var/tmp/FILENAMEOperationalAchive support information and logs, ready to be uploaded to JTAC
show chassis craft-interfaceOperationalShows the status of the LCD display on MX routers
set system syslog user USERNAMEConfigurationSend syslog messages to a users terminal (can use regex, facility, and severity to filter)
help syslogOperationalGet help on syslog messages

Additional References

ping

Compressing Troubleshooting Logs from /var/logs to Send to Juniper Networks Technical Support

show log

Displaying Log and Trace Files

 

Leave a Reply