This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
jazzhaPass = raw_input('password for jazzha user in ObjectServer: ') | |
otherHostIP = raw_input('IP address of the other DASH server: ') | |
primaryObjServ = raw_input('hostname or IP of primary ObjectServer') | |
secondaryObjServ = raw_input('hostname or IP of secondary ObjectServer') | |
AdminTask.createAuthDataEntry('-alias TIPalias -user jazzha -password ' + jazzhaPass ) | |
variableMap = AdminConfig.list('VariableMap', AdminConfig.getid( '/Cell:JazzSMNode01Cell/Node:JazzSMNode01/Server:server1/')) | |
AdminConfig.create('VariableSubstitutionEntry', variableMap, '[[symbolicName "SYBASE_JDBC_DRIVER_PATH"] [description ""] [value "/home/netcool/IBM/JazzSM/lib/OServer"]]') | |
sybDriver = AdminTask.createJDBCProvider('[-scope Node=JazzSMNode01,Server=server1 -databaseType Sybase -providerType "Sybase JDBC 3 Driver" -implementationType "Connection pool data source" -name "Sybase JDBC 3 Driver" -description "Sybase JDBC 3 Driver. This provider is only configurable in version 6.1 and later nodes" -classpath [${SYBASE_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
found=0 | |
kubectl get serviceaccount -n kube-system kube-controller > /dev/null 2>&1 | |
if [[ $? == 0 ]] | |
then | |
echo "ServiceAccount kube-controller found. Your cluster has been compromised." | |
found=1 | |
fi | |
kubectl get ClusterRole system:controller:kube-controller > /dev/null 2>&1 | |
if [[ $? == 0 ]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
modules: | |
default: | |
headers: | |
MyHeader: MyHeaderValue | |
metrics: | |
- name: json_testfile1 | |
type: object | |
help: help... | |
path: '{[*]}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": [ | |
{ | |
"traceID": "71699b6fe85982c7c8995ea3d9c95df8", | |
"spans": [ | |
{ | |
"traceID": "71699b6fe85982c7c8995ea3d9c95df8", | |
"spanID": "3c191d03fa8be068", | |
"operationName": "ftspanitron", | |
"references": [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd <path> | |
cd ibm_db2 | |
./db2_install -y -f NOPCMK -f NOTSAMP -p SERVER -b /opt/IBM/db2/V11.5 | |
cd ../ibm_gskit | |
installp -acXgYd . GSKit8 | |
lslpp -l | grep -i gsk | |
cd ../license | |
./idsLicense # Review and accept the license terms. | |
cd ../images |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a list of commands used when installing Rancher plus Elasticsearch and Kibana | |
# Start up Rancher | |
docker run -d --restart=unless-stopped \ | |
-p 80:80 -p 443:443 -p 5601:5601\ | |
--privileged \ | |
rancher/rancher:latest | |
# get the container ID | |
export CONTAINER_ID=$(docker ps | grep rancher | awk '{ print $1 }') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a list of commands used when installing Rancher plus Elasticsearch, Kibana and Logging | |
# Start up Rancher | |
docker run -d --restart=unless-stopped \ | |
-p 80:80 -p 443:443 -p 5601:5601\ | |
--privileged \ | |
rancher/rancher:latest | |
# get the container ID | |
export CONTAINER_ID=$(docker ps | grep rancher | awk '{ print $1 }') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo =========== Create an ubuntu pod ================== | |
kubectl run ubuntu --image=ubuntu -- bash -c "while true; do echo hello; sleep 10;done" | |
# Wait for the pod "ubuntu" to contain the status condition of type "Ready" | |
kubectl wait --for=condition=Ready pod/ubuntu | |
echo =========== Installing dig and other tools into the pod =============== | |
kubectl exec -it ubuntu -- apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install Elastic | |
# reference URL: | |
# https://www.bogotobogo.com/DevOps/Docker/Docker_Kubernetes_ElasticSearch_with_Helm_minikube.php | |
# add helm repo for elastic | |
helm repo add elastic https://Helm.elastic.co | |
# an example values.yaml for use with minikube, but it didn't work exactly as written for me. | |
# curl -O https://raw.githubusercontent.com/elastic/Helm-charts/master/elasticsearch/examples/minikube/values.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Full list of commands required to install minikube on Ubuntu 20.04 | |
# | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
group=docker | |
if [ $(id -gn) != $group ]; then | |
exec sg $group "$0 $*" |
NewerOlder