[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


jnprsnmpd.conf File Overview

The jnprsnmpd.conf configuration file stores settings for the SNMP agent. After you install the SNMP agent for Steel-Belted Radius Carrier on a server, you can modify the jnprsnmpd.conf configuration file to reflect your network environment.

NOTE: When you install Steel-Belted Radius Carrier, you are prompted to enter your SNMP settings by the installation script. The installation script updates the jnprsnmpd.conf file based on the values you enter.

If SNMP was not set up during installation, we recommend you run the configuration script again and enable SNMP. Take care not to make any changes to the existing configuration.


Access Control Overview and Syntax

jnprsnmpd supports the View-Based Access Control Model (VACM) described in RFC 2575. To configure access control, you must map community names to security names, map security names to groups, and specify access rights and views for groups.

Use the com2sec keyword to map each source/community pair to a security name. The com2sec entry is used to determine a security name from the traditional community string, taking into account where a request has come from.

The syntax for the com2sec keyword is:

com2sec security_name source community

where:

The first source/community combination that matches an incoming packet is selected.

For example, the following creates two security names (local and mynetwork) and maps them to two different subnet/community name pairs.
sec.name
source
community

com2sec

local

localhost

local_community

com2sec

mynetwork

192.168.1.0/24

remote_community


Security Names Overview and Syntax

Use the group keyword to map security names into group names. The group keyword gives general control by mapping between a security name (for a particular protocol version), and the internal name used in the access line.

The syntax for the group keyword is:

group name model security

where:

For example, these lines map the two security names to four group/model pairs.
#
sec.model
sec.name

group

LocalGroup

v1

local

group

LocalGroup

v2c

local

group

LANGroup

v1

mynetwork

group

LANGroup

v2c

mynetwork


Access View Overview and Syntax

Use the view keyword to specify what portions of the MIB tree a specified group can view or modify. The syntax for the view keyword is:

view name {include | excluded} subtree [mask] 

where:

Group Access Overview and Syntax

Use the access keyword to specify who has access to part or all of the MIB tree. The syntax for the access keyword is:

access name context model level prefix read write notify

where:

For example, these settings specify that the LocalGroup uses the all view for READ, WRITE, and NOTIFY access:
#
sec
sec

#

context

model

level

prefix

read

write

notify

access

LocalGroup

""

any

noauth

exact

all

all

all

access

LANGroup

""

any

noauth

exact

all

none

none


System Contact Overview and Syntax

You can specify your system contact information in the jnprsnmpd.conf file or in the MIB. If you configure your system contact information in the jnprsnmpd.conf file, the objects are locked and cannot be modified by means of SNMP.

System contact information consists of the following:

This information is stored in the system group of the MIB-II tree.

The syntax for specifying system contact information is:

syslocation string
syscontact string
sysname string

Traps Overview and Syntax

Traps can be used by network entities to signal abnormal conditions to management stations. Identify the NMS that receives trap messages generated by Steel-Belted Radius Carrier.

NOTE: You can configure Steel-Belted Radius Carrier to use either SNMPv1 or SNMPv2c traps. You cannot configure Steel-Belted Radius Carrier to generate both types of traps simultaneously.


Syntax for the trapcommunity keyword is:

trapcommunity string


The trapcommunity keyword must precede the trap2sink keyword in the jnprsnmpd.conf file.

Syntax for the trapsink keyword is:

trapsink host [community [port]]

where:

For example:

# send v1 traps
trapsink nms.system.com secret


Syntax for the trap2sink keyword is:

trap2sink host [community [port]]


where:

For example:

# send v2 traps
trap2sink nms.system.com secret 

SNMP Proxy Overview and Syntax

The optional proxy keyword configures the SNMP agent to forward incoming SNMP requests to another agent.

Syntax for the proxy keyword is:

proxy [SNMPCMD ARGS] HOST OID [REMOTEOID]

where: SNMPCMD keyword and arguments indicate how to authenticate the proxy SNMP.

Table 139: SNMPCMD Keywords
Command
Function

-c community

Set the community string for SNMP v1/v2c transactions.

-d

Dump the sent and received SNMP packets in hexadecimal format.

-r retries

Specifies the number of retries to be used in the request.

Default value is 5.

-t timeout

Specifies the number of seconds between retries.

Default value is 1.

-v {1|2c|3}

Specifies the SNMP protocol to use.

Default value is 1.


[snmp] Overview and Syntax

The SNMP agent uses the jnprsnmpd.conf file to store static agent configuration information, such as community strings. The SNMP agent uses the persist directory to store information set during the running of the agent, which needs to be persistent from one run to the next.

The persistentDir keyword in the [snmp] section of jnprsnmpd.conf specifies the location of the persist directory. By default, the persist directory is located in the /snmp directory within radiusdir on your server.

The syntax for specifying the location of the persist directory is:

[snmp]
persistentDir radiusdir/snmp/persist

[snmpd] Overview and Syntax

By default, jnprsnmpd listens for incoming SNMP requests on UDP port 161 on all IP interfaces. You can specify a different UDP port in the jnprsnmpd.conf file. The syntax for specifying a listening port is:

[snmpd]
agentaddress port_number

NOTE: If you change the SNMP port number in jnprsnmpd.conf, you must also enter the same port number in testagent.sh.

NOTE: If you run more than one SNMP agent on your server, each agent must use a unique UDP port number.

Subagent Overview and Syntax

By default, the SNMP subagent in Steel-Belted Radius Carrier communicates with the SNMP agent on TCP port 6669. If you change the port used for subagent-agent communication, you must modify jnprsnmpd.conf to uncomment the sbr_admin_parameters keyword and specify host, port, and interval values.

Syntax for the sbr_admin_parameters keyword is:

sbr_admin_parameters host=localhost port=port tryinterval=interval

where:

radiusdir Overview and Syntax

Use the sbr_private_directory keyword to specify the location where Steel-Belted Radius Carrier is stored on your server.

Syntax for the sbr_private_directory keyword is:

sbr_private_directory radiusdir

The Steel-Belted Radius Carrier installer overwrites radiusdir with the appropriate value for your system. We recommend that you not change this value.


[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]