gomd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gomd-devel] gomd answer format


From: Matthias Rechenburg
Subject: Re: [gomd-devel] gomd answer format
Date: Wed, 27 Aug 2003 13:01:10 +0200
User-agent: KMail/1.4.3

Hi Roel,

On Mittwoch 27 August 2003 12:02, address@hidden wrote:
> Hi,
>
> since I am writing java2gomd, I'd like to ask if 1 common way of answering
> to requests could be possible. I just wrote a big regexp function for
> extracting nodes from the answer format "address@hidden #
> (AVAILABLE_NODE_LIST:257,258)". But now I discovered that get 42 eth0
> (netload) uses these brackets between several values. I wonder if there is
>
> a reason for this...or maybe it could be changed from:
> (NETWORK_LOAD:0x00002fff)(IFACE_FLAGS:up,promisc,allmulti,mcast)
> (ADDERSS:192.168.1.1)(SUBNET:255.255.255.0)(MTU:1500)(COLLISIONS:0)
> (PACKETS_IN:316)(PACKETS_OUT:227)(PACKETS_TOTAL:543)(BYTES_IN:20981)
> (BYTES_OUT:25853)(BYTES_TOTAL:46834)(ERRORS_IN:0)(ERRORS_OUT:0)
> (ERRORS_TOTAL:0)
>
> to:
>
> (NETWORK_LOAD:0x00002fff,IFACE_FLAGS:up,promisc,allmulti,mcast,ADDERSS:192.
>1
> 68.1.1,SUBNET:255.255.255.0,MTU:1500,COLLISIONS:0,PACKETS_IN:316,PACKETS_OU
>T
>
> :227,PACKETS_TOTAL:543,BYTES_IN:20981,BYTES_OUT:25853,BYTES_TOTAL:46834,ERR
> :O
>
> RS_IN:0,ERRORS_OUT:0,ERRORS_TOTAL:0)
>
> Now I could off course replace all ")(" to "," , but I think this would
> save me a lot trouble, since I expect other functions to be diffirent
> aswell :)

i agree with you ;)
we should provide a the lib to parse all those values easy
to prevent the users to "re-inventing the wheel" 

>
> cheers,
>
> Roel "roeles" Baardman

have a nice day,

Matt
-- 
E-mail  :  address@hidden
www     : http://www.openmosixview.com
an openMosix-cluster management GUI

A physicist is an atom's way of knowing about atoms.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]