This is a discussion on shell scripts required for students within the Shell scripting forums, part of the Development/Scripting category; hi guys... i need some shell scripts examples for my students lab cycle...need to prepare atleast 90...sumthin realted to system ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
hi guys...
i need some shell scripts examples for my students lab cycle...need to prepare atleast 90...sumthin realted to system administration would be ideal...nyone with such materials -pls send to roni.samuel@gmail.com.. Regards, roni |
| Sponsored Links | ||
|
|
|
|||
|
hey,
I need few shell scripts for beginners...These are for my students to try out..I wsant to give them these in addition to the regular lab cycle...I found a lot of scripts online but most of it is not what I want... Regards, Ron |
|
|||
|
actually i want a script which can monitor cpu usage,ram usage,swap usage,disk capacity etc....pls help me out.
|
|
|||
|
Quote:
hope you are not trying to monitor regularly(otherwise use monitoring tool ![]() some time i used script for checking remote host through ssh.all basic commands ################################################## ########################### ### this is the script for getting remote host info using ssh keygen######### ################################################## ########################### #name of the script sajithsvr.sh #give permission as chmod 755 sajithsvr.sh #copy the keygen to specific folder #using ssh -i need not to give password for login as root #******script****** #bin/bash #logging to system through ssh #name of the server echo "host_name" alias squid1 ssh -i /home/sajith/tes/keypair root@remotehost "hostname" #swap memory echo "swap_usage" ssh -i /home/sajith/tes/keypair root@remotehost "free -m" #disk space echo "disk_usage" ssh -i /home/sajith/tes/keypair root@remotehost "df -h" #stastistics and memory #ssh -i /home/sajith/tes/keypair root@remotehost "vmstat" #system uptime and processor usage echo "processor_info" #ssh -i /home/sajith/tes/keypair root@remotehost "uptime" ssh -i /home/sajith/tes/keypair root@remotehost "mpstat" #logged users #ssh -i /home/sajith/tes/keypair root@remotehost "who" exit you can use with your commands say eg. vi test.sh and give execution permission chmod 755 test.sh #bin/bash echo "swap_usage" free -m echo "disk_usage" df -k echo "users" who |
|
||||
|
There are plenty of scripts here Bash shell scripts directory for Linux, FreeBSD, Solaris, UNIX
|
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SSH - Passing Unix login passwords through shell scripts | arulkumarr | Shell scripting | 4 | 08-27-2008 10:22 PM |
| running command a root in shell scripts | chiku | Shell scripting | 1 | 07-17-2006 07:39 PM |
| required help for running a shell script from browser | vaishalichitale | Shell scripting | 1 | 06-27-2006 05:53 PM |
| Shell,perl plsql programmer required (get paid) | amitoverseas40 | Solaris/OpenSolaris | 0 | 08-13-2005 10:15 PM |
| Shell,perl plsql programmer required (get paid) | amitoverseas40 | Shell scripting | 0 | 08-13-2005 10:12 PM |