Login  
Search All Forums
Dart Home | PowerSNMP for ActiveX | Custom Development Reply | PowerSNMP for ActiveX Topics | Forums   
AuthorForum: PowerSNMP for ActiveX
Topic: SNMP Communities
RickBock

From: Atlanta, GA USA
Posts: 22
Member Since: 08/09/05
posted January 9, 2007 8:33 AM

Greetinga all,

I'm working on a program which uses the manager control to scan SNMP devices and have run into a puzzle with the Community property. 

One of our clients has the community on their devices set to department names - eg Accounting, Marketing and so on. Naturally they don't respond to a scan using the default setting of "public", so we tried changing the community property on the contro to match that on the devices, but still get no response from those devices.

Am I misunderstanding the way the Cmunity property works?

Thanks for any help...

Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 9, 2007 9:30 AM

No, you are not misunderstanding the way it is used. Does their network administration team have any ideas what's going on?
RickBock

From: Atlanta, GA USA
Posts: 22
Member Since: 08/09/05
posted January 9, 2007 12:55 PM

Hi Tony,

Nope, and to tell the truth there's not much help to be had in that area. It's a small office and the net admin team is one guy who's really the accountant. He reluctantly inherited the job from someone and doesn't want to change anything because he's afraid it will cause problems elsewhere.

Just so I know that I'm doing this correctly, it's simply a matter of setting

Manager1.Community="Accounting"

Before scanning, correct? I've played around with setting it before and after the .Open as well as setting it for each device being scanned all to no avail.

Also, appologies for all the typos. I've got a bad "O" key on this computer and I didn't proof the first post too well obviously (that's my story and I'm sticking to it)

Thanks again...

RB
Raj

From: Rome, NY, USA
Posts: 389
Member Since: 02/01/06
posted January 9, 2007 2:01 PM

Hi Rick,

The Manager control does not have Community property, instead, message has it!

So it should have been Manager1.Message.Community

[VB code snippet]
Manager Example:
Dim Message As New SnmpMessage
Message.Community = "MyPassword"
.
.

Agent Example:
Message.Decode Packet
If Message.Community = "MyPassword" Then
'The message is ok. Process it.
Else
'Authorization failed. May want to send a trap now.
End If


You might want to refer the "Message Property Example (Agent Control/Manager Control)" article in the help file.

Thanks,
Raj
RickBock

From: Atlanta, GA USA
Posts: 22
Member Since: 08/09/05
posted January 10, 2007 6:31 PM

Hi Raj,

Sorry, that's what I get for trying to do things from memory. The code in the program was manager1.message.community, I just forgot the proper code when I was posting the previous message.

That said, I think I've found my problem. We've been specifying a port for the manager component to scan with. While dealing with another - seemingly unrelated problem I disabled the port command, and all of a sudden I was able to scan based upon community names.

Since the hard coded port was a hold over from long ago I'm just eliminating it from the program and calling this thing solved.

Thanks for your help...

RB
Raj

From: Rome, NY, USA
Posts: 389
Member Since: 02/01/06
posted January 11, 2007 8:58 AM

Glad to know that!
Thanks for updating.
-Raj
Reply | PowerSNMP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX