NetAdminTools.com
 
SignalQ Sites:
NetAdminTools - Coprolite - NoNIC - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - MCJ - FixRambler
Categories:
GNU/Linux | Homebrew designs | Perl | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS | Hail Support


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·REALbasic
·All Categories


Configuring SNMPv3 Security On Windows Server 2003
Topic: Monitoring   Posted:2005-11-12
Printer Friendly: Print

spacerspacer
In this article we set up SNMP using the Net-SNMP package. We showed how to set up user security for GNU/Linux on our Centos 4 box in this article. The procedure is a little different for Windows, because the net-snmp-config command is not available. The userid and passphrase need to be in the snmpd.conf file:

C:\usr\etc\snmp>type snmpd.conf
createUser netadmin MD5 "netadminpassword" DES
rouser netadmin

Make sure you restart the Net-SNMP Agent service after these changes. This will set up a read only user netadmin that will authenticate with the passphrase netadminpassword using MD5/DES for encryption. Note that the password is available in plain text in the file, unlike with the GNU/Linux configuration; however, the traffic is still encrypted. From our GNU/Linux client, we can determine the default gateway:

[root@srv-5 ~]# snmpget -v 3 -u netadmin -l authNoPriv -a MD5 -A 
netadminpassword 10.50.100.112 RFC1213-MIB::ipRouteNextHop.0.0.0.0
RFC1213-MIB::ipRouteNextHop.0.0.0.0 = IpAddress: 10.50.100.82
[root@srv-5 ~]# 

If we enter the wrong password we are denied:

[root@srv-5 ~]# snmpget -v 3 -u netadmin -l authNoPriv -a MD5 -A 
netadmnpassword 10.50.100.112 RFC1213-MIB::ipRouteNextHop.0.0.0.0
snmpget: Authentication failure (incorrect password, community or key)
[root@srv-5 ~]#

As when we queried a GNU/Linux box, if we store the authentication information in ~/.ssnmp/snmp.conf, the query is easier:

[root@srv-5 ~]# cat ~/.snmp/snmp.conf
defSecurityName netadmin
defContext ""
defAuthType MD5
defSecurityLevel authNoPriv
defAuthPassphrase netadminpassword
defVersion 3
[root@srv-5 ~]# snmpget 10.50.100.112 RFC1213-MIB::ipRouteNextHop.0.0.0.0
RFC1213-MIB::ipRouteNextHop.0.0.0.0 = IpAddress: 10.50.100.82
[root@srv-5 ~]#





Please read our Terms of Use
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2008 NetAdminTools.com

Created by:
MCJ
MCJ CMS