Configuring the snmpd.conf File
By default, you can run the SNMP queries (walk, get) from any remote machine without any changes to the snmpd.conf file. To quickly add a new community and client access, perform the following steps:
# svcadm disable svc:/application/management/sma:default
2.
Add read-only and read-write community names.
a.
Add a read-only community name and client/hostname/ipaddress under SECTION: Access Control Setup in the /etc/sma/snmp/snmpd.conf file, as shown in the following excerpt.
#################################################
# SECTION: Access Control Setup
# This section defines who is allowed to talk to
# rocommunity: a SNMPv1/SNMPv2c read-only access
# [default|hostname|network/bits] [oid]
# rocommunity snmpclient 172.28.157.149
#################################################
NOTE In Solaris 11 x86, add a read-only community name and client/hostname/ipaddress under SECTION: Access Control Setup in the /etc/net-snmp/snmp/snmpd.conf file as shown in the preceding excerpt.
b.
Add a readwrite community name and client/hostname/ipaddress under SECTION: Access Control Setup in the /etc/sma/snmp/snmpd.conf file, as shown in the following excerpt.
#################################################
# SECTION: Access Control Setup
# This section defines who is allowed to talk to your
# rwcommunity: a SNMPv1/SNMPv2c read-write access
# [default|hostname|network/bits] [oid]
# rwcommunity snmpclient 172.28.157.149
#################################################
NOTE In Solaris 11 x86, add a read-only community name and client/hostname/ipaddress under SECTION: Access Control Setup in the /etc/net-snmp/snmp/snmpd.conf file as shown in the preceding excerpt.
# svcadm enable svc:/application/management/sma:default
NOTE Refer to the command man snmpd.conf for more information about configuring the snmpd.conf file.
NOTE In Solaris 11 x86, you must start the net-snmpd daemon service, by executing the following command: # svcadm enable svc:/application/management/net-snmp
DB09000202-21, Rev 2.2, July 2015 |
Copyright© 2015 by Avago Technologies. All rights reserved. |