Configuring snmpd.conf
By default, the SNMP queries (walk, get) can be executed 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
NOTE To Stop the SMA service in Solaris 11 x86 and Solaris 11 SPARC use the following command:
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 your # running SNMP Agent.
# rocommunity: a SNMPv1/SNMPv2c read-only access
# community name
# arguments: community
# [default|hostname|network/bits] [oid]
# rocommunity snmpclient 172.28.157.149
#################################################
NOTE In Solaris 11 x86 and Solaris 11 SPARC 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 above excerpt.
b.
Add a read-write 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 # running
# snmp agent.
# rocommunity: a SNMPv1/SNMPv2c read-only access
# community name
# arguments: community
# [default|hostname|network/bits] [oid]
# rwcommunity snmpclient 172.28.157.149
#################################################
NOTE In Solaris 11 x86 and Solaris 11 SPARC 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 above 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 and Solaris 11SPARC we need to start the the net-snmpd daemon service, by executing the following command:
DB09-000202-11 37857-02, Rev L, April 2012 |
Copyright© 2012 by LSI Corporation. All rights reserved. |