RE: SNMP "ping" (was: Net-SNMP (ASAP))

"Tackabury, Wayne" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <EED75DAC2E3CC2448A34C2AD326F17A7023EAF87@europa.mii-us.mirrorimage.net>
>Date: Wed, 9 Apr 2008 11:26:57 -0500
>From: Umesh Kamath <[email protected]>
>Subject: Re: Net-SNMP (ASAP)
>To: [email protected]
>Cc: [email protected], [email protected],
>	[email protected],
>	[email protected]
>Message-ID:
>	<OFE4BE5852.C6FEA2A3-ON65257426.0059444B-86257426.005A4A7D@in.ibm.com>
>Content-Type: text/plain; charset="us-ascii"

>Dave,
>We need SNMP ping monitor tool to check whether a node is SNMP enabled or 
>not and also to check connectivity of agent. 

Umesh:

I take it you mean checking remotely, hence the notion of a "ping" specifically.  Does this need to be more sophisticated than a script-based or other programmatically-indirectly controlled invocation of 

snmpget -v [version] -c [community name, etc] [host]  1.3.6.1.2.1.1.1.0

That will do a basic retrieval of the sysDescr.  No host requirements-compliant SNMP-enabled node will not have this object retrievable somehow.

Now, to do the above, you'll need to know the version number and any auth info like community name or v3 auth engine credentials.  If you're looking to do a check of remote stack response that doesn't require that, an agent can (and Net SNMP does) time out a request not matching those criteria.  So you might be better effecting a remote portscan for the presenc of a listener on UDP port 161?  That of course assumes the agent is configured on the default port, and that it's acutally a SNMP agent listening there, and that it isn't caught in an infinite loop or something else making it less than really "enabled".

Hope y'all don't mind me jumping in here--that's been our approach and ones I've used in everything from SNMP package install verifiers to network autodiscovery systems.  Other approaches may vary.

Regards,
Wayne Tackabury
Mirror Image Internet


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.