()ý
Home
Ȩ ȸҰ ý Ʈ ũ
 
 
ۼ : 08-04-16 14:41
Solaris 10 and Net-SNMP
 ۾ :
ȸ : 9,690  


 
Net-SNMP is provided in Solaris 10 release now, and how to use it is descripted in this article.


To disable Sun's SNMP
#svcadm disable svc:/application/management/snmpdx:default


the Net-SNMP daemon program locates at /usr/sfw/sbin/snmpd, and configure file of snmpd saved with the name snmpd.conf at /etc/sma/snmp. Use svcadm to start of stop snmpd:
#svcadm enable svc:/application/management/sma:default
#svcadm disable svc:/application/management/sma:default


Log File
if there's any error or warning messages, see the file /var/svc/log/application-management-sma\:default.log. The default log file of snmpd is /var/log/snmpd.log.


Configuration file
We may use /etc/sma/snmp/snmpd.conf.save as the working configure file to test wheather our snmpd daemon is ok.
#cp /etc/sma/snmp/snmpd.conf.save /etc/sma/snmp/snmpd.conf
#svcadm restart sma


P.S. There's another file also named as snmpd.conf stored in /var/sma_snmp directory, and which is called persistent storage file. The persistent storage file, /var/sma_snmp/snmpd.conf, contains USM security information and any MIB components that are set for persistent storage. This file also contains the engineID and the engineID boots. This persistent storage file is automatically updated when the System Management Agent starts. When the System Management Agent stops, the snmpusm and snmpvacm utilities write user security information to this storage file.


Using the AgentX Protocol
The AgentX protocol is supported in the System Management Agent. By default, the System Management Agent ships with a secure profile, that is, read–only access. AgentX allows interaction with third party subagents, provided that these subagents support AgentX over Unix Domain Sockets. For security reasons, AgentX is not supported over TCP/UDP. For more information on the AgentX protocol, see http://www.ietf.org/rfc/rfc2741.txt Edit the main /etc/sma/snmp/snmpd.conf configuration file to configure the System Management Agent to use the AgentX protocol. By default, the AgentX protocol is disabled. The following procedure describes how to enable the AgentX protocol. To enable the AgentX protocol add the following to /etc/sma/snmp/snmpd.conf file:


master agentx


restart the sma (system management agent).
# svcadm restart svc:/application/management/sma:default


Using the SMA
To view the status of the agent
# svcs svc:/application/management/sma:default


To See Which MIBs Are Initialized
# /usr/sfw/sbin/snmpd -Dregister_mib -Dmib_init -L


To Check the Disk Space and Network on a Local or Remote Machine
# /usr/sfw/bin/snmpwalk -v1 -c public localhost HOST-RESOURCES-MIB::hrStorageIndex


# /usr/sfw/bin/snmpget -v1 -c public localhost HOST-RESOURCES-MIB::hrStorageSize.1


# /usr/sfw/bin/snmpwalk -v1 -c public localhost HOST-RESOURCES-MIB::hrStorageUsed


# /usr/sfw/bin/snmpnetstat -v 2c -c public -a localhost


if all these works, congratulations, the sma is configured and brought on properly.


 
 

Total 185
ȣ     ۾ ¥ ȸ
170 v245 solaris10 ġ DHCP failed ޽ ð
2008/05/14 9540
169 E3500 FC on & off line
2008/04/29 7555
168 Solaris 10 and Net-SNMP
2008/04/16 9691
167 E3500 CPU board ü ߻ error message
2008/03/25 7120
166 EFI / SMI
2008/03/21 28546
165 E4900 power on & power off
2008/03/18 7769
164 solaris telnet , ftp login banner ֱ
2008/03/13 12988
163 zip Ͽ password
2008/03/05 7947
162 v445 ϵ ̵
2008/03/04 9859
161 SC ( NETMGT )
2008/03/04 11141
160 sunblade 1000 µ Ͽ ý
2008/02/14 7612
159 ld.so.1
2008/02/04 8218
158 E4900 SC MODE & OK MODE & DOMAIN MODE
2008/01/28 14813
157 E4900 OBP UPDATE
2008/01/28 9573
156 Sun Fire Setting
2008/01/13 14203
 1  2  3  4  5  6  7  8  9  10    
 
 
 
Administrator Login