Monitor SNMP Service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • idoha
    New Member
    • Aug 2007
    • 12

    Monitor SNMP Service

    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.
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    Originally posted by idoha
    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

    Comment

    Working...