Cisco SCMS Collection Manager (CM) 安装详细步骤

Cisco SCMS Collection Manager 安装详细步骤如下:

1、在升级或安装CM软件前,需用CCO账号登录Cisco网站http://www.cisco.com/cgi-bin/tablebuild.pl/sccm下载CM相关软件包。将下载的文件组合成一个.tar文件。
  # cat cm_part1 cm_part2 >/usr/tmp/cm_full_package.tar
  解压包到临时目录
  # mkdir /usr/tmp/cm_install_temp
  # cd /usr/tmp/cm_install_temp
  # tar xvf ../cm_full_package.tar

2、安装前检查操作系统是否满足安装要求
-bash-3.00$ cd install-scripts/
-bash-3.00$ ls
check_prerequisites.sh  dbmig_21_250.sh   dbrename_25_300.sh  rpt-tmpl-scas-modifier.exe
check_syb.sh            dbmig_250_255.sh  install-cm.sh       set_shmmax.sh
-bash-3.00$ pwd
/usr/tmp/cm_install_temp/install-scripts
-bash-3.00$ ./check_prerequisites.sh
Check: Minimal CPU Speed: 800
         [Success] CPU Speed is sufficient: 3192MHz

Check: Minimal OS Version: RHEL3/4
         [Success] Found RHEL4, Checking minimal update level:
         [Success] Update level: 0

Check: Additional RPMS
         [Failed] Installed version is "compat-libstdc++-33-3.2.3-47.3"
         [Notice] If installed version is greater than expected, you may ignore this error

Check: Total memory
         [Success] Found 1034488 KB memory

Check: Max Shared memory
         [Success] Found 1073741824 bytes of shared memory

Check: Python in execution path
         [Success] Python found at /usr/bin/python

Check: 8096000K free on intended CM home dir:
         [Warning] No CM home directory given. Cannot verify there is enough free space to install CM

Check: 1024000K free on intended Sybase home dir:
         [Warning] No sybase home directory given. Cannot verify there is enough free space to install Sybase

Check: 15000000K free on intended Sybase Data dir:
         [Warning] No sybase Data directory given.
         [Notice] Only applicable if you intend on using Datadir installation method

Check: Locale set to en_US
         [Success] System Locale set to en_US
         [Success] Current Locale set to en_US

Check: Names for all NIC's
         [Success] IP Address 202.158.161.13 is resolvable through /etc/hosts
         [Success] IP Address 127.0.0.1 is resolvable through /etc/hosts

3、设置kernel.shmmax。通过修改/etc/sysctl.conf达到此目的。在该文件内添加以下一行
  kernel.shmmax = 1073741824
  这个更改在系统重新启动后生效。若不设置该参数,在安装Sybase数据库时会出现以下错误:
  [root@localhost sybase]# ./installsyb.sh --sybhome=/usr/sybhome --datadir=/usr/sybdata
  Starting Sybase install sequence
  testing dist file integrity...done
  Running platform-specific check file...found 33554432 bytes shared memory, need at least 512000000 bytes (put new value in /proc/sys/kernel/shmmax, and make permanent by setting 'kernel.shmmax' in /etc/sysctl.conf)
  Error - platform-specific check failed - exiting.

4、安装Sybase数据库。放在SYBASE目录下安装,不要在全局下安装,会出错,sybdata要提前建立sybhome不要建立。首先以root用户登录到系统,进入软件安装目录:
  [root@scecm sybase]# ls
  common.sh  config  installsyb.sh  Linux  syb_interfaces.sh
  [root@scecm sybase]# pwd
  /usr/tmp/cm_install_temp/sybase

  开始安装SYBASE
  [root@localhost sybase]# ./installsyb.sh --sybhome=/usr/sybhome --datadir=/usr/sybdata  Starting Sybase install sequence
  testing dist file integrity...done
  Running platform-specific check file...done
  Adding sybase user...done
  NOTE: if this installation aborts or fails, you may want
  to remove the sybase process/user before attempting again.  This
  can be done with the command:
                     pkill -9 -xU sybase; userdel -r sybase
     
  Extracting dist file to /usr/tmp/sybinstall29739...done
  Running Sybase installer - this will take a while...done
...
...
  在安装过程中提示设置保存SCE监控数据的数据库大小,即文件/usr/sybdata/apticotdata.dat的大小,这里设置为30G左右,保留近2月的数据
  Waiting for Sybase to come up... (0 of 60)
  Please enter SIZE in 2K blocks of file to be used for the "data[maximum is 41661909; minimum is 5242798]" device.
  NOTE - the actual size required will include a 1.05 overhead on the amount you specify.
  SIZE in 2K blocks: 15728394
  Do you want to input the values again? (yes/no): no
  Password correctly set.
...
...
  Skipping file configsyb.sh
  Skipping file sybase-etc-init-script
  /usr/tmp/cm_install_temp/sybase/config
  Done Sybase configuration sequence
  done
  cleaning up...done.
  至此Sybase数据库安装结束。

