WAE 7.2.1 install steps

参考文章:
Cisco WAE 7.2.1 Installation Guide

Notes:
安装supervisor报错, 可以参考该文章解决:yum error

“Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again”

Step0: Java/python

我使用的是Centos 7完整安装, 默认自带的python是2.7.5, 所以就没有更新。
建议不要使用Centos 8,使用的人少, 出现报错也不好排除。

  • Make sure Java-8 is installed on the system and JAVA_HOME environment variable is pointing to jdk-1.8.
  • Make sure that requests.auth python package is installed for the BW-OPT application to function in WAE.
[root@localhost opt]# yum -y install java
[root@localhost opt]# java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)

[root@localhost opt]# java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)

Step1:install supervisor

[root@localhost ~]# sudo yum install -y epel-release
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# vi epel.repo 
[root@localhost yum.repos.d]# vi epel-testing.repo 
[root@localhost yum.repos.d]# 
[root@localhost yum.repos.d]# sudo yum install -y supervisor

参考官方install guide修改supervisor的配置文件。

Step2:install WAE

root@localhost ~]# cd /opt/
[root@localhost opt]# ls
rh  supervisor  WAE-Linux-v7.2.1.signed.bin
[root@localhost opt]# ./WAE-Linux-v7.2.1.signed.bin 
Unpacking...
Verifying signature...
Downloading CA certificate from http://www.cisco.com/security/pki/certs/crcam2.cer ...
Successfully downloaded and verified crcam2.cer.
Downloading SubCA certificate from http://www.cisco.com/security/pki/certs/innerspace.cer ...
Successfully downloaded and verified innerspace.cer.
Verify CMD1: openssl verify -CAfile crcam2.cer innerspace.cer
Verify CMD2: openssl verify -CAfile crcam2.cer -untrusted innerspace.cer WAE-CCO_RELEASE.cer
Successfully verified root, subca and end-entity certificate chain.
Successfully fetched a public key from WAE-CCO_RELEASE.cer.
Successfully verified the signature of wae-linux-v7.2.1.bin using WAE-CCO_RELEASE.cer
Cleaning up ...
[root@localhost opt]# rm -rf WAE-Linux-v7.2.1.signed.bin 
[root@localhost opt]# chmod 777 wae-linux-v7.2.1.bin 
[root@localhost opt]# ./wae-linux-v7.2.1.bin wae721
Checking for dependencies..
Installing wae into 'wae721'
Extracting files to 'wae721' ... 
Installation Complete.

To set up a WAE run directory, execute

  source wae721/waerc
  wae-setup <run-dir>

[root@localhost opt]# ls
rh  supervisor  wae721  wae-linux-v7.2.1.bin
[root@localhost opt]# rm -rf wae-linux-v7.2.1.bin 
[root@localhost opt]# cd wae721/
[root@localhost wae721]# ls
bin  doc  etc  lib  packages  VERSION  waerc 
[root@localhost wae721]# source waerc 
[root@localhost opt]# vi /root/.bash_profile 
[root@localhost opt]# wae-setup wae721-run
WARNING: Available disk space: 44GB, Minimum required: 50GB
WARNING: Available memory: 15GB, Minimum required: 64GB
WARNING: Maximum number of open files (ulimit -n): 1024, Recommended: 1000000
WAE admin password: 
Confirm password: 
[root@localhost opt]# 
[root@localhost opt]# cd wae721-run/
[root@localhost wae721-run]# ls
data  logs  ncs-cdb  packages  README.wae  scripts  snapshot  state  wae.conf  waectl  wae.ini
[root@localhost wae721-run]# 
[root@localhost wae721-run]# 

Step3:Start and Stop Cisco WAE

[root@localhost ~]# sudo ln -sf /opt/wae721-run/wae.ini /etc/supervisord.d/
[root@localhost ~]# 
[root@localhost ~]# supervisorctl update
wae: added process group
[root@localhost ~]# supervisorctl start wae:*
wae:zookeeper: started
wae:waectl: started
wae:logrotate: started
wae:wae-monitor: started
wae:kafka: started
[root@localhost ~]# supervisorctl status
wae:kafka                        RUNNING   pid 56795, uptime 0:00:12
wae:logrotate                    RUNNING   pid 56793, uptime 0:00:12
wae:wae-monitor                  RUNNING   pid 56794, uptime 0:00:12
wae:waectl                       RUNNING   pid 56792, uptime 0:00:12
wae:zookeeper                    RUNNING   pid 56791, uptime 0:00:12
[root@localhost ~]# 
[root@localhost ~]# 
[root@localhost ~]# cd /opt/wae721-run/
[root@localhost wae721-run]# ls
data  logs  ncs-cdb  packages  README.wae  scripts  snapshot  state  wae.conf  waectl  wae.ini  work
[root@localhost wae721-run]# 
[root@localhost wae721-run]# 
[root@localhost wae721-run]# wae_cli

root connected from 10.140.0.46 using ssh on localhost.localdomain
root@wae> 
root@wae> switch cli
root@wae# 

Step4:WAE Web GUI

访问“https://x.x.x.x:8443”, 访问不了请将server的firewall关了或者放行8443接口。使用chrome无痕模式访问。

           

No comments

Comments feed for this article

Reply

Your email address will not be published. Required fields are marked *