NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

SNMP for CRIO 9068 LinuX RT

Hello,

Does the CRIO 9068 LRT come with SNMP agent already installed? If not, is it possible to compile the Net-SNMP source code using the NI Eclipse edition and install it.

Thanks,

T

0 Kudos
Message 1 of 9
(6,955 Views)

ttesfay,

The cRIO 9068 does not include a SNMP agent as-is, and you could certainly build one through Eclipse, but you have an easier option: enable the on-controller package manager and install community software through it.

Read over the FAQ for some background information on the package manager then try a command along the lines of "opkg list | grep -i snmp" to get an idea of the packages that you have available to you

0 Kudos
Message 2 of 9
(5,175 Views)

Unfortunitely, after taking a quick look, there doesn't appear to be any snmp clients available from the angstrom package repo.

Could you perhaps implement one in python or perl?

Additionally, the BeagleBone eco-system is very similar to that of the version of Linux on the cRIO.  You may have some success following this tutorial:

http://www.cloud-rocket.com/2013/08/compiling-and-installing-net-snmp-for-beaglebone/

Good luck!

-TD

0 Kudos
Message 3 of 9
(5,175 Views)

tduffy wrote:

Unfortunitely, after taking a quick look, there doesn't appear to be any snmp clients available from the angstrom package repo.

...

You sure?

admin@Nick-9068:~# opkg list | grep -i snmp

cups-backend-snmp - 1.4.6-r0.9 - cups backend for snmp

libnetsnmp25 - svn-r7.2.9 - Various tools relating to the Simple Network Management Protocol

net-snmp-client - svn-r7.2.9 - Various tools relating to the Simple Network Management Protocol

net-snmp-dev - svn-r7.2.9 - Various tools relating to the Simple Network Management Protocol

net-snmp-mibs - svn-r7.2.9 - Various tools relating to the Simple Network Management Protocol

net-snmp-server - svn-r7.2.9 - Various tools relating to the Simple Network Management Protocol

net-snmp-static - svn-r7.2.9 - Various tools relating to the Simple Network Management Protocol

admin@Nick-9068:~#

Make sure to enable the repos and run opkg update.

0 Kudos
Message 4 of 9
(5,175 Views)

Whelp, looks like someone formatted my cRIO-9068 and reset the /etc/opkg/angstrom-base-feed.conf file ... my appologies.

Looks like net-snmp-dev may be a good stating point for calling snmp functions.  If you can getaway with the overhead, you may want to look into using System Exec.vi and the snmp client from the CLI.

-TD

0 Kudos
Message 5 of 9
(5,175 Views)

To add to tduffy's response, certainly if you can deal with the overhead of calling the SNMP utilities through Exec rather than a CLN interface, it is far simpler. I have some wrappers I wrote years ago that work with the version of the SNMP utilities that Cygwin shipped at the time. I would guess that they would continue to work here since the command line paramaters have likely not changed.

Of course you said mentioned you wanted to be an agent and not a manager, so these VIs might not help you since they just wrap the typical snmpget/set/walk utilities, but I'll post in case they are useful:

https://decibel.ni.com/content/servlet/JiveServlet/downloadBody/36560-102-1-70690/SNMP%20Wrappers.zi...

0 Kudos
Message 6 of 9
(5,175 Views)

BlueCheese,

These are great!  Thank you so much for posting!

ttesfay,

If you end up using these, and they work as-is, could you post back to let us know?

-TD

0 Kudos
Message 7 of 9
(5,175 Views)
Which parameters can I monitor?
0 Kudos
Message 8 of 9
(4,063 Views)

I have installed snmp-agent from all snmp packet from repo, I wish read informations about cpu and memory, but I can see only stupid OID:

iso.3.6.1.2.1.1.1.0 = STRING: "Linux NI-cRIO-9068-chaos 3.14.46-rt46-ni-3.5.0f0 #1 SMP PREEMPT RT Tue Jan 19 21:49:05 CST 2016 armv7l"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.8072.3.2.10
iso.3.6.1.2.1.1.3.0 = Timeticks: (486710) 1:21:07.10
iso.3.6.1.2.1.1.4.0 = STRING: "Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)"
iso.3.6.1.2.1.1.5.0 = STRING: "NI-cRIO-9068-chaos"
iso.3.6.1.2.1.1.6.0 = STRING: "Unknown (configure /etc/snmp/snmpd.local.conf)"
iso.3.6.1.2.1.1.8.0 = Timeticks: (1) 0:00:00.01
iso.3.6.1.2.1.1.9.1.2.1 = OID: iso.3.6.1.6.3.11.3.1.1
iso.3.6.1.2.1.1.9.1.2.2 = OID: iso.3.6.1.6.3.15.2.1.1
iso.3.6.1.2.1.1.9.1.2.3 = OID: iso.3.6.1.6.3.10.3.1.1
iso.3.6.1.2.1.1.9.1.2.4 = OID: iso.3.6.1.6.3.1
iso.3.6.1.2.1.1.9.1.2.5 = OID: iso.3.6.1.2.1.49
iso.3.6.1.2.1.1.9.1.2.6 = OID: iso.3.6.1.2.1.4
iso.3.6.1.2.1.1.9.1.2.7 = OID: iso.3.6.1.2.1.50
iso.3.6.1.2.1.1.9.1.2.8 = OID: iso.3.6.1.6.3.16.2.2.1
iso.3.6.1.2.1.1.9.1.2.9 = OID: iso.3.6.1.6.3.13.3.1.3
iso.3.6.1.2.1.1.9.1.2.10 = OID: iso.3.6.1.2.1.92
iso.3.6.1.2.1.1.9.1.3.1 = STRING: "The MIB for Message Processing and Dispatching."
iso.3.6.1.2.1.1.9.1.3.2 = STRING: "The management information definitions for the SNMP User-based Security Model."
iso.3.6.1.2.1.1.9.1.3.3 = STRING: "The SNMP Management Architecture MIB."
iso.3.6.1.2.1.1.9.1.3.4 = STRING: "The MIB module for SNMPv2 entities"
iso.3.6.1.2.1.1.9.1.3.5 = STRING: "The MIB module for managing TCP implementations"
iso.3.6.1.2.1.1.9.1.3.6 = STRING: "The MIB module for managing IP and ICMP implementations"
iso.3.6.1.2.1.1.9.1.3.7 = STRING: "The MIB module for managing UDP implementations"
iso.3.6.1.2.1.1.9.1.3.8 = STRING: "View-based Access Control Model for SNMP."
iso.3.6.1.2.1.1.9.1.3.9 = STRING: "The MIB modules for managing SNMP Notification, plus filtering."
iso.3.6.1.2.1.1.9.1.3.10 = STRING: "The MIB module for logging SNMP Notifications."
iso.3.6.1.2.1.1.9.1.4.1 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.4.2 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.4.3 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.4.4 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.4.5 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.4.6 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.4.7 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.4.8 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.1.9.1.4.9 = Timeticks: (1) 0:00:00.01
iso.3.6.1.2.1.1.9.1.4.10 = Timeticks: (1) 0:00:00.01
iso.3.6.1.2.1.1.9.1.4.10 = No more variables left in this MIB View (It is past the end of the MIB tree)

 

Can I resolve it?

0 Kudos
Message 9 of 9
(4,052 Views)