Learn how system monitoring is accomplished with the PS command line tool. Learn how to use the TOP command to monitor live system performance. Learn how to use ARD and SSH (Apple Remote Desktop and the Secure Shell) to run these useful built in monitoring and assessment executables. Learn how to use the command line to assess performance on Mac OS X.
- [Instructor] For systems administrators, one of the gigantic changes in Sierra is the way the logging system has been redeveloped, and the changes to our Console application, which is how we look at those logs to troubleshoot problems. I want to just give you a brief overview and a tour, and then throughout the next few movies, we'll get into further detail about each of these tools. I'm going to start us off in the utilities folder by hitting cmd+shift+u on my keyboard, and we're going to just open up the Console app right here.
First thing I'd like to point out about Console is that it is a 1.0 version of the product. If I go down from the application name to about, you can see version 1.0. It's a complete rewrite, brand new thing. And while it looks very similar, there are things that you would expect to be able to do here that you might not necessarily be able to do. So, if I were to just go up here and type backupd in Console on a El Capitan system or earlier, I would see my time machine logs, right? This is not happening here because I'm not doing it the right way.
So, just jumping right into this and expecting it to be instantly functional in the way that you used to use it is not always going to be great. What we're viewing here on our devices is, in this particular case, we are looking at a Mac Mini named Sean's macOS Mac Mini, and it is showing you the logs that are streaming through. What we're seeing in the window coming through here is the results of the log stream command, and I'll be showing that to you a little bit later. Below that, we have reports. These are not actual physical log files.
These are reports that are based upon criteria. And you have similar abilities to set up things called queries. If you were to search on something up here that resulted in a resulting search, you could save those searches along this bar here, very much like you would put bookmarks into a favorites bar in Safari. All right, another thing of note here within Console is the devices is not limited to just the computer that you're running Console from. If you plug in compatible devices, their logs will show up here as well.
So you can plug in your latest iPhone, your latest iPod Touch, your Apple Watch, your Apple TV, and those items will all show up here, and you can review their logs for troubleshooting. Now, this is extremely useful if you are an application developer, and you want to review the logs on the device as you're running your beta application on it and you're looking to troubleshoot things. This is also useful if you're an IT administrator, and you're trying to troubleshoot a device. If you've got an iPad or an iPhone, or something that's misbehaving, and you want to look at log files to try to determine what might be going wrong, you can plug those devices in now, and if they're running a compatible version of the operating system, the Console app will be able to read those logs, and you'll be able to do some troubleshooting in that way.
Okay, so that's just briefly Console. Let's hit quit. I mentioned the log command. A lot of what's available now is here in Terminal. The log command is completely new as well, and we're going to talk about how you do things like enable debug logging and all of that sort of thing. But if you just type man log, you will get access to the man page on the new log command, which is extensive, and will take a while to digest. It's just a lot of information. I'm going to walk you through some of the most important things, at least as far as I'm concerned, some of the things that will allow you to get immediate functionality out of the logging system, but I'm just hitting the spacebar to move through this man page.
You can certainly read through the man page if you wish, if you have the patience to do so. It's a lot, and certainly you'll get a lot out of it. You type the Q key on your keyboard in order to get out of the man page, just so you know. If I type log stream, it just gives me a stream of what's coming through in the logs, and this is basically exactly what we were seeing right there on the device when we opened up Console. It's just an active stream of what happens to be traveling across the system right now with active reporting applications and system components.
When we want to finish that, we just hit cmd+. on our keyboard. We ant to leave this terminal window, we type exit, hit return, and then cmd+q to quit. And so, that's just a brief tour. We have a brand now Console application, we have a brand new logging system with a very detailed man page with lots of information that definitely deserves to be read. As we go through the next few movies, I'll be walking you through some of the key features of each.
- Backing up macOS Sierra
- Restoring files
- Managing iCloud
- Working with storage
- Creating Apple File System disk images, containers, and volumes
- Reviewing logs in the console
- Using log commands
- Securing macOS Sierra
- Configuring Sierra via MDM