LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-27-2010, 05:52 AM   #1
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Rep: Reputation: 18
sending file content as snmp trap


Hello
I wanted to know is there any way to send a content of a file as snmp trap with snmpd agent of linux?
 
Old 03-29-2010, 05:26 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Before you go looking for a method maybe check if SNMP is intended to do what you want it to? SNMP means Simple Network Management Protocol. As far as I know a SNMP packet contains a payload only existing of one or more OIDs, so adding anything else may (or may not) confuse software parsing SNMP traps. RFC 1157 says "An implementation of this protocol need not accept messages whose length exceeds 484 octets" and since UDP packet max payload is 65535 bytes anyway, whatever gets added in terms of payload is limited anyway.
 
1 members found this post helpful.
Old 03-29-2010, 06:33 AM   #3
golden_boy615
Member
 
Registered: Dec 2008
Distribution: Ubuntu Fedora
Posts: 445

Original Poster
Rep: Reputation: 18
thank you very much for your useful information but my file content is less than that you said.
I want to sent information of an industrial system via snmp I wanted to know if I can fetch these information from that system gather it to different files and give those content one bye one to snmp agent and receive it from an snmp monitor software in other side.
thanks for any help.
 
Old 03-29-2010, 07:00 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If you insist all is OK as far as protocol and other requirements go then maybe start by just writing a trap: http://www.net-snmp.org/wiki/index.php/TUT:snmptrap ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to send snmp trap & recieve trap in C program minil Programming 3 07-10-2010 09:22 AM
SNMP Trap metallica1973 Linux - Networking 1 11-28-2007 09:14 AM
Snmp Trap shan_nathan Linux - Server 2 09-01-2007 05:49 AM
snmp agent trap sending bluejob Programming 0 02-15-2005 03:43 AM
snmp-trap tied2 Linux - Security 7 07-19-2002 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration