Examples of common TIME command requests
The following examples of the TIME command demonstrate how to request historical data for various time intervals.
Time interval request | Command string | Description |
---|---|---|
Retrieve data from one week ago | TIME 08APR2021 09:25 | Displays data from the previous week at the end of the interval that contains 9:25 (that is, the interval between 9:15 and 9:30) |
Display data from the next interval | TIME = = NEXT | Requests the next interval (the default) from the date and time last specified. Using the previous example, data from April 8, during the interval from 9:30 to 9:45, is displayed. |
Display data for a specific time period | TIME 15APR2021 12:00 3H | Displays data from the three-hour period ending on April 15, 2021 at 12 noon |
Display data from the next day | TIME 16APR2021 = = | Displays data from the next day during the same time period. The equal signs request the last specified time and duration. Using the previous example, these values would be 12:00 and 3H. |
Display data for a specific time period | TIME 15APR2021 08:00 30M | Displays data for the 30 minutes ending at 8:00 on April 15 |
Display data for a specific time | TIME * 9:00 | Displays data from today at 9:00. The asterisk indicates the current date. |
Reestablish the current time | TIME * * * | Reestablishes the current time |
How spanned time is calculated
(BMC.AMIOPS.SPE2110)On views that support interval history, by default the window information line displays the spanned time of the current or most recently ended interval in seconds, minutes, or hours.
You can also request the spanned time of multiple intervals by using the TIME command. The following examples explain how the spanned time is calculated for different types of intervals:
Type of interval | Example |
---|---|
Single past interval | The current time is 12:16 and you request data for the interval ending at 12.15. The time span is the total time elapsed of the interval (15 minutes). >H1 =JCPU==============SYSB=*========13JUL2021==12:16=15M====MVMVS====D==499===== |
Single current interval | The current time is 12:16 and the current interval started at 12.15. The time span is the time elapsed since the start of the interval (one minute). >W1 =JCPU==============SYSB=*========13JUL2021==12:16=1M====MVMVS====D==499===== |
Multiple past intervals | The current time is 12:16 and you used the TIME command to request three intervals with the ending time of 11:00. That is, you want the time elapsed from 10:15 until 11:00. The interval times are:
The requested end time is in the past and all of the intervals have completed. Therefore, the time span is the total elapsed time for all the intervals (15+15+15=45 minutes) >H1 =JCPU==============SYSB=*========13JUL2021==12:16=45M====MVMVS====D==499===== |
Multiple intervals including the current interval | The current time is 12:16 and you use the TIME command to request three intervals with the ending time of now (12:16). The interval times are:
The current interval (interval 3) has not completed yet. We are one minute into the current interval. Therefore, the time span is the total elapsed time of the two completed intervals plus one minute of the current interval (15+15+1=31 minutes) >H1 =JCPU==============SYSB=*========13JUL2021==12:16=31M====MVMVS====D==499===== |
Related topic