==========
Pre checks ::
===========
cp /config/gtm/wideip.conf /var/tmp/wideip.conf.bak - makes a backup of the wideip.conf ;The file will overwritten each time the command is executed
who
uptime
b global show
b memory show | grep Tot
bigstart status
b version show | grep -A2 Package
b interface -j show
b self show
tail -100 /var/log/gtm
tail -100 /var/log/messages
netstat -rn
gtmparse
top -cn 1
ls -la /config/gtm/server.crt
cat /var/log/gtm | grep '011ae020:5:' | sort -k 9 -u
wc -l /config/gtm/wideip.conf
wc -l /config/gtm/topology.inc
wc -l /config/gtm/region.user
more /var/log/httpd/ssl_access_log | tail -f
diff /config/gtm/wideip.conf /var/tmp/wideip.conf.bak | more
1.) login in bash prompt
2.) type in tmsh
Create New Host
create /gtm server NAME address {ip add} data-centre NAME host-type TYPE virtual-server add { NAME-VS {ip add :port} }
Modify existing HOST
modify gtm server NAME virtual-servers add/delete { ip-add :port }
Example
modify /gtm server H_Bhushan virtual-servers add/delete {10.10.10.10:80}
To check the config and current status of server
list /gtm server H_Bhushan
show /gtm server H_Bhushan
Example :- Create WIP with topology record
* loing to cmd line
* create server
* Create Pool
* Create Toplogy Record
* Create WIDE IP
1.) Login to cmd line
2.) type in tmsh
3.) Creation of Servers
modify gtm server ltm-101 virtual-servers add { 14.1.1.1:23060 { name V_ORACLE-DBaaS_23060_VIP15 } }
modify gtm server ltm-101 virtual-servers add { 14.1.1.2:23061 { name V_ORACLE-DBaaS_23061_VIP15 } }
modify gtm server ltm-101 virtual-servers add { 14.1.1.3:23060 { name V_ORACLE-DBaaS_23060_VIP10 } }
modify gtm server ltm-101 virtual-servers add { 14.1.1.4:23061 { name V_ORACLE-DBaaS_23061_VIP10 } }
4.) Creation of GTM pool
create gtm pool P_Security-AMER load-balancing-mode round-robin fallback-mode none monitor tcp members add { 14.1.1.1:23060 14.1.1.2:23061 14.1.1.3:23060 14.1.1.4:23061}
create gtm pool P_Security-APAC load-balancing-mode round-robin fallback-mode none monitor tcp members add { 14.1.1.1:23060 14.1.1.2:23061 14.1.1.3:23060 14.1.1.4:23061}
create gtm pool P_Security-EMEA load-balancing-mode round-robin fallback-mode none monitor tcp members add { 14.1.1.1:23060 14.1.1.2:23061 14.1.1.3:23060 14.1.1.4:23061}
create gtm pool P_Security-SWISS load-balancing-mode round-robin fallback-mode none monitor tcp members add {14.1.1.1:23060 14.1.1.2:23061 14.1.1.3:23060 14.1.1.4:23061}
5)create topology record
create gtm topology server: pool P_ORACLE-DBaaS_AMER ldns: region P_Security-AMER score 100
create gtm topology server: pool P_ORACLE-DBaaS_APAC ldns: region P_Security-APAC score 100
create gtm topology server: pool P_ORACLE-DBaaS_EMEA ldns: region P_Security-EMEA score 100
create gtm topology server: pool P_ORACLE-DBaaS_SWISS ldns: region P_Security-SWISS score 100
3) create WIDEIP global-security.org.net
list /gtm widip global-security.org.net
show /gtm widip global-security.org.net
create gtm wideip global-security.org.net pool_lbmode topology ipv6-no-error-response enabled pools add { P_Security-AMER P_Security_APAC P_Security_EMEA P_Security_SWISS }
list /gtm widip global-security.org.net
show /gtm widip global-security.org.net
Example
* Modify Existing server VIP
* Create the Pool and Place the LB config in Global Availability Mode from Order 0 to 2 ,
* Create WIP and call the pool under WIP
1)modify /gtm server
show /gtm server H_SERVER1
show /gtm server H_SERVER2
show /gtm server H_SERVER3
list /gtm server H_SERVER1
list /gtm server H_SERVER2
list /gtm server H_SERVER3
modify /gtm server H_SERVER1 virtual-servers add { 151.1.1.1:80 { name H_LAB_80_H_SERVER1 } }
modify /gtm server H_SERVER2 virtual-servers add { 151.1.1.2:80 { name H_LAB__80_H_SERVER2 } }
modify /gtm server H_SERVER3 virtual-servers add { 151.1.1.3:80 { name H_LAB__80_H_SERVER3 } }
show /gtm server H_SERVER1
show /gtm server H_SERVER2
show /gtm server H_SERVER3
list /gtm server H_SERVER1
list /gtm server H_SERVER2
list /gtm server H_SERVER3
2) Create New POOL and add below member
show /gtm pool P_LAB
list /gtm pool P_LAB
create gtm pool P_LAB fallback-mode none load-balancing-mode global-availability monitor gateway_icmp_static members add { 151.1.1.1:80 {order 0} 151.1.1.2:80 {order 1} 151.1.1.3:80 {order 2} }
show /gtm pool P_LAB
list /gtm pool P_LAB
3) create WIDEIP security-lab.net
list /gtm widip security-lab.net
show /gtm widip security-lab.net
create gtm wideip security-lab.net ipv6-no-error-response enabled pools add { P_LAB }
list /gtm widip security-lab.net
Example :- Create WIP with topology record
* loing to cmd line
* create server
* Create Pool
* Create Toplogy Record
* Create WIDE IP
1.) Login to cmd line
2.) type in tmsh
3.) Creation of Servers
modify gtm server ltm-101 virtual-servers add { 14.1.1.1:23060 { name V_ORACLE-DBaaS_23060_VIP15 } }
modify gtm server ltm-101 virtual-servers add { 14.1.1.2:23061 { name V_ORACLE-DBaaS_23061_VIP15 } }
modify gtm server ltm-101 virtual-servers add { 14.1.1.3:23060 { name V_ORACLE-DBaaS_23060_VIP10 } }
modify gtm server ltm-101 virtual-servers add { 14.1.1.4:23061 { name V_ORACLE-DBaaS_23061_VIP10 } }
4.) Creation of GTM pool
create gtm pool P_Security-AMER load-balancing-mode round-robin fallback-mode none monitor tcp members add { 14.1.1.1:23060 14.1.1.2:23061 14.1.1.3:23060 14.1.1.4:23061}
create gtm pool P_Security-APAC load-balancing-mode round-robin fallback-mode none monitor tcp members add { 14.1.1.1:23060 14.1.1.2:23061 14.1.1.3:23060 14.1.1.4:23061}
create gtm pool P_Security-EMEA load-balancing-mode round-robin fallback-mode none monitor tcp members add { 14.1.1.1:23060 14.1.1.2:23061 14.1.1.3:23060 14.1.1.4:23061}
create gtm pool P_Security-SWISS load-balancing-mode round-robin fallback-mode none monitor tcp members add {14.1.1.1:23060 14.1.1.2:23061 14.1.1.3:23060 14.1.1.4:23061}
5)create topology record
create gtm topology server: pool P_ORACLE-DBaaS_AMER ldns: region P_Security-AMER score 100
create gtm topology server: pool P_ORACLE-DBaaS_APAC ldns: region P_Security-APAC score 100
create gtm topology server: pool P_ORACLE-DBaaS_EMEA ldns: region P_Security-EMEA score 100
create gtm topology server: pool P_ORACLE-DBaaS_SWISS ldns: region P_Security-SWISS score 100
3) create WIDEIP global-security.org.net
list /gtm widip global-security.org.net
show /gtm widip global-security.org.net
create gtm wideip global-security.org.net pool_lbmode topology ipv6-no-error-response enabled pools add { P_Security-AMER P_Security_APAC P_Security_EMEA P_Security_SWISS }
list /gtm widip global-security.org.net
show /gtm widip global-security.org.net
Example
* Modify Existing server VIP
* Create the Pool and Place the LB config in Global Availability Mode from Order 0 to 2 ,
* Create WIP and call the pool under WIP
1)modify /gtm server
show /gtm server H_SERVER1
show /gtm server H_SERVER2
show /gtm server H_SERVER3
list /gtm server H_SERVER1
list /gtm server H_SERVER2
list /gtm server H_SERVER3
modify /gtm server H_SERVER1 virtual-servers add { 151.1.1.1:80 { name H_LAB_80_H_SERVER1 } }
modify /gtm server H_SERVER2 virtual-servers add { 151.1.1.2:80 { name H_LAB__80_H_SERVER2 } }
modify /gtm server H_SERVER3 virtual-servers add { 151.1.1.3:80 { name H_LAB__80_H_SERVER3 } }
show /gtm server H_SERVER1
show /gtm server H_SERVER2
show /gtm server H_SERVER3
list /gtm server H_SERVER1
list /gtm server H_SERVER2
list /gtm server H_SERVER3
2) Create New POOL and add below member
show /gtm pool P_LAB
list /gtm pool P_LAB
create gtm pool P_LAB fallback-mode none load-balancing-mode global-availability monitor gateway_icmp_static members add { 151.1.1.1:80 {order 0} 151.1.1.2:80 {order 1} 151.1.1.3:80 {order 2} }
show /gtm pool P_LAB
list /gtm pool P_LAB
3) create WIDEIP security-lab.net
list /gtm widip security-lab.net
show /gtm widip security-lab.net
create gtm wideip security-lab.net ipv6-no-error-response enabled pools add { P_LAB }
list /gtm widip security-lab.net
No comments:
Post a Comment