SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Linux System Monitoring
Linux System Monitoring
Operating Systems Lab(ISE)
Topics To Be Covered
Contents:
1. Introduction
2. Installation of Linux / Ubuntu
3. Packages installation
4. Snapshots of Execution
5. Conclusion
6. References
3
Rajarambapu Institute of Technology , Islampur Sangli
11/21/2021
Linux System Monitoring
4
Rajarambapu Institute of Technology , Islampur Sangli
11/21/2021
 Operating systems control our hardware and run our application on them.
 How can we monitor Linux operating system?
The monitoring and maintenance of the system is most important task.
There are many commands line utilities created for this purpose.
When we speak about monitoring it is the matter of all hardwares and users such as
CPU, ethernet, Users, Memory , Storage
Installation of Linux / Ubuntu
5
Rajarambapu Institute of Technology , Islampur Sangli
11/21/2021
1) Download Virtual Box
2) Create a new virtual machine
3) Enter name, select operating system and version
4) Allocate memory to VM (2000MB recommended)
5) Install Ubuntu
6) Open VM, Click on new Ubuntu virtual machine and hit start button.
7) Enter your preferred name, username and password
8) The installation will continue until it is finished
9) After installation is complete, click a restart now button
10) Enter the password you have chosen and press enter
11) The Ubuntu desktop OS is ready.
Packages installation
6
Rajarambapu Institute of Technology , Islampur Sangli
11/21/2021
1)Vmstat - sysstat package(that include vmstat program)
2)Htop - htop packages are mostly available in modern Linux distributions and
can be installed using the default package manager from system
3)Iostat - sysstat package
4)Psacct or acct - Psacct or acct package (both are similar package)
5)Top - procps-ng package
6)Lsof - lsof package
7)Netstat - net-tools package
8)Iotop - iotop package
9)Iftop - iftop package
10)Strace ls- strace package
11)Cloudcmd & - cloudcmd package
Snapshots of Execution
Rajarambapu Institute of Technology , Islampur Sangli
7
top command is used to show the Linux
processes. It provides a dynamic real-
time view of the running system.
Usually, this command shows the
summary information of the system and
the list of processes or threads which
are currently managed by the Linux
Kernel.
Rajarambapu Institute of Technology , Islampur Sangli 8
vmstat command in Linux/Unix is a performance
monitoring command of the system as it gives the
information about processes, memory, paging, block IO, disk,
and CPU scheduling. All these functionalities makes the
command vmstat also known as virtual memory statistic
reporter
The ps command, short for Process Status, is a
command line utility that is used to display or view
information related to the processes running in a Linux
system. As we all know, Linux is a multitasking and
multiprocessing system. Therefore, multiple processes
can run concurrently without affecting each other
Using the ps aux Command in Linux. The ps aux command
is a tool to monitor processes running on your Linux
system. A process is associated with any program running
on your system, and is used to manage and monitor a
program's memory usage, processor time, and I/O resources
Rajarambapu Institute of Technology , Islampur Sangli 9
lsof command stands
for List Of Open File. This
command provides a list of
files that are opened.
Basically, it gives the
information to find out the
files which are opened by
which process. With one go
it lists out all open files in
output console.
11/21/2021 Rajarambapu Institute of Technology , Islampur Sangli 10
iotop or Input/Output top is a command in
Linux which is used to display and monitor the
disk IO usage details and even gets a table of
existing IO utilization by the process. It is
designed in python and needs kernel modules
for its execution. It is used by system
administrators to trace the specific process
that may be causing a high disk I/O
read/writes.
Netstat command displays various
network related information such as
network connections, routing tables,
interface statistics, masquerade
connections, multicast memberships etc.,
To show both listening and non listening
sockets.
11/21/2021 Rajarambapu Institute of Technology , Islampur Sangli 11
htop command in Linux system is a
command line utility that allows the user to
interactively monitor the system’s vital
resources or server’s processes in real
time. htop is a newer program compared
to top command, and it offers many
improvements over top command. htop
supports mouse operation, uses color in its
output and gives visual indications about
processor, memory and swap usage. htop
also prints full command lines for processes
and allows one to scroll both vertically and
horizontally for processes and command
lines respectively.
iftop is a network analyzing tool used by system
administrators to view the bandwidth related
stats. It shows a quick overview of the networking
activities on an interface. It stands from Interface
TOP and the top is derived from op command in
Linux. It even acts as a diagnostics to diagnose
which program is causing the problem to the
network.
11/21/2021 Rajarambapu Institute of Technology , Islampur Sangli 12
ac prints out a report of connect time (in hours) based on
the logins/logouts in the current wtmp file. A total is also
printed out.
ac -p
Print time totals for each user in addition to the usual
everything-lumped-into-one value.
ac --reboots
Reboot records are NOT written at the time of a reboot, but
when the system restarts; therefore, it is impossible to know
exactly when the reboot occurred. Users may be logged in to
the system at the time of the reboot, and many ac's
automatically count the time between the login and the reboot
record against the user (even though all of that time shouldn't
be, perhaps, if the system is down for a long time, for instance.)
If you want to count this time, include the flag. For maximum
compatibility with all versions of ac, include this flag.
Rajarambapu Institute of Technology , Islampur Sangli 13
The iostat command is used to monitor the load on server
input/output (I/O) devices by observing the time the
devices are active compared to the average transfer rate of
the device.
Uptime Command In Linux: It is used to find out how
long the system is active (running). This command
returns set of values that involve, the current time, and
the amount of time system is in running state, number
of users currently logged into, and the load time for the
past 1, 5 and 15 minutes respectively.
The strace command can be used to intercept
and record the system calls made, and the signals
received by a process. This allows examination of
the boundary layer between the user and kernel
space which can be very useful for identifying
why a process is failing.
11/21/2021 Rajarambapu Institute of Technology , Islampur Sangli 14
Cloud Commander is a file manager for the web. It includes a
command-line console and a text editor. Cloud Commander
helps you manage your server and work with files, directories
and programs in a web browser from any computer, mobile or
tablet.
The mpstat command reports on the activities of each of the
available CPUs on a multi-processor server. Mpstat also
reports on the average activities of all your server’s CPUs. It
enables you to display overall system statistics per system or
per processor.
Rajarambapu Institute of Technology , Islampur Sangli 15
Kill -l
To display all the available
signals .
Conclusion..
Conclusion :
On a system with GUI, we can achieve system monitoring using a Task
Manager or Activity Monitor. But when we work with the command line
we cannot just open up a graphical task manager. These above mentioned
commands would help in monitoring any Linux system or remote server.
Sometimes it may require more specific tools to debug an issue in Linux
system performance.
16
Rajarambapu Institute of Technology , Islampur Sangli
11/21/2021
References..
E- References (URLs):
1) https://www.tecmint.com/command-line-tools-to-monitor-linux-
performance/
2) https://tecadmin.net/linux-system-and-performance-monitoring-
tools/
3) https://www.tecmint.com/linux-performance-monitoring-tools/
4) https://www.tecmint.com/linux-process-management/
17
Rajarambapu Institute of Technology , Islampur Sangli
11/21/2021
18
Rajarambapu Institute of Technology , Islampur Sangli
11/21/2021
Thanks…
19
Rajarambapu Institute of Technology , Islampur Sangli
11/21/2021

