Shell Script to parse system performance.
Need help with creating a shell script to parse and display performance stat to the screen.
cd to /stats/ and they are many performance related state under the stats dir. How do I view call related stats? Example, I have three nodes reporting wireless call related stats and would like a script that can parse the stats/sysgrp files that are created every 15mins and report which node experienced wireless call failures. Thanks in advance!! ShevyRoots |
Welcome to LQ. Hope you like it here.
Quote:
OTOH if you've never created a script then these might help: http://www.gnu.org/software/bash/man...ode/index.html http://www.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html http://www.tldp.org/LDP/Bash-Beginne...tml/index.html |
Shell Script to parse system performance
Hey unSpawn, thanks for the reply. I do appreciate your links. Really, I was looking for a sample scripts to retrieve/pull and display call related stats concerning three different nodes/systems that's providing VoIp calls stats. The /stats dir create files every 15 minutes and have fields like, TotalInvites, TotalFailedCalls, Total Sip500Errorcode and so on. Anyhow, I'll dig into the information within the links you sent me.
Thanks ShevyRoots |
Before you dig into the nfo best search for common SIP / VoIP commands and related tools. Should be a tool already providing statistics...
|
If the statistics are for the individual user you may wish to have a look at conky and see if it can display what you need (why re-create the wheel if someone has done it for you :) )
|
If the statistics are for the individual user you may wish to have a look at conky and see if it can display what you need (why re-create the wheel if someone has done it for you :) )
|
Quote:
Code:
egrep "(TotalInvites|TotalFailedCalls|Total Sip500Errorcode)" stats.txt |
Hey, thanks schneidz!! I'll try that.
|
All times are GMT -5. The time now is 11:14 PM. |