By default, you can run SNMP queries (walk, get) from any remote machine without 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
a.
Add a read-only community name and the client/hostname/IP address under "SECTION: Access Control Setup" in the /etc/sma/snmp/snmpd.conf file, as the following excerpt shows:
#################################################
# 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
#################################################
Setup in /etc/sma/snmp/snmpd.conf file, as the following excerpt shows:
#################################################
# 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
#################################################
# svcadm enable svc:/application/management/sma:default
NOTE Refer to the man snmpd.conf command for more information about configuring the snmpd.conf file.
DB09 000202 -14 37857 -02, Rev O, November, 2012 |
Copyright© 2012 by LSI Corporation. All rights reserved. |