Weitere ähnliche Inhalte

Was ist angesagt?

Temel Linux Kullanımı ve Komutları
Temel Linux Kullanımı ve KomutlarıTemel Linux Kullanımı ve Komutları
Temel Linux Kullanımı ve KomutlarıAhmet Gürel
 
Intro to Linux Shell Scripting
Intro to Linux Shell ScriptingIntro to Linux Shell Scripting
Intro to Linux Shell Scriptingvceder
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commandsSagar Kumar
 
Linux ppt
Linux pptLinux ppt
Linux pptlincy21
 
Server configuration
Server configurationServer configuration
Server configurationAisha Talat
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic CommandsHanan Nmr
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux Harish R
 
Introduction and history of linux
Introduction and history of linuxIntroduction and history of linux
Introduction and history of linuxSHUBHA CHATURVEDI
 
CMD Command prompts
CMD Command promptsCMD Command prompts
CMD Command promptsAhmed Hesham
 
Linux security introduction
Linux security introduction Linux security introduction
Linux security introduction Mohamed Gad
 
Unix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell ScriptUnix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell Scriptsbmguys
 
Course 102: Lecture 22: Package Management
Course 102: Lecture 22: Package Management Course 102: Lecture 22: Package Management
Course 102: Lecture 22: Package Management Ahmed El-Arabawy
 

