DAEnetIP2
User Manual
12 Sep 2013
12.4.2. Linux
Usually most of Linux OS come with snmp tool installed.
1. To check out if snmp is installed, just open one terminal and type:
snmpget -v1 -c 000000000000 192.168.1.11 .1.3.6.1.4.1.19865.1.1.1.0
(Of course with your network settings)
If you get some message like this: "snmp is not function" or "snmp not found", it
seems that snmp is not installed and you have to follow the hints that the command
line gives you. After that repeat step 1.
2. Create bash file for example ON.vim and enter the following commands in it:
#!/bin/bash
snmpset -v1 -c private 172.16.100.2 .1.3.6.1.4.1.19865.1.2.2.1.0 i 0
sleep 5s
snmpset -v1 -c private 172.16.100.2 .1.3.6.1.4.1.19865.1.2.2.1.0 i 1
3. Save the file
4. Run it.
12.4.3. Example commands
o
SNMPGET examples
Get DAEnetIP2 IP address
snmpget -v1 -c 000000000000 172.16.100.2 Denkovi.DAEnetIP2.Configuration.cfgIP.0
snmpget -v1 -c 000000000000 172.16.100.2 .1.3.6.1.4.1.19865.1.1.1.0
Get the MAC Address
snmpget -v1 -c 000000000000 172.16.100.2 Denkovi.DAEnetIP2.Configuration.cfgMAC.0
snmpget -v1 -c 000000000000 172.16.100.2 .1.3.6.1.4.1.19865.1.1.2.0
Get P6.1 - This will read analog input 1 level. The rsult is from 0 up to 1023.
snmpget -v1 -c 000000000000 172.16.100.2 .1.3.6.1.4.1.19865.1.2.3.1.0
Get P6.8 This will read analog input 8 level. The rsult is from 0 up to 1023.
snmpget -v1 -c 000000000000 172.16.100.2 .1.3.6.1.4.1.19865.1.2.3.8.0
Get the whole P6 (This will return a byte number. Each bit is converted analog input
value. This can be used for digital inputs reading of P6)
snmpget -v1 -c 000000000000 172.16.100.2 .1.3.6.1.4.1.19865.1.2.3.33.0
Get P3.1 - This will read digital output P3.1 level
snmpget -v1 -c 000000000000 172.16.100.2 .1.3.6.1.4.1.19865.1.2.1.1.0
Get P3.8 - This will read digital output P3.8 level
snmpget -v1 -c 000000000000 172.16.100.2 .1.3.6.1.4.1.19865.1.2.1.8.0
-
44
-