Event Viewer

Discussion in 'Mac mini' started by mainstay, Apr 24, 2011.

  1. mainstay macrumors 6502

    mainstay

    Joined:
    Feb 14, 2011
    Location:
    BC
    #1
    Hi Guys,

    A mac mini (2 months old) connected to a GOOD UPS is now rebooting on it's own 3-4 times a day.

    There are log files generated for these events but are too detailed for my understanding.

    Is there a simple event viewer (like MS eventvwr.msc) that can show me failed services, failed operations, etc., so I can try and track down what the heck is going on?

    Any help would be appreciated.

    --m
     
  2. Detrius macrumors 68000

    Joined:
    Sep 10, 2008
    Location:
    Asheville, NC
    #2
    I don't recall off the top of my head whether it's in /var/log/kernel.log or /var/log/system.log, but when the system boots back up, it provides a previous shutdown cause as an integer, and that integer can be used to point you in the right direction. There's not actually a list that's publicly available, but I might be able to find what it means for you.
     
  3. dyn macrumors 68030

    Joined:
    Aug 8, 2009
    Location:
    .nl
    #3
    Use Console (it's in the Utilities folder in Applications) and search for events (you want to search in the "All Messages" log). By default it will show everything just like event viewer does but unlike event viewer it allows you to search for something specific. This will narrow down the list tremendously. On the commandline you'd do something similar with tools like grep, tail, head, view, less, etc.
     
  4. mainstay thread starter macrumors 6502

    mainstay

    Joined:
    Feb 14, 2011
    Location:
    BC
    #4
    holy smokes! I had no idea there were so many log files.

    Thanks for the nudge in the right direction.

    I think I must have been looking at a truncated format in the admin console... because this is much more detailed.

    Now to backtrack the shutdown times (I haven't completely eliminated electrical issues).

    Thanks!

    --m
     
  5. Detrius macrumors 68000

    Joined:
    Sep 10, 2008
    Location:
    Asheville, NC
    #5
    Type "last" in the Terminal and press enter. Anything labeled as a "crash" is simply an improper shutdown. You can also search in Console.app for "previous shutdown cause", and the numbers given can be cross-referenced for why the machine thinks it turned off.
     
  6. cocacolakid macrumors 65816

    cocacolakid

    Joined:
    Dec 18, 2010
    Location:
    Chicago
    #6
    Have you removed the mini from the UPS for a few hours to see if it's rebooting on it's own?
     
  7. mainstay, May 2, 2011
    Last edited: May 26, 2011

    mainstay thread starter macrumors 6502

    mainstay

    Joined:
    Feb 14, 2011
    Location:
    BC
    #7
    I removed the UPS USB connection and the unit seems to have settled down (7 days without reboot).

    It no longer is getting communication with the battery backup (and so will not properly shut down at low battery), but this is much preferred to 4-5 times a day.

    I also have requested an electrician to check the main power to the sockets supplying power.


    Nice! - thank you!


    Edit: 30 days now without a shutdown... it must have been the USB connection to the APC battery backup.
     

Share This Page