2010年(71)
分类:
2010-07-08 23:36:25
1. 定义一个类和类中所有字段, for example: dbspimosm.sp
CLASS MYSOSM = 787879
LABEL "MSYOSM_METRICS"
CAPACITY 10000
;
METRICS
METRICID=1
# METRICID CODA_CATEGORYTYPE = KEY
PRECISION 1;
VALUEID=2
# VALUEID CODA_CATEGORYTYPE = KEY
PRECISION 1;
VALUE=3
# VALUE CODA_CATEGORYTYPE = GAUGE
PRECISION 2;
SYSTEMID=4
# SYSTEMID CODA_CATEGORYTYPE = KEY
TYPE TEXT LENGTH 40;
OBJECTID=5
# OBJECTID CODA_CATEGORYTYPE = KEY
TYPE TEXT LENGTH 128;
2. 用命令ddfcomp将定义的类编译,并写入OVPA/CODA的数据库中,并创建相应的logfile set
3. 用命令ddflog往其中添加数据