Welcome to Cyberia. I t I'm Greg Stewart. I'm your subject matter expert for leanings. Plus,
in this part of module three, we're gonna be talking about some basic troubleshooting that you can do in your system.
Now is a systems administrator. You're gonna spend a lot of time doing troubleshooting.
So we're gonna go through some of the troubleshooting commands that you can run some command line tools that will actually help you, too.
Get a grasp on really where the problem exists and how to eradicate that problem.
So with Windows, there's a lot of different tools you can use. However, with with Lennox, I find it to be much quicker and easier to use the command line interface in the available command line tools.
There's a lot of third party tools that are available out there. Also that you can grab, and some of them have a graphical user interface.
But most of them are just command line. But they all provide some great information in background as to what's going on with your system.
Where to find the issue, what the issue is, what's causing problems in your system, and then you can go about figuring out how to mitigate those problems.
So we're gonna start off with the command line. We will touch on a few of the
we'll touch on a few of the gooey items.
Okay, so here I am in my command line. What I've done is I've blown this command line up full screen so that you can see
the full breath of the the of the display of the results from these commands. But some of it could get pretty lengthy and a smaller, smaller terminal window. You won't get a CZ much
clean displays you would in a larger window. Some of most of these commands the output has columns and rows, and if you have a smaller window, it gets a little jumbled. That's just how it's written, so focused mainly on having a full screen go full screen on this. When you're doing these commands,
we'll see a lot of these commands.
I will tell you what they are and how they work. A lot of them won't be able to run because requires
no crisis to have a full running Apache Web server going to several different Lennox boxes of us don't have Mrs Lab
this isn't something that you can't do on your own, though the Lenox Web servers of the Apache Web server
is really simple to download and set up, basically can grab it using the APP, get command
and built through the download steps and you could run it. There's a lot of good blocks out there on setting up a Web server,
and those are all things that you can do great. And you're not gonna be tested in depth on Apache and what works and what it doesn't have set it up on your exam. There just aren't enough questions in the exam. Even with two exams, there just aren't enough questions that you could ask assistant administrator
to fully cover the breath of his or her experience.
So we're gonna do is gonna focus on some of the main troubleshooting commands. Once they'd be using day and it day out. That could actually help you to find what's going on your system.
The important thing is when somebody submits a trouble ticket or somebody calls you on, the phones have se X Y Z is not working.
Foreman machine is frozen or
I can't connect to my virtual machine or I can't connect to the Internet. I can't connect Oh, shared file or a shared directory, those kind of things that you have to understand, where to start looking for
and most, most of the time, our logs are gonna be our friend. And we've talked about some of the logs. Talk about some of the history commands you could run to see who's been along
the machine, what they've been doing, etcetera. And from a widespread network environment, you could do a lot more with that. Thing is, we're only using one machine here on my demo box. We'll be able to see the full
oh spread of that command, those networking commands. But you can always go out and find these on your own and touch upon.
So let's start with some of the more simple on. So
begin to a situation where you need to shut down a box.
Of course, you can go and use the gooey and shut it down. We're focusing on the command line here because a lot of times
you'd be singing your desk. You're not gonna be
ableto remote into these boxes, so I've used the remote desktop client for linens called machine. No machine
for a long time, and no machine will allow you to rdp into it limits box.
We're not gonna deal with that. We're gonna deal with strictly with this sum.
of course, you can use putty Any sshh client. They're putty for every other clients that you might find most of her free downloads
those who can use to actually reach the
the terminal window to command line. So were the folks in the command line cause assistant, As a systems administrator,
you'll be you'll get the option thio put into these machines and get into a terminal. But you will always have the option to get to the graphical interface.
So let's start off with shutting down if you have to get into the machine and shut down for some reason one or another,
there's, you know, a set of there's a shutdown command, and there's also set of switches or arguments that you can use to tell it what to do.
So let's go through some of those gains. This is not just gonna take a few. We're gonna shut the machine down, start back up a few times, so
bear with me on this one. You might have to. We might have to just wait for a little bit watching paint dry,
But let's start off with Shut down. So you need to shut the machine down. I'm just gonna type Shut down.
Okay, I'm gonna type Shut down.
You have to give the shot that you said Shut down. Enter.
It's not gonna not gonna shut it down. What? It tells me you're after band is the shutdown is there's a time expected. You have to give the shut down
command a time parameter as to when you want to start showing the machine now.
Okay, so you could do that. Or you could just simply do now instead of a time. And when I'm when I'm in my administrative experience with Lennox, I'm consistently doing it is now. I don't really set a time.
If I set a time, I'll forget about it and be doing something and be in the middle of it. And then it shuts down. So I was When I do it and remember to shut down, I go and shut it down. Shut down now so that it goes down.
So let's say, if you're in the network situation, you want to send the command to any users that are actually logged into the machine.
If you're putting too interested staged into the console
of the machine, you can type shut down
bash Lower case K member. There's sensitivity case sensitivity with Lennox.
Some of the commands that we use was shut down are gonna have uppercase lower case, which is our arguments. This is the same with any linens command. Really? That has these switches.
So we're in attacks should shut down minus K.
And we're going to give it
the parameter of now. Okay? And what the minus K or the dash case, which tells us, gives us
push out a warning. A broadcast message to anybody that's logged into the machine is going to give them warning that Hey, the machine is gonna get ready to shut down, save your work and get off the machine. Now.
You know, otherwise you could lose data.
So this shutdown command, with this switch tied to it, this dash case, which is not actually going to show your machine back and still have to go in and use different command.
So let's go ahead and try us and see what happens.
Case, What does it tell us? We need to be route
with most commands that we're gonna be doing in this trouble shooting sys admin module.
We're gonna need to be rude. So if the sake of time, and to make things quicker, I'm gonna be the super user, and I'm just gonna go, go bash.
It's gonna ask me for the root. This is just my password,
and I'm at route now, so I'm not gonna have to use the suit command again. It's a great command and love it.
It has its place. For this point in time, I'm gonna just be at the root level, be the route user. So I could just get to these commands. Went up to constantly stopping my password.
Time's sakes. Let me go ahead and put it in again. I'm going to do I'm just gonna do my up arrow.
Yes, out there. So let me dio Shut down. Okay, now,
Okay. So what happened?
What is it that tells it? Okay, shut down to get the dash k. I'm just guessing the broadcast message from cyber admin That's the end user
at 20 to 40 sevens when I sent it. System's going down now for maintenance Now in all caps, Everybody that's logged into this machine that your consulate into is going to get this message pop open in terminal window.
That's a good thing and gives them in time. Give some time to do that, and you can actually go into the file system and actually find this, find this file and edit it to say, Really whatever you want, get off now are
you can put a banner message in there about what to do to log off Saviour those couple steps for user's that may need it.
The default is just The system is going down for maintenance. Now that's all users ever really need to know. You're gonna tell them it's going down because he found the virus or anything like that had to scare him. We're just going to say the system's going down for maintenance now. Once we do that,
you hit, you hit the Internet, gives us this message, and that's pretty much it. So you hit enter again. It drops you back down into your tea. Your prompt your screen prompts.
Okay, so now we're actually gonna shut down the the machine, you bunting machine.
Okay? And what I'm doing is I am not actually powering off
the the the actual machine. What I'm doing is empowering it. I'm halting system, empowering it. I'm showing the guest operating system down.
No, in or let's do that, I'm gonna do
with switch of dash H halter power off after shutdown
Okay, What that's going to do is just going to kill my guest operating system,
okay? And that, actually, that's which actually will shut down
the will actually power off after you after the shutdown and Powers is halted, its power system off.
Okay, what doesn't do is reboot, right? So I'm gonna go ahead and start my own machine again. Quick power on special machine.
Yeah, it's powering up. Going long back in.
It takes a little bit too long back in bear with me.
Okay, so we're back in.
Open up my terminal. I'm gonna go full screen again.
I'm back up. All right. So that halted the opera guest operating system and also powered the box off. Okay,
Now what I want to do What if I want to do that? But I wanted to come back and re boot up after it's been shut down. Well, I can do that. There's another switch for that one. That's shut down,
Dash lower case are in a time parameter now.
Okay, against tell May need to be rude. So good to see cash. You can also do Su su
I'm sorry. That's not the password. Could strike again. Password.
Okay, I'm route. That's another way to do it. Suits which user and assuming that you mean the route user, cause you didn't actually specify easy you won't switch to
and I'm going to do a shutdown.
that's going and tells you. Gives you message systems going down to reboot right now
and again it's going to kick me out. It's going to shut the machine down and so automatically gonna boot it back up.
Okay? Time's going through its post on their in. It's pretty snappy. Pretty quick. I'm running an SST on this laptop, so it's extra fast
skins to take a couple extra seconds long back and slightly slow.
I'm locked back in and open up a terminal again and go full screen.
Nothing you can do is
Capitol Team. Now, what that does is just going to power it off completely. It's not even gonna halt the operating systems is less of a
graceful shutdown on Mork old boot.
We're just basically, like thinking power cord in the back, right? I'm just gonna say shut it down and shuts down
with shutdown dash lower case age.
With the time Kraemer honor, that's actually going to halt the guest operating system that is going to power it off. Efforts been shut down.
so just good ones and the other one that you can do I'm not gonna enter the game's up.
I'm gonna You can type shut down like a lower case. I'm sorry. Not carrying minus dash dash health.
This is like the man page or help Paige, and it tells you all the different switches and what to write.
So here we talked about it. Reboot of just shut down these roles. We just went through,
um, time. This is here. Time may have different formats, but the most the most communists and with the word now, which will bring insisting down immediately.
Other other valid formats air the plus m, where the M is the number of minutes to wait until shutting down and hh colon mm specifies the two digits place to put in the hour and the minute on 24 hour clock.
So that would be for 8 p.m. F A B 20 100 hours. So 20 colon 00
Um, so the law gives you said here the logged in users are worn by a message into their terminal, which may include the optional message included. With this, messages can be sent without actually bringing this system. Damage is in chaos. Shall we discuss that?
Okay, so this is the hell pages, actually nice, because it gives you all the different switches you need. And if you don't, if you want to see if there's a HelpAge for any other command you use, you can type that. If it doesn't give you ah, response or output. That means there is no help, Paige. But there's always a bun to requires that there is a man page for every command
within the command line interface on a bun too.
I don't think I don't know that. That's the same for red hat when X or the door sandals, but for a bunch of that's that's a nice plus. OK, so we're going to clear that else we have a new screen.
So now you know what the shutdown commands are on what they dio.
Okay, There's some other commands that weaken d'oh,
that will help us to understand what's going on with their system. Okay, so when we're troubleshooting, we can use the following commands to check what are configuration is and any added peripheral device that we have printers, etcetera. We're gonna take a look at these commands. It tells the 1st 1 is the list hardware.
this is crazy again. So let me back up.
I'm gonna go to tell us H w If I just get that
she runs. Problem is a super user, Okay? Spooning me back out. So I'm gonna go ahead and do that again,
Control. See that I'm gonna do Seo. That's worth
and l s h w. Now if I just type l s H W is gonna give me a hardware list.
And what I found is that when you run this list, it's gonna pull down. Is pulling down a bunch of data so it takes a little bit longer than you normally
normally would. See. Our response, cop. Okay,
so here is listed all of our
hardware devices, and you can see that what it did is it hasn't gone back far enough.
I'm not able to scroll back The scroll back doesn't take Mel way back to the original commands. Almost. Surely something you can do that will help. That's let's stay clear.
Well, you can do is use the last command less.
And you're going to pipe that less command into
No, let's try this little mom.
I'm sorry. It's not gonna work.
okay, hold on. Let's try
something different here.
go ahead and listed again. Look through it.
It's coming up here soon. Scuzzy.
So it's your PC, I and this scuzzy all the different hardware interface is air here for you. Look at
Okay. You can scroll back through it. There's all your PC. I feel like this one actually did go all the way back to the beginning,
Okay. Tells you all the P c I shows your if you look at PC, I won the slots a PC. I bridge
the vendors. Veum. Where? Obviously this is a V m r workstation. Virtual machine shows your USB controllers cheddar. So if you want to get a little bit boring granular with each and every one of those,
you can look up specifically you can list the USB.
Okay, let's do it Clear on that so you could see it better. So if I do l s U S B
Think that command is going to list all of my universal serial bus for my USB controllers? OK,
Tells me the bus. The device i d number
what belongs to bust your charmed ones. The Legs foundation. Given there's another one for a rooftop than the other two are the actual humor
virtual us bees, which we're gonna point back to the physical USB controllers for the mouse keeper end. Any other peripherals use USB.
Uh, what if we do in Was to clear. I'm gonna keep clear in south Sudan. See it clean you
Okay, that's gonna list all my CPU information
and you can see here that the architecture is x 86 64 64 bit. Right.
the bite order here is listed his little Indian. Okay, si, pues or one
threat records one. This is a single CP single BC to you. Okay,
um, and the vendors Intel rights and running it until I seven core processor
until the middle of a mega hurts the bogo managed Harper by hyper visor vendors being where recognizes that I'm running a hyper visor for this being.
So that's good. This is good troubleshooting in phone. And now, Okay. So if you have to get support and the support person on the other end, if it's above and beyond your pay grade or you don't understand that you call support and they don't want to know some of this information, this is a good spot, that you go look for it. It's really good. It's a good command. You're all good community used to do some troubleshooting and figure out what
the data that you need to gather in order to put together a plan to make it a problem.
So let's look at another another L s command. So L s P c. I gives me all of my PC I devices. We looked at that spacing PC card and fell.
Okay, if I do, it's clear this one out. This is a really good one. L s underscore.
I'm sorry. Let's be underscore. At least dash A But that does Is that actually shows me the
my version Code name and released for the installation of 1/2. Currently, this is great. This is absolutely, absolutely important, too.
Getting support on the phone and have them figure out what's really the issue. If you find her being on the Internet and one of the communities and figure out to make it asked, what's your know what? Release air. Using et cetera.
Here it all is. The code name is trustee For this release, it's released $14 before using a bun to 14 04 dot long
lt s which is Ah, long term support. Okay, distributor ideas. Bun too.
Great One to use to figure out what's going on. What? What kind of release you have.
So another, another good one would be small salt business on my mind. My modules are my my box. Good stuff. No,
Um, again, I can do a net start. We've done nest and walked to that. Another good tool. You can use this test disc
testes. What it does is actually recovery recovery tool.
This is one that you actually have to go. This doesn't come in a built in automatically. This isn't automatically installed into your your destro.
You've actually got to go out and do a nap. Get to grab the testes package and install that. So it's a quick install, and you can see there's arrows here shows what do you can create a new log file?
As you know, it's recovery Software is designed to help you recover lost partitions and or make nonvoting discs bootable again when the systems air caught caused by faulty software.
We're certain types of viruses or human error, so it's It's a really good tool to use milk on the way to get out of this feedback trick. Man lies Q Q.
I just hit Q Q twice and took me out,
so that's that's a great tool to use. That's test disc,
Um, and then P s is a good one. It shows you're running processes. Okay,
These are some running process that I'm crazy. Suzu Bash P s k.
You know the really good ones to use. So there's it's those are some really good, quick
troubleshooting tools they can use.
So what about performance? How do we troubleshoot performance?
This is a great question.
I assume that if you were there in a classroom, we were together. This question might may arise. So it's let's cover it.
So a performance stroke troubleshooting for me always starts with the VM stack command. Okay.
And what that does gives you information about
virtual memory. Okay, It's short from virtual memory
and some other things such as links, processes, CPU activity and block Iook. And again with the M stat. Much like other ones, they're switches their arguments that you can place to get different outputs.
So let's look at the V M stat command and start with the M stat Dash a again. I'm gonna clear this out
Okay? So BM stat Dash a is showing me my mice, my swamp,
my free space, my inactive and active memory. Okay, And then it shows me a bunch of other calm So it looks like there's 123456 and 11 columns and those air sub columns to swap io system and CPU and memory.
So there's a lot of information there. Okay, we'll go through, we'll figure out what? What those don't mean. Okay, so
if you're looking at Proksa proxy field actually has two columns, and that's gonna be right over here. Okay,
Concede approx right here. Okay. And what the proxy cone does is it tells you two things than calm. The are calm,
which is the number of processes that are waiting for run time
and the be calm number processes in enoughto and uninterrupted bullets, big word, uninterruptible sleep or blocked processes. The memory field has four columns. The swamp, that s W P. D.
The amount of used to swap space or virtual memory that's used. Okay, this is the amount that's actually being used on their system. Currently,
remember our swamp or swap partition was basically an overflow for the memory that's being used.
The free that's pretty much self explanatory is the amount of free space or idle memory.
Enact is the amount of an active memory and active. It's obviously amount of active memory.
Okay, so when you break it down, these are all good and very helpful. So the swamp field actually has
two columns. If you look to the right of memory, appear at the top.
Okay, Swap field actually has two sub comes under that.
So it's the in her. I am.
Well, I'm sorry. That's system Theo s I is the amount of memory swapped in from disk and esos Amendment. We swapped out to this. So we were talking about swap partition. You're swapping memory in and out constantly,
depending on the amount of memory that you're overflowing on your
dedicated physical ram.
So this is this is good to know, kind of see how it's if you can look, it's just three and 19
okay? And that's not that's not a whole lot. So it's not. I'm not concerned about it now, But if that number were high insisted it would mean the system's getting pushed very hard
and you don't want to take a look at that. Maybe reconfigure your swap partition, maybe make it a little bit bigger.
Um, you know, Google around. See what you can find out what to do with your swap partition, but that would be an indicator.
The I O field is two columns
The B i N G o B I blocks received from a block of ice blocks in and blocks out blocks sent to a block device. Okay. For storage
under your system column there, too. They're two different columns. I n C s I n is the number of interrupts per second, including the clock system interrupts and CS is the number of context switches per second or process context legends
and then CPU has has only has four columns U S s y,
um, idea. Uh, I d N w a so
us his time spent running on Colonel cocaine. And this this stuff is getting a little above and beyond what you need to be concerned about for systems administration troubleshooting.
But nonetheless, it's good to know you may be tested on it.
That's why his time spent running girl code ideas Idle time and Delia is Time's been waiting for.
so the VM stat command is ah, very helpful. And where I find that it's most helpful is when you're trying to figure out this crew trying to troubleshoot disc related issues.
So let's try another command was trying other being stackers left, IBM stat
so for two Dashti is gonna give us the dash T switch or argument is going to report our disk statistics.
So let's walk through the meaning of these calls. Okay? So total is total reads could be completed, successfully
merger the group resulting in one io sectors are sectors that red successfully in masses millisecond spend reading.
Um, fairly self explanatory, right?
What else is that? Writes Total Total rights completed successfully and then emerged column again is the all the group rights just showing is one. I am
sectors again. Sectors run successfully in milliseconds. Been around those milliseconds spent writing The IO column is the current, you know. See, you are as the current is the Ioan progress of current Io and s his second spin fry up
and you can see here that is, instead of being asked, it's actually sec for ***. The second spin fry. Oh,
so good stuff here. You can see all this different memory and the disc issues that were going on and this could be you know, this could be a good place to start if you're having discus user, if you're finding their failures,
you go here and jump on this and you might see if your eye oh, super high maybe you have network congestion is causing your eye all rights to be huge.
Good place to go in check. So it's a good troubleshooting tooling again. That's the VM stat tool. Okay,
so with any type of trouble shooting and this is again, it's just gonna be another one of our longer recording. So if you need to take a break on this would be a good break point before we get into auditing. So go ahead and positive stretch to whatever you need to do. We'll pick back up whenever you decide to pick back up. That's the beauty of having on demand courses like this. So
by all means, take a break. If you need Thio, I'm gonna keep recording.
You can start and stop whenever you want.
along with troubleshooting you one major component of trouble, Shane, it's extremely helpful. Is auditing right? And when we talk about putting
were mainly talking about log files. Okay,
so we're gonna talk about long files in this section, and we're gonna talk about other gold command line tools that will help us to understand what's going on
on a trail stuff to understand what's been happening and things that we can actually watch take place in real time
so we can start off first, you know, by basically using their telling that command So you could tell that
So what's clears up? You'd better look.
So tell that local host 53. So what it's doing is just trying to This is my lube back address 1 27 Ow ow 270.0 dot one. What it's doing is trying to, you know, see if I can connect to my box, be if toward 53. It's a TCP ports.
And if you know your ports and protocols, you know that TCP Ports 53 is D N s,
which is why we're getting a failure here because we don't have d. N s configure for this host.
So if you try to do that, you want to check to see if you can connect check to check your important protocol,
um, to see if you get a response,
it will give you some informative information, like unable to connect remote host connection to refuse. Well, it's being refused, cause
Dennis is not set up currently. So poor 53 is not supposed to tell. It's a great tool to create auditing tools to your kind of port you have open. So let's try another. Tell that those
It was 22 s s age. We're seeing a lot of the same thing. Okay,
so s h is on. Has this age tell? That's agree, Tool they can use to check. You know which ports are open ports and protocols?
the P i. D. Command of the actual process idea. You can see you know what processes air running, you know, and what service is have what process? Ideas. They're tied to service names. So you can figure out if you have any noisy service is something they're taking up a lot of space or others.
I'm one of your machines. One of your end users machines is being super slow. You want to check out your process ideas.
I'm sorry for laughing her again.
I think You know that doesn't even exist yet again. We're dealing with the real vanilla installation. Bon Tigger.
But the command pit off.
second here, I'll pull it up.
Okay. This command, I'm gonna put it out. I'm gonna type it out here so you can see it. Service name.
Okay. If I do this, I hit. Enter and show me the service idea. The process I d name for that service
S O. You punch in any service. I encourage you to go ahead and try and punch a servant to see what it returns.
Gives you a little bit of a chance to do some little hands on yourself and poke around and figure it out. But it's good to know the process idea, because then you can once you find the process. I tease you going on. You didn't kill any of those processes that might be running that are taking a lot of space.
Okay, so let's jump into some of the logging.
All right? So our logs, a good place to start with logs would be the slash bar slash log directory. So let's go there. Let's change directory to your CD to our luck,
and we're gonna list It shows a list of all the logs that I currently have on my system.
What we're gonna focus on here is the actual sis log.
It's just long as a huge law. In fact, I'm gonna demonstrate how big it is. We're gonna
I'm just gonna type cat.
You can see that This will run and run and run and run and run. You just You can't read all that in time. And when I actually go back, if I go to try and
scroll back I came get all the way back is my
My buffer doesn't go back that far. Okay, my command buffer.
So there are things that I can do to read that. And what I want to do is do less.
now that that's done, is it will go. Basically it page by page is going to a pages. I'm one full screen at a time. So if I hit the space bar,
it gives me the next page. Now
space bar again. Because me another page you can see that if you look at the time here 8 2131 look at all the things. There's something happening pretty much every second.
Okay, so it's going, It's going. It's going to go back to the first time that logged in. Okay, it's going to killing. Going home.
There's just a ton in this this log file that you can go find to see if there's anything going on.
I'm still still pushing the space bar and still haven't got to the bottom of this log. Still pushing into seeing go one page of the climb.
Okay. Or I could go. If I hit the enter key, I can go one
that might take longer.
So I could look a page of time by doing the space bar or a lion space bar or a line at a time by doing the enter key.
And I'm still going Still going, still going? I'm just gonna hold space bar down till I get to the bottom. Since we can see that super long,
So not really a super effective way to scroll through the log a different way that you can do and see that I'm at the end right now, So I'm gonna take you. It takes me back to my
prompt. What I can do
is I can actually use the grab command
to find what I what I'm looking for specifically within a log file. Okay,
running to monitor services,
throwing me off. All right, so I'm going to do grip
Well, *** games, man,
they're with me for a second here,
okay? They're with me for a second.
So what we're gonna do here is and blow this back up
and I'm actually gonna tight Grete
way to type this command out is grab. And then if you're looking for just a specific item within a cyst log,
for instance, if your users saying that I'm he's getting an error here, she's getting an error message. What you can do is you can just type *** and then error and then the name of the log file name of the law that you want to search their cigarette error.
when best done is actually showed me
all of their messages. Well again, maybe there's a ton of their messages. How can you get
to go where you can actually scroll back to all of them? Don't believe. Let's try it, But I don't believe I can.
I can, for this one's fairly sure,
but let's pick a longer one. So let's try
Okay, so I want super long.
So what I want to do is I can actually time clear this out.
I'm out of sight, Grete.
I'm actually gonna do less.
I'm a pipe that less command into the great command
again. What that will do is allow me to and against is a short one as well.
But if there was something that you knew had a ton and time time, let's say, Colonel, for instance, the strict currency that works less
frontal, and just log.
That gives me a ton. Right? So that would allow me to go ahead and holding the of the key, the bar down.
But that gives me an option. Opportunity Just used the last night so I could go ahead, just pipe through it with the less command, and it gives me an opportunity to not have to go scrolling through the whole thing. I could just find what I'm looking for, that I could go page by page to find it
so great tool good to use.
And there are a lot of lot of other great tools, but what you want, what you want to focus on
ones that will help you the most. I love the M stat
gives us a lot of information.
Those commands for troubleshooting. I love the P I D command. I will tell that.
Good for finding that out, one that I really loved that is super helpful is the top hand
I hit top. This is what you're looking at is basically equivalent of the task manager. Windows were all the processes,
and so it's good it's gotta doing, you know, it's got it's got a bunch of different columns, but the column the the comet you want to focus on the most is either the CPU percentage or memory percentage. These will tell you what the hogs are in your system,
so this ex organs taking up a lot of it's built in
with the Nome Terminal were unknown. We're using a lot of doing a lot of processes. That's taking up a lot of CPU and memory.
Technically, not taking up a whole lot. But, you know, 2.3%
55.2% shows you all the old one. So that's best. This is from a command line
command line function. So there are there is another another one you can use
and let me get to it
It's one that you actually have to download.
Where is it? Not finding it. Now along second. Here,
not marine command. Eso is Oh, okay. Installed. This It is a top. It's installed my other VM box. So we need to go out, actually. Grab because I want you to see what the graphical graphical interface look like. Slightly cleaner. Easier to see if you
you have computerized like me. So let's take a look at it. Going to go on grab for someone to do an af get
It's nice thing again about APC. It'sjust goes up, grabs package downloads at peace cake, and you're done in the matter. I don't know that took like four seconds. Maybe
it's not just gonna run a top,
So it's a little gives you a little bit more to look at slightly more like a graphical interface.
it's not actually an install. Little gooey that you can pull up a CZ you can see here doesn't show up, but it is in the command line, and you can see all the different processes.
Memory swap CPU and networking. Networking stuff shows you a teeth. Zero What it's doing. How many packages
dropped on me is processed, etcetera. It's just really good. Great tool. You can use any Q Q to get out of it.
So that's another good one to look through that you're gonna find a lot of information in
that will be helpful to get you through some troubleshooting.
So there's some of the major troubleshooting commands and the ones that we didn't really touch him with. A networking ones, which we talked about earlier in the module about the introduction to networking,
and we talked about those were you know,
if config the interface configuration command, which basically give you your i p address.
We talked about Ping and Nets stat talked about all those commands. Those are all good troubleshooting commands as well. Because really, to understand what's going with your network, you gotta be using those. So if you're having a problem with somebody can't get to the network. You want to look
at the lowest level running if config and see if the big bash A and you can see what their net mask is their gateway that have any default routes.
Those are all good good tools that you can use to troubleshoot. So
this was a really long module. I'm sorry, really long part of this module, but
as a systems administrator to be doing lots of trouble shooting, and it's to be a helpful start free. So come back and revisit its module. Use some of the commands. He's troubleshooting tools from the command line and try it on your own. Try Thio troubleshooter to try and create some errors. There's a lot of websites out there where you can run break scripts.
It will actually break things in your system, and you can go out and fix it. You know there are companies actually use that to break code
so that the users can go out of the developers can figure out if they're codes actually redundant, and it works and it doesn't shut. Bring everything down. Someone thing's broken,
but they're a bunch of scripts out there that you can break in and try and troubleshooting fix it where it will be fixed. So good luck with that hope. This troubleshooting part has helped you out a lot and taking notes because you will use these troubleshooting tools a lot in your day. They, uh, David A life is a systems administrator, so it's good to kind of memorize what they are
searching the Internet for him. Find some other books with a lot of the lyrics troubleshooting books out there that will be helpful, but they should give you a good start, so I hope you enjoyed it.