DAEnetIP2 v2 User Manual
21 Apr 2020
For creating batch files, you may use the following steps:
1. Open new file and save it as ON.bat
2. Enter the following code:
snmpset -v1 -c private 192.168.1.100 .1.3.6.1.4.1.42505.9.2.2.1.0 i 0
PING 1.1.1.1 -n 1 -w 5000
snmpset -v1 -c private 192.168.1.100 .1.3.6.1.4.1.42505.9.2.2.1.0 i 1
1. Save the file
2. Run it.
14.2.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.100 .1.3.6.1.4.1.42505.9.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 192.168.1.100 .1.3.6.1.4.1.42505.9.2.2.1.0 i 0
sleep 5s
snmpset -v1 -c private 192.168.1.100 .1.3.6.1.4.1.42505.9.2.2.1.0 i 1
3. Save the file
4. Run it.
14.2.3. Example commands
SNMPGET examples
Get DAEnetIP2 v2 IP address
snmpget -v1 -c 000000000000 192.168.1.100 Denkovi.DAEnetIP2 v2.Configuration.cfgIP.0
snmpget -v1 -c 000000000000 192.168.1.100 .1.3.6.1.4.1.42505.9.1.1.0
Get the MAC Address
snmpget -v1 -c 000000000000 192.168.1.100 Denkovi.DAEnetIP2 v2.Configuration.cfgMAC.0
snmpget -v1 -c 000000000000 192.168.1.100 .1.3.6.1.4.1.42505.9.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 192.168.1.100 .1.3.6.1.4.1.42505.9.2.3.1.0