Was ist angesagt? (20)

Temel Linux Kullanımı ve Komutları
Temel Linux Kullanımı ve KomutlarıTemel Linux Kullanımı ve Komutları
Temel Linux Kullanımı ve Komutları
 
Linux
LinuxLinux
Linux
 
Intro to Linux Shell Scripting
Intro to Linux Shell ScriptingIntro to Linux Shell Scripting
Intro to Linux Shell Scripting
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Linux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell ScriptingLinux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell Scripting
 
Linux security
Linux securityLinux security
Linux security
 
Unix ppt
Unix pptUnix ppt
Unix ppt
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 
Server configuration
Server configurationServer configuration
Server configuration
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 
Introduction and history of linux
Introduction and history of linuxIntroduction and history of linux
Introduction and history of linux
 
CMD Command prompts
CMD Command promptsCMD Command prompts
CMD Command prompts
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
 
Linux security introduction
Linux security introduction Linux security introduction
Linux security introduction
 
Linux introduction, class 1
Linux introduction, class 1Linux introduction, class 1
Linux introduction, class 1
 
Unix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell ScriptUnix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell Script
 
Course 102: Lecture 22: Package Management
Course 102: Lecture 22: Package Management Course 102: Lecture 22: Package Management
Course 102: Lecture 22: Package Management
 

Ähnlich wie Linux System Monitoring

Ähnlich wie Linux System Monitoring (20)

MYSQL DATABASE Operating System Part2 (1).pptx
MYSQL DATABASE Operating System Part2 (1).pptxMYSQL DATABASE Operating System Part2 (1).pptx
MYSQL DATABASE Operating System Part2 (1).pptx
 
How Operating System Works
How Operating System WorksHow Operating System Works
How Operating System Works
 
20 Windows Tools Every SysAdmin Should Know
20 Windows Tools Every SysAdmin Should Know20 Windows Tools Every SysAdmin Should Know
20 Windows Tools Every SysAdmin Should Know
 
Chapter 2 Operating System Structures.ppt
Chapter 2 Operating System Structures.pptChapter 2 Operating System Structures.ppt
Chapter 2 Operating System Structures.ppt
 
Chapter 2 Operating System Structures.ppt
Chapter 2 Operating System Structures.pptChapter 2 Operating System Structures.ppt
Chapter 2 Operating System Structures.ppt
 
intro to OS
intro to OSintro to OS
intro to OS
 
operating system of the computer/PC/laptop.pptx
operating system of the computer/PC/laptop.pptxoperating system of the computer/PC/laptop.pptx
operating system of the computer/PC/laptop.pptx
 
Os by nishant raghav
Os by nishant raghavOs by nishant raghav
Os by nishant raghav
 
Linux Server Deep Dives (DrupalCon Amsterdam)
Linux Server Deep Dives (DrupalCon Amsterdam)Linux Server Deep Dives (DrupalCon Amsterdam)
Linux Server Deep Dives (DrupalCon Amsterdam)
 
LM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsLM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system calls
 
ch1-1.pptx
ch1-1.pptxch1-1.pptx
ch1-1.pptx
 
Spr ch-01
Spr ch-01Spr ch-01
Spr ch-01
 
Os
OsOs
Os
 
Os
OsOs
Os
 
Unit 1 q&a
Unit  1 q&aUnit  1 q&a
Unit 1 q&a
 
