- 論壇徽章:
- 0
|
版本solaris express:08/06 for x86:
---------------感謝sun smc技術(shù)支持工作人員---------------------------
總結(jié)和摘抄:
customizing the solaris management console
基本內(nèi)容:
描述solaris管理控制工具箱編輯器的一些操作
使用solaris管理控制工具箱編輯器
啟動(dòng)solaris管理控制臺(tái)包括三個(gè)部分:
1,solaris管理控制臺(tái)服務(wù)
2,控制臺(tái)
3,solaris管理控制臺(tái)工具箱編輯器
判斷solaris管理控制臺(tái)服務(wù)程序是否可用,用下面的命令:
# /etc/init.d/init.wbem status
停止它的使用:
# /etc/init.d/init.wbem stop
開(kāi)始它的使用:
# /etc/init.d/init.wbem start
可以以一般用戶來(lái)開(kāi)啟solaris管理控制臺(tái),但是一些功能和應(yīng)用程序可能不會(huì)加載,除非用root用戶登陸
啟用solaris管理控制臺(tái):# smc
使用工具箱編輯器: # smc edit
在運(yùn)行solaris管理控制臺(tái)并執(zhí)行某些改動(dòng)之前必須對(duì)其中的兩個(gè)文件進(jìn)行備份:
# cd /var/sadm/smc/toolboxes
# cp smc/smc.tbx smc.tbx.orig
# cp this_computer/this_computer.tbx this_computer.tbx.orig
除了圖形界面下添加工具箱URL,也可以通過(guò)命令行的方式來(lái)添加工具箱URL,使用smcregister命令可以對(duì)工具箱進(jìn)行添加、移除、詳細(xì)列表的功能.但是使用這個(gè)命令能夠完成的功能較之圖形化下面操作很有限.
用smcregister命令添加工具箱URL:
# /usr/sadm/bin/smcregister toolbox add tbxURL http://sys43:898/toolboxes/this_computer.tbx
-B /var/sadm/smc/toolboxes/smc/smc.tbx
要注意的一點(diǎn)是,在管理控制臺(tái)中添加了新的工具或新增加了其他功能,要想使用這些功能,必須重新啟動(dòng)
管理控制臺(tái)才能生效
用smcregister命令添加工具:
# /usr/sadm/bin/smcregister toolbox add tool com.sun.admin.diskmgr.client.VDiskMgr -H sys43:898
loading...
實(shí)戰(zhàn)經(jīng)驗(yàn):
in solaris express b_44,to start smc:
1.please refresh the remained unuseful file & process:
You may need to just first start wbem with command:
/etc/init.d/init.wbem start
Then run smc&
But if problem persists the commands below can be used to restart all of smc and wbem...
Sometimes when the smc or wbem processes do not come down gracefully, init.wbem is no longer successful in fully stopping or starting the wbem server daemon, subsequently a side-affect is smc will fail to launch, or other smc anomolies may occur.
To resolve for SMC 2.1, perform steps as follows:
Open a termal,
* /usr/dt/bin/dtterm -C
* su root
* /etc/init.d/init.wbem stop
* kill all instances of the smcboot process (if any are running), ie:
# ps -ef|grep smcboot (manually kill any running processes)
* kill all instances of the cimomboot process (if any are running), ie:
# ps -ef|grep cimom (manually kill any running processes)
* kill all instances of Solaris Management Console-related JVMs. These will contain
either "-Dviper.fifo.path=" or "-Djava.security.policy=" in their command paths, ie:
# /usr/ucb/ps -wwax | grep viper (manually kill any running processes)
* Remove the /var/run/smc<port> where <port> is usually 898, ie:
# rm -rf /var/run/smc898
at last: # rm -rf /var/sadm/smc
# rm -rf /var/sadm/wbem
# rm -rf /tmp/smc898
2.please listen tcp/ip port:
# svcadm disable wbem
# svcadm enable wbem
# svcadm disable wbem
# ps -ef | grep smc
root 3025 2979 0 20:16:50 pts/4 0:00 grep smc
# /etc/init.d/init.wbem startnow
# Starting Solaris Management Console server version 2.1.0.
endpoint created: localhost/127.0.0.1:898
Registration setup: 8/8 (Executing SUNWpmgr_reg.sh)
Registering components: 64/64 (Registering PatchMgrCli.jar) er)
Solaris Management Console server is ready.
# /etc/init.d/init.wbem status
Solaris Management Console server version 2.1.0 running on port 898.
# smc &
4526
# Java Accessibility Bridge for GNOME loaded.
* Now try to start wbem, wait several minutes,
# /etc/init.d/init.wbem start (be patient, this can take several minutes)
# /etc/init.d/init.wbem status
3.how to trace smc debug message:
Please follow the below steps to enable debugging and let me know what is failing.
1) Stop the Solaris Web-Based Enterprise Management server:
> /etc/init.d/init.wbem stop
2) Edit the line below, in the file: /etc/init.d/init.wbem
$VIPER_HOME/bin/smcwbemserver -p $SMC_PORT start >/dev/msglog 2>&1 &
If you want to redirect the debug messages to a file, replace
/dev/msglog with the absolute path of the file name.
Example:
$VIPER_HOME/bin/smcwbemserver -p $SMC_PORT start >/tmp/debugLog 2>&1 &
Otherwise, for the debug messages to be printed on the terminal, remove
the redirection
Example:
$VIPER_HOME/bin/smcwbemserver -p $SMC_PORT start
3) Edit the file: /usr/sadm/lib/smc/bin/smcwbemserver and add the lines
below:
-Dwbem.debug.level=3m \
-Dwbem.debug.device=stderr \
Insert them between the following lines:
-Xmx128m \
-Djava.security.policy=${VIPER_HOME}/policy/smcwbemserver.policy \
So, after modification, the file: /usr/sadm/lib/smc/bin/smcwbemserver
will contain:
....
....
-Xmx128m \
-Dwbem.debug.level=3m \
-Dwbem.debug.device=stderr \
-Djava.security.policy=${VIPER_HOME}/policy/smcwbemserver.policy \
....
....
4) Now start the WBEM server using
/etc/init.d/init.wbem startnow( There is a small correction stop the smcboot process by the command
/etc/init.d/init.wbem stop
and start it using the below command
/etc/init.d/init.wbem startnow)
Then run "smc -d 0" command in another terminal and observe
the terminal in which you have started the /etc/init.d/init.wbem
process.
4.the related work explain:
Nicolas Linkert wrote:
>I have installed snv 41 and have just noticed that I cannot start smc. Is this a known issue?
>
>Server not running. On this server no Solaris management Console server was found.
>
>
There are a few known issues with SMC in B41. It is now an SMF
service so
you can issue "svcadm enable wbem". It will listen only on
127.0.0.1 as per
the requirements of the Secure By Default project. To enable
listening on all
interfaces you can stop it and execute
"svccfg -s wbem setprop options/tcp_listen=true"
But note that there exist several bugs.
These are fixed in B42 and enabling/disabling listening for remote
connections
is done via SBD profiles. |
|