Chinaunix首页 | 论坛 | 博客
  • 博客访问: 395322
  • 博文数量: 74
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 695
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-21 17:34
文章分类
文章存档

2011年(1)

2010年(1)

2009年(72)

我的朋友

分类: LINUX

2009-07-09 09:49:32


RHL Linux 5 安装 PCNS for APC

Data: 2009-07-07

目标:Use PCSN on Linux

环境:
APC  :SMART-5000
OS : RHEL ES5  x86
管理卡 :APC Management Network Card 【AP9619】
附件软件:PowerChute Network Shutdown v2.2.3 for Linux.tar.gz
JAVA_DIR=/opt/jre150_13/ 『以后修改』

备注:
Administrator Authentication Phrase: admin user phrase(The default is。 )

===============================================================================

【确认文件:要安装的文件在当前目录中】

D:\share>dir
 驱动器 D 中的卷是 Work
 卷的序列号是 6273-236F

 D:\share 的目录

2009/07/07  19:38   

          .
2009/07/07  19:38   
          ..
2009/07/07  19:18   
          be
2009/07/07  19:38   
          doc_manual
2009/05/15  14:04        27,338,814 jre150_13_linux.tar.gz
2009/05/15  14:04        28,854,994 PowerChute Network Shutdown v2.2.3 for Linux
.tar.gz

               2 个文件     56,193,808 字节
               4 个目录  6,464,155,648 可用字节


【上传文件:ftp PowerChute Network Shutdown v2.2.3 for Linux.tar.gz 文档到 /home/necadmin/目录中】

D:\share>ftp 172.20.102.27
连接到 172.20.102.27。
220 (vsFTPd 2.0.5)
用户(172.20.102.27:(none)): necadmin
331 Please specify the password.
密码:
230 Login successful.
ftp> pwd
257 "/home/necadmin"
ftp> bi 【注意二进制传输,否则文件无法识别】
200 Switching to Binary mode.
ftp> mput Po* 【可以使用通配符】
mput PowerChute Network Shutdown v2.2.3 for Linux.tar.gz? y
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 File receive OK.
ftp: 发送 28854994 字节,用时 2.50秒 11560.49千字节/秒。
ftp> bye
221 Goodbye.

【解压包:在172.20.102.27的/home/necadmin/apctemp 目录中】

[root@kbtacn07 necadmin]# mkdir apctemp
[root@kbtacn07 necadmin]# cp PowerChute\ Network\ Shutdown\ v2.2.3\ for\ Linux.tar.gz apctemp/.
[root@kbtacn07 necadmin]# cd apctemp/
[root@kbtacn07 apctemp]# ls
PowerChute Network Shutdown v2.2.3 for Linux.tar.gz
[root@kbtacn07 apctemp]# tar -vzxf PowerChute\ Network\ Shutdown\ v2.2.3\ for\ Linux.tar.gz
install.htm
install.sh
jre150_13_linux.tar.gz
pcns223.tar.gz
relnotes.htm
silentInstall.sample
[root@kbtacn07 apctemp]#

【 安装文件:执行/home/necadmin/apctemp/目录下执行 ./install.sh】

[root@kbtacn07 apctemp]# ./install.sh
------------------------------------------------------------------
     PowerChute Network Shutdown v.2.2.3 Installation Script
     Copyright American Power Conversion Corporation. 2007
------------------------------------------------------------------

OS=Linux

Initializing ...

Please enter the PCNS instance number [1|2|3] or press enter to use default value of 1:

[root@kbtacn07 apctemp]# ./install.sh
------------------------------------------------------------------
     PowerChute Network Shutdown v.2.2.3 Installation Script
     Copyright American Power Conversion Corporation. 2007
------------------------------------------------------------------

OS=Linux

Initializing ...

Please enter the PCNS instance number [1|2|3] or press enter to use default value of 1:
1
1 PCNS instance(s) will be installed.

Please enter the installation directory or press enter to install to the default directory (/opt/APC/PowerChute): 【Enter】


Are you sure you want to install PCNS to /opt/APC/PowerChute [Yes|No]?
y
Creating /opt/APC directory ...
PCNS will be installed to /opt/APC/PowerChute
Copying the installation files ...
Extracting PCNS files ...
PCNS is extracted to /opt/APC/PowerChute

Please enter java directory if you want to use your system java (example:/usr/local/bin/jre/jre150_13) or press enter to install the bundled Java:
/opt/jre150_13 【注意jre环境已经安装完成,可以参考Java 安装实例】

Are you sure java path =/opt/jre150_13 [Yes|No]?
y

java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05)
Java HotSpot(TM) Server VM (build 1.5.0_13-b05, mixed mode)

JAVA_DIR=/opt/jre150_13

Configuring startup files ...
Startup script=/etc/rc.d/init.d/PowerChute
Updating Linux symbolic link ...
Configuring uninstall script ...

Completed.
Please run the PCNSConfig.sh script located within the PCNS installation directory to complete the installation.

[root@kbtacn07 apctemp]#


【配置文件:进入/opt/APC/PowerChute/group1中执行PCNSConfig.sh 】

[root@kbtacn07 /]# cd /opt/APC/PowerChute/group1
[root@kbtacn07 group1]# ./PCNSConfig.sh

--------------------------------------------------
PowerChute Network Shutdown Configuration Utility
--------------------------------------------------

Press Ctrl + C at anytime to abort.

[1]: 192.168.0.27
[2]: 172.20.102.27

Please select the local host IP address to register [ 1 - 2 ]: 2

Please enter the subnet mask of the local host IP address to register or just press enter key to use default subnet mask [255.255.0.0]: 255.255.255.0

Configuring PowerChute Network Shutdown ...

[1]: Configure for a single APC UPS device
[2]: Configure for a parallel APC Silcon UPS/Smart-UPS VT system
[3]: Configure for multiple APC Smart-UPS devices
[4]: Configure for multiple APC Symmetra devices

Please select the appropriate configuration type (1) [ 1 - 4 ]: 1

Management Card IP: 172.20.102.251
Management Card Port # (80): 80
Administrator User Name: apc
Administrator Password:         
Authentication Phrase:         

Setting Summary:

Management Card IP: 172.20.102.251
Management Card Port #: 80
Administrator User Name: apc
Administrator Password: [ MASKED ]
Authentication Phrase: [ MASKED ]

Do you wish to register these settings [ Yes | No | Abort ]? y

Registering PowerChute Network Shutdown with the management card ...
PowerChute Network Shutdown registration completed successfully.

Do you wish to start the PowerChute Network Shutdown service [ Yes | No ]? y
PowerChute Network Shutdown service started.

Configuration completed.

[root@kbtacn07 group1]#


【确认PowerChute服务启动】

[root@kbtacn07 /]# ./etc/rc.d/init.d/PowerChute
Usage ./etc/rc.d/init.d/PowerChute [start|stop|status]
[root@kbtacn07 /]# ./etc/rc.d/init.d/PowerChute status
PowerChute is running ...
[root@kbtacn07 /]# ./etc/rc.d/init.d/PowerChute stop
Killing PowerChute Network Shutdown Group #1. PID= 6472
Done.

[root@kbtacn07 /]# ./etc/rc.d/init.d/PowerChute start

PowerChute Network Shutdown, v2.2.3: Copyright 2007, American Power Conversion
Startup completed.

[root@kbtacn07 /]#


阅读(1966) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~