Network analysis scripts


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Network analysis scripts
# 1  
Old 12-01-2011
Network analysis scripts

Hi there,

I have a website adslgeek.com/troubleshooter which I am trying to get some quite detection of network variables, and I have been thinking of using PHP to pass System commands to a shell script, and pass the results back, then use PHP with RegEX to then process the output, and display advice based on the findings (eg if packet loss is bad, then PHP displays a warning)

I have a PHP page passing down to Linux system commands and getting the result parsing back to a PHP variable / rendered page and that is easy (eg I can send ping, traceroute etc)

Key items I have been thinking about / not too sure about what system commands to use are

- Max MTU detection / MSS
- RWIN - (TCP Receive Window) of the remote host (eg the visitor)
- Packetloss (I was thinking just doing say 50 pings from server to customer and catching the result)
- Ack size and count as well as delayed Acks
- Open ports of remote host?
- I have some NMAP commands which might be able to detect remote end OS / Device which should be helpful.

So what my question is: what would be the best system commands for me to detect these types of network variables?

Also does anyone have any other ideas of what would be good to help diagnose network TCP / IP link?


Any help would be really appreciated.

Cheers,
Jay / ADSLgeek
# 2  
Old 12-01-2011
System administration commands are OS dependant... of your architecture or OS you say nothing...
# 3  
Old 12-01-2011
For sure - at the moment I was looking at setting up shop on a VPS running Ubuntu / Fedora Linux, but to be honest, I am keen to hear different options

(eg if people suggested that I could get more power from running something like Blackbuntu, I am open to whatever gets the job done.)
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Infrastructure Monitoring

Nmon Analysis

Dear All, I am an performance tester. Now i am working in project where we are using linux 2.6.32. Now I got an oppurtunity to learn the monitoring the server. As part of this task i need to do analysis of the Nmon report. I was completely blank in this. So please suggest me how to start... (0 Replies)
Discussion started by: iamsengu
0 Replies

2. UNIX for Advanced & Expert Users

What files or programs have the ability to change your default network scripts and config

What files or programs have the ability to change your default network scripts and config files? All 3 of these very important files got changed on their own. /etc/sysconfig/network-scripts/ifcfg-wlan0 /etc/sysconfig/networking/devices/ifcfg-wlan0... (4 Replies)
Discussion started by: cokedude
4 Replies

3. Shell Programming and Scripting

KSH - How to call different scripts from master scripts based on a column in an Oracle table

Dear Members, I have a table REQUESTS in Oracle which has an attribute REQUEST_ACTION. The entries in REQUEST_ACTION are like, ME, MD, ND, NE etc. I would like to create a script which will will call other scripts based on the request action. Can we directly read from the REQUEST_ACTION... (2 Replies)
Discussion started by: Yoodit
2 Replies

4. UNIX for Dummies Questions & Answers

Text analysis

Hey Guys, Does anyone know how to count the separate amount of words in a text file? e.g the 5 and 20 Furthermore does anyone know how to convert whole numbers in decimals? Thanks (24 Replies)
Discussion started by: John0101
24 Replies

5. Shell Programming and Scripting

Changing the Bash Scripts to Bourne Scripts:URGENT

Hi, I have to write a program to compute the checksums of files ./script.sh I wrote the program using bash and it took me forever since I am a beginner but it works very well. I'm getting so close to the deadline and I realised today that actually I have to use normal Bourne shell... (3 Replies)
Discussion started by: pgarg1989
3 Replies

6. Programming

Regarding stack analysis

I would like to know how I could do the following : void func(){ int a = 100; b=0; int c = a/b; } void sig_handler (int sig,siginfo_t *info,void *context){ //signal handling function //here I want to access the variables of func() } int main(){ struct sigaction *act =... (7 Replies)
Discussion started by: vpraveen84
7 Replies

7. Solaris

Catalina Analysis

How can I make analysis for catalina.out (2 Replies)
Discussion started by: Burhan
2 Replies

8. UNIX for Advanced & Expert Users

scripts across a network

Hi, I'm trying to create a script that runs a series of commands on a number of machines accross a network and sends the output back to the machine from which the script is run. I looked into using remsh to do something like this... for machine in $network do remsh $machine func_1 >... (1 Reply)
Discussion started by: andyfaeglasgow
1 Replies
Login or Register to Ask a Question