ra rc.37: buggy parser?

Philipp E. Letschert phil at uni-koblenz.de
Sun Jan 21 17:17:15 EST 2007


Hi Wolfgang,

the syntax is ra <options> - <filter>
the timerange is an option, not a filter

> 1) ra -r argus.log - -t 0-1 -s +srcid - srcid gate2
> ra[816]: 12:27:45.481599 - srcid gate2 filter syntax error

ra -r argus.log -t 0-1 -s +srcid - srcid gate2

works

> 2) ra -r argus.log - -t 0-1 -s +srcid srcid gate2 
> ra[2734]: 12:28:46.927079 syntax error: gate2 not found

see above

> 3)  ra -r argus.log - -s +srcid -t 0-1 srcid gate2

see above

> 4)  ra -r argus.log - -s +srcid -t 0 srcid gate2

ra -r argus.log -t 0 -s +srcid - srcid gate 
no output

ra -r argus.log -t 00 -s +srcid - srcid gate2
works

ra -r argus.log -s +srcid -t 00 - srcid gate2
ra[8628]: 01-21-07 22:58:31.103881 gate2 filter syntax error

ra -r argus.log -s +srcid -t 00 -- srcid gate2
works

I guess, both
ra -r argus.log -s +srcid -t 0 - srcid gate2
and
ra -r argus.log -s +srcid -t 00 - srcid gate2

should work, Carter had changed the timerange to support yyyy/mm for specifying
months, probably this resulted in above errors?

> 5) ra -r argus.log - -s +srcid - -t 0-1 srcid gate2
> ra[9573]: 12:33:15.462322 - srcid gate2 filter syntax error

ra -r argus.log -s +srcid -t 0-1 - srcid gate2
works

ra -r argus.log -s +srcid -t 00-01 - srcid gate2
works


I'm currently doing minor updates for the man pages, I will try to improve the
section on timeranges...


Regards, Philipp



More information about the argus mailing list