Hi,
I have written scripts before, but I am not a full timer script person anymore and I have forgotten so much. It has been over 24 months since I touched a script. I am starting from scratch here.
I would like to create a shell script that will gather CPU, Memory, IO, and other performance related information for a certain process.
If I have a third party tool on my Unix box, I would like to gather the performance numbers for this specific third party software i.e. How much CPU it is using, Memory, IO, Network and other related performance information that the standard Unix system will provide.
If script runs on one box, I also need help on how to connect to a remote box via this script to gather the performance information, and have it display in a presentable format. Or have this performance collecting script run on all boxes.
More than likely this script will run in the background, and be running constantly to capture performance information and write to a flat file.
From here a report creation script will be used to run against the flat file to produce and email requested performance information about this third party tool.
A Report script will utilize the flat file to gather information for reporting purposes.
EXAMPLE of OUTPUT REPORT FILE THAT CAN BE EMAILED VIA SENDMAIL:
User should have option to produce a 1/2 hour, hourly, daily, weekly, monthly report.
Performance Information for: Third Party Software Name
Running on system: "Node Name"
Statistics for "Date"
Time slice "1/2hour, 1/2 hour, hourly, daily, weekly, monthly"
CPU Utilization
Memory
Paging/Swapping
And so on.
I am starting from scratch here and all your expertise is greatly appreciated.
With regard to type of shell, I will leave that up to you all. Our systems do work with allstandard shells.
Thank you.
ps. I hope I am asking the right questions in order to get the right answers...
I have written scripts before, but I am not a full timer script person anymore and I have forgotten so much. It has been over 24 months since I touched a script. I am starting from scratch here.
I would like to create a shell script that will gather CPU, Memory, IO, and other performance related information for a certain process.
If I have a third party tool on my Unix box, I would like to gather the performance numbers for this specific third party software i.e. How much CPU it is using, Memory, IO, Network and other related performance information that the standard Unix system will provide.
If script runs on one box, I also need help on how to connect to a remote box via this script to gather the performance information, and have it display in a presentable format. Or have this performance collecting script run on all boxes.
More than likely this script will run in the background, and be running constantly to capture performance information and write to a flat file.
From here a report creation script will be used to run against the flat file to produce and email requested performance information about this third party tool.
A Report script will utilize the flat file to gather information for reporting purposes.
EXAMPLE of OUTPUT REPORT FILE THAT CAN BE EMAILED VIA SENDMAIL:
User should have option to produce a 1/2 hour, hourly, daily, weekly, monthly report.
Performance Information for: Third Party Software Name
Running on system: "Node Name"
Statistics for "Date"
Time slice "1/2hour, 1/2 hour, hourly, daily, weekly, monthly"
CPU Utilization
Memory
Paging/Swapping
And so on.
I am starting from scratch here and all your expertise is greatly appreciated.
With regard to type of shell, I will leave that up to you all. Our systems do work with allstandard shells.
Thank you.
ps. I hope I am asking the right questions in order to get the right answers...