How about a FAQ about writing your own Scripts for DIMES?

Please post all your wild ideas of possible enhancements to the DIMES agent here.

Moderators: BoazH, UDi, shavitt, idob

How about a FAQ about writing your own Scripts for DIMES?

Postby TollhouseFrank » Sat Feb 18, 2006 7:35 am

I mean, there is a user tabe available for you to put in your own scripts, but i have yet to find a FAQ on how to write even a simple script to load and run.
TollhouseFrank
Junior member
 
Posts: 70
Joined: Thu Feb 16, 2006 5:58 am

Postby TollhouseFrank » Wed Feb 22, 2006 3:42 am

any ideas here guys? I'd like to learn how to write my own scripts... maybe help make a 'scripting team'?
TollhouseFrank
Junior member
 
Posts: 70
Joined: Thu Feb 16, 2006 5:58 am

Postby Yoav » Wed Feb 22, 2006 9:34 am

The scripts format is really simple at the moment, scripts should contain a line for each measurement you want to perform, each line is of the following form:

Code: Select all
command ip protocol


Where:
command can be either PING or TRACEROUTE
ip is a valid IP address
protocol can be either ICMP or UDP (or if left empty the default protocol is being used)

How's that for a FAQ page? :wink:
Last edited by Yoav on Mon Feb 27, 2006 9:31 am, edited 1 time in total.
Yoav/Joey Freund,
DIMES team
Yoav
Junior member
 
Posts: 100
Joined: Thu Sep 08, 2005 8:02 am
Location: Israel

Postby TollhouseFrank » Wed Feb 22, 2006 5:18 pm

LOL

nice faq!!!!!

So... for me... to write a simple script... it'd be like..

<ping> <100.100.100.100> <ICMP>
<traceroute> <100.100.100.100> <ICMP>
TollhouseFrank
Junior member
 
Posts: 70
Joined: Thu Feb 16, 2006 5:58 am

Postby Yoav » Mon Feb 27, 2006 9:30 am

Well not exactly, I use "<" and ">" as part of my stupid syntax :) , your script will actually be:

Code: Select all
PING 100.100.100.100 ICMP
TRACEROUTE 100.100.100.100 ICMP


I fixed the original message to avoid this confusion in the future
Yoav/Joey Freund,
DIMES team
Yoav
Junior member
 
Posts: 100
Joined: Thu Sep 08, 2005 8:02 am
Location: Israel

Postby TollhouseFrank » Mon Feb 27, 2006 12:19 pm

ok!

and the program will automatically send back results without me haviing to script that?
TollhouseFrank
Junior member
 
Posts: 70
Joined: Thu Feb 16, 2006 5:58 am

Postby Yoav » Mon Feb 27, 2006 2:56 pm

Exactly.
Yoav/Joey Freund,
DIMES team
Yoav
Junior member
 
Posts: 100
Joined: Thu Sep 08, 2005 8:02 am
Location: Israel

Postby llista » Wed Apr 05, 2006 12:55 pm

Yoav wrote:Well not exactly, I use "<" and ">" as part of my stupid syntax :) , your script will actually be:

Code: Select all
PING 100.100.100.100 ICMP
TRACEROUTE 100.100.100.100 ICMP


I fixed the original message to avoid this confusion in the future


Would this script be valid if I save it as a ip.txt and then load it?:

PING www.cnn.com ICMP
TRACEROUTE www.cnn.com ICMP
PING www.izito.com ICMP
TRACEROUTE www.izito.com ICMP

I hope so but prefer to make sure before I write it, a simple yes or not will do.
llista
 
Posts: 13
Joined: Tue Nov 29, 2005 3:12 pm
Location: European Union

Postby Yoav » Thu Apr 06, 2006 11:01 am

It works on my agent (version 0.4.3)
Yoav/Joey Freund,
DIMES team
Yoav
Junior member
 
Posts: 100
Joined: Thu Sep 08, 2005 8:02 am
Location: Israel


Return to DIMES Enhancements Suggestions Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron