Modifying The Snmpd.conf File; Access Control - Cisco Access Registrar 4.2 Installation And Configuration Manual

Cisco systems network device installation and configuration guide
Hide thumbs Also See for Cisco Access Registrar 4.2:
Table of Contents

Advertisement

Chapter 4
Configuring Cisco Access Registrar 4.2

Modifying the snmpd.conf File

The path to the snmpd.conf file is /cisco-ar/ucd-snmp/share/snmp. Use vi (or another text editor) to
edit the snmpd.conf file.
There are three parts of this file to modify:

Access Control

Access control defines who can query the system. By default, the agent responds to the public
community for read-only access, if run without any configuration file in place.
The following example from the default snmpd.conf file shows how to configure the agent so that you
can change the community names, and give yourself write access as well.
Complete the following steps to modify the snmpd.conf file.
Look for the following lines in the snmpd.conf file for the location in the file to make modifications:
Step 1
###############################################################################
# Access Control
###############################################################################
First map the community name (COMMUNITY) into a security name that is relevant to your site,
Step 2
depending on where the request is coming from:
#
com2sec local
com2sec mynetwork 10.1.9.0/24
The names are tokens that you define arbitrarily.
Map the security names into group names:
Step 3
#
group MyRWGroupv1local
group MyRWGroupv2clocal
group MyRWGroupusmlocal
group MyROGroupv1 mynetwork
group MyROGroupv2c mynetwork
group MyROGroupusmmynetwork
Step 4
Create a view to enable the groups to have rights:
#
view all
Finally, you grant the two groups access to the one view with different write permissions:
Step 5
#
access MyROGroup ""
access MyRWGroup ""
OL-17221-02
/opt/CSCOar/bin/arserver stop
Access Control
Trap Recipient
System Contact Information
sec.name
source
localhost
sec.model
sec.name
incl/excl subtree
included
.1
context sec.model sec.level match
any
any
community
private
public
mask
80
read
noauth
exact
all
noauth
exact
all
Installing and Configuring Cisco Access Registrar, 4.2
Configuring SNMP
write
notif
none
none
all
none
4-15

Advertisement

Table of Contents
loading

Table of Contents