L-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.pptL-3 BCE OS FINAL.ppt
L-3 BCE OS FINAL.ppt
 
Activity 5
Activity 5Activity 5
Activity 5
 
Operating system
Operating systemOperating system
Operating system
 
ch2.ppt
ch2.pptch2.ppt
ch2.ppt
 
Backtrack Manual Part8
Backtrack Manual Part8Backtrack Manual Part8
Backtrack Manual Part8
 

Kürzlich hochgeladen

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...masabamasaba
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...masabamasaba
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is insideshinachiaurasa2
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionOnePlan Solutions
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdfPearlKirahMaeRagusta1
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Hararemasabamasaba
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in sowetomasabamasaba
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesVictorSzoltysek
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyviewmasabamasaba
 

Kürzlich hochgeladen (20)

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 

Linux System Monitoring

  • 3. Topics To Be Covered Contents: 1. Introduction 2. Installation of Linux / Ubuntu 3. Packages installation 4. Snapshots of Execution 5. Conclusion 6. References 3 Rajarambapu Institute of Technology , Islampur Sangli 11/21/2021
  • 4. Linux System Monitoring 4 Rajarambapu Institute of Technology , Islampur Sangli 11/21/2021  Operating systems control our hardware and run our application on them.  How can we monitor Linux operating system? The monitoring and maintenance of the system is most important task. There are many commands line utilities created for this purpose. When we speak about monitoring it is the matter of all hardwares and users such as CPU, ethernet, Users, Memory , Storage
  • 5. Installation of Linux / Ubuntu 5 Rajarambapu Institute of Technology , Islampur Sangli 11/21/2021 1) Download Virtual Box 2) Create a new virtual machine 3) Enter name, select operating system and version 4) Allocate memory to VM (2000MB recommended) 5) Install Ubuntu 6) Open VM, Click on new Ubuntu virtual machine and hit start button. 7) Enter your preferred name, username and password 8) The installation will continue until it is finished 9) After installation is complete, click a restart now button 10) Enter the password you have chosen and press enter 11) The Ubuntu desktop OS is ready.
  • 6. Packages installation 6 Rajarambapu Institute of Technology , Islampur Sangli 11/21/2021 1)Vmstat - sysstat package(that include vmstat program) 2)Htop - htop packages are mostly available in modern Linux distributions and can be installed using the default package manager from system 3)Iostat - sysstat package 4)Psacct or acct - Psacct or acct package (both are similar package) 5)Top - procps-ng package 6)Lsof - lsof package 7)Netstat - net-tools package 8)Iotop - iotop package 9)Iftop - iftop package 10)Strace ls- strace package 11)Cloudcmd & - cloudcmd package
  • 7. Snapshots of Execution Rajarambapu Institute of Technology , Islampur Sangli 7 top command is used to show the Linux processes. It provides a dynamic real- time view of the running system. Usually, this command shows the summary information of the system and the list of processes or threads which are currently managed by the Linux Kernel.
  • 8. Rajarambapu Institute of Technology , Islampur Sangli 8 vmstat command in Linux/Unix is a performance monitoring command of the system as it gives the information about processes, memory, paging, block IO, disk, and CPU scheduling. All these functionalities makes the command vmstat also known as virtual memory statistic reporter The ps command, short for Process Status, is a command line utility that is used to display or view information related to the processes running in a Linux system. As we all know, Linux is a multitasking and multiprocessing system. Therefore, multiple processes can run concurrently without affecting each other Using the ps aux Command in Linux. The ps aux command is a tool to monitor processes running on your Linux system. A process is associated with any program running on your system, and is used to manage and monitor a program's memory usage, processor time, and I/O resources
  • 9. Rajarambapu Institute of Technology , Islampur Sangli 9 lsof command stands for List Of Open File. This command provides a list of files that are opened. Basically, it gives the information to find out the files which are opened by which process. With one go it lists out all open files in output console.
  • 10. 11/21/2021 Rajarambapu Institute of Technology , Islampur Sangli 10 iotop or Input/Output top is a command in Linux which is used to display and monitor the disk IO usage details and even gets a table of existing IO utilization by the process. It is designed in python and needs kernel modules for its execution. It is used by system administrators to trace the specific process that may be causing a high disk I/O read/writes. Netstat command displays various network related information such as network connections, routing tables, interface statistics, masquerade connections, multicast memberships etc., To show both listening and non listening sockets.
  • 11. 11/21/2021 Rajarambapu Institute of Technology , Islampur Sangli 11 htop command in Linux system is a command line utility that allows the user to interactively monitor the system’s vital resources or server’s processes in real time. htop is a newer program compared to top command, and it offers many improvements over top command. htop supports mouse operation, uses color in its output and gives visual indications about processor, memory and swap usage. htop also prints full command lines for processes and allows one to scroll both vertically and horizontally for processes and command lines respectively. iftop is a network analyzing tool used by system administrators to view the bandwidth related stats. It shows a quick overview of the networking activities on an interface. It stands from Interface TOP and the top is derived from op command in Linux. It even acts as a diagnostics to diagnose which program is causing the problem to the network.
  • 12. 11/21/2021 Rajarambapu Institute of Technology , Islampur Sangli 12 ac prints out a report of connect time (in hours) based on the logins/logouts in the current wtmp file. A total is also printed out. ac -p Print time totals for each user in addition to the usual everything-lumped-into-one value. ac --reboots Reboot records are NOT written at the time of a reboot, but when the system restarts; therefore, it is impossible to know exactly when the reboot occurred. Users may be logged in to the system at the time of the reboot, and many ac's automatically count the time between the login and the reboot record against the user (even though all of that time shouldn't be, perhaps, if the system is down for a long time, for instance.) If you want to count this time, include the flag. For maximum compatibility with all versions of ac, include this flag.
  • 13. Rajarambapu Institute of Technology , Islampur Sangli 13 The iostat command is used to monitor the load on server input/output (I/O) devices by observing the time the devices are active compared to the average transfer rate of the device. Uptime Command In Linux: It is used to find out how long the system is active (running). This command returns set of values that involve, the current time, and the amount of time system is in running state, number of users currently logged into, and the load time for the past 1, 5 and 15 minutes respectively. The strace command can be used to intercept and record the system calls made, and the signals received by a process. This allows examination of the boundary layer between the user and kernel space which can be very useful for identifying why a process is failing.
  • 14. 11/21/2021 Rajarambapu Institute of Technology , Islampur Sangli 14 Cloud Commander is a file manager for the web. It includes a command-line console and a text editor. Cloud Commander helps you manage your server and work with files, directories and programs in a web browser from any computer, mobile or tablet. The mpstat command reports on the activities of each of the available CPUs on a multi-processor server. Mpstat also reports on the average activities of all your server’s CPUs. It enables you to display overall system statistics per system or per processor.
  • 15. Rajarambapu Institute of Technology , Islampur Sangli 15 Kill -l To display all the available signals .
  • 16. Conclusion.. Conclusion : On a system with GUI, we can achieve system monitoring using a Task Manager or Activity Monitor. But when we work with the command line we cannot just open up a graphical task manager. These above mentioned commands would help in monitoring any Linux system or remote server. Sometimes it may require more specific tools to debug an issue in Linux system performance. 16 Rajarambapu Institute of Technology , Islampur Sangli 11/21/2021
  • 17. References.. E- References (URLs): 1) https://www.tecmint.com/command-line-tools-to-monitor-linux- performance/ 2) https://tecadmin.net/linux-system-and-performance-monitoring- tools/ 3) https://www.tecmint.com/linux-performance-monitoring-tools/ 4) https://www.tecmint.com/linux-process-management/ 17 Rajarambapu Institute of Technology , Islampur Sangli 11/21/2021
  • 18. 18 Rajarambapu Institute of Technology , Islampur Sangli 11/21/2021
  • 19. Thanks… 19 Rajarambapu Institute of Technology , Islampur Sangli 11/21/2021