Sponsored Content
Top Forums Shell Programming and Scripting Need Some guidance on scripting Post 302886021 by supercops on Wednesday 29th of January 2014 11:51:31 AM
Old 01-29-2014
Error Need Some guidance on scripting

Hey All,

I am newbie on scripting and need some guidance from all the experts here.

I am working on one project where I will check the status/health of around ten (10) solaris 10 servers.

I have one central server from where I have already setup the passwordless SFTP and setup the cron so that I dont have to do this manually.

What I want is like this.

From this central server, log in to all the target servers periodically and then check the status of the server ( like the memory, diskspace, number of users/connections ) and so on and then send a report to my email

If anyone have any ideas, please let me know

Again i am new to this and will need some help from the seniors.

any scripts that you are aware off can do this for me
 

10 More Discussions You Might Find Interesting

1. AIX

NIM Guidance

I've just started to explore NIM and I'm looking for additional information on how to set it up and configure it. I've read through the "NIM A-Z" and have many unanswered questions. One question is how can I have the NIM server pull a mksysb of the clients and can I schedule this to happen... (1 Reply)
Discussion started by: scottsl
1 Replies

2. What is on Your Mind?

Career Guidance

Hi, I am a newbie to Unix, I was introduced to UNIX 8 months back during my Training, I was attracted to Unix as they give complete freedom. I would like to ask how can a OS Admin can go into development field of Unix. Currently I am working in a MNC in Backup- Storage Admin Domain I am... (1 Reply)
Discussion started by: sufi_431
1 Replies

3. Shell Programming and Scripting

A little guidance needed :)

Hi guys, I'm learning the ropes of BASH and am doing a few exercises to see if its sinking in but have gotten stuck on something I KNOW is looking at me right in the face but just isn't registering. I'm creating a script that needs to get specific strings from a line. So using the "ls -l... (9 Replies)
Discussion started by: shadow0001
9 Replies

4. UNIX for Dummies Questions & Answers

Need guidance on RHEL patch

Hi, I am new with updates in RHEL especially servers. The question is: 1. Do I need to register to RHEL in order for me to use the up2date? 2. For updates in RHEL need to use up2date, but what is the thing that I need to do before the patches? I mean what should I backup in case my patches... (0 Replies)
Discussion started by: flekzout
0 Replies

5. Solaris

Career Guidance in solaris

Hi, Can someone Please Suggest me, if there are any opportunities in solaris field Apart from being Admin or Working in Support Domain. (3 Replies)
Discussion started by: laxmi Sharma
3 Replies

6. Shell Programming and Scripting

guidance required: feed load search & display in shell scripting

Hi All, I am fairly new to Shell Scripting, however learning fast ;-) I have been asked to do the below basic shell script :confused: There are few feed files we are recieving in the server from multiple locations spread out during the day, rite now we are checking manually each file... (2 Replies)
Discussion started by: sachaan
2 Replies

7. AIX

Need guidance on VMStat

I need some guidance on the differences in observations, not sure how significantly different are they. Also, It would be nice to hear on the values and what the obvious tuning for performance missing. Observation 1 ending vmstat -v 3948544 memory pages ending vmstat -v ... (1 Reply)
Discussion started by: Snipper
1 Replies

8. UNIX for Dummies Questions & Answers

Just need some guidance on this nawk

Hi, I am trying to debug some KSH script and it has the nawk portion below. I just want to confirm whether I understand what it does correctly. Example usage of the nawk line is run as below: nawk '/^#/ {next} $1~/^'testp.cfg'$|^'testp.cfg'\.testdb\.com\.ph$/ { c=0 while... (1 Reply)
Discussion started by: newbie_01
1 Replies

9. AIX

New to AIX. Need Guidance

Hi There, I am new to AIX. I am eager to learn the AIX System administration or if there is any other prerequisite before this. Please can anyone help me or guide how to start with AIX, what all courses and certifications do I need to do. I have basic knowledge of UNIX. Please guide as I am... (3 Replies)
Discussion started by: rahulat302
3 Replies

10. What is on Your Mind?

Regarding guidance to learn *NIX more and more

Hello All, This Poll/thread is for views of all forum user regarding following point: There are many people in this forum who are actually not actually working on *NIX(admin or real scripting/automation part) but they are/have learnt scripting and trying to help/guide/advice/sharing... (11 Replies)
Discussion started by: RavinderSingh13
11 Replies
MPT-STATUS(8)						      System Manager's Manual						     MPT-STATUS(8)

NAME
mpt-status - retrieve configuration and health status from LSI hardware RAID controllers SYNOPSIS
mpt-status [ options ] DESCRIPTION
The mpt-status software is a query tool to access the running configuration and status of LSI SCSI HBAs. mpt-status allows you to monitor the health and status of your RAID setup. OPTIONS
--autoload This will try to automatically load the mptctl kernel module. -u --controller <int> Set the IOC unit (controller). -h --help Print some help information. -n --newstyle Use the new style output. This parameter was introduced to retain backwards compatibility. If not set, you get the old style output. It is very likely that the output of the newstyle format will change heavily in the future, so do not rely on it when writing plug- ins for monitoring software, for example. -i --set_id <int> Set id of primary device (check README). -p --probe_id Use this to probe SCSI id's when not on id 0. -q --quiet Do not display any warnings. -s --status_only Only print the status information. This can be used for easy scripting -v --verbose Print verbose information, such as warnings -V --version Print version information -d --debug [<int>] Enable debugging and set level optionally. NOTE: This is not fully implemented yet. DIAGNOSTICS
The program's exit(2) status is meant to be interpreted as a bit mask. If everything went well, zero is returned. If not (i.e. if for exam- ple an error or unknown condition is detected), the bits of the return value shall be interpreted as: Bit Value Meaning ----------------------------------------------------------------- 0 1 Abnormal condition / unknown error 1 2 A logical volume has failed 2 4 A logical volume is degraded 3 8 A logical volume is resyncing 4 16 At least one physical disk failed 5 32 At least one physical disk is in warning condition REPORTING BUGS
Report bugs to your linux distribution or software vendor, if mpt-status was bundled on your installation. If you have been compiling mpt- status from the vanilla sources and experience problems, redirect them to preferably <ratz@drugphish.ch> or <rnibali@pyx.ch>. BUGS
Besides design bugs, gross software engineering and missing features, this software is considered pretty stable and can be used in produc- tion environments. FILES
/dev/mptctl SEE ALSO
LSI Logic provides CLI tools for megaraid controllers which you can find on their webpage, following http://www.lsil.com/cm/Download- Search.do AUTHOR
mpt-status was written by Roberto Nibali <ratz@drugphish.ch>. This manual page was written by Steffen Joeris <steffen.joeris@skolelinux.de>, for the Debian project (but may be used by others). November 2006 MPT-STATUS(8)
All times are GMT -4. The time now is 02:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy