分类: 系统运维
2014-12-31 14:02:12
puppet是一个配置管理工具, 典型的, puppet是一个C/S结构, 所有的puppet客户端同一个服务器端的puppet通讯.下载最新的配置文件,并且严格按照配配置完成以后,puppet客户端可以反馈给服务器端一个消息. 如果出错,也会给服务器端反馈一个消息. 置文件来配置服务器.
puppet论坛 :
环境的介绍
服务端: CentOS release 5.5 (Final) 64位
客户端: Red Hat 5.3 64位
2.1设置hosts ---> Master/Slave
vim
/etc/hosts
Master IPaddress Kandan
Client IPaddress Beijing-ptu
2.2查看防火墙状态,系统时间同步
cat /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
关闭sendmail服务
chkconfig sendmail off
添加时间同步计划任务:
crontab -e
*/5 * * * * /usr/sbin/ntpdate ntp.api.bz
1.下载安装所需软件包及基础环境配置
wget
wget
1)添加puppet用户
groupadd puppet
useradd -s /sbin/nologin -M puppet
2)修改hosts文件
echo "Master IPaddress Kandan" >>/etc/hosts
echo "Client IPaddress Beijing-ptu" >>/etc/hosts
3)ruby,Puppet是基于ruby开发的,所以必须安装ruby,可以使用yum或rpm安装ruby。
rpm -qa|grep ruby
yum -y install openssl-devel zlib-devel readline-devel
wget
tar zxvf ruby-enterprise-1.8.7-2011.03.tar.gz && ./ruby-enterprise-1.8.7-2011.03/installer
NOTE:需要耐心等待一段时间。出现选择安装路径。本人写的是/usr/local/ruby
修改系统环境
显示信息
Installing useful libraries...
/usr/local/ruby/bin/ruby /usr/local/ruby/bin/gem sources --update
source cache successfully updated
Installing passenger...
/usr/local/ruby/bin/ruby /usr/local/ruby/bin/gem install -r --no-rdoc --no-ri --no-update-sources --backtrace passenger
Fetching: rake-0.9.2.2.gem (100%)
Fetching: fastthread-1.0.7.gem (100%)
Building native extensions. This could take a while...
Fetching: daemon_controller-1.1.0.gem (100%)
Fetching: rack-1.4.1.gem (100%)
Fetching: passenger-3.0.18.gem (100%)
Successfully installed rake-0.9.2.2
Successfully installed fastthread-1.0.7
Successfully installed daemon_controller-1.1.0
Successfully installed rack-1.4.1
Successfully installed passenger-3.0.18
5 gems installed
添加环境变量
echo "export PATH=/usr/local/ruby/bin/:$PATH" >> /etc/profile
source /etc/profile
4)安装rubygems
wget
tar zxvf rubygems-1.8.24.tgz
ruby rubygems-1.8.24/setup.rb
--------------------------------------
Rake
/usr/local/ruby/bin/gem install rake
Successfully installed rake-10.0.2
1 gem installed
Installing ri documentation for rake-10.0.2...
Installing RDoc documentation for rake-10.0.2...
NOTE:由于网速比较.我事先下载然后手动安装 文件名字分别是
mysql-2.8.1.gem 下载地址:
rake-0.9.2.gem 下载地址:
5)Facter+Puppet安装
安装facter,用来搜集当前系统的环境变量
tar -zxvf facter-1.6.4.tar.gz
cd facter-1.6.4
ruby install.rb
查看selinux状态
[root@Kandan ~]# facter | grep linux
selinux => false
安装puppet
tar zxvf puppet-2.7.19.tar.gz
cd puppet-2.7.19
ruby install.rb
cp conf/redhat/* /etc/puppet/
ll /etc/puppet/
vim /etc/puppet/puppet.conf
添加:
[main]
reports = http, store
[agent]
autosign = true
验证安装是否成功
puppet master
/usr/local/ruby/bin/puppet master
查看puppet服务
ps -ef|grep puppet|grep -v grep
puppet 18967 1 0 15:08 ? 00:00:00 /usr/bin/ruby /usr/bin/puppet master
(之后kill掉)
6)服务器端创建服务和开机启动
cp /etc/puppet/server.init /etc/init.d/puppetmasterd
ln -s /usr/local/ruby/sbin/puppetmasterd /usr/sbin/puppetmasterd
chmod 755 /etc/init.d/puppetmasterd
chkconfig --add puppetmasterd
chkconfig --level 345 puppetmasterd on
/etc/init.d/puppetmasterd restart
ps -ef|grep puppet|grep -v grep
4.1修改系统配置、安装puppet软件
设置hosts ---> Master/Slave
vim /etc/hosts
添加查看防火墙状态,系统时间同步
cat /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
关闭sendmail服务
chkconfig sendmail off
添加时间同步计划任务:
crontab -e
*/5 * * * * /usr/sbin/ntpdate ntp.api.bz
添加puppet用户
groupadd puppet
useradd -s /sbin/nologin -M puppet
安装ruby软件
yum -y install ruby ruby-libs
rpm -qa|grep ruby
安装Facter、puppet软件
tar zxvf facter-1.6.4.tar.gz
cd facter-1.6.4
ruby install.rb
tar zxvf puppet-2.7.19.tar.gz
cd puppet-2.7.19
ruby install.rb
cp conf/redhat/* /etc/puppet/
ll /etc/puppet/
cp /etc/puppet/client.init /etc/init.d/puppetd
chmod 755 /etc/init.d/puppetd
vim /etc/puppet/puppet.conf
添加 puppet 服务器的名称
[main] 全局设置
server=Kandan
[agent] 节点设置
runinterval=60 同步时间(秒)
report = true
chkconfig --add puppetd
chkconfig puppetd on
/etc/init.d/puppetd start
ps -ef | grep puppet | grep -v grep
4.2审批证书
接收申请的证书
puppetd --server Kandan --test
服务器端查看当前待批准证书列表
puppetca --list
puppetca -s -a #批准所有申请的证书
在服务端查看签证的客户端,有+号表明签证成功。
puppet cert list --all
报错:
[root@Beijing-fengtainan-ptu puppet-2.7.19]# puppetd --server Kandan --test
info: Caching certificate for beijing-fengtainan-ptu
err: Could not retrieve catalog from remote server: certificate verify failed: [certificate is not yet valid for /CN=Puppet CA: kandan]
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
err: Could not send report: certificate verify failed: [certificate is not yet valid for /CN=Puppet CA: kandan]
-----------------------------------------------------------------------------------------------------------------------------------------------------
err: Could not request certificate: The certificate retrieved from the master does not match the agent's private key.
Certificate fingerprint: 13:5B:22:E9:45:DD:E3:6C:D3:E3:F2:56:11:9E:B0:F8
To fix this, remove the certificate from both the master and the agent and then start a puppet run, which will automatically regenerate a certficate.
On the master:
puppet cert clean beijing-fengtainan-ptu
On the agent:
rm -f /var/lib/puppet/ssl/certs/beijing-fengtainan-ptu.pem
puppet agent -t
rm -rf /var/lib/puppet/ssl/
rm -f /var/lib/puppet/ssl/certs/beijing-fengtainan-ptu.pem
puppet agent -t
[root@Beijing-fengtainan-ptu puppet]# puppet agent -t
info: Caching certificate_revocation_list for ca
info: Caching catalog for beijing-fengtainan-ptu
info: Applying configuration version '1361955816'
notice: Finished catalog run in 0.02 seconds
客户端:
error:
dnsdomainname: Unknown host
解决方法:
[root@izp puppet-2.7.19]# cat /etc/hosts
Client IPaddress Beijing-ptu #(IP+hostname)
4.3服务端推送更新(puppet kick)
1)、修改agent端的主配置文件
[root@agent1 ~]# vim /etc/puppet/puppet.conf
[agent]
listen = true
...
2)、新建namespaceauth.conf文件
[root@agent1 ~]# vim /etc/puppet/namespaceauth.conf
[puppetrunner]
allow puppetserver.rsyslog.org
3)、修改auth.conf文件(在path /前添加)
[root@agent1 ~]# vim /etc/puppet/auth.conf
path /run
method save
allow puppetserver.rsyslog.org
auth any
path /
auth any
5)、重启agent端
6)、在puppetmaster端执行puppetrun命令测试
[root@puppetserver ~]# puppetrun -p 10 --host agent1.rsyslog.org
Triggering agent1.rsyslog.org
Getting status
status is success
agent1.rsyslog.org finished with exit code 0
Finished
备注:如果主机比较多,可创建hosts.txt文件,然后将需要更新的节点主机名添加到hosts.txt文件中,然后跟上 --host `cat hosts.txt`参数即可
5.1在服务器端建立manifest
file { "/tmp/temp.txt":
content =>"Hello the world!";}
保存退出。
5.2在客户端执行命令获取任务
# puppetd --server Kandan --test
info: Caching catalog for beijing-fengtainan-ptu
info: Applying configuration version '1316163118'
notice: /Stage[main]//Node[default]/File[/tmp/temp.txt]/ensure: defined content as '{md5}e777f67b068b983360554b28cf6d0bb7'
notice: Finished catalog run in 0.13 seconds
5.3在客户端查看结果
# cat /tmp/temp.txt
Hello the world!
发现文件已经完成同步,测试成功
wget
wget
1) puppet-dashboard安装
tar zxvf puppet-dashboard-1.2.12.tar.gz
mv puppet-dashboard-1.2.12 /usr/local/puppet-dashboard
vim /etc/my.cnf
[mysqld]
max_allowed_packet = 32M
/etc/init.d/mysqld start
2)创建mysql数据库(used)
create database dashboard character set utf8;
grant all privileges on dashboard.* to dashboard@'localhost' identified by 'dashboard';
flush privileges;
3)配置puppet dashboard
cd /usr/local/puppet-dashboard/
cp config/database.yml.example config/database.yml
cp config/settings.yml.example config/settings.yml
ll config/database*
ll config/settings*
chown -R puppet:puppet /usr/local/puppet-dashboard
ll /usr/local/puppet-dashboard
source /etc/profile
vim config/database.yml
production:
database: dashboard
username: dashboard
password: dashboard
encoding: utf8
adapter: mysql
development:
database: dashboard
username: dashboard
password: dashboard
encoding: utf8
adapter: mysql
gem list | grep rack
gem install rack --version=1.1.2
4)数据导入:
rake RAILS_ENV=production db:migrate
错误:
rake aborted!
no such file to load -- rdoc/task
gem install rdoc
Fetching: json-1.7.7.gem (100%)
Building native extensions. This could take a while...
Fetching: rdoc-4.0.0.gem (100%)
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Successfully installed json-1.7.7
Successfully installed rdoc-4.0.0
2 gems installed
Installing ri documentation for json-1.7.7...
Installing ri documentation for rdoc-4.0.0...
Installing RDoc documentation for json-1.7.7...
Installing RDoc documentation for rdoc-4.0.0...
报错:
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
rake aborted!
libmysqlclient.so.16: cannot open shared object file: No such file or directory - /usr/local/ruby/lib/ruby/gems/1.8/gems/mysql-2.9.1/lib/mysql/mysql_api.so
解决办法:
修改文件:
echo "/usr/local/mysql/lib/mysql" >> /etc/ld.so.conf
[root@Kandan puppet-dashboard]# more /etc/ld.so.conf
include ld.so.conf.d/*.conf
增加一行
/usr/local/mysql/lib/mysql
ln -s /usr/local/mysql/lib/mysql/libmysqlclient.so.16 /usr/lib
然后执行生效
ldconfig
rake RAILS_ENV=production db:migrate
OK !
5)修改配置
进入主目录:
cd /usr/local/puppet-dashboard/
chown -R puppet:puppet /usr/local/puppet-dashboard
ll /usr/local/puppet-dashboard
修改显示的时间:
默认为UTC
vim /usr/local/puppet-dashboard/config/environment.rb
48 # config.time_zone = 'UTC'
config.time_zone = 'Beijing'
设置日志的级别
#vim /usr/local/puppet-dashboard/config/environments/production.rb
config.log_level = :debug
启动puppet dashboard
运行任务
rake RAILS_ENV=production jobs:work
rake RAILS_ENV=production jobs:work &
env RAILS_ENV=production script/delayed_job -p dashboard -n 4 -m start
后台启动:
[puppet@svr03 puppet-dashboard]$ /usr/local/puppet-dashboard/script/server -e production &
NOTE:现在一般浏览器上输入:会出现图形界面
source /etc/profile
chmod 777 -R /usr/local/puppet-dashboard/log/
vim /etc/puppet/puppet.conf
[main]
reports = http, store
[agent]
#autosign = true
#[master]
# #外部节点分类器
# node_terminus = exec
# external_nodes = /usr/bin/env PUPPET_DASHBOARD_URL= /usr/local/puppet-dashboard/bin/external_node #自动添加nodes
# reports = http, store
/etc/init.d/puppetmasterd restart
6)Puppet dashboard 与Apache整合
# yum -y install httpd-devel
gem install passenger
gem list | grep passenger
passenger-install-apache2-module
LoadModule passenger_module /usr/local/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.19/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.19
PassengerRuby /usr/local/ruby/bin/ruby
vim /etc/httpd/conf/httpd.conf
#NameVirtualHost *:80
LoadModule passenger_module /usr/local/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.19/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.19
PassengerRuby /usr/local/ruby/bin/ruby
ServerName
DocumentRoot /usr/local/puppet-dashboard/public/
ErrorLog /var/log/httpd/dashboard_error.log
CustomLog /var/log/httpd/dashboard_access.log combined
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
/etc/init.d/httpd restart
http:///
err:
apache 403错误 You don't have permission to access on this server.
vim httpd.conf
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
开机启动:
echo "/etc/init.d/puppetmasterd start" >> /etc/rc.local
7)性能优化:
当master管理了大量主机,Puppet Dashboard的性能会下降,优化:
定期删除reports这张表的数据,比喻保持一周或者15天。
运行
cd /usr/local/puppet-dashboard/
rake RAILS_ENV=production reports:prune upto=1 unit=mon
或者执行运行
rake reports:prune
根据提示来选择删除1小时前、1天前或者一周前的记录,需要在puppet_dashboard目录。
默认/var/lib/puppet/reports目录下存放着Puppet Dashboard生产环境(production)的所有reports
这里提供了许多error的解决办法。
err: Could not retrieve catalog from remote server: Error 400 on SERVER: unable to open database file
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
Puppet Server:
chown puppet.puppet -R /var/lib/puppet
错误:
http://blog.chinaunix.net/uid-11915773-id-3059902.html
http://gdcsy.blog.163.com/blog/static/127343609201272971127878/
创建Imos模块目录
[root@kandan manifests]# mkdir -pv /etc/puppet/modules/imos/{files,manifests,template}
[root@kandan manifests]# pwd
/etc/puppet/modules/imos/manifests
[root@kandan manifests]# cat init.pp file.pp config.pp
class imos {
include imos::file,imos::config #imos类包含的两部分
}
class imos::file{
file {
"/usr/local/src/imos/": #标题
ensure => directory, #目录是否存在,如果没有新建目录
checksum => mtime, #使用mtime检测方法(目录的创建时间)
}
}
class imos::config {
file {
"/usr/local/src/imos/Imos_PTU.sh":
group => root,
owner => root,
mode => 777,
source => "puppet:///modules/imos/Imos_PTU.sh"; #拷贝文件覆盖当前文件
"/usr/local/src/imos/ftp.sh":
group => root,
owner => root,
mode => 777,
source => "puppet:///modules/imos/ftp.sh",
}
exec { #设置外部执行的命令
"Imos_PTU":
command => "/bin/sh /usr/local/src/imos/Imos_PTU.sh", #需要执行的命令
subscribe => File["/usr/local/src/imos/Imos_PTU.sh"], #触发执行的前提条件
refreshonly => true #开启触发功能
}
exec {
"Log":
command => "/bin/sh /usr/local/src/imos/ftp.sh",
subscribe => Exec["Imos_PTU"],
refreshonly => true
}
}
路径:
[root@kandan files]# pwd
/etc/puppet/modules/imos/files
模版文件:ftp.sh Imos_PTU.sh
[root@kandan files]# ls
ftp.sh Imos_PTU.sh
Imos_PTU.sh模版文件内容:
1.设置所需变量
2.创建imos账户
3.安装imos程序
4.启动imos_ptu服务
[root@kandan files]# cat Imos_PTU.sh
#!/bin/bash
date=`date +%Y%m%d`
addr=`ifconfig eth0 | grep 'Bcast'| awk '{print $2}' | awk -F':' '{print $2}'`
localhost=`hostname`
localhosts="$localhost-$addr"
log=/tmp/PTU-$addr-$date.log
imosdir=/home/imosadmin
echo > $log ;
echo "IMOS-PTU-install : PUPPET" >> $log ;
echo "PTU-Server is $localhost, IP:$addr" >> $log ;
echo "Software install :" >> $log ;
#/usr/bin/yum -y install gnutls* libxml2* libpcap* >> $log
#echo "--------------------------------------------- " >> $log
#create imos user:
#user1=imosadmin
#user2=imosrd
#echo "created $user1:" >> $log
#/usr/sbin/useradd -m $user1 ; echo 'OfTfAEFZ19h' | passwd --stdin $user1 >> $log
#echo "--------------------------------------------- " >> $log ;
#echo "created $user2:" >> $log;
#/usr/sbin/useradd -m $user2 ; echo '1APOpw#hr@2#' | passwd --stdin $user2 >> $log
#echo "--------------------------------------------- " >> $log ;
#Imos_ptu install :
#Imos_ptu download
echo "Imos_PTU download:" >> $log ;
cd /usr/local/src/imos/
IP=IPaddress:8000
DIR=imos
imos_ptu=imos_ptu-V1R2B004SP004D001.tar.gz
#imos_ptu=imos_ptu-V1R2B004.tar.gz
/usr/bin/wget
/bin/sleep 2 ;
ptu=`/bin/ls $imos_ptu |awk -F "." '{print $1}'`
echo "imos_ptu soft is $imos_ptu" >> $log ;
echo "ptu version is $ptu" >> $log ;
echo " Rsync Message: " >> $log
/bin/ls -l /usr/local/src/imos/ >> $log ;
echo "--------------------------------------------- " >> $log ;
cd $imosdir
echo "imosdir is $imosdir" >> $log ;
old_imos=`/bin/ls -l imos_ptu | awk '{print $11}'`
echo "old_imos is $old_imos" >> $log ;
echo "--------------------------------------------- " >> $log ;
/bin/rm -rf $imosdir/imos_ptu
echo "Display PTU Process:" >> $log ;
/bin/ps -ef | grep imos_ptu | grep -v grep >> $log
echo " " >> $log ;
#echo "imosdir is $imosdir" >> $log ;
ls -l $imosdir/imos_ptu >> $log
echo "--------------------------------------------- " >> $log ;
# Imos_ptu install
echo "Imos_PTU Install :" >> $log ;
echo "--------------------- " >> $log ;
cd /usr/local/src/imos/
/bin/tar -zxvf $imos_ptu -C $imosdir >> $log
cd $imosdir/$ptu
echo "--------------------------------------------- " >> $log ;
./configure >> $log
make && make install >> $log
echo "--------------------------------------------- " >> $log ;
echo "DIR:" >> $log;
pwd >> $log ;
echo "--------------------------------------------- " >> $log ;
cd $imosdir ;
echo "created Imos_PTU Line :" >> $log ;
echo "--------------------------------------------- " >> $log ;
/bin/ln -s $ptu imos_ptu
/bin/chown -Rf imosadmin:imosadmin $imosdir/*
/bin/ls -l imos_ptu >> $log
echo "--------------------------------------------- " >> $log ;
#copy old_config file:
echo "copy old_config file: " >> $log;
echo " " >> $log
cd $old_imos/bin/
echo "config file path: " >> $log;
#\cp -rf ./bak_rpt $imosdir/$ptu/bin >> $log;
\cp -rf ./config $imosdir/$ptu/bin >> $log;
/bin/chown -Rf imosadmin:imosadmin $imosdir
echo "config Dir:" >> $log;
echo "Old_ptu config :" >> $log;
/bin/ls -l $imosdir/$old_imos/bin/config >> $log;
echo "" >> $log
echo "New_ptu config :" >> $log ;
/bin/ls -l $imosdir/$ptu/bin/config >> $log;
echo "--------------------------------------------- " >> $log ;
# Imos_ptu Server
echo "Start Imos_PTU:" >> $log ;
/etc/init.d/imos_ptu restart >> $log ;
echo "--------------------------------------------- " >> $log ;
echo "Display Progress!" >> $log ;
sleep 5;
/bin/ps -ef | grep imos_ptu | grep -v grep >> $log ;
#imos_status
echo "--------------------------------------------- " >> $log ;
Pro_name="imos_ptu"
Path="/home/imosadmin/$Pro_name"
Pro_num=8
imos_pro_num=$(/sbin/pidof "$Path"/bin/"$Pro_name"|wc -w)
imos_now_time=$(date "+%Y%m%d%H%M%S")
imos_status_log="/home/imosadmin/log/imos_status.log"
if [ "$imos_pro_num" -ne "$Pro_num" ]
then
echo "[ "$imos_now_time" ]:"$Pro_name" wrong with $imos_pro_num progresses">>"$imos_status_log"
killall -9 "$Pro_name"
/etc/init.d/"$Pro_name" start
else
echo "[ "$imos_now_time" ]:"$Pro_name" OK with $imos_pro_num progresses">>"$imos_status_log"
fi
将imos_ptu安装日志发送给puppet-server
[root@kandan files]# cat ftp.sh
#!/bin/bash
date=`date +%Y%m%d`
addr=`ifconfig eth0 | grep 'Bcast'| awk '{print $2}' | awk -F':' '{print $2}'`
log=/tmp/PTU-$addr-$date.log
ip=IPADDRESS
user=puppet
passwd='#EDC4rfv!@#$'
file=`ls $log| awk -F '/' '{print $3}'`
dir=/tmp
ftp -v -n $ip $port << END
user $user $passwd
binary
hash
cd imos
lcd $dir
prompt
mput $file
bye
END
服务器端查看日志情况
路径:
[root@kandan imos]# pwd
/var/ftp/puppet/imos
日志格式:
[root@kandan imos]# ls
PTU-20130320.log
[root@kandan imos]# more PTU-20130320.log
IMOS-PTU-install : PUPPET
PTU-Server is BeiJing-FengTaiNan-PTU, IP:
Soft install :
Imos_PTU download :
imos_ptu soft is imos_ptu-V1R2B004SP004D001.tar.gz
ptu version is imos_ptu-V1R2B004SP004D001
Rync :
total 488
-rwxrwxrwx 1 root root 4423 Mar 20 10:21 Imos_PTU.sh
-rwxrwxrwx 1 root root 357 Mar 20 10:21 ftp.sh
-rw-r--r-- 1 root root 482199 Mar 20 10:02 imos_ptu-V1R2B004SP004D001.tar.gz
---------------------------------------------
imosdir is /home/imosadmin
old_imos is imos_ptu-V1R2B004
---------------------------------------------
Display PTU line:
root 12995 1 0 10:18 ? 00:00:00 /home/imosadmin/imos_ptu-V1R2B004/bin/imos_ptu
root 12996 1 0 10:18 ? 00:00:00 /home/imosadmin/imos_ptu-V1R2B004/bin/imos_ptu
---------------------------------------------
Imos_PTU Install :
---------------------
imos_ptu-V1R2B004SP004D001/
imos_ptu-V1R2B004SP004D001/bin/
imos_ptu-V1R2B004SP004D001/bin/config/
imos_ptu-V1R2B004SP004D001/README
---------------------------------------------
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
make[2]: Leaving directory `/home/imosadmin/imos_ptu-V1R2B004SP004D001'
make[1]: Leaving directory `/home/imosadmin/imos_ptu-V1R2B004SP004D001'
---------------------------------------------
Install Dir:
/home/imosadmin/imos_ptu-V1R2B004SP004D001
---------------------------------------------
Cearted Imos_PTU:
---------------------------------------------
lrwxrwxrwx 1 imosadmin imosadmin 26 Mar 20 10:21 imos_ptu -> imos_ptu-V1R2B004SP004D001
---------------------------------------------
copy old_config file:
config file path:
config status:
Old_ptu config :
total 300
drwxr-xr-x 2 imosadmin imosadmin 4096 Mar 20 10:18 20120903
-rwxr--r-- 1 imosadmin imosadmin 4650 Mar 20 10:18 PTU-ACSM-PATTERN.xml
-rwxr-xr-x 1 imosadmin imosadmin 398 Mar 20 10:18 PTU-DEFAULT-CFG.xml
New_ptu config :
total 300
drwxr-xr-x 2 imosadmin imosadmin 4096 Mar 20 10:21 20120903
-rwxr--r-- 1 imosadmin imosadmin 4650 Mar 20 10:21 PTU-ACSM-PATTERN.xml
-rwxr--r-- 1 imosadmin imosadmin 398 Mar 20 10:21 PTU-DEFAULT-CFG.xml
---------------------------------------------
Start Imos_PTU:
Stoping imos_ptu ...
UMP init...
UMP init finished, start to create PPL process...
UMP create PPL process finished, start to register commond and PPL...
UMP register finished, start to load config file...
IMOS startup success
Starting imos_ptu success
Install imos_ptu_shell
---------------------------------------------
Display !
root 30669 1 0 10:21 ? 00:00:00 /home/imosadmin/imos_ptu-V1R2B004SP004D001/bin/imos_ptu
root 30670 1 0 10:21 ? 00:00:00 /home/imosadmin/imos_ptu-V1R2B004SP004D001/bin/imos_ptu
root 30671 1 0 10:21 ? 00:00:00 /home/imosadmin/imos_ptu-V1R2B004SP004D001/bin/imos_ptu
root 30673 1 0 10:21 ? 00:00:00 /home/imosadmin/imos_ptu-V1R2B004SP004D001/bin/imos_ptu
root 30674 1 80 10:21 ? 00:00:04 /home/imosadmin/imos_ptu-V1R2B004SP004D001/bin/imos_ptu
root 30675 1 0 10:21 ? 00:00:00 /home/imosadmin/imos_ptu-V1R2B004SP004D001/bin/imos_ptu
root 30676 1 0 10:21 ? 00:00:00 /home/imosadmin/imos_ptu-V1R2B004SP004D001/bin/imos_ptu
root 30677 1 0 10:21 ? 00:00:00