5、安装CM3.1.6
  [root@scecm install-scripts]# ls
  check_prerequisites.sh  dbmig_21_250.sh   dbrename_25_300.sh  rpt-tmpl-scas-modifier.exe
  check_syb.sh            dbmig_250_255.sh  install-cm.sh       set_shmmax.sh
  [root@scecm install-scripts]# pwd
  /usr/tmp/cm_install_temp/install-scripts
 
  检查Sybase数据库安装情况
  [root@scecm install-scripts]# ./check_syb.sh
  Sybase is properly installed and configured

  开始安装CM
  [root@localhost install-scripts]# ./install-cm.sh -d /usr/cm
  Adding/verifying user and group for SCMS-CM ...
  Populating scmscm home /usr/cm ...
  Populating scmscm home /usr/cm from  ../HomeCM.tgz ...
  ...
  ...
  Making symlinks in /etc/init.d and rc*.d  ...
  done
  Done installation.
  NOTE: The user name created for SCMS-CM is scmscm.  You may want to set a password for this account now.

6、设置账号scmscm密码
  [root@localhost install-scripts]# pas swd scmscm
  Changing password for user scmscm.
  New UNIX password:
  BAD PASSWORD: it does not contain enough DIFFERENT characters
  Retype new UNIX password:
  passwd: all authentication tokens updated successfully.

7、以scmscm账号登录设置系统时区
  -bash-3.00$ ls
  clumain.sh  cm  cm.jar  jselect-sce-tz.sh  p3rpc  update_vlinks.sh
  -bash-3.00$ pwd
  /usr/cm/cm/bin
  -bash-3.00$ ./jselect-sce-tz.sh --offset=480
                TIME_STAMP|              OFFSET_MIN|
  ------------------------+------------------------+
   2008-10-07 13:37:18.256|                     480|

8、起CM,查看工作状态,并可根据情况设置一些参数
  -bash-3.00$ ./p3rpc --set-user --username=scmscm --password=scmscm
  Command terminated successfully

  -bash-3.00$ ./cm start
  Starting CM:

  -bash-3.00$ cd setup/
  -bash-3.00$ ls
  alive.sh  common.sh  mbean.py  monitor  on-boot.py  RUN_0_cm  scmscm  STOP_1_cm  sybase  syb_interfaces.sh
  -bash-3.00$ ./alive.sh     //查看CM运行状态
  STATUS OK
  -bash-3.00$ ./on-boot.py    //查看当前的CM和Sybase startup状态
  sybase:  on
  cm:  on

  -bash-3.00$ cd scripts/
  -bash-3.00$ pwd
  /usr/cm/scripts
  -bash-3.00$ ls
  adapterconf.py  csvconf.sh  dbperiodic.py  droptable.sh   rdr-rate.py  sybback.sh
  common.sh       dbfree.sh   dbtables.sh    prunetable.sh  sceconf.sh   sybrestore.sh
  -bash-3.00$ ./dbfree.sh     //查看数据库使用情况
  Name                    % Data Free % Log Free
  ---------------------- ----------- ----------
  Database                        96      99
  -bash-3.00$ ./dbtables.sh   
  Executing query ...
                      name|               num_lines|                min_time|                max_time|
  ------------------------+------------------------+------------------------+------------------------+
                   RPT_SUR|                       0|                    null|                    null|
                   RPT_LUR|                  101270| 2008-10-03 10:49:11.486|  2008-10-05 18:45:33.69|
                  RPT_VLUR|                       0|                    null|                    null|
                   RPT_PUR|                   52030| 2008-10-03 10:49:11.503| 2008-10-05 18:45:38.676|
                    RPT_TR|                 8106260|  2008-10-03 10:49:10.84|  2008-10-05 18:47:10.82|
                 RPT_MALUR|                  274710|  2008-10-03 10:49:10.84| 2008-10-05 18:47:03.836|
                 RPT_MEDIA|                   10000| 2008-10-03 10:49:10.853|  2008-10-05 18:46:13.17|
          RPT_TOPS_PERIOD0|                   16335| 2008-10-03 11:00:00.003| 2008-10-07 13:00:00.183|
          RPT_TOPS_PERIOD1|                     660|  2008-10-04 00:00:00.02| 2008-10-07 00:00:00.163|

-bash-3.00$ ./sceconf.sh --op=list   //查看SCE
IP              Rate            Peak
------------    -----------     -----------
×.×.×.×          0.0             47.050785

Command terminated successfully

其它问题可以参考http://www.cnitblog.com/zty/archive/2008/10/03/49730.html

posted on 2008-10-07 15:58 梯玛 阅读(1547) 评论(1)  编辑 收藏 引用 所属分类: 网络知识

评论

# re: Cisco SCMS Collection Manager (CM) 安装详细步骤 2011-04-22 16:11 小庄

哥,急需帮助啊,研究了半个月sce,没弄好,求解惑。QQ737526616  回复  更多评论   

只有注册用户登录后才能发表评论。

导航

<2011年4月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

统计

常用链接

留言簿(1)

随笔分类

随笔档案

文章分类

搜索

最新评论

阅读排行榜

评论排行榜