|
1. TEAM0 的WATCHER的配置
1.1
- {
- "device": "team0",
- "mcast_rejoin": {
- "count": 1
- },
- "notify_peers": {
- "count": 1
- },
- "ports": {
- "ens38": {
- "link_watch": {
- "name": "arp_ping",
- "interval": 10,
- "missed_max": 10,
- "source_host": "172.31.118.105",
- "target_host": "172.31.118.104"
- }
- },
- "ens39": {
- "link_watch": {
- "name": "arp_ping",
- "interval": 10,
- "missed_max": 10,
- "source_host": "172.31.118.105",
- "target_host": "172.31.118.104"
- }
- }
- },
- "runner": {
- "name": "activebackup"
- }
- }
复制代码
2. RE 用在动态shell脚本中:11/conclusion.list:
- 192.168.0.103
- 192.168.0.104
- 192.168.0.105
复制代码- #!/bin/sh
- sub_1() {
- ping -q -n -c 10 -W 1 -i 0.01 -w 1 192.168.0.$1 >/dev/null 2>&1
- if [ $? -eq 0 ]
- then
- v_nmap=$(nmap -P0 -p 22 192.168.0.$1 | grep open | tr -d '[:blank:]')
- if [ ! -z $v_nmap ]
- then
- echo 192.168.0.$1 >> 11/conclusion.online
- fi
- fi
- }
- rm -f 11/conclusion.online
- for i in `seq 1 254`
- do
- sub_1 $i &
- done
- wait
- echo "OK:"
- sed 's/$/$/g' 11/conclusion.online > 11/conclusion.online2
- grep -f 11/conclusion.online2 11/conclusion.list
- sed 's/$/$/g' 11/conclusion.list > 11/conclusion.list2
- echo "STANGE: "
- grep -v -f 11/conclusion.list2 11/conclusion.online
- echo "NOTONLINE:"
- grep -v -f 11/conclusion.online2 11/conclusion.list
复制代码
3. CRS_STAT:- [root@server4 ~]# crs_stat -t
- Name Type Target State Host
- ------------------------------------------------------------
- ora.DATA.dg ora....up.type ONLINE ONLINE server4
- ora....ER.lsnr ora....er.type ONLINE ONLINE server4
- ora....N1.lsnr ora....er.type ONLINE ONLINE server5
- ora....N2.lsnr ora....er.type ONLINE ONLINE server5
- ora....N3.lsnr ora....er.type ONLINE ONLINE server4
- ora.MGMTLSNR ora....nr.type ONLINE ONLINE server4
- ora.asm ora.asm.type ONLINE ONLINE server4
- ora.cvu ora.cvu.type ONLINE ONLINE server4
- ora.mgmtdb ora....db.type ONLINE ONLINE server4
- ora....network ora....rk.type ONLINE ONLINE server4
- ora.oc4j ora.oc4j.type ONLINE ONLINE server5
- ora.ons ora.ons.type ONLINE ONLINE server4
- ora.scan1.vip ora....ip.type ONLINE ONLINE server5
- ora.scan2.vip ora....ip.type ONLINE ONLINE server5
- ora.scan3.vip ora....ip.type ONLINE ONLINE server4
- ora....SM1.asm application ONLINE ONLINE server4
- ora....R4.lsnr application ONLINE ONLINE server4
- ora....er4.ons application ONLINE ONLINE server4
- ora....er4.vip ora....t1.type ONLINE ONLINE server4
- ora....SM2.asm application ONLINE ONLINE server5
- ora....R5.lsnr application ONLINE ONLINE server5
- ora....er5.ons application ONLINE ONLINE server5
- ora....er5.vip ora....t1.type ONLINE ONLINE server5
复制代码
|
|