LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I install an SNMP agent on a cRIO

Hi

 

I want to know if it is possible to install SNMP agent on a cRIO. I am researching on data acquisition and management using SNMP protocol. I know there is an SNMP toolkit for Labview. But to run such an application do I need an SNMP agent running on my cRIO ?

 

Sofia

0 Kudos
Message 1 of 7
(3,799 Views)

If I understand correctly, you're looking to turn your cRIO into an SNMP agent.  In order to do this, you will have to code this protocol yourself using TCP messaging.  I'm not too familiar with the SNMP toolkit for LabVIEW, but it likely uses TCP functions to send and receive the appropriate messages for the protocol.  This toolkit is not a National Instruments product, though.  For assistance with that, you would have to contact its developer.

 

What is your reason for using SNMP?  There may be a better option for communicating with your cRIO using network-published shared variables or something similar.

0 Kudos
Message 2 of 7
(3,787 Views)

Hello Kyle,

 

Thank you so much for responding. You are correct I need my cRIO to work as an SNMP agent. I need to collect data such as battery charging from an electric vehicle and send it to a utility company. For that I need the cRIO to generate SNMP Trap and send it to SNMP manager. Also my SNMP manager shoud be able to query  this data on network. Will it be possible to achieve this through TCP or netwrok published protocol as you suggested. Would you be able to give me more details of how can I accomplish this using TCP and Network published protocol. Any references or relevant information is appreciated.

 

Regards,

 

Sofia

0 Kudos
Message 3 of 7
(3,779 Views)

If you need to communicate specifically using SNMP, you may not have many options other than implementing the protocol.  The protocol is available online, but this is likely to be a large undertaking.  The SNMP toolkit for LabVIEW may save you some development time, but I don't know if this will work in Real-Time.  Additionally, it seems to have been created a whlie ago and newer versions of LabVIEW may not be supported by its developer.  It sounds like the cRIO will need to send and receive certain SNMP messages, you may be able to save some time by implementing only the messages that you'll be utilizing.

0 Kudos
Message 4 of 7
(3,766 Views)

The SNMP Toolkit uses straigth network nodes in LabVIEW. I wouldn't expect it to have real issues on the cRIO, unless there are some undiscovered bugs in the network functions in LabVIEW on that platform. That all said, SNMP isn't a trivial protocol at all. And the SNMP Toolkit only gives you the functions to do SNMP, you still have to implement your specific schema and data objects.

 

So while I don't doubt it is doable even for cRIO you really should not underestimate the necessary time to get this all working and working well. SNMP that only works 99% is mostly useless.

Rolf Kalbermatter
My Blog
0 Kudos
Message 5 of 7
(3,750 Views)

Thank you Rolf. I appreciate your reply.

 

0 Kudos
Message 6 of 7
(3,744 Views)

Hello Thor and everybody.

I came across with your posts about SNMP on Crio and I though I could give it a try by asking you something interesting.

Is there any way possible to collect metrics from a CRIO 9074 ,send them to Telegraf and display them in Grafana?

Initially I was thinking that SNMP will help me but it seems that is not easy ...then I was thinking at mqtt..and http... different Telegraf inputs .... Honestly I'm navigating in foggy waters with this one. Doesn't any one of you have any idea if it's doable and how to accomplish that ? 

Many thanks to all.

Regards.

 

0 Kudos
Message 7 of 7
(2,274 Views)