Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

getsnmp attribute

avatar

Hello.

I run execute getsnmp and i need get the content of field "snmp$1.3.6.1.2.1.1.5.0$4"

How do i get it?

Regards

1 ACCEPTED SOLUTION

avatar

Hello @sandra Alvarez!
Just to confirm, you're using NIFI, right? If so, check this article (have an example using Getsnmp + LogAttribute):
https://community.hortonworks.com/articles/215092/how-to-use-make-a-simple-flow-using-snmpsetsnmpget...
Also, to get the attribute of FlowFiles and write into files, check the following link:

https://community.hortonworks.com/questions/75255/nifi-how-to-write-a-flowfile-attribute-to-a-file.h...

Hope this helps!

View solution in original post

5 REPLIES 5

avatar

Hello @sandra Alvarez!
Just to confirm, you're using NIFI, right? If so, check this article (have an example using Getsnmp + LogAttribute):
https://community.hortonworks.com/articles/215092/how-to-use-make-a-simple-flow-using-snmpsetsnmpget...
Also, to get the attribute of FlowFiles and write into files, check the following link:

https://community.hortonworks.com/questions/75255/nifi-how-to-write-a-flowfile-attribute-to-a-file.h...

Hope this helps!

avatar

Hi Vinicius:

Your answer has helped me a lot. The logAttribute was the solution.

Thank you very much

Regards

avatar

Hello @sandra Alvarez!
I'm glad you made it 🙂

If you found this answer helpful, please I'd kindly ask you to accept this as the best answer. Doing this will engage other HCC users to keep doing a good job, and also will help others to find the answer faster.
Thank you.

avatar

Hello Vinicius:

I think that already i done it , Can I check it?

Regards

avatar

Done! Thanks 🙂