Versions Compared

Key

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

...

Code Block
$ snmptable -Ci -Cb -v2c -cread 192.168.0.193 VUTLAN-SYSTEM-MIB::ctlAllElementsTable 


Code Block
linenumberstrue
 SNMP table: VUTLAN-SYSTEM-MIB::ctlAllElementsTablectlUnitElementsTable
 index  ID GroupIDId 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 ""
     0203001        1        "usb-cam"2      "Web Camera(USB)"analog"        "normal"
   13  13       0        1 voltage"        "readerVoltage"          "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        2  outlet"        "smokeRelay-1"             "Analog-2off"        "normal"
   22  22     off"  0        2    "temperature"
 102002           "Analog-3"   2      "alarm"
   23  23       0        2  switch"      "unknownoutlet"             "AnalogRelay-4" "not connected"
   242"  24       0        2        "unknown"           "off"  "Analog-5" "not connected"
   25  25       0off"        2        "unknown"
 102003      3   3  "Analog-6" "not connected"
   26  26       0        2  switch"      "unknownoutlet"             "AnalogRelay-7" "not connected"
   27  27       0 3"       2        "unknown"           off"  "Analog-8" "not connected"
   28  28    off"   0        2   "induct relay"
 102004    "A-Sensors Power" 3    4       "on"
   31  31       0switch"        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        3   "induct relay"              "Relay-4"           "off"
   40  40       0normal"   "on" "reverse=\"1\""
 101002      4   2 "discrete"         4     "pushbutton"   "dry"             "Dry-1" 2"not connected"    41  41 "normal"    "on"  0        4     "pushbutton"
 101003      4       3 "Dry-2" "not connected"
   42  42       0discrete"         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-54" "not connected"    45  45"normal"   "on"    0        4     "pushbutton" 
 401001      5   1    "Dry-6" "not connected"
   46  46       0        4"devhwr"       "pushbutton"       reader"         "Dry-7iButton" "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-112" "not connected"    51  51   "low"    0        4     "pushbutton"  "0.0"             "Dry-12" "not connected"
   52402001  52   11    0        41     "pushbutton"       devhwr"        "Dryusb-13cam" "notUSB Web connected"
   53  53       0    camera"    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       028.5"        0          "timer"               "Timer-1"          "off"


Пример. Получение измеряемого значения для элемента системы c 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::ctlAllElementNamectlUnitElementName.20102003 = STRING: "MagnetDry sensor"