Basic Linux troubleshooting

  1. Search through /var/log/messages first with grep
  • grep error /var/log/messages or the historical message logs.
  • Search using grep “something” /var/log/messages or grep –i “Something” /var/log/messages to ignore case
  1. Look at the log entries around the reported timeframe
  • Use head or tail, tail –n 100 /var/log/messages
  • Use egrep or perl for more specific searches, if repeated analysis is needed
  1. Once the timeframe is known we can look at historical performance with various sar commands
  • sar –A
  • If Oracle Linux, run sosreport
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s