Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


January 25, 2005

Setting Up SNMP


RSS
Subscribe to Windows IT Pro | See More Protocols Articles Here | Reprints
Or get the Monthly Online Pass—only $5.95 a month!
Main Article    Need a System Sentinel? Try JFFNMS

You'll need to set up SNMP on the system on which you'll install JFFNMS. Before you start, you should understand some basic SNMP concepts. First, SNMP uses two general types of network traffic: traps and Get and Set requests. The target device generates trap messages and sends them to the management console(s). For example, in Windows think of a rejected logon attempt that's noted in the Security log as an SNMP TRAP event. This event isn't tied to a specific metric on the device (e.g., CPU utilization, disk utilization) but nevertheless is a noteworthy event that should be monitored. SNMP includes capabilities for devices to report these types of events to one or many monitoring consoles. SNMP uses the Get request to poll a specific device metric (e.g., current CPU utilization, packets per second) and uses the Set request to set a specific device metric (e.g., enable or disable a port on an Ethernet switch).

JFFNMS works best with Get and Set requests because no direct mechanism currently exists to let JFFNMS receive SNMP traps. Besides, I’ve found that monitoring port availability, content checks, service up and down status, and resource utilization on a device greatly reduces the need to monitor SNMP TRAP events.

By default, Microsoft doesn't install SNMP as a standard part of Windows; you’ll need to add SNMP through the Add or Remove Programs applet. If you want to install SNMP on a system that doesn’t already have it, click Add/Remove Windows Components and select the Management and Monitoring Tools component. Click Details, then select Simple Network Management Protocol to install the service on your system. After SNMP is installed, make sure that the SNMP Service is set to Automatic startup on your systems. Don’t worry about setting up the SNMP Trap Service; this is necessary only if you want a system to receive traps, which we don't do here.

After you’ve installed SNMP, you’ll need to configure it so that you can retrieve information from it via Get requests. In the SNMP world, two basic mechanisms secure who can and can’t submit a Get request to one of your devices. The first mechanism is a sort of “shared key” that's commonly referred to as a community string. Community strings typically define what can be done on a device via SNMP. For example, the Read-only community string lets a remote device retrieve information from a device but not modify that information; the Read-write community string lets a remote device read information from a device and modify settings on that device. Any systems that send Get or Set requests to your devices will need to provide a valid community string for the Windows SNMP service to respond; otherwise, the SNMP service ignores the request. Therefore, you should determine an appropriate shared key for your monitoring console and set it at the console. Then set the shared key on your devices by accessing the SNMP service's properties, navigate to the Security tab, and set the appropriate community strings as Web Figure A shows. I use the “public” and “private” community strings here as examples only. Don't use these strings on your devices because they're generally default keys for many standard, out-of-the-box SNMP implementations. I recommend that you choose your own key name. Also, I don’t recommend setting a Read-write community string unless you specifically need its capabilities. For our purposes in learning about JFFNMS, a single Read-only string will suffice.

If you want to add another measure of security to your SNMP configuration, you can complete the lower portion of the dialog box in Web Sidebar Figure 1 and limit which hosts (defined by IP address) may legitimately send SNMP requests to your target devices. Some organizations choose to add this security measure so that they can monitor devices at remote locations over the Internet, simply by opening up the appropriate port for SNMP on their firewall. If you choose to do this, I also recommend you also implement IP address restrictions on your firewall for SNMP. If your firewall doesn’t already have a protocol definition for SNMP, it's a UDP-based protocol running on ports 161 (SNMP) and 162 (SNMPTRAP).

That’s all the configuration you need to do. No third-party agent to install! And no remote logon capabilities are required, which means that you don’t need to open up Microsoft networking protocols to your target devices—an important consideration in security-conscious environments. If you wanted to automate the configuration of these SNMP parameters throughout your enterprise, you could probably do so by replicating the appropriate registry changes to your systems via a Group Policy Object (GPO). The registry information for SNMP configuration is stored in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SNMP\Parameters subkey. You’ll find the relevant details in the ValidCommunities and PermittedManagers branches.

One last note about SNMP configuration: After you've activated SNMP, even on a read-only basis, sensitive data about your systems is available to anyone who knows the appropriate community string and can direct a query to one of your servers. Be sure to block SNMP on all perimeter firewalls that secure your network from the outside world.

End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of July 21, 2008

An often irreverent look at some of the week's other news, including an iPhone 3G defeat, 180 million copies of Windows Vista in the wild, Microsoft earnings some more Yahoo silliness, Wii vs. Xbox 360, EU vs. Intel, AMD ousts its CEO, and so much more ...

The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

The iPhone as a Mail Device

An Exchange administrator and self-proclaimed "Windows Mobile device wrangler" gives you the scoop on how well the iPhone 3G works for enterprise email, and points out some surprising omissions in Apple's latest release. ...


Windows OSs Whitepapers Replay for Exchange: Enterprise Protection and an Affordable Price

Are You Satisfied?

A Preliminary Look at Deployment Plans for Microsoft Windows Vista

Related Events Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

Shortcut Guide to SQL Server Infrastructure Optimization
With right tools and techniques, you can have a top-performing SQL Server infrastructure without having to cram your data centers so that they're overflowing. Download this eBook to learn how.

WinConnections Conference Fall 2008
Don’t miss the premier event for Microsoft IT Professionals in Las Vegas, November 10-13. Register and book your room by August 25 and receive a FREE room night (based on a three night minimum stay).

Become a fan of Windows IT Pro on Facebook!
Join us on Facebook and be a fan of Windows IT Pro!

Continuous Data Protection and Recovery for Exchange
Read this white paper to learn about Continuous Data Protection (CDP), Exchange 2007's local continuous replication and cluster continuous replication features.

Rev Up Your IT Know-How with Our Recharged Magazine!
The improved Windows IT Pro provides trusted IT content with an enhanced new look and functionality! Get comprehensive coverage of industry topics, expert advice, and real-world solutions—PLUS access to over 10,000 articles online. Order today!

Tips to Managing Messaging
Discover three fundamental mail and messaging management services - security, availability and control services - and how you can implement them in a Microsoft-centric mail and messaging environment.

Get It All with Windows IT Pro VIP
Stock your IT toolbox with every solution ever printed in Windows IT Pro and SQL Server Magazine plus bonus Web-exclusive content on hot topics. Subscribe to receive the VIP CD and a subscription to your choice of Windows IT Pro or SQL Server Magazine!



Drag & Drop Data Mapping Tool
Try this award-winning data mapping, & transformation tool that supports multiple databases, flat files, Web services, EDI, Excel 2007, & more! Free trial for 30 days!

Overcome bloated Windows file systems
Crossroads FMA delivers powerful yet inexpensive data migration

Bandwidth Monitoring Tool from SolarWinds
Identify largest bandwidth users in seconds. Get the free download now.

Speed Deployment of Vista and Microsoft Office
Read this white paper to learn how you can maximize your Vista and Office investments while lowering costs and increasing efficiency.

Integrated Virtualization Done Right
Download this white paper on server virtualization to begin improving resource utilization and lowering operating costs.

Order Your Fundamentals CD Today!
Gain an introduction to Exchange, learn server security requirements, and understand how unified communications can play a role in your messaging strategies with this free Exchange CD.

KVM over IP Solutions
Learn about a KVM over IP solution that is specifically designed to meet the needs of the distributed IT environment.
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound
IT Library Technical Resources Directory Connected Home Windows Excavator SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing