Monitoring The monitoring system may include the following elements:
Analog sensors;
Discrete sensors;
Virtual sensors (elements);
Notifications;
Units;
All the available elements of the system are given in table ctlAllElementsTable
ExampleExample. View available system elements:
Code Block |
---|
$ snmptable -Ci -Cb -v2c -cread 192.168.0.193 VUTLAN-SYSTEM-MIB::ctlAllElementsTable |
Code Block | ||
---|---|---|
| ||
SNMP table: VUTLAN-SYSTEM-MIB::ctlAllElementsTablectlUnitElementsTable index IDId GroupID ModuleID Module Num Class Type Type Name State Value 10 10 0Spec 201001 1 -1 "temperatureanalog" "Int. Module Temp." "temperature" "alarm" 11 11 0Temperature" 1 "analog voltagealarm" "Int. Module +12V ch.31.5" "warning" 12 12 "" 0 203001 1 "usb-cam" -2 "Web Camera(USB)" analog" "normal" 13 13 0 voltage" 1 "readerVoltage" "S/N iButtonwarning" "not connected11.3" 14 14 0 "" 301001 1 2 -1 "GSM modemswitch" "relay" "GSMAnalog ModemPower" "not connected" 20 20 "on" 0"on" 2 "magnet" 102001 3 1 "Analog-1switch" "alarm" 21 21 0 2outlet" "smokeRelay-1" "Analog-2off" "normal" 22 22 "off" 0 2 "temperature" 102002 "Analog-3" 2 "alarm" 23 23 0 2switch" "unknownoutlet" "Analog-4" "not connected" Relay-2" 24 24 0 2 "unknown" "Analog-5" "not connected" 25 25"off" "off" 0 2 "unknown" 102003 3 3 "Analog-6" "not connected" 26 26 0switch" 2 "unknown" "outlet" "Analog-7" "not connected" 27 27 0 Relay-3" 2 "unknown" off" "Analog-8" "not connected" 28 28 off" 0 2 "induct relay" 102004 "A-Sensors Power" 3 4 "on" 31 31 0 switch" 3 "induct relay" outlet" "Relay-14" "off" 32 32 0 3 "induct relayoff" "Relay-2" 101001 4 1 "off" 33 33 0 discrete" 3 "induct relay" dry" "RelayDry-31" "off" 34 34 0 3normal" "induct relay" "Relay-4" "off" 40 40 0on" "reverse=\"1\"" 101002 4 2 "discrete" 4 "pushbutton" "dry" "Dry-12" "not connected" 41 41"normal" "on" 0 4 "pushbutton" 101003 4 3 "Dry-2" "not connected" 42 42 0"discrete" 4 "pushbutton" "dry" "Dry-3" "not connected" 43 43 "normal" "on" 0 4 "pushbutton" 101004 4 "Dry-4" "not connected" 44 44 0 discrete" 4 "pushbutton" dry" "Dry-5" "not connected4" 45 45 "normal" "on" 0 4 "pushbutton" 401001 5 1 "Dry-6devhwr" "not connected" 46 46 0 4 "pushbutton"reader" "Dry-7"iButton" "not connected" 47 47 "" 0 4 "pushbutton" 301001 5 -1 "Dry-8"switch" "not connected" 48 "relay" 48 "iButton Power" 0 4 "on" "pushbuttonon" "Dry-9" "not connected"102001 49 492 1 "discrete" 0 "door" 4 "pushbuttonAnalog-1" "normal" "Dry-10on" "not connected" 50 50 "" 0 204001 2 4 2 "pushbuttonanalog" "fvoltage" "DryAnalog-112" "not connected" 51 51 "low" 0 4 "pushbutton""0.0" "Dry-12" "not connected"402001 52 11 52 01 4 "pushbutton" "devhwr" "Dryusb-13cam" "notUSB Web connected" 53 53 camera" 0 4 "pushbutton" "unknown" "Dry-14" "not connected" 54 54 0 4 "pushbutton" 201002 2 3 "Dry-15analog" "not connected" 55 55 0 4temperature" "pushbuttonAnalog-3" "Dry-16"alarm" "not connected" 300 300 0 28.5" 0 "timer" "Timer-1" "off" |
" |
Example. Getting the measured value for the system element with ID=201002:
Code Block |
---|
$ snmpget -v2c -cread 192.168.0.193 VUTLAN-SYSTEM-MIB::ctlUnitElementValue.201002
or without MIB-file
$ snmpget -v2c -cread 192.168.0.193 .1.3.6.1.4.1.39052.1.3.1.7.201002 |
there 7 - number of table row associated with sensor value, 201002 - sensor ID.
Code Block |
---|
VUTLAN-SYSTEM-MIB::ctlUnitElementValue.201002 = STRING: "28.7" |
Example. Changing the name of the element with ID=20102003:
Code Block |
---|
$ snmpset -v2c -cwrite 192.168.0.193 VUTLAN-SYSTEM-MIB::ctlAllElementNamectlUnitElementName.20102003 s "MagnetDry sensor" |
Code Block |
---|
VUTLAN-SYSTEM-MIB:: |
...
ctlUnitElementName. |
...
102003 = STRING: " |
...
Dry sensor" |