Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 SKYCONTROLVUTLAN-SYSTEM-MIB::ctlAllElementsTable 
Code Block
linenumberstrue
 SNMP table: SKYCONTROLVUTLAN-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     Temperature"  0        1 "analog voltage"alarm" "Int. Module +12V ch."  31.5"     "warning"    12  12   ""
 203001  0        1        "usb-cam"-2      "Web Camera(USB)" "analog"       "normalvoltage"    13  13       0        1         "reader" "Voltage"         "S/N iButton"warning" "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     outlet"   2          "smoke" "Relay-1"            "Analog-2"      off"  "normaloff"
   22  22       0        2    "temperature"
 102002           "Analog-3"     2    "alarmswitch"    23  23       0        2        "unknown"    "outlet"         "Analog-4" "not connectedRelay-2"    24  24       0        2        "unknown"off"             "Analog-5" "not connected""off"     25  25       0        2        "unknown"
 102003      3   3  "Analog-6" "not connected"
   26  26       0        2 switch"       "unknownoutlet"             "AnalogRelay-73" "not connected"    27  27       0        2        "unknown"             "Analog-8" "not connected"
   28  28   "off"  "off"    0        2   "induct relay"
 102004    "A-Sensors Power" 3      4     "onswitch"
   31  31       0        3   "induct relay"outlet"              "Relay-14"           "off"
   32  32       0        3   "induct relayoff"              "Relay-2"
 101001      4   1 "offdiscrete"    33  33       0        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     "pushbuttondry"                "Dry-3" "not connected"    43  43"normal"   "on"    0        4     "pushbutton"
 101004      4        "Dry-4" "not connecteddiscrete"    44  44       0        4     "pushbutton"      "dry"          "Dry-54" "not connected"    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-10"on" "not connected"    50  50      ""
0 204001      2 4  2   "pushbuttonanalog"       "fvoltage"        "DryAnalog-11" 2"not connected"    51  51    "low"   0        4     "pushbutton"0.0"               "Dry-12"
"not connected"402001    52 11 52       0  1      4     "pushbutton"          "devhwr"     "Dryusb-13cam" "notUSB Web connected"
   53  53       0        4camera"       "pushbuttonunknown"               "Dry-14" "not connected"    54  54       0        4     "pushbutton"
 201002      2   3    "Dry-15analog" "not connected"
   55  55       0  temperature"      4     "pushbutton"  "Analog-3"             "Dry-16"alarm" "not connected"
  300 30028.5"         0        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 SKYCONTROLVUTLAN-SYSTEM-MIB::ctlAllElementNamectlUnitElementName.20102003 s "MagnetDry sensor"

Code Block

...

VUTLAN-SYSTEM-MIB::

...

ctlUnitElementName.

...

102003 = STRING: "

...

Dry sensor"