2013年9月30日月曜日

2013年9月28日土曜日

比較 ソース整形表示

http://weblog.atl-r.net/blog/syntaxhighlighter/


http://usagisaigon.blogspot.jp/2013/08/blogger-google-code-prettify.html


http://www.kuribo.info/2013/06/blogger-responsive-templates.html

Server Protect 異常確認と停止


TOPコマンドで、現在のリソース状況を表示してみる。
Cpu(s)が、99.7%で高いCPU負荷となっている、その大半がsplxmainのプロセスによる。
そのsplxmainのPIDは、9592である。


top - 17:59:46 up 119 days,  1:29,  1 user,  load average: 1.02, 1.02, 1.00
Tasks: 193 total,   2 running, 191 sleeping,   0 stopped,   0 zombie
Cpu(s): 99.7%us,  0.3%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   3925308k total,  3722028k used,   203280k free,   293460k buffers
Swap:  4194296k total,    11240k used,  4183056k free,  2851780k cached

PID   USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
9592  root      20   0 15136 4008 1392 R 97.2  0.1   1041:35 splxmain
2550  root      20   0  149m  83m 2868 S  2.3  2.2 388:27.91 vsapiapp
25966 root      20   0 15092 1320  964 R  0.3  0.0   0:00.07 top
29280 root      20   0 13484 5640 3656 S  0.3  0.1  19:06.98 jpcsto

-------------------------------------------------------------------------

psfreeコマンドで、splxmainのプロセス構成を確認して、プロセスを一括削除する。

[root@XXa1mg27 ~]# pstree | grep splxmain
|-crond---crond---sh---splxmain---splxmain
[root@XXa1mg27 ~]# pstree -p| grep splxmain
|-crond(2209)---crond(9588)---sh(9590)---splxmain(9592)---splxmain(9598)
[root@XXa1mg27 ~]# kill -9 9592 9598

--------------------------------------------------------------------------
Server Protect を再起動する
<

[root@XXa1mg27 ~]# service splx restart
Shutting down ServerProtect for Linux:
Shutting down splxcore:
Shutting down vsapiapp [ OK ] 
Unloading splx kernel module: [ OK ] 
Shutting down entity: [ OK ]
ServerProtect for Linux core stopped normally.
[ OK ]
Shutting down splxhttpd:
Shutting down splxhttpd: [ OK ]
ServerProtect for Linux httpd stopped normally.
[ OK ]
ServerProtect for Linux stopped normally.
Starting ServerProtect for Linux:
Checking configuration file: [ OK ]
Starting splxcore:
Starting Entity: [ OK ]
Loading splx kernel module: [ OK ]
Starting vsapiapp: [ OK ]
ServerProtect for Linux core started.
[ OK ]
Starting splxhttpd:
Starting splxhttpd: [ OK ]
ServerProtect for Linux httpd started.
[ OK ]
ServerProtect for Linux started.
[root@XXa1mg27 ~]#
--------------------------------------------------------------------------

2013年9月26日木曜日

JP1/BASE プロセスの強制停止

[root@XX1od01 ~]# ps -ef | grep jp1 
root 2046 1 0 11:34 ? 00:00:00 /opt/jp1base/bin/jbs_spmd -h XXp1od01 root 3087
2881  0 12:01 pts/0    00:00:00 grep jp1 
[root@XX1od01 ~]# kill -9 2046 
[root@XX1od01 ~]# ps -ef | grep jp1 
root      3102  2881  0 12:02 pts/0    00:00:00 grep jp1 
[root@XX1od01 ~]#

SCPコマンドを使ってサーバ間でファイルの受渡しをする

別なサーバのファイルを取込みたい時。
[root@XXp1oa01 init.d]# scp -p XXp2oa01:/etc/init.d/jp1_service_cluster .
The authenticity of host 'XXp2oa01 (999.26.65.181)' can't be established.
RSA key fingerprint is 46:55:47:04:47:4a:5f:ff:dc:c6:9f:1b:f3:ce:33:52.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'XXp2oa01,999.26.65.181' (RSA) to the list of known hosts.
root@XXp2oa01's password:
jp1_service_cluster 100% 1246     1.2KB/s   00:00
[root@XXp1oa01 init.d]# ll jp1_service_cluster
-rwxr-xr-x. 1 root root 1246  9月 19 14:32 2013 jp1_service_cluster
[root@XXp1oa01 init.d]#

2013年9月23日月曜日

2013年9月21日土曜日

BSinfo

http://www.atmarkit.co.jp/fwin2k/win2ktips/1105bginfo/bginfo.html