Please note as of Wednesday, August 15th, 2018 this wiki has been set to read only. If you are a TI Employee and require Edit ability please contact x0211426 from the company directory.

TI-RTOS SNMP

From Texas Instruments Wiki
Jump to: navigation, search

TI-RTOS SNMP Support Overview

Texas Instruments has collaborated with InterNiche to provide an out of the box SNMP v1/2/3 solution with TI-RTOS for the TM4C129x devices. The InterNiche SNMP modules have been pre-ported to work with the TI-RTOS kernel and networking stack. For more detailed information about InterNiche's SNMP solutions please visit www.iniche.com/source-code/device-management/snmp.php or contact InterNiche directly.

Example

Here is a binary file that can be ran on the EK-TM4C1294XL board that demonstrates SNMP support with TI-RTOS: File:Tirtos interniche snmp ipv4.zip

Require components

  • EK-TM4C1294XL board: The TM4C1294 Connected LaunchPad Evaluation Kit is a low-cost development platform for ARM® Cortex-M4F-based microcontrollers. The Connected LaunchPad design highlights the TM4C1294NCPDT MCU with its on-chip 10/100 Ethernet MAC and PHY, USB 2.0, hibernation module, motion control pulse-width modulation and a multitude of simultaneous serial connectivity.
  • Code Composer Studio 6.x: Needed to load the binary file and also print the IP address that the target obtains.
  • DHCP Server on the network: You must have a DHCP Server on the same network as the target.
  • USB Micro-USB: need to load the target and supply power.
  • Ethernet Cable: to connect the target to the network.

Running the example

After loading and running the example on the target, the obtained IP address is displayed in the CCS Console. Please note the example is really the TI-RTOS TCP Echo example plus the InterNiche SNMP support. Once the IP address is obtained, the target can be queried. For example, snmpwalk and snmpget on a Unix host can be used. Here are examples of these (replace [IP address] with the IP address obtained from the CCS console).

$ snmpwalk -mALL -v2c -cpublic [IP address] system
RFC1213-MIB::sysDescr.0 = STRING: "InterNiche Eval" 
RFC1213-MIB::sysObjectID.0 = OID: RFC1155-SMI::enterprises.18868.1.5.1.1.1 
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (51120) 0:08:31.20 
RFC1213-MIB::sysContact.0 = STRING: "sysContact not set" 
RFC1213-MIB::sysName.0 = STRING: "sysName not set" 
RFC1213-MIB::sysLocation.0 = STRING: "sysLocation not set" 
RFC1213-MIB::sysLocation.0 = No more variables left in this MIB View (It is past the end of the MIBtree)

and

$ snmpget -d -v3 -u SimpleUser -n DefaultContextName -l NoAuthNoPriv [IP address] 1.3.6.1.2.1.1.1.0
Sending 82 bytes to UDP: [10.0.0.165]:161 
0000: 30 50 02 01 03 30 11 02 04 26 FA DF 3A 02 03 00 0P...0...&..:... 
0016: FF E3 04 01 04 02 01 03 04 10 30 0E 04 00 02 01 ..........0..... 
0032: 00 02 01 00 04 00 04 00 04 00 30 26 04 00 04 12 ..........0&.... 
0048: 44 65 66 61 75 6C 74 43 6F 6E 74 65 78 74 4E 61 DefaultContextNa 
0064: 6D 65 A0 0E 02 04 4D A9 70 18 02 01 00 02 01 00 me....M.p....... 
0080: 30 00 0.
…