alfee 回复于:2005-06-21 18:28:58 |
试下Sun Management Center 3.5.1a,
Solaris 9/10, V120要求1 GB以上内存和swap: 1。加JDK路径: JDK的路径要写在其它路径前面,省得出错, # vi /.profile ... PATH=/usr/jdk/instances/jdk1.5.0/bin:/usr/bin:/usr/ucb:/etc:. export PATH JAVA_HOME=/usr/jdk/instances/jdk1.5.0 export JAVA_HOME 2。停缺省的SNMP,并重起, Solaris缺省支持SNMP,并占其161端口,先去掉: # cd /etc # cd rc3.d # ls README S50apache S75seaport S77dmi S81volmgt S84appserv S16boot.server S52imq S76snmpdx S80mipagent S82initsma S90samba # mv S76snmpdx ssS76snmpdx # reboot 3。安装SunMC3.5.1a # ./es-inst ---------------------------------------------------------------------------- 此脚本安装 Sun (TM) Management Center 3.5 Update 1 ---------------------------------------------------------------------------- 安装程序文件源目录:/sunmc35u1a/disk1/image 输入要安装到的目录:[ /opt ] 安装的目标目录:/opt Sun Management Center 可提供两种类型的环境: (1) 产品环境 (PE) 请为可以管理并监视 子系统、组件和外围设备的活动环境选择 PE。 系统将提示您 选择要安装的组件(服务器、代理和/或控制台)。 (2) 开发环境 (DE) 对于开发人员,要创建和测试自己 的自定义模块,请选择 DE。 选择 DE 将安装所有组件(服务器、 代理和控制台) 请选择 1 或 2: [ 1 ] 选择要安装的 Sun Management Center 组件: 可供选择 3 组件: 是否要安装 Server 组件 (y|n|q) y 注意:代理组件将自动安装。 是否要安装 Console 组件 (y|n|q) y Sun Microsystems, Inc. Binary Code License Agreement READ THE TERMS OF THIS AGREEMENT AND ANY PROVIDED SUPPLEMENTAL LICENSE TERMS (COLLECTIVELY "AGREEMENT") CAREFULLY BEFORE OPENING THE SOFTWARE MEDIA PACKAGEY OPENING THE SOFTWARE MEDIA PACKAGE, YOU AGREE TO THE TERMS OF THIS AGREEMENTF YOU ARE ACCESSING THE SOFTWARE ELECTRONICALLY, INDICATE YOUR ACCEPTANCE OF THESE TERMS BY SELECTING THE "ACCEPT" BUTTON AT THE END OF THIS AGREEMENTF YOU DO NOT AGREE TO ALL THESE TERMS, PROMPTLY RETURN THE UNUSED SOFTWARE TO YOUR PLACE OF PURCHASE FOR A REFUND OR, IF THE SOFTWARE IS ACCESSED ELECTRONICALLY, SELECT THE "DECLINE" BUTTON AT THE END OF THIS AGREEMENT. 1. LICENSE TO USE. Sun grants you a non-exclusive and non- transferable license for the internal use only of the accompanying software and documentation and any error corrections provided by Sun (collectively "Software"), by the number of users and the class of computer hardware for which the corresponding fee has been paid. ... F. Termination for Infringement. Either party may terminate this Agreement immediately should any Software become, or in either party's opinion be likely to become, the subject of a claim of infringement of any intellectual property right. For inquiries please contact: Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, California 95054. (LFI#136523/Form ID#011801) 必须同意上述许可证协议才能继续安装。 是否同意 (y|n|q) y 可以使用以下语言安装 Sun Management Center: 繁体中文 简体中文 法文 日文 韩文 缺省情况下将安装 简体中文 和英文。 是否需要其它语言 (y|n|q) n 您可以安装产品文档资料。 产品文档资料将按以前选择的语言进行安装。 安装产品文档资料。 (y|n|q) y 从映像中读取附加产品。 请稍候... 完成此过程大约需要 3 分钟。 已找到:Advanced System Monitoring 已找到:ELP Config-Reader Monitoring 已找到:Desktop 已找到:Service Availability Manager 已找到:Netra 已找到:Performance Reporting Manager 已找到:N1 Grid Console - Container Manager 已找到:Sun Fire Midrange Systems Domain Administration 已找到:Dynamic Reconfiguration for Sun Fire High-End and Midrange Systems 已找到:Sun Fire Midrange Systems Platform Administration 已找到:Starfire Monitoring 已找到:Monitoring and Management of A5x00 and T3 devices 已找到:Sun Fire 15K/12K Monitoring 已找到:Sun Fire Link 已找到:Sun Enterprise 6500-3500 Servers/sun4d DR 已找到:Sun Enterprise 6500-3500 Servers/sun4d Config Reader 已找到:System Reliability Manager 已找到:Sun Management Center Integration for Unicenter TNG 已找到:Sun Management Center-Tivoli integration Pack 已找到:Workgroup Server 检查适用的产品。 请稍候... 完成此过程大约需要 2 分钟。 将安装 Sun Management Center 基本产品。 以下附加产品可用于安装。 Advanced System Monitoring 此产品需要以下增补程序的部分或全部: 118933-01 如果选择安装它,则将安装所需的增补程序。 ELP Config-Reader Monitoring Desktop Service Availability Manager Netra Performance Reporting Manager 此产品需要以下增补程序的部分或全部: 117439-02,117439-02 如果选择安装它,则将安装所需的增补程序。 N1 Grid Console - Container Manager 此产品需要以下增补程序的部分或全部: 118729-01,118729-01 如果选择安装它,则将安装所需的增补程序。 Sun Fire Midrange Systems Domain Administration Dynamic Reconfiguration for Sun Fire High-End and Midrange Systems Sun Fire Midrange Systems Platform Administration Starfire Monitoring Monitoring and Management of A5x00 and T3 devices Sun Fire 15K/12K Monitoring Sun Fire Link Sun Enterprise 6500-3500 Servers/sun4d DR Sun Enterprise 6500-3500 Servers/sun4d Config Reader System Reliability Manager 此产品需要以下增补程序的部分或全部: 118839-01 如果选择安装它,则将安装所需的增补程序。 Sun Management Center Integration for Unicenter TNG Sun Management Center-Tivoli integration Pack Workgroup Server 选择要安装的产品: Advanced System Monitoring (y|n|q) 输入 "y" 或 "n" 或 "q" Advanced System Monitoring (y|n|q) y ELP Config-Reader Monitoring (y|n|q) y Desktop (y|n|q) y Service Availability Manager (y|n|q) y Netra (y|n|q) n Performance Reporting Manager (y|n|q) y N1 Grid Console - Container Manager (y|n|q) y Sun Fire Midrange Systems Domain Administration (y|n|q) y Dynamic Reconfiguration for Sun Fire High-End and Midrange Systems (y|n|q) y Sun Fire Midrange Systems Platform Administration (y|n|q) y Starfire Monitoring (y|n|q) n Monitoring and Management of A5x00 and T3 devices (y|n|q) n Sun Fire 15K/12K Monitoring (y|n|q) n Sun Fire Link (y|n|q) n Sun Enterprise 6500-3500 Servers/sun4d DR (y|n|q) n Sun Enterprise 6500-3500 Servers/sun4d Config Reader (y|n|q) n System Reliability Manager (y|n|q) y Sun Management Center Integration for Unicenter TNG (y|n|q) n Sun Management Center-Tivoli integration Pack (y|n|q) n Workgroup Server (y|n|q) y 将安装以下附加产品: Advanced System Monitoring ELP Config-Reader Monitoring Desktop Service Availability Manager Performance Reporting Manager N1 Grid Console - Container Manager Sun Fire Midrange Systems Domain Administration Dynamic Reconfiguration for Sun Fire High-End and Midrange Systems Sun Fire Midrange Systems Platform Administration System Reliability Manager Workgroup Server 是否要继续 (y|n|q) y Sun Microsystems Inc. Binary Code License Agreement For the SUN MANAGEMENT CENTER 3.5 UPDATE 1 ADD-ON PACKAGES SUN IS WILLING TO LICENSE THE ACCOMPANYING BINARY SOFTWARE IN MACHINE- READABLE FORM, TOGETHER WITH ACCOMPANYING DOCUMENTATION (COLLECTIVELY "SOFTWARE") TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS AND CONDITION CONTAINED IN THESE LICENSE AGREEMENTS. READ THE TERMS AND CONDITIONS OF THESE AGREEMENTS ... 许可证协议涵盖以下附加产品: Advanced System Monitoring Service Availability Manager Performance Reporting Manager N1 Grid Console - Container Manager System Reliability Manager 必须同意上述许可证协议才能继续安装。 是否同意 (y|n|q) y 正在检查磁盘空间.... Processing package instance <SUNWesora> from <sunmc35u1a/disk1/image/db> Sun Management Center Database Management System(sparc) 3.5,REV=2004.03.16 Using </opt> as the package base directory. ## Processing package information. ## Processing system information. ## Verifying package dependencies. Installing Sun Management Center Database Management System as <SUNWesora> ## Executing preinstall script. Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Group smcorag exists User smcorau created ## Installing part 1 of 1. 375268 块 [ verifying class <dbeditfiles> ] Installation of <SUNWesora> was successful. Processing package instance <SUNWestbl> from </sunmc35u1a/disk1/image/db> Sun Management Center Database(sparc) 3.5,REV=2004.03.29 Using </var/opt/SUNWsymon> as the package base directory. ## Processing package information. ## Processing system information. Installing Sun Management Center Database as <SUNWestbl> ## Installing part 1 of 1. /var/opt/SUNWsymon/db/oradata/SunMC/control01.ctl /var/opt/SUNWsymon/db/oradata/SunMC/control02.ctl /var/opt/SUNWsymon/db/oradata/SunMC/control03.ctl /var/opt/SUNWsymon/db/oradata/SunMC/rbs01.dbf /var/opt/SUNWsymon/db/oradata/SunMC/redo01.log /var/opt/SUNWsymon/db/oradata/SunMC/redo02.log /var/opt/SUNWsymon/db/oradata/SunMC/redo03.log /var/opt/SUNWsymon/db/oradata/SunMC/system01.dbf /var/opt/SUNWsymon/db/oradata/SunMC/temp01.dbf [ verifying class <none> ] Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Installation of <SUNWestbl> was successful. 已成功安装 Sun Management Center 数据库软件包 es-setup 将执行剩余配置 ... Checking patches that you specified for installation. Done! Approved patches will be installed in this order: 118389-03 使用 Sun Management Center 3.5 Update 1 之前必须进行设置。 是否要现在运行设置 (y|n|q) y ---------------------------------------------------------------------------- 此脚本将帮助您设置 Sun (TM) Management Center 3.5 Update 1。 ---------------------------------------------------------------------------- 需更改 /etc/system 文件以符合 Sun Management Center 数据库需求。 是否要更新 /etc/system 文件 (y|n|q) y 为了使内核变量的更改生效,此 计算机必须重新引导。 必须现在就重新引导此计算机, 然后再次运行 /opt/SUNWsymon/sbin/es-setup。 按 [RETURN] 键退出... 安装日志文件为:/var/opt/SUNWsymon/install/install_s6a.050325194158.1751 安装结束 正在退出 Sun Management Center 安装程序。 4。SunMC装完自动重起后,立刻进行配置: 用装好的SunMC软件自带的图形界面配置工具配置,跟着走下来即可, 并记住口令和端口: # cd /opt/SUNWsymon/sbin # ./es-guisetup ... SNMPv1:缺省 SNMP端口:1161 查阅服务端口:5600 数据库端口:2521 Web服务器端口:8080 Web服务器组织:xx.com Web服务器位置:xx.com 。。。 5。添加SunMC的用户: SunMC用自己的用户管理,用户必须是Solaris的用户,同时还要写在SunMC中, 可在Solaris中先建一名为esuser的用户,再添加到SunMC中: # cd /var/opt/SUNWsymon/cfg # vi esusers ... esuser 检查下该用户的权力,若赋予SunMC域管理员和系统管理员的权力,必须属于 esadm和esdomadm组: # more /etc/group root::0: ... esadm::1000:root esdomadm::1001:root,esuser esops::1002: esscrusers::1003: # more /etc/passwd ... smcorau:x:100:101011::/var/opt/SUNWsymon/smcorau:/bin/sh esuser:x:1001:1000::/opt/esuser:/bin/sh ... 5。启动SunMC: 装好SunMC后,SunMC服务器,Agent,Oracle8i自动启动,如没启动,则: # cd /opt/SUNWsymon/sbin # ./es-start -A SunMC 界面启动: # ./es-start -c 6。装Agent在280R上, 同V120,只不过只选装Agent/Console,不装Server,步骤相同, 注意口令与装v120时的要一致,SNMP的字符串(public/privte)也要一致, 装好后启动Agent: # cd /opt/SUNWsymon/sbin # ./es-start -a 此时,在V120的SunMC界面上可发现或添加280R, OK。 |
log2log3 回复于:2005-06-21 20:28:10 |
感动中。。。。。。。,谢谢alfee 兄。 |
nimysun 回复于:2005-06-21 20:52:09 |
好贴,惯一个。:D |
alfee 回复于:2005-06-21 21:08:15 |
本人在CU里获益非浅,回报ing ':em02:' |
wjg023 回复于:2005-06-29 09:25:58 |
好人真多!! |