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
#!/usr/bin/python | |
# | |
# | |
import os | |
import sys | |
import getpass | |
import time | |
import base64 | |
import subprocess | |
import re |
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
diff <(kubectl get deployments deployment1 -n ns1 -o jsonpath='{range .spec.template.spec.containers[*].env[*]}{@.name}{"\n"}{end}'|sort) <(kubectl get deployments deployment2 -n ns2 -o jsonpath='{range .spec.template.spec.containers[*].env[*]}{@.name}{"\n"}{end}'|sort) |
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 | |
# | |
# | |
# | |
BASE_DIR=`dirname $0` | |
SCRIPT=$0 | |
_processinfo_() |
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
# set default flag to ON | |
# if you want to save the config & keyfile in default location | |
defaultflag=ON | |
username=weblogic | |
password=weblogic1 | |
adminurl=t3://localhost:17001 | |
# If the default flag is ON following variables will not be used | |
configfile=/tmp/mwidomain_configfile.secure | |
keyfile=/tmp/mwidomain_keyfile.secure |
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 sys | |
import os | |
import re | |
from os.path import exists | |
from sys import argv | |
def conn(): | |
connect(USERNAME, PASSWORD, ADMINURL) |
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 time | |
import getopt | |
import sys | |
import re | |
def conn(): | |
connect(USERNAME, PASSWORD, ADMINURL) | |
def usage(): | |
toprint = ''' |
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
deploy an application | |
--------------------- | |
curl -v \ | |
-H X-Requested-By:MyClient \ | |
-H Accept:application/json \ | |
-H Content-Type:application/json \ | |
-d "{ | |
name: 'mwiapp', | |
applicationPath : '/apps/oracle-weblogic/applications/mwiapp.war', | |
targets: ['mwiCluster1'], |
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 | |
# Name : WLS-TMPCACHELOGS-PURGE.sh | |
# Author : SaravAK | |
# Date : 4-21-2017 | |
## DECLARATION SECTION | |
if [ "$(whoami)" != "weblogic" ]; then | |
echo "Script must be run as user: weblogic" |
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/sh | |
# | |
# NodeManager Start/Stop NM | |
# | |
# | |
# chkconfig: 35 99 01 | |
# description: Script for Starting/Stopping Admin Server | |
# source function library | |
. /etc/rc.d/init.d/functions |
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
#!/usr/bin/python | |
# | |
# | |
# Author: aksarav@mwinventory.in | |
# Name: SecureCLI-Curl.py | |
# Date: 27-March-2018 | |
# | |
# | |
import os | |
import sys |
NewerOlder