Thank you for sharing .. Really informative 👏 I want to top command in csv to draw the graph . when I get the top command o/p in csv, it's generating in a single column . Is there any way to get the data in separate columns? if so please help
@@TechArkit thank you so much for your quick response now I know that it is only ansible we can use to apply patching, I started learning ansible now thank you for the help
as per this video i have written the script for grepping the top command process, when the process goes more than 2 gigs, we should receive email.now am getting "integer expression expected" error for line if statement
it's really an awesome video. what I exactly search for my 160 node information collect every day. but I am new on Linux. I understand everything but video so fast if you elaborately discuss key generate how to save,this part. thanks
can tell me where to run type all this comands .... in the remote server's command promt or outside the server bcoz inside server it shows commands as incorrect over the command prompt
it is similar way use ps command and grep the java process then cut the memory usage then validate against the memory usage you would like to validate. then execute email command if condition is true.
After getting cpu or disk utilization data I want to draw chart/graph using bash script and send the data and chart in email. Is it possible to draw chart using bash script???
I am using aws ec2 centos 7 as server. When I try to connect via ssh I get permission denied. Is it impossible to use with aws? Please tell me how to fix it
Sir, how to login in multiple server with bash script with different username and their respective passwords, but in my organization there is not allowed to use ssh-keygen and sshpass. THANKS!!!!
@@TechArkit sir u r correct.... That's the catch ... Couldn't make passwordless connection.... even though I did ssh keygeneratiom pasting it in the correct file etc.. still it asks for password
In the below example I want to only display UID and Process Name in the “Access.csv” file which consume MAXIMUM Memory. Write a shell scripts for the same. Access.csv UID Process Name PID MEMORY 1, A, 11, 90% 2, B, 22, 30% 3, C, 33, 115% 4, D, 44, 45%
I hace a problem ssh passwordles authentication ii is prompting for password even i copied the key and also changed tge pernisssions of the folder .ssh and autkey to 777
Thank you I liked and subscribed your channel , I am looking for a freeware tool to run and pull out report of all List of windows servers disk utilization and health status . Deadly needed please share the details please . 🙄
How do i include this all in one script?: c. Display the disk space availability and if the usage has more than 90%, it will prompt warning to administrator. d. Show process that is more than 70% CPU usage. e. Add user individually (one-by-one) with default password set. f. Batch add users from a name list (e.g. text file) with default password set. g. Disable user individually (one-by-one). h. Backup and/or duplicate disk of the system. i. Log all the user activities (items b to h) in a log file.
Tech Arkit Actually I need as below: 1. process running in all server 2. check disk usage in all mount point 3. send mail in html about disk space 4. Q (QUIT)
Dear Brother , My server windows. So how can i get all remote server data by poweshell. Can you help me. I have 150+ node 😔. Can you share with me any script for powershell windows server. It will be great help for me. Thanks.
By Using shell script, develop the monitoring tool , which will monitor the threshold values of cpu, ram and disk space. If the threshold value crossed then the output should be as a alert on local web page I need plz
Can you tell how this code work when we having username and password for servers , which part of code we need to add the username and password for the host
Bro can you drop here wmware workstation 14pro and compatible Ubuntu (Linux) links drop please.i have already installed on my pc wmware workstation 15pro already installed because I don't know which compatible this.
@@TechArkit It is the only way? Because on the server that I have access, I'm not able to install any package in those servers. So... I'm looking for another way to do this.
Can u make a video on how to monitor and collect data for one specific process?? Could you kindly give an idea so that I can try, could you kindly reply.
you can check root filesystem usage directly by using # df -h / | awk '{print $5}' | tail -n1 That column and sed was not so necessary. Good video otherwise.
Very clear cut explanation sir do more videos on real time common issues with solutions and more videos on Jenkins and aws
Thanks and sure
nice video. it help me a lot . now I going to apply into crontab in order to have report of CPU, MEM and Disk from my systems. Thanks 4 video man!!!
Best of luck!
Very well explained.Thanks for the video!
Thank you
Thank you for sharing .. Really informative 👏
I want to top command in csv to draw the graph .
when I get the top command o/p in csv, it's generating in a single column .
Is there any way to get the data in separate columns? if so please help
Yes, you can do that by splitting the command output
Very well explained
Keep watching
Hi bro Is there any command to get exact load alone using top command? I needed as a part of a Unix script
Superb explained
Glad you liked it
Thanks for sharing valuable content 🙏
So nice of you
What is batch -b for top command
it brings the top command output as batching
Hello I like what you are doing it’s so helpful
Glad you enjoy it!
Can you create a script that will help to ??patch a multiple hosts
I mean a video that will help patch multiple servers using script??
@@massandougnaglo9633 use ansible playbook
@@TechArkit thank you so much for your quick response now I know that it is only ansible we can use to apply patching, I started learning ansible now thank you for the help
as per this video i have written the script for grepping the top command process, when the process goes more than 2 gigs, we should receive email.now am getting "integer expression expected" error for line if statement
run the script sh -x scriptname.sh you can see debug log where it is getting the error.
Below is the error:
/script1.sh: line 8: [: 3329m: integer expression expected
date +%F %H: %M %S OK - 3329m on hostname
#!/bin/bash
HOSTNAME=$ (hostname)
CRITICAL=5g
CRITICALMAIL="XXXXXXXXX@ssss.com"
VIRTMEMORY= top -b -n -2 -d1 | grep "process_name" | tail -n1 | awk '{print $5}'
if [ "$VIRTMEMORY" -ge "$CRITICAL" ]; then
echo "CRITICAL Virtmemory $VIRTMEMORY Host is $HOSTNAME" | mail -s "VIRTMEMORY is critical" $CRITICALMAIL
else
echo "date "+%F %H: %M: %S" OK - $VIRTMEMORY on $HOSTNAME"
exit
fi
done
Can I have reply on this please
18:23, it's not showing CPU usage. It's showing the current time . Please cross verify
i think your confused with Date and values, Its date including output.
When I run the'sh cpumemdisk.sh' command, it says'ssh: Could not resolve hostname cat: Name or service not known'. What should I do in this case?
Add host name and IP address into /etc/hosts file
it's really an awesome video. what I exactly search for my 160 node information collect every day. but I am new on Linux. I understand everything but video so fast if you elaborately discuss key generate how to save,this part.
thanks
there is an option to keep play slow in RUclips to understand better.
I found what don't understand. Thanks
@@mrstrange6818 Excellent for your quick action. Keep learning. Happy learning.
can tell me where to run type all this comands .... in the remote server's command promt or outside the server bcoz inside server it shows commands as incorrect over the command prompt
it is a shell script, follow the tutorial step by step. You have to run this command in Linux Terminal
It is possible write script using powershell? Can u refer this one
yes for windows machines.
Can u tell me how to send email alter for particular user in Java process if memory is greater than threshold value in .ksh script for Linux server
it is similar way use ps command and grep the java process then cut the memory usage then validate against the memory usage you would like to validate. then execute email command if condition is true.
@@TechArkit Is this Ps -aux ? If it is how to find total memory of each process and how to find used memory so far for each process ?
@@TechArkit can u put the video of that?I have searched for particular process and don't find any videos related to this?
@@Vanitybridal i did not uploaded a similar video.
@@TechArkitCan u put a video of this.It maybe helpful for us a lot?
After getting cpu or disk utilization data I want to draw chart/graph using bash script and send the data and chart in email. Is it possible to draw chart using bash script???
use graphing service to graph the data however you have to format it appropriately
@@TechArkit can u name the graphing service???? Or do you have any video on it then send the link in the comment.
I am using aws ec2 centos 7 as server.
When I try to connect via ssh I get permission denied. Is it impossible to use with aws? Please tell me how to fix it
see the video in AWS series how to connect to AWS Ec2 instance ruclips.net/video/2_GXHygzWSQ/видео.html
Shall I uses this method for windows server it will work or not
you have to write powershell script.
Sir, how to login in multiple server with bash script with different username and their respective passwords, but in my organization there is not allowed to use ssh-keygen and sshpass. THANKS!!!!
ruclips.net/video/JPXsReHiViI/видео.html
excellent, thank you very much !!
Thanks for watching.
Hi I am beginner of script , may i know what is condition of using double quote , single quote or $
ruclips.net/video/9_fhRI-dos4/видео.html See this video you will understand.
I have issue with command check CPUSAGE top -b -n 1 -dl | grep "Cpu(s)" ..error : top bad delay 'l' .my system is linux 6.5
it should work for RHEL 6.5 as well. top -b -n 1
@@TechArkit for the command top -b -n 1
is working,but when add top -b -n 1
-dl is error
@@Vone_WorldClass what is the error?
Even after adding my IP address to the hostlist it's showing connection refused.... Any idea why???
did you made passwordless connection?
@@TechArkit sir u r correct.... That's the catch ... Couldn't make passwordless connection.... even though I did ssh keygeneratiom pasting it in the correct file etc.. still it asks for password
@@Prachi-no1ut do not copy manually. use ssh-copy-id
In the below example I want to only display UID and Process Name in the “Access.csv” file which consume MAXIMUM Memory. Write a shell scripts for the same.
Access.csv
UID Process Name PID MEMORY
1, A, 11, 90%
2, B, 22, 30%
3, C, 33, 115%
4, D, 44, 45%
Here you go
"ps axo ruid,comm,ppid,pid,pmem"
I hace a problem ssh passwordles authentication ii is prompting for password even i copied the key and also changed tge pernisssions of the folder .ssh and autkey to 777
Permissions should be 644 or 600 if you give 777 it wont work.
Thank you I liked and subscribed your channel , I am looking for a freeware tool to run and pull out report of all List of windows servers disk utilization and health status . Deadly needed please share the details please . 🙄
Use PowerShell module which has plenty of commands to fetch the data. use PExecution tools
How to get the CPU and Memory utilisation using vmstat command?
check this out, arkit.co.in/linux-machine-performance-monitoring-vmstat/
is there any specific shell script to monitor and alert ram,cpu etc., on custom tcp ports like 8080,8000
You can just change ssh port number using -p option
@@TechArkit i couldnot get it, could you brief
Hii how to install single rpm package to 100 server using shell script.
Use for loop
for I in `car serverlist`;
do
ssh user@"$i" rpm -ivm rpmpath
done
@@TechArkit thanks
Semmmma superb video ji
Thanks Udhaya Kumar.
How do i include this all in one script?:
c. Display the disk space availability and if the usage has more than 90%, it will prompt
warning to administrator.
d. Show process that is more than 70% CPU usage.
e. Add user individually (one-by-one) with default password set.
f. Batch add users from a name list (e.g. text file) with default password set.
g. Disable user individually (one-by-one).
h. Backup and/or duplicate disk of the system.
i. Log all the user activities (items b to h) in a log file.
Add validation using IF condition
Can you please help me, if I want to send this report through mail in HTML format
use mail command. format the script out as html.
Tech Arkit Actually I need as below:
1. process running in all server
2. check disk usage in all mount point
3. send mail in html about disk space
4. Q (QUIT)
@@choudhurydebashis10 what is the issue your facing?
Tech Arkit while sending mail in html format
Tech Arkit could you please help me with the script for above . I want run it on multiple servers choudhurydebashis10@gmail.com
Can you make video for sendmail configuration in server(ubuntu/CentOS/rhel).
Okay
It will work in ubuntu server?
Not Tested in Ubuntu version
@@TechArkit it's working in ubuntu, if we put echo -e .
Dear Brother ,
My server windows. So how can i get all remote server data by poweshell. Can you help me. I have 150+ node 😔.
Can you share with me any script for powershell windows server. It will be great help for me.
Thanks.
windows has so many free tools for scanning.
I need to send mail mail too automatically. Sending the report to my mail ID. Plz help
mail -s "Subject" youremail@domain.com
Awesome sir thanks
Most welcome
It’s working but I need my own laptop cpu and memory utilisation details. Kindly refer
run it in your laptop
Hi, could you please provide the script file
github.com/techarkit/shell-scripting-tutorial
If threshold values of cpu, ram, disk were crossed then output should be as a alert on local web page . Can u send me the code for that⁰⁰0
Create the Database and write the values to database and fetch the same details using either HTML or PHP.
By Using shell script, develop the monitoring tool , which will monitor the threshold values of cpu, ram and disk space. If the threshold value crossed then the output should be as a alert on local web page I need plz
Can you tell how this code work when we having username and password for servers , which part of code we need to add the username and password for the host
you can use sshpass command to pass the credentials and execute it in remote server.
Bro can you drop here wmware workstation 14pro and compatible Ubuntu (Linux) links drop please.i have already installed on my pc wmware workstation 15pro already installed because I don't know which compatible this.
Above 16.04 Ubuntu versions will support VMWare 14Pro.
why tail -n 1?
To get last record of the output.
Do you have a script for automatic typing of password once you SSH on other servers?
Use sshpass command
@@TechArkit It is the only way? Because on the server that I have access, I'm not able to install any package in those servers.
So... I'm looking for another way to do this.
Hi, can you make videos on Ansible? Thanks :)
It's already published
@@TechArkit gotcha thanks for that.
Hi Bro. Could you please make a video on print prime numbers using shell script.
Sure.
I'm beginner to learning Linux
Can you share from beginning all videos master link/playlist link.
ruclips.net/video/BskRmjvWG5Y/видео.html Here is the Link.
Can u make a video on how to monitor and collect data for one specific process??
Could you kindly give an idea so that I can try, could you kindly reply.
you can do that as well using ps command.
Can u send the script for that
Which Script
we need to include the password with ssh command, right ?
Use Passwordless connection
its a refresher to me
Thanks
scripts not working....share scripts in description
check in github.com/techarkit all the scripts are already uploaded.
Please make depth tutorial on webmin, thanks
Sure @Amandeep Singh
what is the d1 ( d=> is delimiter and what is the "1" ) command .can u please explain me.And what is the batch mode
refer man top command for more detailed explanation.
@@TechArkit thank u sir
Hi plz make video on AIX Unix Admin
Aix is only working in IBM based servers
@@TechArkit ok sir
Awesome post!! Could you please create similar video for Windows OS too pls
you can make use of PowerShell scripts for Windows.
thank u ravi
Welcome
you can check root filesystem usage directly by using # df -h / | awk '{print $5}' | tail -n1
That column and sed was not so necessary. Good video otherwise.
Thanks
whatsapp group full
github.com/techarkit/TechArkit-RUclips/blob/master/whatsapp_group.md Join new group