473,387 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Rights for SNMP service



Hi,

I need to verify from my application if the SNMP Service on several
computers have the Community set to "public" and the rights as "READ
WRITE".
I tried to do it by WMI but with no success. Any help will be
appreciated.

Best regards,
Dan

*** Sent via Developersdex http://www.developersdex.com ***
Sep 28 '07 #1
2 1672
using System.Management;

ManagementObjectSearcher DemoSearcher = new ManagementObjectSearcher("SELECT
* FROM Win32_Service");
ManagementObjectCollection AllObjects = DemoSearcher.Get();

foreach (ManagementObject PausedService in AllObjects)
{
Console.WriteLine("Service = " + PausedService["Caption"]);
}
for adding system.managment u need to add it manualy through reference.
hope it will work
and then according to ur situation u can change the search crieteria in
queery.
"Dan Pavel" wrote:
>

Hi,

I need to verify from my application if the SNMP Service on several
computers have the Community set to "public" and the rights as "READ
WRITE".
I tried to do it by WMI but with no success. Any help will be
appreciated.

Best regards,
Dan

*** Sent via Developersdex http://www.developersdex.com ***
Sep 28 '07 #2
Thank you for your answer. I've already done this.
My problem is that I don't know how to access the settings of the SNMP
Service. If you open Services->SNMP Service->Security Tab->Community
public, Rights READ WRITE.
I need to verify these values from my app and if the public community is
not set or the rights are not READ WRITE, I will need to inform the user
to change them accordingly.

Thanks,
Dan

*** Sent via Developersdex http://www.developersdex.com ***
Oct 1 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Matthew Bell | last post by:
Hi, I'm looking for a high-performance SNMP manager toolkit (SNMPv1 / v2, GET / GETNEXT / GETBULK) I can use with Python on Windows2K/XP. I wonder if anyone has got any suggestions? Commercial...
3
by: Kevin Ingram | last post by:
Is it possible to connect to devices and read SNMP data with ASP? I did a search and all I could find was utilities for sale to do it, wondered if it can be done using straight ASP. We are using...
1
by: ZacBowling | last post by:
Does anyone have an idea of how to access the SNMP API or WMI SNMP provider in C#/.NET? I need to query a Ascend MAX's SNMP service with a custom MIB in .NET. I won't be modify anything on the MAX...
0
by: Chris | last post by:
For the IBM DB2 Development following this group. SNMP is coming back in a big way. Changes in Version 2c and adoptions of Version 3 are ushering in the adoption of SNMP back into the enterprise....
1
by: Christophe Helfer | last post by:
After many hours searching over the web I'll try to explain what I want. I want to build an application (or service) in VB.NET that can receive snmp traps and then perform some operation. There...
1
by: KDawg44 | last post by:
Hi, I am very new to Python and really just began studying and using it. I read that it was relatively easy to interact with Windows machines with Python and I am desperately looking for...
1
by: idoha | last post by:
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...
1
by: Dirk Van de moortel | last post by:
{ OOPS, posted this to moderated group perl.cpan.discuss as well, so it can take a while to get through, if it gets through at all Otherwise sorry for duplicate posting } We need to set up a...
7
by: moon1 | last post by:
how will I change the code the 1st code according to the 2nd one? 1st code sub snmpGet(@) { # Assign arguments my ($deviceName)=$_; # Device name to read from my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.