SNMP Duet Example
joelw
Posts: 175
Here's a sample Duet SNMP module.
To use module
build new program using .axs file in zip file, then upload to Duet enabled processor
Telnet into processor
type: msg on
type: send c vdvSNMP,'192.168.1.1'
(change to IP address of a device that supports SNMP v1)
http://www.indyelectronics.com/AMX.Duet.SNMP.Example.zip
Output looks like this when querying an AMX ME260/64M with v3_21_354 firmware.
Cobranet Audio control is SNMPv1 based.
VBrick encoders/decoders are controlled via SNMPv1.
If you have a project that could benefit from SNMP control, on-board database, etc, please contact us. We can help.
Joel Winarske
Independent Electronics, Inc.
707-320-4271 Office
To use module
build new program using .axs file in zip file, then upload to Duet enabled processor
Telnet into processor
type: msg on
type: send c vdvSNMP,'192.168.1.1'
(change to IP address of a device that supports SNMP v1)
http://www.indyelectronics.com/AMX.Duet.SNMP.Example.zip
Output looks like this when querying an AMX ME260/64M with v3_21_354 firmware.
send c vdvSNMP,'192.168.1.5' >(0000807692) Retrieving value corresponding to OID 1.3.6.1.2.1.1.4.0 (0000807732) Retrieved: system.sysContact.0 = AMX Corporation (0000807735) Retrieving value corresponding to OID 1.3.6.1.2.1.1.1.0 (0000807777) Retrieved: system.sysDescr.0 = NetLinx VxWorks SNMPv1/v2c Agent (0000807779) Retrieving value corresponding to OID 1.3.6.1.2.1.1.6.0 (0000807822) Retrieved: system.sysLocation.0 = Richardson,TX USA (0000807824) Retrieving value corresponding to OID 1.3.6.1.2.1.1.5.0 (0000807865) Retrieved: system.sysName.0 = Netlinx (0000807868) Retrieving value corresponding to OID 1.3.6.1.2.1.1.7.0 (0000807910) Retrieved: system.sysServices.0 = 79 (0000807913) Retrieving value corresponding to OID 1.3.6.1.2.1.1.3.0 (0000807954) Retrieved: system.sysUpTime.0 = 81207
Cobranet Audio control is SNMPv1 based.
VBrick encoders/decoders are controlled via SNMPv1.
If you have a project that could benefit from SNMP control, on-board database, etc, please contact us. We can help.
Joel Winarske
Independent Electronics, Inc.
707-320-4271 Office
0
Comments
I ran some test with Peavey CAB16i/o boxes.
It doesn't look good. You assign an IP address to them via CobraNet Discovery. This enables you to query and twiddle to your hearts content via SNMP. The trouble is the IP address is not stored on reboot. So next boot you're back to 0.0.0.0.
Two options:
1. Leave CobraNet Discovery running all the time on some PC in the system
2. Develop a third party box that mimics CobraNet Discovery IP address setting. Quite feasible.
Grass Valley M Series boxes have nice SNMP coverage. So you can query unit for remaining disc space!
VBrick control via this SNMP stack is also be possible!
There is a variable on the CobraNet card for persistence of read/write variables. It's the flashPersistEnable variable at 1.3.6.1.4.1.2680.1.1.2.7. Any non-zero value will enable persistence.
--D
Thanks!
I updated the example to be a bit more useful. Same download, file has been updated.
Usage output (send c vdvSNMP,'?' via Telnet with 'msg on' enabled)
Example Uses
Get system information as provided by previous version
Get ifTable
Get MAC address
Get sysName
Set sysName
By default if the community value is omitted, it defaults to 'public' for get, and 'private' for set.
Valid valueTypes
SNMPCounter32
SNMPCounter64
SNMPGauge32
SNMPInteger
SNMPOctetString
SNMPUInteger32
This code works with any SNMPv1 device.
Refer to a MIB browser to retrieve other OIDs. I like MG-SOFT MIB Browser Pro.
http://www.mg-soft.com/mgMibBrowserPE.html
Know limitations:
1. Initial send command response takes a while, subsequent commands are fast. Perhaps send a dummy sequence to prime the bundle, prior to using.
2. Current version I am only handling the setData value passed as a string. Sometime this week, maybe next I will address this.
3. Data is not returned to virtual device. Will add this based on user feedback. A step at a time man.
Pauld
Bumping this out of curiosity, as I'm interested in the exact same thing.
The link to download the SNMP duet sample module does not seem to work any more.
Does this still exist?
Regards, Harald
Sorry to bump and old thread, but I was wondering if anyone managed to come across a copy of this duet module.