Issues with -t option

Carter Bullard carter at qosient.com
Mon Apr 7 20:40:22 EDT 2008


Hey Nick,
Sounds like a bug.  What happens when you specify a valid range?
   "-t 12-13"
   "-t 06.12-06.13"

if you run it with a "-D 4" option, it should tell you what the unix
time range the time filter generates.

I think for month you need a 'M'?

Carter


anubis:common carter$ ra -D5 -t 12-13
ra[49162.a0052074]: 2008/04/07.20:37:21.768040 ArgusParseTime  
(0x32f000, 0x32f070, 0xa0053cc8,12,  ) retn 4: 1207584000
ra[49162.a0052074]: 2008/04/07.20:37:21.768128 ArgusParseTime  
(0x32f000, 0x32f09c, 0x32f070,13, -) retn 4: 1207587600
ra[49162.a0052074]: 2008/04/07.20:37:21.768176 ArgusCheckTimeFormat  
(0xa0053cc8, 12-13) retn 0: 1207584000-1207587600
ra[49162.a0052074]: 2008/04/07.20:37:21.768200 ArgusParseTimeArg  
(12-13, 4, 0xa0053cc8)
ra[49162.a0052074]: 2008/04/07.20:37:21.768291 ArgusAddFileList  
(0x32f000, -, 1, -1, -1) returning -1

anubis:common carter$ ra -D5 -t 12
ra[49163.a0052074]: 2008/04/07.20:37:25.920039 ArgusParseTime  
(0x32f000, 0x32f070, 0x32f09c,12,  ) retn 4: 1207584000
ra[49163.a0052074]: 2008/04/07.20:37:25.920111 ArgusCheckTimeFormat  
(0xa0053cc8, 12) retn 0: 1207584000-1207587600
ra[49163.a0052074]: 2008/04/07.20:37:25.920135 ArgusParseTimeArg (12,  
4, 0xa0053cc8)
ra[49163.a0052074]: 2008/04/07.20:37:25.920184 ArgusAddFileList  
(0x32f000, -, 1, -1, -1) returning -1

anubis:common carter$ ra -D5 -t 12m
ra[49180.a0052074]: 2008/04/07.20:39:21.244726 ArgusParseTime  
(0x32f000, 0x32f070, 0x32f09c,,  ) retn 5: 1207615161
ra[49180.a0052074]: 2008/04/07.20:39:21.244880 ArgusCheckTimeFormat  
(0xa0053cc8, 12m) retn 0: 1207613520-1207613580
ra[49180.a0052074]: 2008/04/07.20:39:21.244923 ArgusParseTimeArg (12m,  
4, 0xa0053cc8)
ra[49180.a0052074]: 2008/04/07.20:39:21.245022 ArgusAddFileList  
(0x32f000, -, 1, -1, -1) returning -1

anubis:common carter$ ra -D5 -t 06.12-06.13
ra[49143.a0052074]: 2008/04/07.20:35:56.829484 ArgusParseTime  
(0x32f000, 0x32f070, 0xa0053cc8,06,  ) retn 4: 1207497600
ra[49143.a0052074]: 2008/04/07.20:35:56.829669 ArgusParseTime  
(0x32f000, 0x32f09c, 0x32f070,06, -) retn 4: 1207501200
ra[49143.a0052074]: 2008/04/07.20:35:56.829766 ArgusCheckTimeFormat  
(0xa0053cc8, 06.12-06.13) retn 0: 1207497600-1207501200
ra[49143.a0052074]: 2008/04/07.20:35:56.829808 ArgusParseTimeArg  
(06.12-06.13, 4, 0xa0053cc8)

anubis:cmmon carter$ ra -D5 -t 2008/02/06.12-06.13
ra[49151.a0052074]: 2008/04/07.20:36:40.358480 ArgusParseTime  
(0x32f000, 0x32f070, 0xa0053cc8,2008,  ) retn 4: 1202317200
ra[49151.a0052074]: 2008/04/07.20:36:40.358661 ArgusParseTime  
(0x32f000, 0x32f09c, 0x32f070,06, -) retn 4: 1202320800
ra[49151.a0052074]: 2008/04/07.20:36:40.358756 ArgusCheckTimeFormat  
(0xa0053cc8, 2008/02/06.12-06.13) retn 0: 1202317200-1202320800
ra[49151.a0052074]: 2008/04/07.20:36:40.358798 ArgusParseTimeArg  
(2008/02/06.12-06.13, 4, 0xa0053cc8)


On Apr 7, 2008, at 7:40 PM, Nick Diel wrote:

> I am trying to use the -t option and am not having much luck.  I  
> want to be able to specify a range down to the seconds, but I can't  
> get a filter working more specific than a month.  Also is it  
> possible to specify time in UTC format for the -t option?
>
>
> Regular output (I removed IP info), note this file is from last year.
> [diel at lander-nic ~]$ ra -r argus.out
>      2007/11/07-09:01:26.022023  e         *****
>      2007/11/07-09:01:26.024221  e         *****
>      2007/11/07-09:01:26.028978  e         *****
>      2007/11/07-09:01:26.034025  e         *****
>      2007/11/07-09:01:26.044853  e         *****
>
>
> Non working time specifications.
> [diel at lander-nic ~]$ ra -r argus.out -t 2007y11m7d
> [diel at lander-nic ~]$ ra -r argus.out -t 2007y11m
> [diel at lander-nic ~]$ ra -r argus.out -t 2007/11/07
>
>
> Working time specifications
> [diel at lander-nic ~]$ ra -r argus.out -t 2007/11
>      2007/11/07-09:01:26.022023  e         *****
>      2007/11/07-09:01:26.024221  e         *****
>      2007/11/07-09:01:26.028978  e         *****
>      2007/11/07-09:01:26.034025  e         *****
>      2007/11/07-09:01:26.044853  e         *****
> [diel at lander-nic ~]$ ra -r argus.out -t ****/11
>      2007/11/07-09:01:26.022023  e         *****
>      2007/11/07-09:01:26.024221  e         *****
>      2007/11/07-09:01:26.028978  e         *****
>      2007/11/07-09:01:26.034025  e         *****
>      2007/11/07-09:01:26.044853  e         *****
>
>
> Any thoughts?
> Nick Diel




More information about the argus mailing list