Thanks for your help Mike. Unfortunately, Net::SNMP seems to do everything except receive traps ;) The low-down is as follows. If you are a SNMP agent running on some device on a network, SNMP allows you to do the following: "Some one's asking me for some info that she knows I have. That's cool, I'll give her said info." That's a SNMP get request followed by the agent's reponse (put, I think). Also, "Damn man! There's something wrong with me!! I'd better send a message out to everyone in my community in case they care. (And I'm likely going to do it on port 162 incidentally.)" That's sending a trap. Net::SNMP is cool with these things.
I'm more interested in making a network management tool. These means I'd be making snmp requests (no problems here) and watching port 162 for traps to come in. Problem is, Net::SNMP doesn't seem to have any way to "sit and look for traps". I guess I could just bite the bullet and do it myself; but it seems like something that should be done by someone on CPAN ;)
Anyways, thanks for reading this long, and likely very inaccurate description of SNMP. It was fun ;)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.