Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Write SNMP attributes to physical file on system.

Highlighted

Write SNMP attributes to physical file on system.

New Contributor

Hi,

I am using Apache NiFi to connect to a Node and run SNMP Get command. I can connect to the Node using "GetSNMP" processor and can see the SNMP attributes received from that node in logs using "LogAttribute" processor.

I want to write these attributes in a separate file on the file system. I tried with "PutFile" processor but it creates empty files.

Any help?

Thanks,

2 REPLIES 2

Re: Write SNMP attributes to physical file on system.

New Contributor

Hi, Can any one help on this?

Thanks,

Re: Write SNMP attributes to physical file on system.

New Contributor

@Shashwat Gaur

Use AttributesToJSON and change destination in properties to flowfile-content

,

@Shashwat Gauro To put attributes to a file i am using AttributesToJson processor and in the properties change Destination to "flowfile-content". Attributes will be moved as contents in flowfile. then you can use putfile.