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
W/dalvikvm(13502): ReferenceTable overflow (max=512) | |
W/dalvikvm(13502): Last 10 entries in JNI local reference table: | |
W/dalvikvm(13502): 502: 0x40535ee0 cls=[I (28 bytes) | |
W/dalvikvm(13502): 503: 0x40535f00 cls=[I (28 bytes) | |
W/dalvikvm(13502): 504: 0x40535f20 cls=[I (28 bytes) | |
W/dalvikvm(13502): 505: 0x40519558 cls=Ljava/lang/Class; 'Lcom/android/nfc/NativeNfcTag;' (188 bytes) | |
W/dalvikvm(13502): 506: 0x40536070 cls=[B (20 bytes) | |
W/dalvikvm(13502): 507: 0x40536088 cls=[I (28 bytes) | |
W/dalvikvm(13502): 508: 0x405360a8 cls=[I (28 bytes) | |
W/dalvikvm(13502): 509: 0x405360c8 cls=[I (28 bytes) |
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-ExecutionPolicy -Force RemoteSigned |
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
> mkdir "C:\Windows\System32\GroupPolicy\Machine\Scripts\Startup" |
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
@ECHO OFF | |
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Windows\System32\GroupPolicy\Machine\Scripts\Startup\bootstrap.ps1 |
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
#Retrieve a Userdata file. | |
function GetUserDataFile($DestinationPath) | |
{ | |
$WebClient = (New-Object Net.WebClient) | |
$WebClient.DownloadFile("http://169.254.169.254/latest/user-data/", $DestinationPath) | |
} | |
$workingDir = "C:\Windows\System32\GroupPolicy\Machine\Scripts\Startup" | |
#Get the userdata file into the working directory. |
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
"Script Name" : C:\Windows\System32\GroupPolicy\Machine\Scripts\Startup\init.bat |
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 | |
oc -n openshift-logging exec `oc -n openshift-logging get po -l component=es -o go-template='{{ (index .items 0).metadata.name }}'` \ | |
-c elasticsearch \ | |
-- curl -s \ | |
--cacert /etc/elasticsearch/secret/admin-ca \ | |
--cert /etc/elasticsearch/secret/admin-cert \ | |
--key /etc/elasticsearch/secret/admin-key \ | |
https://logging-es:9200/_cluster/health?pretty |
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 | |
SECRETS="curator curator-ops elasticsearch fluentd kibana kibana-proxy" | |
for secret in $SECRETS | |
do | |
oc export secret logging-$secret > logging-$secret.yaml | |
done |
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 | |
SECRETS="curator curator-ops elasticsearch fluentd kibana kibana-proxy" | |
for secret in $SECRETS | |
do | |
oc delete secret logging-${secret} | |
oc create -f logging-${secret}.yaml | |
done |
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
oc rsh `oc get po -l component=es --show-labels -o name|head -n 1` \ | |
curl --cacert /etc/elasticsearch/secret/admin-ca \ | |
--cert /etc/elasticsearch/secret/admin-cert \ | |
--key /etc/elasticsearch/secret/admin-key \ | |
-XPUT 'https://logging-es:9200/_snapshot/log_backup?pretty' -H 'Content-Type: application/json' -d' | |
{ | |
"type": "fs", | |
"settings": { | |
"location": "/elasticsearch/backup", | |
"compress": true |
OlderNewer