By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,847 Members | 1,253 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,847 IT Pros & Developers. It's quick & easy.

Monitor SNMP Service

P: 12
Hi,

I am trying to determine the SNMP status on remote machine.
I need to distinguish between two possible options, where the SNMP is not active:

1)When the SNMP listener is not active on a certain port (default is 161). This is caused when the SNMP service is off or when it listens to port other than 161.

2)When the communityString is incorrect.

I have been trying to use NET::SNMP and send a get request. The problem is that it cannot distinguish between the 2 options and it can only tells me whether it succeeded to connect or not.

By the way, the Microsoft application portQry.exe can distinguish between the two. When option1 it tells that SNMP is "NOT LISTENING" and when option2 it tells that SNMP is "FILTERRED".

I cannot rely on external application, but a script only.

Does anybody know how to figure this out? a workaruond? or how the portQry determines which options causes the SNMP to malfunction?

Thanks,

Ido.
Apr 7 '08 #1
Share this Question
Share on Google+
1 Reply


numberwhun
Expert Mod 2.5K+
P: 3,503
Hi,

I am trying to determine the SNMP status on remote machine.
I need to distinguish between two possible options, where the SNMP is not active:

1)When the SNMP listener is not active on a certain port (default is 161). This is caused when the SNMP service is off or when it listens to port other than 161.

2)When the communityString is incorrect.

I have been trying to use NET::SNMP and send a get request. The problem is that it cannot distinguish between the 2 options and it can only tells me whether it succeeded to connect or not.

By the way, the Microsoft application portQry.exe can distinguish between the two. When option1 it tells that SNMP is "NOT LISTENING" and when option2 it tells that SNMP is "FILTERRED".

I cannot rely on external application, but a script only.

Does anybody know how to figure this out? a workaruond? or how the portQry determines which options causes the SNMP to malfunction?

Thanks,

Ido.

Sorry, I don't know the answer but hopefully one of our experts will be able to assist you.

My appologies for the delay in getting an answer to your question.

Regards,

Jeff
Apr 17 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.