Group by 10 minutes

Hi all,
Oracle 11 g
I have the following table and data
CREATE TABLE dummy_data (
ID number NOT NULL
,test_Timestamp timestamp NOT NULL
insert into dummy_data (id,test_TimeStamp) values (1,'08-MAR-10 09.43.30.922000000');
insert into dummy_data (id,test_TimeStamp) values (2,'08-MAR-10 09.46.30.922000000');
insert into dummy_data (id,test_TimeStamp) values (3,'08-MAR-10 09.23.30.922000000');
insert into dummy_data (id,test_TimeStamp) values (4,'08-MAR-10 09.26.30.922000000');
insert into dummy_data (id,test_TimeStamp) values (5,'08-MAR-10 09.13.30.922000000');
insert into dummy_data (id,test_TimeStamp) values (6,'08-MAR-10 09.12.30.922000000');
I need to get the average of id values , grouped by 10 minute interval of test_timestamp values. How can I do that ?
For hourly grouping I did the following and it works, but not sure how to do it for 10 minute interval
select to_char(test_Timestamp, 'yyyy-mm-dd hh24') as ts,
     avg(id) as id
     from dummy_data
     GROUP BY to_char(test_Timestamp, 'yyyy-mm-dd hh24') ;
Thanks
_Pete                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

And here's the explaination:
SQL> select id,trunc (test_timestamp, 'hh24')+
  2  numtodsinterval (round (extract (minute from test_timestamp) / 5) * 5, 'minute') test_timestamp,
  3  test_Timestamp
  4  from dummy_data;
                  ID TEST_TIMESTAMP   TEST_TIMESTAMP
                   1 2010-03-08 09:45 08-MAR-10 09:43:30.922000
                   2 2010-03-08 09:45 08-MAR-10 09:46:30.922000
                   3 2010-03-08 09:25 08-MAR-10 09:23:30.922000
                   4 2010-03-08 09:25 08-MAR-10 09:26:30.922000
                   5 2010-03-08 09:15 08-MAR-10 09:13:30.922000
                   6 2010-03-08 09:10 08-MAR-10 09:12:30.922000
6 rows selected.
SQL> select id, trunc(to_number(to_char(test_Timestamp, 'yyyymmddhh24mi'))/5)*5 as ts,
  2  test_Timestamp
  3  from dummy_data;
                  ID                   TS TEST_TIMESTAMP
                   1         201003080940 08-MAR-10 09:43:30.922000
                   2         201003080945 08-MAR-10 09:46:30.922000
                   3         201003080920 08-MAR-10 09:23:30.922000
                   4         201003080925 08-MAR-10 09:26:30.922000
                   5         201003080910 08-MAR-10 09:13:30.922000
                   6         201003080910 08-MAR-10 09:12:30.922000
6 rows selected.In my approach the interval 201003080910 includes from 08-MAR-10 09:10 to 08-MAR-10 09:14:59. (trunc approach)
In your approach the interval 2010-03-08 09:10 includes from 2010-03-08 09:07:30 to 2010-03-08 09:12:29. (round approach)
using trunc instead of round in your approach you get exactly the same results I got:
SQL> select avg (id),
  2         trunc (test_timestamp, 'hh24')
  3         + numtodsinterval (trunc (extract (minute from test_timestamp) / 5) * 5, 'minute') test_timestamp
  4    from dummy_data
  5  group by trunc (test_timestamp, 'hh24')
  6           + numtodsinterval (trunc (extract (minute from test_timestamp) / 5) * 5, 'minute')
  7  order by test_timestamp
  8  /
             AVG(ID) TEST_TIMESTAMP
                 5.5 2010-03-08 09:10
                   3 2010-03-08 09:20
                   4 2010-03-08 09:25
                   1 2010-03-08 09:40
                   2 2010-03-08 09:45Max
http://oracleitalia.wordpress.com
Edited by: Massimo Ruocchio on Mar 9, 2010 9:06 PM

Similar Messages

  • Date column group by 15 minute interval using SQL

    I am using Oracle 9i DB, I have a large table containing several rows with following example data. Each row identifies a transaction.
    Transaction_id, status, completed_date
    1667050 SUCCEEDED 4-Dec-03 00:00:44
    1667091 SUCCEEDED 4-Dec-03 00:05:45
    6670930 SUCCEEDED 4-Dec-03 00:09:46
    4359066 SUCCEEDED 4-Dec-03 00:10:46
    this table consists of rows for a 24 hour day period.
    I need to write a SQL query to generate a report to give me a count of transactions 24 hour period grouped into 15 minute or half hour period.
    for example
    count time_interval
    5000 00:00:00 - 00:14:59
    2345 00:15:00 - 00:29:59
    and so on
    I am new to SQL and so am having a hard time figuring out which function or how to group date column to achieve the end result. I would be grateful if someone could throw some suggestions.

    This should help.
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:4222062043865

  • Group by 5 minutes

    Hi expert,
    how I can genere this?
    TABLE A
    TIME_STAMP          SERVER
    09/09/2010 16:04:08     SRV1
    09/09/2010 16:04:10     SRV1
    09/09/2010 16:04:11     SRV1
    09/09/2010 16:04:18     SRV2
    09/09/2010 16:04:19     SRV2
    09/09/2010 16:04:20     SRV2
    09/09/2010 16:12:02     SRV1
    09/09/2010 16:12:03     SRV1
    09/09/2010 16:12:04     SRV1
    09/09/2010 16:12:11     SRV2
    09/09/2010 16:12:12     SRV2
    09/09/2010 16:12:13     SRV2
    09/09/2010 16:21:24     SRV2
    09/09/2010 16:21:26     SRV2
    09/09/2010 16:21:27     SRV2
    09/09/2010 16:21:30     SRV1
    09/09/2010 16:21:32     SRV1
    09/09/2010 16:21:33     SRV1the output will be
    count(0), server,time_stamp
    3 SRV1 16:05
    3 SRV2 16:05
    3 SRV1 16:10
    3 SRV2 16:10
    3 SRV1 16:20
    3 SRV2 16:20the value 3 will be the average of the 3 server, with a group by per 5 minute.
    Many thanks for all suggest.
    Cheers,
    Lain

    Something like this?
    with your_data as (select to_date('09/09/2010 16:04:08', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV1' server from dual union all
                       select to_date('09/09/2010 16:04:10', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV1' server from dual union all
                       select to_date('09/09/2010 16:04:11', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV1' server from dual union all
                       select to_date('09/09/2010 16:04:18', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV2' server from dual union all
                       select to_date('09/09/2010 16:04:19', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV2' server from dual union all
                       select to_date('09/09/2010 16:04:20', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV2' server from dual union all
                       select to_date('09/09/2010 16:12:02', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV1' server from dual union all
                       select to_date('09/09/2010 16:12:03', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV1' server from dual union all
                       select to_date('09/09/2010 16:12:04', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV1' server from dual union all
                       select to_date('09/09/2010 16:12:11', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV2' server from dual union all
                       select to_date('09/09/2010 16:12:12', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV2' server from dual union all
                       select to_date('09/09/2010 16:12:13', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV2' server from dual union all
                       select to_date('09/09/2010 16:21:24', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV2' server from dual union all
                       select to_date('09/09/2010 16:21:26', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV2' server from dual union all
                       select to_date('09/09/2010 16:21:27', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV2' server from dual union all
                       select to_date('09/09/2010 16:21:30', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV1' server from dual union all
                       select to_date('09/09/2010 16:21:32', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV1' server from dual union all
                       select to_date('09/09/2010 16:21:33', 'dd/mm/yyyy hh24:mi:ss') ts, 'SRV1' server from dual)
    select count(*) num_of_servers,
           server server_name,
           to_char(trunc(ts, 'hh24') + round((ts - trunc(ts, 'hh24'))*60*24/5)*5/60/24, 'dd/mm/yyyy hh24:mi') ts
    from   your_data
    group by server,
             trunc(ts, 'hh24') + round((ts - trunc(ts, 'hh24'))*60*24/5)*5/60/24
    order by ts, server_name;
    NUM_OF_SERVERS SERVER_NAME TS             
                 3 SRV1        09/09/2010 16:05
                 3 SRV2        09/09/2010 16:05
                 3 SRV1        09/09/2010 16:10
                 3 SRV2        09/09/2010 16:10
                 3 SRV1        09/09/2010 16:20
                 3 SRV2        09/09/2010 16:20NB: I used ROUND as you had 16:04 going to 16:05 and 16:21 going to 16:20, so looks like your time-period is 2.5 mins either side of the 5 minute mark. If you want to change it so that the times are rounded down to the previous 5 minute mark, use FLOOR or TRUNC instead of ROUND.
    If you want to change it so that the times are rounded up to the next 5 minute mark, use CEIL instead of ROUND

  • How to write query group by  time(minutes)

    Hi,
    i am writting query like this.
    select host_id,pd_user, pdUserUtil,
    timestamp from
    (select host_id,pd_user,
    avg(pd_cpu) pdUserUtil,
    to_Char(PD_REPORTED_TIMESTAMP,'yyyy-mm-dd hh:MI') timestamp
    from sp_process_detail_current SP
    where exists (select * from
    sp_process_detail_current
    having
    max(PD_REPORTED_TIMESTAMP)-sp.PD_REPORTED_TIMESTAMP<5/1440)
    group by pd_user,host_Id,to_Char(PD_REPORTED_TIMESTAMP,'yyyy-mm-dd hh:MI'))
    where host_id='DSCP04881' and pd_user='TOMCAT'
    TIMESTAMP PD_USER
    2006-06-30 08:07 TOMCAT
    2006-06-30 08:08 TOMCAT
    2006-06-30 08:10 TOMCAT
    BUT WHILE ACCESSING IN JAVA
    java.lang.NumberFormatException: For input string: "30:08:07"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.

    Question: What datatype in Java are you using as placeholder for the timestamp column?
    It's only taking the "2006-06-" part.
    Post here the java code (an exceprt of course), though I feel there's better forums for this subject.

  • Getting an extra column value in a group by expression

    I have the following table-
    CREATE TABLE dummy_data (
    ID number NOT NULL , mark number not null
    ,test_Timestamp timestamp NOT NULL
    insert into dummy_data (id,mark,test_TimeStamp) values (1,12,'08-MAR-10 09.43.30.922000000');
    insert into dummy_data (id,mark,test_TimeStamp) values (2,12,'08-MAR-10 09.46.30.922000000');
    insert into dummy_data (id,mark,test_TimeStamp) values (3,16,'08-MAR-10 09.23.30.922000000');
    insert into dummy_data (id,mark,test_TimeStamp) values (4,18,'08-MAR-10 09.26.30.922000000');
    insert into dummy_data (id,mark,test_TimeStamp) values (5,20,'08-MAR-10 09.13.30.922000000');
    insert into dummy_data (id,mark,test_TimeStamp) values (6,22,'08-MAR-10 09.12.30.922000000');
    select TO_CHAR(TO_DATE (ceil(to_number(to_char(test_Timestamp, 'yyyymmddhh24mi'))/5)*5,'yyyymmddhh24mi'),'yyyy-mm-dd hh24:mi') as ts , id
    from dummy_data
    group by TO_CHAR(TO_DATE (ceil(to_number(to_char(test_Timestamp, 'yyyymmddhh24mi'))/5)*5,'yyyymmddhh24mi'),'yyyy-mm-dd hh24:mi'), id;
    I use the below query to get the id grouped by 5 minutes interval.
    Now I also need to get the Mark associated with the id, in a single query. Is there a way to get it ?
    Thanks
    _Pete                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I am sorry should have given little more details on my request and I am not sure even if it possible to do that in sql.
    Though I am grouping by 5 minute interval. If the mark is there for the last one hour, show that entry only once.
    In other words, in my example
    Take this to samples (see same mark)
    insert into dummy_data (id,mark,test_TimeStamp) values (6,12,'08-MAR-10 09.12.30.922000000');
    insert into dummy_data (id,mark,test_TimeStamp) values (2,12,'08-MAR-10 09.46.30.922000000');
    When you group by id, you will get separate values for 9:10-9:15 5 minute interval and another one for 9:45-9:50 interval.
    What I want is if the mark has already appeared in that one hour interval, I don't want it to be repeated.
    Thanks
    _Pete                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Do we get roll over minutes with...

    Do we get roll over minutes with with the iPhone plan? If so I don't need the $79.95 plan..hehe.

    Check AT&T's fine print, and don't get hit with extra charges that first month because you think you have minutes rolled over-
    "Rollover Minutes: Rollover Minutes accumulate and expire through 12 rolling bill periods. Bill Period 1 (activation) unused Anytime Minutes will not carry over. Bill Period 2 unused Anytime Minutes will begin to carry over. Rollover Minutes accumulated starting with Bill Period 2 will expire each bill period as they reach a 12 bill period age. Rollover Minutes will also expire immediately upon default or if customer changes to a non-Rollover plan. If you change from one rollover plan to another rollover plan, any accumulated Rollover Minutes in excess of the new plan's number of monthly Anytime Minutes will expire upon such change. If you migrate a single line to a FamilyTalk plan, or should a subscriber join a FamilyTalk plan for which your line is the primary line, any accumulated Rollover Minutes for all lines included in the new FamilyTalk group's Rollover Minutes in excess of the monthly Anytime Minutes for such group shall expire upon such change. Rollover Minutes are not redeemable for cash or credit and are not transferable. Night and Weekend and Mobile to Mobile Minutes do not carry over."

  • Could i use visual studio to make a windows form that could interact with facebook?

    I'm a beginner to windows forms and have just read my way through tutorials at learnc++.com so i want to get started on a project to practice my c++ and also a project that i could find usefull.
    What I want to do is check a facebook group page every minute for new posts that contain certain words. So im thinking i could make a web browser and then get the document from the facebook group page and extract the html from it to search for certain keywords. 
    I realize that I won't be able to just do this straight away and will have to learn more about certain functions and how to get html from a webpage. Where can i learn the skills I would need to be able to do this? I'm going to try searching youtube for related
    tutorials and I'm guessing that this site has all the documentation i will need to understand the functions to pull the html from a webpage.
    please help me to figure out how I could achieve this, if i haven't been clear I will try to reply to any questions you have. 
    Thanks for reading,
    Jake

    Hello,
    I'd search over here:
    https://developers.facebook.com/
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Convert Date Time field to Date & Time

    Post Author: Smita
    CA Forum: Crystal Reports
    I am new to Crystal XI  . I need to convert DateTime ("2007/04/04/04 09:49:05:00") format to Date and Time and then group a months data first by date and then by Time ( per Hour ).
    If someone can help ?
    Thanks

    Post Author: newcruser
    CA Forum: Crystal Reports
    Thanks
    This is easy...second group based on the second formula 'for each hour'.
    How you group by 15 minutes?.
    i want to group by every 15 minutes starting from 9 AM to 5 PM.
    First i need to create a time range and then use that time range to group?.  Or any other simple and best way to solve this?. Please help
    How to create time range from 9 AM to 5 PM?

  • "HAVING NOT LIKE" isn't working

    When I wanted to sum the value of all inputted device data except one type I had to put this...
    SELECT AttributeName, DateAdd(minute,-5,System.TimeStamp) as WinStartTime, system.TimeStamp as WinEndTime, DeviceId, Avg(Value) as Value, Count(*) as EventCount
    FROM input
    GROUP BY TumblingWindow(minute, 5), DeviceId, AttributeName
    Having 'OK' = CASE
         WHEN  AttributeName LIKE '%/pir/%' THEN 'PIR'
         ELSE 'OK'
    END
     ...instead of simply saying...
    SELECT AttributeName, DateAdd(minute,-5,System.TimeStamp) as WinStartTime, system.TimeStamp as WinEndTime, DeviceId, Avg(Value) as Value, Count(*) as EventCount
    FROM input
    GROUP BY TumblingWindow(minute, 5), DeviceId, AttributeName
    Having  AttributeName NOT LIKE '%/pir/%'
    It accepted the "NOT LIKE" version, but didn't produce any output.
    Does anyone understand why NOT LIKE doesn't work in this scenario?
    Thanks in advance,
    Peter
    #PEJL
    Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over to
    TechNet Wiki, for future generations to benefit from! You'll never get archived again, and
    you could win weekly awards!
    Have you got what it takes o become this month's
    TechNet Technical Guru? Join a long list of well known community big hitters, show your knowledge and prowess in your favoured technologies!

    Hi Peter,
    Could you please try your scenario again? We deployed a service change recently which should support this scenario.
    We have a different issue where testing of queries in the browser (without starting a job) does not have this fix yet, that change should be rolled out as soon as it is ready.
    Zafar
    Zafar Abbas

  • Duplicate property names are not allowed 'max'

    I'm puzzled by the above error.  It seems I can only add in one aggregate in a single query.  The error shows up in the simple example below, if I remove one of the AVG the error goes away.  I could create multiple queries and join them but
    I've seen samples that suggest this should work.  Any thoughts as to what I'm doing wrong?
    SELECT MAX(Driver), AVG(Time), AVG (SpeedInKmPerHour)
    FROM input
    TIMESTAMP BY DataTimestamp
    GROUP BY Driver, TumblingWindow(second, 1);

    Hi Michael,
    I'm using Stream Analytics to issue speading tickets in a driving game (they are actually achievements). It looks very similar to what you are doing, are you tracking real cars?
    I started with this query:
    -- Select the average speed over a 10 second tumbling window
    select Driver, avg(Speed) as AverageSpeed
    from telemetry
    group by TumblingWindow(second, 10), Driver
    Then tried this:
    -- Select average speed where it exceeds
    -- 100 MPH in a 10 second sliding wondow.
    select Driver, avg(Speed) as AverageSpeed
    from telemetry
    group by SlidingWindow(second, 10), Driver
    having avg(Speed) > 100
    And am now using this:
    -- Limit the output events to one per minute
    with Speeds as
    select
    Driver,
    avg(Speed) as AverageSpeed
    from telemetry TIMESTAMP By CreatedTime
    group by SlidingWindow(second, 10), Driver
    having avg(Speed) > 100
    select Driver, max(AverageSpeed) as Speed
    from Speeds
    group by TumblingWindow(minute, 1), Driver
    Hope this helps.
    Regards,
    Alan
    Free e-book: Windows Azure Service Bus Developer Guide.

  • SCCM creating duplicate computer Objects

    Hi
    We have just upgraded from an SCCM 2007 to SCCM 2012. In the old system I had it set up that other members of my team could all add a machine to SCCM adding the MAC address information and then add the machine into AD. once in AD they could assign it
    to security groups for example a windows 7 group. every 10 minutes SCCM would scan AD see the machine name and update the security group information on the computer object that was manually created earlier. based on this if SCCM could see it
    in the Windows 7 group it would move the machine to the Windows 7 collection and then I had an advertisement that would deploy Windows 7.
    On the new system however I add the machine into SCCM with the MAC then add it to AD but I end up with 2 objects one that I added with the MAC but doesn't get updated with the security group information so doesn't get added to the collection and then another
    one created from scanning AD which has the security information but no MAC so wont build. 
    how can I get it to just update the one object?
    thanks

    I create the object in AD so that I can assign a computer security groups like Windows 7 or install office and based on that SCCM moves the machine into various collections. when I then build a machine it will build with the various option set for example
    it will build a machine with Windows 7. I have to also import it into SCCM so I can assign it a MAC address so that when I PXE boot a machine it recognises it.
    I used to be able to under sccm 2007 import it manually into SCCM with the MAC so it would PXE boot and also create an AD computer account with the security groups and in the correct OU so that when it built it would be joined to the domain
    with the correct GP applied. 2007 used to merge the 2 objects or at least detect the machine name already existed and applied the information to the existing objects.  
    its neater for me to do it this way than have everyone doing direct relationships for all machines on collections

  • Convert Safari History lastvisiteddate to date time

    I want to Convert Safari History lastvisiteddate to date time.

    Post Author: newcruser
    CA Forum: Crystal Reports
    Thanks
    This is easy...second group based on the second formula 'for each hour'.
    How you group by 15 minutes?.
    i want to group by every 15 minutes starting from 9 AM to 5 PM.
    First i need to create a time range and then use that time range to group?.  Or any other simple and best way to solve this?. Please help
    How to create time range from 9 AM to 5 PM?

  • WRFMASSMAT does not work properly

    Hello,
    this is my first post in this forum.
    I have a problem regarding the Transaction WRFMASMAT. This transaction should be available to users without the permission to access the transcation MM42. I have added all neccessary objects from the MM42 to the WRFMASSMAT and there is no error message in the transaction. But the data, which was changed by this transaction, was not written to the master data table. MM43 shows still shows the unchanged data. The SLG1 reports an error, but there are no objects oder transactions, for which i could give permissions.
    What can i do ? Is there a possibility to make the WRFMASSMAT available to users without granting permission to the MM42 ?
    Thanks for your help.
    Greetings
    Ingo Schroeder

    You asked:  "Is there a possibility to make the WRFMASSMAT available to users without granting permission to the MM42?"
    The answer is Yes.
    There are primarily two transactions that are relevant for this process:
    WRFMGROUP - Maintenance Group Management
    WRFMASSMAT - Integrated Mass Change
    When using WRFMGROUP to create Maintenance Groups, youu2019re able to choose from a long list of preconfigured field
    groups, each of which includes a short list of related Article Master fields.
    By adding preconfigured field groups to a Maintenance Group, in mere minutes youu2019ll enable users to mass maintain a
    limited list of fields.
    If standard field groups fail to meet your requirements, then you can configure a custom field group and then reassign
    fields from standard field groups to your custom field group. As a final step, youu2019ll add the custom field group to a
    Maintenance Group.
    No matter whether youu2019re using standard field groups or rolling your own, you may encounter this error message while
    using WRFMGROUP to add a field group to a Maintenance Group:  Field group XXX is not allowed for mainenance group.
    This error is presented because thereu2019s a substantial list of fields that are not allowed for use with Maintenance Groups,
    no matter that these fields are included in standard field groups. The list of not-authorized fields is determined by function
    module WRF_GEN_HIER_CHECK_FGROUP.
    Please note that if you havec customer defined fields then these will not be updated.  Fore this, see SAP Note 1024725 WRFMASSMAT: How to support customer defined fields

  • Logviewer 1.14 showing incorrect times, and other issues.

    Couple of issues with running LogViewer, wondering if anyone can help.
    First, and seems to be the most frustrating, is that the LogViewer screen is showing incorrect times for the events. I am in Mountain Time zone in the US, which is GMT-7. When looking at the log from a web browser, my router is displaying the correct time. The text file that LogViewer saves on the local computer shows the same correct time. The LogViewer screen, however, shows a time 7 hours into the future. IE, if I type out the log from a DOS window, the last event will say something like "Mar 28 1:15:05 2008", but that same event number will be listed on the logviewer screen as "Mar 28 8:15:05" Any ideas on what may be wrong and how to correct it?
    Second, all events seem to be grouped exactly 3 minutes apart. I realize this is probably an effect of the router sending the information every three minutes. Anyone know of a way of changing that period?
    Hm, just noticed a third, but very minor issue. The text file written has the wrong day of week on it. It's listing Mar 28 2008 as a Wednesday...
    Thanks in advance for any advice.
    OK, the tech info. I am running LogViewer 1.14 on a Windows XP machine, contacting an WRT55AG with firmware 1.20. The connection is through a Cat 5 cable, not through the wireless.

    Couple of issues with running LogViewer, wondering if anyone can help.
    First, and seems to be the most frustrating, is that the LogViewer screen is showing incorrect times for the events. I am in Mountain Time zone in the US, which is GMT-7. When looking at the log from a web browser, my router is displaying the correct time. The text file that LogViewer saves on the local computer shows the same correct time. The LogViewer screen, however, shows a time 7 hours into the future. IE, if I type out the log from a DOS window, the last event will say something like "Mar 28 1:15:05 2008", but that same event number will be listed on the logviewer screen as "Mar 28 8:15:05" Any ideas on what may be wrong and how to correct it?
    Second, all events seem to be grouped exactly 3 minutes apart. I realize this is probably an effect of the router sending the information every three minutes. Anyone know of a way of changing that period?
    Hm, just noticed a third, but very minor issue. The text file written has the wrong day of week on it. It's listing Mar 28 2008 as a Wednesday...
    Thanks in advance for any advice.
    OK, the tech info. I am running LogViewer 1.14 on a Windows XP machine, contacting an WRT55AG with firmware 1.20. The connection is through a Cat 5 cable, not through the wireless.

  • AAA Servers

    Once the ASA marks the NPS server "failed" it has to be a manual actions to re-mark it "active". What are some options around this?
    What I don't know is how the ASA fails a server. I know that if anyone failed the server on the ASA it will mark it failed. If I bring down a backup server *not the primary* the ASA does not change the server status. We know the ASA will mark the primary server down and try to select another in its pool if authentication is not pointed to the "local server group" when the primary is down. How does that take place and what are the events, logs, alerts and if any notification are being sent and to who?

    The default dead time on a AAA-Server group is 10 minutes so if the ASA is failed to reach/contact the radius server then the server will be marked dead/failed for next 10 mins.  Even if you only lose the connectivity from the tacacs server for a very short period of time but the server won't become active again for next 10 mins so in order to over come this issue you need reduce this time by changing the reactivation-mode command under the AAA server-group. enter the following command:
    hostname(config-aaa-server-group)# # reactivation-mode {depletion [deadtime minutes] | timed}
    'reactivation-mode timed' thinking that this would probably be a good option so that server should come back more quickly (in 30 seconds). I hope that will be still there.
    Where the depletion keyword reactivates failed servers only after all of the servers in the group are inactive.
    The timed keyword reactivates failed servers after 30 seconds of down time.
    More info
    http://www.cisco.com/en/US/docs/security/asa/asa82/command/reference/qr.html#wp1787712
    You may also try to run show aaa-server to see the status of the servers in the group.
    Jatin Katyal
    - Do rate helpful posts -

Maybe you are looking for