forked from TechBjumper/ddfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2bu_rpdu.xml
141 lines (138 loc) · 3.71 KB
/
2bu_rpdu.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<APC_DDF
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://localhost/ddf_schema/apc_ddf_1_6.xsd"
ddfid="2bu_rpdu"
ddfname="2BU rPDU"
ddfversion="2"
canremove="yes">
<schemaVersion>1.6</schemaVersion>
<device deviceid="2bu_rpdu">
<setProductData ruleid="vendordata" field="vendor">2BU</setProductData>
<setProductData ruleid="modeldata" field="model">rPDU</setProductData>
<setProductData ruleid="typedata" field="type">Rack PDU</setProductData>
<setDefaultLabel ruleid="labeldata">
<sysHostname/> - Slave <commSetting field="slaveaddress"/>
</setDefaultLabel>
<setProductData ruleid="inputphasecount" field="inputphasecount">1</setProductData>
<setProductData ruleid="outputphasecount" field="outputphasecount">1</setProductData>
<oidMustExist ruleid="modbusdevicetest" oid="MODBUS_OID_MUST_EXIST"/>
<numSensor ruleid="input-voltage">
<type>voltageAC</type>
<units/>
<sensorId>INPUT_VOLTAGE</sensorId>
<value>
<mult>
<op>
<getOid>INPUT_VOLTAGE</getOid>
</op>
<op>0.001</op>
</mult>
</value>
<valueInc>0.001</valueInc>
<label>Input Voltage</label>
<sensorSet>Numeric Sensors</sensorSet>
</numSensor>
<numSensor ruleid="total-current">
<type>amperage</type>
<units/>
<sensorId>TOTAL_CURRENT</sensorId>
<value>
<mult>
<op>
<getOid>TOTAL_CURRENT</getOid>
</op>
<op>0.001</op>
</mult>
</value>
<valueInc>0.001</valueInc>
<label>Total Current</label>
<sensorSet>Numeric Sensors</sensorSet>
</numSensor>
<numSensor ruleid="total-active-power">
<type>powerW</type>
<units/>
<sensorId>TOTAL_ACTIVE_POWER</sensorId>
<value>
<mult>
<op>
<getOid>TOTAL_ACTIVE_POWER</getOid>
</op>
<op>0.001</op>
</mult>
</value>
<valueInc>0.001</valueInc>
<label>Total Active Power</label>
<sensorSet>Numeric Sensors</sensorSet>
</numSensor>
<numSensor ruleid="total-real-power">
<type>powerVA</type>
<units/>
<sensorId>TOTAL_REAL_POWER</sensorId>
<value>
<mult>
<op>
<getOid>TOTAL_REAL_POWER</getOid>
</op>
<op>0.001</op>
</mult>
</value>
<valueInc>0.001</valueInc>
<label>Total Real Power</label>
<sensorSet>Numeric Sensors</sensorSet>
</numSensor>
<numSensor ruleid="total-energy-used">
<type>num/kwatthr</type>
<units/>
<sensorId>TOTAL_ENERGY_USED</sensorId>
<value>
<mult>
<op>
<getOid>TOTAL_ENERGY_USED</getOid>
</op>
<op>0.001</op>
</mult>
</value>
<valueInc>0.001</valueInc>
<label>Total Energy Used</label>
<sensorSet>Numeric Sensors</sensorSet>
</numSensor>
</device>
<protocol>
<modbus>
<type_definition type_name="swapped_int_32">
<type>int_32</type>
<byte_order>3,2,1,0</byte_order>
</type_definition>
<value_ref_id valid="INPUT_VOLTAGE">
<function>3</function>
<start_addr>4096</start_addr>
<quantity>2</quantity>
<type>swapped_int_32</type>
</value_ref_id>
<value_ref_id valid="TOTAL_CURRENT">
<function>3</function>
<start_addr>4102</start_addr>
<quantity>2</quantity>
<type>swapped_int_32</type>
</value_ref_id>
<value_ref_id valid="TOTAL_ACTIVE_POWER">
<function>3</function>
<start_addr>4140</start_addr>
<quantity>2</quantity>
<type>swapped_int_32</type>
</value_ref_id>
<value_ref_id valid="TOTAL_REAL_POWER">
<function>3</function>
<start_addr>4120</start_addr>
<quantity>2</quantity>
<type>swapped_int_32</type>
</value_ref_id>
<value_ref_id valid="TOTAL_ENERGY_USED">
<function>3</function>
<start_addr>4124</start_addr>
<quantity>2</quantity>
<type>swapped_int_32</type>
</value_ref_id>
</modbus>
</protocol>
</APC_DDF>