#Enable Robot log access from browser
>sudo /opt/demo.sh init_robot
Access from browser http://{{robot_ip}}:88/logsStep 1: Run init_robot test to enable remote access to Robot through web browser
root@oom-rancher:~# ./oom/kubernetes/robot/demo-k8s.sh onap init_robot
Step 2: Find the mapping port:
root@oom-rancher:~# kubectl -n onap get service |grep robot
robot NodePort 10.43.136.36 <none> 88:30209/TCP 7h
Step 3: Access from browser with ANY k8s cluster node IP plus the above mapping port 30209, like:
http://10.12.5.200:30209/logs/
Check certificate
Code Block | ||||
---|---|---|---|---|
| ||||
root@dev-robot-robot-56bcbffb5d-jlvgj:~# cat verify_cert.sh
#!/bin/bash
for server in aaf-service.onap:8100 aai.onap:8443 deployment-handler.onap:8443 dmaap-bc.onap:8443 dmaap-dr-node.onap:8443 dmaap-dr-prov.onap:8443 vid.onap:8443 portal-app.onap:8443 sdc-fe.onap:9443 sdc-be.onap:8443 sdnc.onap:8443 clamp.onap:8443 pap.onap:8443
do
host=$(echo $server | cut -d ":" -f 1)
echo host:$host
echo | openssl s_client -showcerts -servername $host -connect $server 2>/dev/null | openssl x509 -inform pem -noout -text | grep -E "Not After|Not Before|Issuer:|Subject:"
done
|
Code Block | ||
---|---|---|
| ||
#!/bin/bash
for server in aaf-service.onap:8100 aai.onap:8443 appc.onap:8443 clamp-backend.onap:443 clamp-external.onap:443 clamp.onap:8443 config-binding-service.onap:10443 dcae-cloudify-manager.onap:443 deployment-handler.onap:8443 dmaap-bc.onap:8443 dmaap-dr-node.onap:8443 dmaap-dr-prov.onap:443 msb-eag.onap:443 msb-iag.onap:443 pap.onap:8443 portal-app.onap:8443 sdc-be.onap:8443 sdc-fe.onap:9443 sdc-wfd-fe.onap:8443 sdnc-portal.onap:8443 sdnc.onap:8443 vid.onap:8443 xdcae-ves-collector:8443
do
host=$(echo $server | cut -d ":" -f 1)
echo -n host:$host
echo | openssl s_client -showcerts -servername $host -connect $server 2>/dev/null | openssl x509 -inform pem -noout -text | grep -E "Not After"
done
exit
|