LiTinOveWeedle has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I just wrote some simple probe in perl (to ping to some IP addresses) But should be great to make ping information available to some management software. Is possible to write SNMP AGENT ip perl?

Thanks

Li Tin O've Weedle
mad Tsort's philosopher

Replies are listed 'Best First'.
Re: SNMP Agent
by lhoward (Vicar) on Jul 22, 2001 at 03:07 UTC
    Rather than write your own SNMP agent (which can be a painful experience), use an extensible agent like NET-SNMP and configure your custom perl scripts as add-ons to it.
Re: SNMP Agent
by perigeeV (Hermit) on Jul 21, 2001 at 18:29 UTC
      I founded this lib before, but this is only to handle incoming SNMP request. So this is SNMP Manager part, not SNMP Agent. Sorry. But THX for help.

      Li Tin O've Weedle
      mad Tsort's philosopher

        Sorry, looks we posted at the same time. How about Net::Ping? What are you looking to do? I can keep throwing CPAN links all day :)

        I think you might reread some of the SNMP docs. An agent responds to a SNMP request. From Net-snmp -- snmpd:

        snmpd is a SNMP agent which binds to a port and await requests from SNMP management software. Upon receiving a request, it processes the request(s), collects the requested information and/or performs the requested operation(s) and returns the information to the sender.

        You might also checkout net-snmp's homepage.

Re: SNMP Agent
by LiTinOveWeedle (Scribe) on Jul 21, 2001 at 18:29 UTC
    So right question should be: Did anybody make it before? :-) I unfortunately didnt found any lib (all smnp libs are for SNMP managers) So if anybody have some idea ..... please reply.
    Thank you.

    Li Tin O've Weedle
    mad Tsort's philosopher