Hs_Create_View - Sybase 12.5.1 User Manual

Historical server
Table of Contents

Advertisement

hs_create_view

Examples
Usage
hs_create_view
Description
Syntax
Parameters
72
This example creates a recording session to capture data from the Monitor
Sever called SERVER1_MON. The data is captured every 30 seconds and
written to the data files in the /user/hist_dir directory, starting now and
ending on August 8, 1997 at 10:30 a.m. EDT (eastern time zone, daylight
saving time). The resulting files have private restrictions. The recording
session continues if non-fatal errors are detected. A script file that creates
an Adaptive Server table for each recorded view is created.
hs_create_recording_session SERVER1_MON,30,
/user/hist_dir,NULL,"97/08/08 10:30 EDT",
private,continue, sybase_script
Fatal errors include crashes and other connection failures with
Adaptive Server or Monitor Server. A fatal error forces termination of
the recording session, regardless of the value of error_option.
You must issue this command before you define any views, alarms, or
filters for the recording session. After you have issued this command
and have defined at least one view, you can start recording with the
hs_initiate_recording
Defines a collection of data items to be recorded during a session.
hs_create_view view_name,
data_item_name_1, data_item_stat_1
[,data_item_name_2, data_item_stat_2]...
view_name
user-defined name of the view. The view name must be constructed
from the characters a – z, A – Z, 0 – 9, and the underscore character (_).
data_item_name_n
data items that participate in the view. If a data item contains embedded
spaces, surround it with quotation marks.
See Table A-1 on page 103 for a list of available data items. See
Table B-2 on page 124 for valid combinations of data items within
views.
data_item_stat_n
statistic types of the respective data items. The statistic type must be
surrounded with quotation marks. Valid statistic types are:
command.
Historical Server

Advertisement

Table of Contents
loading

Table of Contents