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.
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:
com2secsecurity_namesourcecommunity
security_nameidentifies the security name you want to create.sourcecan be a hostname, a subnet, or the word default. You can specify a subnet as an IP address and mask (nnn.nnn.nnn.nnn/nnn.nnn.nnn.nnn) or as an IP address and Classless Inter-Domain Routing (CIDR) bits (nnn.nnn.nnn.nnn/nn).communityis an SNMP community string, which acts as a password to authenticate SNMP communications.
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.
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:
groupnamemodelsecurity
nameis the name of an access groupmodelidentifies the security model you want to use: v1 or v2c.securityis a security name.For example, these lines map the two security names to four group/model pairs.
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:
viewname{include | excluded}subtree[mask]
nameis the identifier used for the view.- included/excluded lets you include or exclude specific portions of the MIB tree from the view.
subtreeidentifies the portion of the MIB tree that this name refers to in numeric or named form.maskspecifies what elements of the MIB subtree are relevant. The mask argument allows you to control access to specific rows in a table. When the entire MIB can be viewed, you can omit the mask field or enter ff.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:
accessnamecontextmodellevelprefixreadwritenotify
nameis the name of a group.contextspecifies the context for the view. For SNMPv1 or SNMPv2c,contextis empty.modelis the security model: any, v1, or v2c.levelcan be used to ensure that the request is authenticated or encrypted. For SNMPv1 or SNMPv2c,levelis noauth.prefixspecifies how thecontextsetting is matched against the context of the incoming PDU. Enter exact or prefix.readspecifies the view to be used for READ access.writespecifies the view to be used for WRITE access.notifyspecifies the view to be used for NOTIFY access.For example, these settings specify that the LocalGroup uses the all view for READ, WRITE, and NOTIFY access:
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:
- syslocation—The physical location of the managed device.
- syscontact—The person or department responsible for maintaining the managed device.
- sysname—The name of the managed device.
This information is stored in the system group of the MIB-II tree.
The syntax for specifying system contact information is:
syslocationstringsyscontactstringsysnamestringTraps 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.
- Use the trapcommunity keyword to specify the default community string to be used when sending traps.
Syntax for the trapcommunity keyword is:
trapcommunitystring
The trapcommunity keyword must precede the trap2sink keyword in the jnprsnmpd.conf file.
- Use the trapsink and trap2sink keywords to specify whether you want Steel-Belted Radius Carrier to use either SNMPv1 traps or SNMPv2c traps. Do not enable both types of traps at the same time.
- The trapsink keyword specifies the host or hosts to which the Steel-Belted Radius Carrier server should send SNMPv1 trap messages. If you want to use SNMPv1 traps, uncomment the trapsink keyword and specify the host or hosts to which Steel-Belted Radius Carrier should send SNMPv1 trap messages.
Syntax for the trapsink keyword is:
trapsinkhost[community[port]]
hostspecifies the host name or IP address of the NMS.communityspecifies the community string the NMS expects.portspecifies the UDP port on which the NMS is listening for SNMPv1 trap messages. Default is UDP port 162.# send v1 trapstrapsink nms.system.com secret
- The trap2sink keyword specifies the host or hosts to which you want Steel-Belted Radius Carrier server to send SNMPv2c trap (notification) messages. If you want to use SNMPv2c traps, uncomment the trap2sink keyword to specify the host or hosts to which Steel-Belted Radius Carrier should send SNMPv2c trap (notification) messages.
Syntax for the trap2sink keyword is:
trap2sinkhost[community[port]]
hostspecifies the host name or IP address of the NMS.communityspecifies the community string the NMS expects.portspecifies the port on which the NMS is listening for SNMPv2c trap messages.# send v2 trapstrap2sink nms.system.com secretSNMP 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]HOSTOID[REMOTEOID]where: SNMPCMD keyword and arguments indicate how to authenticate the proxy SNMP.
Dump the sent and received SNMP packets in hexadecimal format.
[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
radiusdiron your server.The syntax for specifying the location of the persist directory is:
[snmp]persistentDirradiusdir/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]agentaddressport_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=porttryinterval=interval
portidentifies the TCP port the Steel-Belted Radius Carrier server uses for SNMP communication. The default value is 6669.intervalspecifies the number of seconds information can remain in the SNMP subagent cache. If your SNMP management station issues queries intermittently, set the tryinterval value to a small number (1-5) to ensure timely information. If your SNMP management station polls the server periodically, set the tryinterval value to a larger number to avoid flooding the server with queries. The default is 10 seconds.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_directoryradiusdirThe Steel-Belted Radius Carrier installer overwrites
radiusdirwith the appropriate value for your system. We recommend that you not change this value.