华为网管iManager U2000是一个复杂又对系统要求很高的东东,举例,我要管理一个中型网络(500个网元吧),服务器最小配置要32G内存,400G硬盘,8核CPU。操作系统是SUSE 12-SP2,型号有ovf版本可以直接从vmware导入,否则装软件估计一天都搞不定……(也许有高手装的很快吧)。还需要客户端,必须是windows操作系统,我已经很久没用了……
几个东东记录一下,ovf虚拟机直接导入vmware后,假设已经配好了网络和linux的一些基本设置,按照操作手册进行了一些初始化操作。现在从600多页的操作手册里找一些稍微要记一下的东西写写。
1、查看U2000版本,下面”V200R017C60SPC200“ 就是我现在装的软件版本。
cfl-nms:/home/axing # cat /opt/oss/engr/install/etc/conf/MacroFileNW.properties
...
@{U2000Product_Client_VersionName}=iManager U2000 V200R017C60SPC200
...
2、查看ESN,这个是跟网卡有关的,申请license必须品,手册说可以使用ESN工具包,也可以通过网管自带的ESN工具查看。
# cd /opt/oss/server/platform/bin
# ./esn
ESN0: 4686C2DC3A08F2134514483E28725C07FEB58AA6
Press enter to exit.
在当前目录下会生成叫Esn.txt的文本,这个就是要发给华为工程师的东东。
3、加载license。拿到license后,上传到/opt/oss/server/etc/conf/license 目录下。要注意的是,如果有其他license,需要备份到其他目录。
用ossuser用户登录,或者root登录 su - ossuser。
把license文件拷贝到/export/home/ossuser 目录下,运行更新license命令:
$cd /export/home/ossuser/
$updateLicense -file LICIMANAGERU2000_V200R017_20190208DC2J60.dat
... 略过
Are you sure to update the license?(Y/N): y
License updated successfully.
4、检查sybase是否运行,关闭和启动
关闭数据库
cfl-nms:~ # su - dbuser
$cd /opt/sybase/OCS-15_0/bin/
$./isql -SDBSVR -Usa
Password:
1> shutdown SYB_BACKUP
2> go
Backup Server: 3.48.1.1: The Backup Server will go down immediately.
Terminating sessions.
1> shutdown
2> go
Server SHUTDOWN by request.
ASE is terminating this process.
CT-LIBRARY error:
ct_results(): network packet layer: internal net library error: Net-Library operation terminated due to disconnect
$ps -ef | grep sybase
dbuser 56525 51946 0 17:26 pts/0 00:00:00 grep --color=auto sybase
启动Sybase 使用dbuser用户
$ cd /opt/sybase/
$ ./SYBASE.sh
$ cd /opt/sybase/ASE-15_0/install
$ ./startserver -f ./RUN_DBSVR &
$ ./startserver -f ./RUN_DBSVR_back &
...
[1]+ Done ./startserver -f ./RUN_DBSVR
...
Logging Backup Server messages in file '/opt/sybase/ASE-15_0/install/DBSVR_back.log'
[1]+ Done ./startserver -f ./RUN_DBSVR_back
检查sybase是否运行 可以看到类似下面进程
$./showserver
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
0 S dbuser 63711 63710 0 80 0 - 5919 SyS_po 17:30 pts/0 00:00:00 /opt/sybase/ASE-15_0/bin/backupserver -SDBSVR_back -e/opt/sybase/ASE-15_0/install/DBSVR_back.log -N25 -C20 -M/opt/sybase/ASE-15_0/bin/sybmultbuf
0 S dbuser 59844 59247 4 80 0 - 2117092 - 17:28 ? 00:00:06 /opt/sybase/ASE-15_0/bin/dataserver -ONLINE:7,0,0x2005008d, 0x142cfb000, 0x1f883b000, 0x1159
0 S dbuser 59837 59247 4 80 0 - 2117092 - 17:28 ? 00:00:06 /opt/sybase/ASE-15_0/bin/dataserver -ONLINE:6,0,0x2005008d, 0x142cfb000, 0x1f883b000, 0x1159
0 S dbuser 59830 59247 5 80 0 - 2117092 - 17:28 ? 00:00:08 /opt/sybase/ASE-15_0/bin/dataserver -ONLINE:5,0,0x2005008d, 0x142cfb000, 0x1f883b000, 0x1159
...
查看Sybase数据库版本, 如下是15.7
$cd /opt/sybase/OCS-15_0/bin/
$./isql -SDBSVR -Usa
Password:
1> use master
2> go
1> select @@version
2> go
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Adaptive Server Enterprise/15.7/EBF 27353 SMP SP139 /P/x86_64/Enterprise Linux/
ase157sp138x/4041/64-bit/FBO/Tue Aug 8 05:53:20 2017
(1 row affected)
1>
更改sybase初始密码 ,初始密码都一样的 "Changeme_123", 尽快改掉。
1> sp_password "Changeme_123","New password"
2> go
Password correctly set.
(return status = 0)
1>
5、查看U2000进程以及启动关闭
查看U2000进程,以ossuser用户登录或root登录su,看到类似以下进程
cfl-nms:~ # su - ossuser
$deam_ps
If 'deam_ps' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf deam_ps
$daem_ps
ossuser 5887 1 2 17:05 ? 00:00:45 imapmrb
ossuser 5899 1 0 17:05 ? 00:00:03 imapeventmgr
ossuser 5951 1 1 17:05 ? 00:00:22 imapsysd -cmd start
ossuser 5955 1 0 17:05 ? 00:00:10 imapwatchdog -cmd start
ossuser 5960 1 4 17:05 ? 00:01:36 imap_sysmonitor -cmd start
ossuser 5966 1 12 17:05 ? 00:04:34 ResourceMonitor -cmd start
ossuser 6155 5955 0 17:05 ? 00:00:10 python /opt/oss/server/platform/lbin/script/checkfdnumber.pyc -DNFW=checkfdnumber 1016 60
webuser 6245 1 4 17:05 ? 00:01:34 /opt/oss/OSSJRE/jre_linux/bin/java -DNFW=tomcat -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=true -Dorg.apache.tomcat.util.http.Server
停止U2000进程
cd /opt/oss/server/platform/bin
$ ./stopnms.sh
启动U2000进程
cd /opt/oss/server/platform/bin
$ ./startnms.sh