Determine snmpd status

Raz Moshe <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAHzika6msW77AamC2cdUwE_kyLW7oZ0PjH29ByDQyrMtr9Urpw@mail.gmail.com>
Hello,

Assuming I have no community string configured (and so cannot use
'snmpwalk' and other similar binaries), when I turn the snmp daemon on, is
there a way to determine it has done initialization and ready for queries?

I found that checking if the log file exists gives a good indication (if it
was created already, snmpd is ready), but then there's a problem when I
turn snmpd on, off and then on again. Since the log file isn't deleted when
snmpd is turned off, it's gonna be there in the second time even before I
turn snmpd on.

A short sleep() after turning snmpd on can do the trick, but obviously
that's a bad practice.

Anything else I can do to get a good indication?

Thanks.

_______________________________________________
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.