Athin Posted November 9, 2009 Report Share Posted November 9, 2009 I am using the SNMP SET that i created with the snmp communication library that is provided above. The command is executed fine with the use of command prompt "snmpset -v 1 -c private 192.168.100.60 1.3.6.1.4.1.19865.1.2.1.2.0 i 1". But no luck with LabView. I get no errors but the device does not respond to the LabView command. What's wrong? SNMP SET.vi Quote Link to comment
Mark Yedinak Posted November 9, 2009 Report Share Posted November 9, 2009 I am using the SNMP SET that i created with the snmp communication library that is provided above. The command is executed fine with the use of command prompt "snmpset -v 1 -c private 192.168.100.60 1.3.6.1.4.1.19865.1.2.1.2.0 i 1". But no luck with LabView. I get no errors but the device does not respond to the LabView command. What's wrong? Could you please post you code saved for version 8.6.1? I don't currently have LabVIEW 9.0 installed. Also, have you tried using a LAN analuzer to capture the communication between the devices? This would be useful in determining what is happening. These VI's were written to strictly enforce the SNMP protocol and I have seen at times that some devices don't always format the response in full compliance with the SNMP spec. This can result in a error. I have discovered a few areas where the error reporting in these VI's can be improved. However, it would be most helpful if I could see you code (saved for LabVIEW 8.6.1) to see what is happening. Quote Link to comment
Mark Yedinak Posted November 11, 2009 Report Share Posted November 11, 2009 I am using the SNMP SET that i created with the snmp communication library that is provided above. The command is executed fine with the use of command prompt "snmpset -v 1 -c private 192.168.100.60 1.3.6.1.4.1.19865.1.2.1.2.0 i 1". But no luck with LabView. I get no errors but the device does not respond to the LabView command. What's wrong? Try the attached VI. The problem that your application has is that you are using the low level VIs of the library and you aren't using the higher level VIs which provide the full implementation. snmp communication.llb simple_snmp_get.vi Quote Link to comment
nikolakis Posted March 3, 2010 Report Share Posted March 3, 2010 (edited) I am trying to make the last "snmp get" file from last post to work but i have no success. The device has private OID, how can i change the community name from public to private? In which vi do i change it? OID 1.3.6.1.2.1.1.1 works ok OID 1.3.6.1.4.1.32111.1.1.2.1 DOES NOT [enterprise.private] work in the same device Thanks... Edited March 3, 2010 by nikolakis Quote Link to comment
Mark Yedinak Posted March 3, 2010 Report Share Posted March 3, 2010 I am trying to make the last "snmp get" file from last post to work but i have no success. The device has private OID, how can i change the community name from public to private? In which vi do i change it? OID 1.3.6.1.2.1.1.1 works ok OID 1.3.6.1.4.1.32111.1.1.2.1 DOES NOT [enterprise.private] work in the same device Thanks... If you use the primitives in .llb file you can specify the community name. The two primitives that you will need are the "SNMP Get Request" and "SNMP Get Response". You will also need to use the "SNMP Get Random Port" and the "SNMP Close Port" VIs. If your device uses different community names for the different branches you will need to separate the requests. A single request can have only one community name. Quote Link to comment
secr1973 Posted November 19, 2010 Report Share Posted November 19, 2010 (edited) I have a similiar problem as Nikolakis using your simple SNMP get file. The community name doesn't seem to be to problem because I can change it in the device and it still doesn't work. I can get some OIDs to work and others won't return anything. OID .1.3.6.1.2.1.1.1.0 - works fine. It returns the same OID, datatype, and then the value. OID .1.3.6.1.4.1.21796.4.1.3.1.4.1 - doesn't work, it returns a different OID and nothing in the datatype or value. I am not sure what to do. I am not sure why labview won't support SNMP, all I need to do is get one value from a device. Any ideas? Edited November 19, 2010 by secr1973 Quote Link to comment
Popular Post Mark Yedinak Posted December 2, 2010 Popular Post Report Share Posted December 2, 2010 I have a similiar problem as Nikolakis using your simple SNMP get file. The community name doesn't seem to be to problem because I can change it in the device and it still doesn't work. I can get some OIDs to work and others won't return anything. OID .1.3.6.1.2.1.1.1.0 - works fine. It returns the same OID, datatype, and then the value. OID .1.3.6.1.4.1.21796.4.1.3.1.4.1 - doesn't work, it returns a different OID and nothing in the datatype or value. I am not sure what to do. I am not sure why labview won't support SNMP, all I need to do is get one value from a device. Any ideas? There appeared to be an issue in the posted version of the library. I sent secr1973 the latest version and it is working for him. I have attached the latest version of the library. snmp communication.llb 1 2 Quote Link to comment
raggare Posted June 19, 2015 Report Share Posted June 19, 2015 Hello Mark, Your SNMP Communications library works great! Thanks for sharing. Do you have any plans on making this library available on LabVIEW for Linux? Quote Link to comment
hooovahh Posted June 22, 2015 Report Share Posted June 22, 2015 Do you have any plans on making this library available on LabVIEW for Linux? Have you tried using this code on Linux? I didn't try it because I don't have access at the moment, but I see no reason why this wouldn't work on Linux it is just using the UDP primitive calls. Quote Link to comment
weigsi Posted April 6, 2016 Report Share Posted April 6, 2016 Hi everyone, i had a look at the lbb and have some questions on it. Maybe you can a provide a simple example in the lbb, as i couldnt find one. I try to create an agent, which is repsonding to manager requests. Sadly i cant figure out which vi i need to use to accomplish this task. I attached a simple snippet (´14) Thanks much cheers chris Quote Link to comment
weigsi Posted April 7, 2016 Report Share Posted April 7, 2016 Hi again, guess this topic isn´t in the focus that much , I kept on working to towards creating an Labview agent, which is repsonding to a snmp manager (A monitoring software). I solved the problem on receiving snmp commands from a manager. Check the snippet SimpleSnmpExample.vi Still got the problem to are beeing unable to respond to the manager. So far i can guess the lbb, mentioned in the topic, isn´t designed to create an agent. Any informations, or further ideas how to respond propperly are highly appreciated. Thanks much in advance cheers chris Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.