The Simple Network Management Protocol (SNMP) allows a polling workstation or trap server to obtain data about devices on the network. This may include the almost real-time status of services, server functionality, and the security and service settings on the device. Address Manager servers can behave as managed devices on an SNMP-enabled network. Address Manager includes SNMP for both the appliance itself and for the on-board application server. For more information on the SNMP service for Address Manager, refer to Configuring SNMP on.
Configuring Address Manager SNMP Service
Note: When
configuring SNMP from the BAM user
interface, you might receive the error message, "loglevel can't
be blank," even though there's no option to configure log
level.
Example
#cloud-config
bluecat_service_config:
payload: |
{
"version": "1.3.0",
"services": {
"snmp": {
"configurations": [
{
"snmpConfiguration": {
"enable": true,
"agentService": {
"loglevel": "debug",
"pollingPeriod": 25,
"system": {
"contact": "example@bluecat.com",
"description": "snmp-cloud-init-example",
"location": "Toronto",
"name": "example"
},
"v1": {
"enable": true,
"community": "public"
},
"v2c": {
"enable": true,
"community": "public"
},
"v3": {
"enable": true,
"securityLevel": "noauthNopriv",
"username": "admin"
}
}
}
}
]
}
}
}
Parameters
enable—set to true to enable SNMP service. When SNMP service is enabled, network management systems may poll the server to receive SNMP information.agentService—enter the SNMP configuration information.loglevel—enter logging level of SNMP service. The value must bedebug,info,warning,error, orcritical.pollingPeriod—specify the SNMP polling period in seconds. This value determines the frequency that SNMP values are refreshed on the appliance.system—enter the configuration information of the system.contact—enter an e-mail address for the system contact to be reported through SNMP.description—enter a brief description of the system to be reported through SNMP.location—enter a description of the system’s location to be reported through SNMP.name—enter the system name to be reported through SNMP.
v1—enter the configuration information to enable SNMPv1 protocol.enable—set to true to enable SNMPv1 service; set to false to disable SNMPv1 service.community—type the SNMP community string. This string is used to authenticate the polling request.
v2c—enter the configuration information to enable SNMPv2c protocol.enable—set to true to enable SNMPv2c service; set to false to disable SNMPv2c service.community—type the SNMP community string. This string is used to authenticate the polling request.
v3—enter the configuration information to enable SNMPv3 protocol.enable—set to true to enable SNMPv3 service; set to false to disable SNMPv3 service.securityLevel—select an SNMP security level. The value must benoauthNopriv,authNopriv, orauthPriv.username—type the SNMP username.authtype—enter the authentication type. The value must be either MD5 or SHA. This field is only configured when using SNMP version 3 andauthPrivorauthNoprivas the security level.authphrase—enter the authentication password for the SNMP user. This field is only configured when using SNMP version 3 andauthPrivorauthNoprivas the security level.privtype—enter the encryption type. The value must be either DES or AES-128. This field is only configured when using SNMP version 3 andauthPrivas the security level.privphrase—enter the privacy authentication password used to encrypt the data. This field is only configured when using SNMP version 3 andauthPrivas the security level.
Configuring Address Manager SNMP Trap Service
Configure the BAM server to send SNMP Trap notifications to a specified trap server.
The trap server is the server to which BAM communicates specified changes in its
status by sending SNMP traps. The trap server can be configured to use SNMP version
1, 2c, or 3. This may be a different address from the SNMP polling server or manager
address that's set up when enabling the service. In SNMPv3, trap messages can be
authenticated with a trap server username and password.
Note: BAM supports the configuration of
multiple SNMP Trap servers.
Note: SNMP community
strings, usernames, and pass-phrases don't support spaces,
Unicode characters, or the following special characters: " ' ` /
\ % & ? < > $
Example
bluecat_service_config:
payload: |
{
"version": "1.3.0",
"services": {
"snmp": {
"configurations": [
{
"snmpConfiguration": {
"enable": true,
"trapService": {
"trapServers": [
{
"address": "10.0.0.0",
"port": 162,
"enable": true,
"v1": {
"enable": true,
"community": "public"
},
"v2c": {
"enable": true,
"community": "public"
},
"v3": {
"enable": true,
"securityLevel": "authPriv",
"username": "admin",
"authtype": "SHA",
"authphrase": "authPassword",
"privtype": "DES",
"privphrase": "privPassword"
}
}
]
}
}
}
]
}
}
}Parameters
trapService—enter the configuration information to enable the SNMP trap service on the Address Manager server.trapServers—enter the configuration information for each SNMP trap server.address—enter the IPv4 or IPv6 address of the SNMP trap server.Attention: Each SNMP trap server must have a unique IP address.port—enter the value of the SNMP trap server port. By default, SNMP trap servers listen on port 162.Attention: The port value must be between 1 and 65534.enable—set to true to enable the specific SNMP trap server; set to false to disable the specific SNMP trap server.v1—enter the configuration information to enable SNMPv1 protocol.enable—set to true to enable SNMPv1 service; set to false to disable SNMPv1 service.community—type the SNMP community string. This string is used to authenticate the polling request.
v2c—enter the configuration information to enable SNMPv2c protocol.enable—set to true to enable SNMPv2c service; set to false to disable SNMPv2c service.community—type the SNMP community string. This string is used to authenticate the polling request.
v3—enter the configuration information to enable SNMPv3 protocol.enable—set to true to enable SNMPv3 service; set to false to disable SNMPv3 service.securityLevel—select an SNMP security level. The value must benoauthNopriv,authNopriv, orauthPriv.username—type the SNMP username.authtype—enter the authentication type. The value must be either MD5 or SHA. This field is only configured when using SNMP version 3 andauthPrivorauthNoprivas the security level.authphrase—enter the authentication password for the SNMP user. This field is only configured when using SNMP version 3 andauthPrivorauthNoprivas the security level.privtype—enter the encryption type. The value must be either DES or AES-128. This field is only configured when using SNMP version 3 andauthPrivas the security level.privphrase—enter the privacy authentication password used to encrypt the data. This field is only configured when using SNMP version 3 andauthPrivas the security level.