SNMP Duet Example
joelw
Junior Member
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
Comments
-
Peavey CAB 16i/o experiments, etc
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! -
joelw wrote:The trouble is the IP address is not stored on reboot. So next boot you're back to 0.0.0.0.
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 -
Excellent! I will test that out.
Thanks! -
It tried this on my Attero Tech CobraNetTM CO2 boards. Cobranet.mib lists flashPersistEnable, but the CS496112 part does not support it. I will test CABs when I'm back on site later this week.
-
Example Update
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)send c vdvSNMP,'walk host [community]' send c vdvSNMP,'stop' send c vdvSNMP,'getData host [community] oid' send c vdvSNMP,'getNext host [community] oid,oid,oid,oid' send c vdvSNMP,'getTable host [community] oid' send c vdvSNMP,'setData host [community] oid valueType value'
Example Uses
Get system information as provided by previous versionsend c vdvSNMP,'getNext 192.168.1.1 1.3.6.1.2.1.1.1,1.3.6.1.2.1.1.2,1.3.6.1.2.1.1.3,1.3.6.1.2.1.1.4,1.3.6.1.2.1.1.5,1.3.6.1.2.1.1.6,1.3.6.1.2.1.1.7'
Get ifTablesend c vdvSNMP,'gettable 192.168.1.5 1.3.6.1.2.1.2.2'
Get MAC addresssend c vdvSNMP,'getData 192.168.1.5 1.3.6.1.2.1.2.2.1.6.2'
Get sysNamesend c vdvSNMP,'getData 192.168.1.5 1.3.6.1.2.1.1.5.0'
Set sysNamesend c vdvSNMP,'setData 192.168.1.5 1.3.6.1.2.1.1.5.0 SNMPOctetString me260_64M'
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. -
Wow, thats a great tool. Where did you find the information on SNMP? I have a device that will accept control via SNMP but I would like to control it from a touchpanel. Your Posted Module does communicate with the device but i would like feedback as well. Do you know where i can find more informaion about SNMP? Or some examples of the Get/Set strings would be great.
Pauld -
Wow, thats a great tool. Where did you find the information on SNMP? I have a device that will accept control via SNMP but I would like to control it from a touchpanel. Your Posted Module does communicate with the device but i would like feedback as well. Do you know where i can find more informaion about SNMP? Or some examples of the Get/Set strings would be great.
Pauld
Bumping this out of curiosity, as I'm interested in the exact same thing. -
SNMP Module still available?
The link to download the SNMP duet sample module does not seem to work any more.
Does this still exist?
Regards, Harald -
I don't believe that Joel is an active participant on this forum any more. You might be able to send a personal email to him but I'm not sure he still uses the same email address either. If anyone downloaded his files back in the day, they might be able to share them with you.
-
Any copies
Sorry to bump and old thread, but I was wondering if anyone managed to come across a copy of this duet module.
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums