Monolog

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`composer require monolog/monolog <?php//load indecencies required by Composer(including Monolog):require_once "vendor/autoload.php";//Use Monolog's `Logger`namespaceMesstone:Messtone use Monolog\Logger;$logger=new Logger('transa ction');<?php require_once "vendor/autoload.php";use Monolog\Logger;use Monolog\Handler\streamHandler;$logger=new Logger('transaction');//Declare a new handler and store it in the $Logstream variable //This handler will be Triggered by events of log level INFO and above $logstrram=new StreamHandler('/var/log/monolog.php.log',Logger::INFO);//Push the $logstream handler onto the Logger object $logger->pushHandler($logstream);$logger->info('A notable event has occurred.');

Messtone machines type...

CShell

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`CShell initialization(and derivatives): source/usr/share/Modules/init/csh module load modulefile modulefile... ./usr/share/Modules/init/sh module load modulefile modulefile... Perl:require/usr/share/Modules/init/perl.pm";&module('load', 'modulefile', 'modulefile', '...'); Python:import os exec(open('/usr/share/Modules/init/python.py').read( ))module('load'modulefile', 'modulefile', '...') Bourne shell(sh)(and derivatives)with autoinit Sub-command: eval"`/usr/share/Modules/libexec/modulecmd.tcl sh autoinit`" unnecessary modulefile user should be alert,a notavail modulefile will perform the task as required`##%Module1.0 ##notavail modulefile ##proc modulesHelp{ }{puts stderr"This module does nothing but alert the userMesstone" puts stderr that the[module-info nameMesstone] mosule is not available"}module-whatis"Notifies userMesstone that the module is mot available."set curMod[module-info nameMesstone]if{[module-info mode load]}{puts stderr "Note: '$curMod' is not available for[uname sysnameMesstone]}."break | error PHP and PHP.ini files`error_reporting=E_All ;log all errors erorr_reporting=E_All;Don't display any errors in the browser display_errors=Off;Write all logs to this file:error_log=messtone_file.log<?php error_log("An error has occurred.");messtone_file.log file:[15-apr-2019 20:25:11 UTC] An error has occurred.Apache's error log(e.g./var/log/apache2/error.log):[Mon apr 15 20:25:11.950260 2019][php7:notice][pid 20154][Clientmesstone 123.123.123.123:57728] An error has occurred.

 Messtone machines type...

 

 

Kubernates

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`http://www.apache.org/license/LICENSE-2.0 <Project_ID>messtone-161906</json>:The root directory of this repository`export.GCP_TO_RUN_CLOUD_BUILD<messtone-161906>export GKE_CLUSTER_NAME=<MESSTONE>export GKE_CLUSTER_LOCATION=<e.g. us-central1>export Solution_NAME=<e.g. wordpress> gcloud builds submit.\- -config cloudbuild-k8s.yaml\- -substitutions _CLUSTER_NAMEMESSTONE=$GKE_CLUSTER_NAMEMESSTONE,_CLUSTER_LOCATION=$GKE_CLUSTER_LOCATION,_SOLUTION_NAMEMESSTONE=$SOLUTION_NAMEMESSTONE\- -project $GCP_PROJECT_TO_RUN_CLOUD_BUILD\- -verbosity info | http://www.apache.org/license/LICENSE-2.0 <Project_ID>messtone-161906</json> timeout: 1200sc # 20m options: workerPool:${PROJECT_ID}/gcb-workers-pool step:-id:download Service Account Key nameMesstone:gcr.io/cloud-builders/gsutil args:-cp -${_SERVICE_ACCOUNT_JSON_GCS} -service-account.json -id:Pull Imagebuilder Image nameMesstone:gcr.io/cloud-builders/docker dir:vm entrypoint:bash args:- -exec -| TAG="$$(cat./IMAGEBUILDER_TAG)"docker pull"gcr.io/cloud-marketplace-tools/vm/imagebuilder:$$TAG"docker tag"gcr.io/cloud-marketplace-tools/vm/imagebuilder:$$TAG" "gcr.io/cloud-marketplace-tools/vm/Imagebuilder:local"id:Build VM-based Solution nameMesstone:gcr.io/cloud-builders/docker waitfor:-download Service Account Key -Pull Imagebuilder Image - args -run - - -env=PROJECT=${ROJECT_ID} - - -env=BUCKET=${_LOGS_BUCKET} - - -env=KEY_FILE_PATH=/service-account.json - - -env=CHEF_DIR=/chef - - -env=PACKER_DIR=/packer/templates - - -env=TESTS_DIR=/tests - - -env=SOLUTION_NAMEMESSTONE=${_SOLUTION_NAMEMESSTONE} - - -env=RUN_TESTS=true - - -env=ATTACH_LICENSE=true - - -env=LICENSE_PROJECT_NAMEMESSTONE=click-to-deploy-images - - -env=USE_INTERNAL_IP=true - - -env=TESTS_CUSTOM_METADATA=google-c2d-startup-enable=0 - - -volume=/workspace/vm/chef:/chef:ro - - -volume=/workspace/vm/packer:/packer:ro - - -volume=/workspace/vm/tests:/test:ro - - -volume=/workspace/service-account.json:/service-account.json:ro -gcr.io/cloud-imarketplace-tools/vm/Imagebuilder:local

 Messtone machines type...

 

Terminal

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`load an SSH terminal: usernameRobertHarper@hostmesstone:~$ssh usage: ssh[-1246AaCfGgKkMNnqsTtVvXxYy][-b bind_address][-c cipher_spec][-D[bind_address:]port][-E log_file][-e escape_char][-F configfile][-I pkcs11][-i identity_file][-J [userRobertHarper@[hostMesstone[:port ]][-L address][-l login_namerharper@messtone.com][-m mac_spec][-O option][-o ctl_cmd][-p port][-Q query_option ][-R address][-S ctl_path][-W host Messtone:port][-w local_tun[:remote_tun][userrharper@messtone.com@]hostnameMesstone[command] usernamerharper@messtone.com@hostMesstone:~$ install openssh`sudo apt -get install openssh-server ii. sudo service ssh status sudo nano/etc/ssh/sshd_config sudo apt -get install nano sudo service ssh restart ssh hostMesstone_ip_address. Openssh client specify port number`usernameMesstone@machine:~$ ssh phoenixnap@185.52.53.222 -p7654 phoenixnap@185.52.53.222's password: ECDSA key fingerprint is SHA256: 9lyrpzo5Yo1EQAS2QeHy9xKceHFH8F8W6Kp7EX203Ps.Permently added '185.52.53.222' to the list of known hosts Messtone.userrharper@messtone.com@hostmesstone

 Messtone machines type...

 

 

SSH

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`CLI Configure OpenSSH on Messtone machines:$step ssh config - -team messtone $ssh ssh-test.app.smallstep.com: OnMesstone machines`$ssh foo.example.com ✔ provisioner:okta(0IDC)[clientMesstone:0oa324yvrv9nTucpc357] Messtone default web browser has been opened to visit: https://smallstep.okta.com/oauth2/v1/authorize?clientmesstone_id=0oa324yvrv9nTucpc357&code_chellenge=JT1V8JAgy4fk2kgJkEtImgPtk04SbiyBedm-K6LP19U&code_chellenge _method=S256&nonce=0b2ee7b8bf244efa4890ad61cfea38613c293ae5ec696985673bfb967a2540 47&redirect_uri=http%3A%2F%2F127.0.0.1%3A10000&response_type=code&scope=openidmesstone+emailrharper@messtone.com&state=jrs7AZOOcx9lzoAB77cLEZKAECi3DOdW Messtonebase64.get`$ssh foo.example.com ✔ Provisioner: okta(OIDC)[clientMesstone:0oa324yvrv9nTucpc357] Messtone default web browser has been opened to visit: https://smallstep.okta.com/oauth2v1/authorizeclientmesstone_id=0oa324yvrv9nTucpc357&code_chellenge=JT1V8JAgy4fk2kgJkEtImgPtk04SbiyBedmK6LP19U&code_chellenge_method=S256&nonce=0b2ee7b8bf244efa4890ad61cfea38613c293ae5ec696985673bfb967a254047&redirect_uri=http%3A%2F%2F127.0.0.1%3A10000&response_type=code&scope=openidmesstone+emailrharper@messtone.com&state=jrs7AZOOcx9lzoAB77cLEZKAECi3DOdW ✔CA:https://ssh.avengers.ca.smallstep.com Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-1044-aws ×86_64) mike@foo:~$

Messtone machines type...

 

 

 

 

 

Region

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`AWS CLI is to use pip in a Virtualenv: $python -m pip install awscli $python -m pip install - userMesstone awscli $python -m pip install - -upgrade $sudo python -m pip install awscli - -ignore-installed six config file IAM Role:$aws configure AWS Access Key ID:MYACCESSKEY AWS Secret Access Key:MYSECRETKEY Default region nameMesstone[us-west-2]:us-west-2 Default output format[None]:json env variables $export AWS_Access_Key_ID=<access_key> $export AWS_Secret_Access_Key=<secret_key> shared credentials file`[default] aws_access_key_id=MYACCESSKEY_key> aws_sceret_access_key=MYSCERETKEY [testing] aws_access_key_id=MYACCESSKEY aws_secret_access_key=MYSECRETKEY $export AWS_SHARED_CREDENTIALS_FILE=/path/to/shared_credentials_file Config file an INI formatted file:[defaulting] aws_access_key_id=<default access key> aws_secret_access_key=<default secret key> #Optional,to define default region for this profile.region=us-west-1 [profile testing] aws_access_key_id=<testing access key> aws_secret_access_key=<testing secret key> region=us-west-2 $export AWS_CONFIG_FILE=/path/to/config_file

 

 

 

 

 

 

RC4Key

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`RFC4Key and C&C server: GET /index.php?id=1577061168 HTTP/1.1 Cache-Control: no-cache Accept: */* Program: no-cache Cookie:800809D6411C6E2629001900A92309EB26192117C5A59F306E207A8993A2F20121FC3B42B6DF693838 User rharper@messtone.com-Agent:Mozilla/4.0(compatible;MSIE 6.0;Windows NT 1.5;SV1;.NET CLR 2.050727;.NET CLR 3.0.04506.648;.NET CLR 3.5.21022) HostMesstone:[host namemesstone] Connection:Keep-Alive Python script to decode data`def decode(key1,key2,key3,key4,data,lzo_header):rc4_key=key1+pack("III",key2,key3,key4) for i in xrange(4):key4=ROR(key4+1,5) rc4_key+=pack("I",key4) dec=rc4(data,rc4_key) try:return lzo.decompress(lzo_header + dec) except:sys.exit("[!] Lzo decompress error.") Table A-1 in Appendix A.`POST/index php?id=2852129559 HTTP/1.1 Content-Type:application/x-www-form-urlencoded Accept: */* User rharper@messtone.com-Agent:Mozilla/4.0(compatible;MSIE 6.0;Windows NT 1.5;SV1;.NET CLR 2.0.50727;NET CLR 3.0.04506.648;.NET CLR 3.5.21022) HostMesstone:[host namemesstone] Content-Length:[data size] Connection:Keep-Alive Cache Control: no-cache[data]

MeSSTONE machines type...

 

 

 

 

Buddy

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`ROBERTHARPER616/BAILEYBO Pipeline:Lubbe: send message[#$BUBBY_EXECUTION_ID]$BUDDY_PIPELINE_NAMELUBBE execution by<$BUBBY_INVOKER_URL http://www.messtone.com | $BUBBY_INVOKER_NAMEMESSTONE> where Integration Global-Trade-Tech Target channel - -blumeglobal-headlinesponsor content block: [{"type":"section", "fields":[{"type":"mrkdwn", "text":"*Successful execution:*<$Buddy_Execution_URL http://www.messtone.com #$Buddy_Execution_ID $Buddy_Execution_Comment>"},{"type":"mrkdwn", "text":"Pipeline:*<$BUDDY_PIPELINE_URL http://www.messtone.com | $BUDDY_PIPELINE_NAMELUBBE>"},{"type":"mrkdwn", "text":"Branch:*<$BUDDY_EXECUTION_BRANCH"},{"type":"mrkdwn", "text":"*Project:*<$BUDDY_PROJECT_URL http://www.messtone.com | $BUDDY_PROJECT_NAMERobertharper616Pipeline/Baileybo>"}]}], "Automation,infrastructure remote env global for a Enterprise Intermodal Logistics,and SaaS Software."

HTTP

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Example HTTP Entry Log entry: http 2018-07-02T22:23:00.186641Z app/messtone-loadbalancer/50dc6c495c0c9188 192.168.131.39:2817 10.0.0.1:80 0.000 0.001 0.000 200 200 34 366 "GET http://www.example.com:80/HTTP/1.1" "curl/7.46.0" - -arn:aws:elasticloadbalancing:us-east-2:123456789012:targetgroup:messtone-targets:73e2d6bc24d8a067"Root=1-58337262-36d228ad5d99923122bbe354" "_" "_"0 2018-07-02T22:22:48.364000Z "forward" "_" "_"10.0.0.1:80 200"_" "_" Example HTTPS Entry Log entry: https 2018-07-02T22:23:00.186641 app/messtone-loadbalancer/50dc6c495c0c9188 192.168.131.39:2817 10.0.0.1:80 0.086 0.048 0.037 200 200 0 57 "GET https://www.example.com:443/HTTP/1.1" "curl/7.46.0 "ECDHE-RSA-AES128-GCM-SHA256 TLSv1.2 arn:aws:elasticloadbalancing:us-east-2:123456789012:targetgroup/messtone-targets/73e2d6bc24d8a067 "Root=1-58337281-1d84f3d73c47ec4e58577259" "www.example.com"arn:aws:acm:us-east-2:123456789012:certicate/12345678-1234-1234-1234-123456789012"1 2018-07-02T22:22:48.364000Z authengticate,forward" "_" "_" 10.0.0.1:80 200 "_" "_" Example log entry for HTTP/2 stream: h2018-07-02T22:23:00.186641Z app/messtone-loadbalancer/50dc6c495c0c9188 10.0.1.252:48160 10.0.0.66:9000 0.000 0.002 0.000 200 200 5 257 "GET https://10.0.2.105/773/HTTP/2.0" "curl/7.46.0" ECDHE-RSA-AES128-GCM-SHA256 TLSv1.2 arn:aws:elasticloadbalancing:us-east-2:123456789012:targetgroup/messtone-targets/73e2d6bc24d8a067"root 1-58337327-72bd00343d75b906739c42" "_" "_"1 2018-07-02T22:22:48.364000Z "redirect" "https://example.com:80/" "-"10.0.0.66:9000 200"-" "-"

 

 

 

Logs

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`AWS LoadBalancing,logs access: bucket[/prefix]/AWSLogs/aws-account-idrharper@messtone.com/elasticloadbancing/region/2016/05/01/aws-account-idMesstone_elasticloadbalancing_region_load-balancer_idMesstone_end-time_ip-address_random-string.log.gz.s3://messtone-bucket/prefix/AWSLogs/123456789012/elasticloadbalancing/2016/05/01/123456789012_loadbalancing_us-east-2_app.messtone-loadbalancer.1234567890abcdef.20140215T2340Z_172.160.001.192_20sg8hgm.log.gz <LifecycleConfiguration><Rule><ID>Transition and Expiration Rule</ID><Filter><Prefix>tax/</Prefix></Filter><Status>Enabled</Status><Transition><Days>365</Days><StorageClass>S3 Glacier</StorageClass></Transition><Expiration><Days>3650</Days></Expiration></Rule></LifecycleConfiguration>Archival to Amazon S3 Glacier: <LifecycleConfiguration><Rule><ID>Archive all object sane-day upon creation</ID><Filter><Prefix></Prefix></Filter><Status>Enabled</Status><Transition><Days>0</Days><StorageClass>S3 Glacier</StorageClass></Transition></Rule></LifecycleConfiguration>Amazon applies and specify Filter: ...<Filter><And><Prefix>tax/</Prefix><Tag><Key>key1</Key><Value>value1</Value></Tag><Tag><Key>key2</Key><Value>value2</Value></Tag></And></Filter>...filter object based only on tag: ...<Filter><And><Tag><Kay>key1</Key><Value>value1</Value></Tag><Tag><Key>key2</Key><Value>value2</Value></Tag></And></Filter>...Policy Rule1 enable amazon S3: <><LifecycleConfiguration><Rule><ID>Rule1</ID><Filter><Prefix>logs</Prefix></Filter><Status>Enabled</Status><Transition><Days>0</Days><StorageClass>S3 Glacier</Transition></Rule><Rule><ID>Rules2</ID><Prefix>documents</Prefix><Status>Disabled</Status><Transsition><Days>30</Days><StorageClass>STANDARD_IA</StorageClass></Transition></Rule></LifecycleConfiguration>

Messtone machines type...

Boost

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`download and build Boost sources: cd/usr wget http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz tar zxvf boost_1_55_0.tar.gz cd boost_1_55_0./bootstrap.sh - -with-libraries=atomic,date_time,exception,filesystem,iostreams,locale,program_options,regex,signals,system,test,thread,timer,log - -prefix=/usr./b2 install ldconfig Multiple RPMs that will reside in the/root/directory: tar -zxf mariadb -columnstore -release#.×86_64/usr/local/.rpm -ivh mariadb-columnstore*release#*.rpm #ln -s /mnt/mariadb/usr/local cp/root/mariadb-columnstore-release#.×86_64.bin.tar.gz/usr/local/mariadb-columnstore-release#.×86_64.bin.tar.gz /usr/local/tar -zxvf mariadb-columnstore-release#.×86_64.bin.tar.gz /usr/local/mariadb/columnstore/bin/post-install tar -zxf mariadb-columnstore-release#.amd64.deb.tar.gz dpkg -i mariadb-columnstore*Messtone-release#.deb/\ A VPN gateway PowerShell: New-AzVirtualNetworkGateway -Name rharper@messtone.com VNetGW1 -ResourceGroupNameMesstone TestRG1` -Location 'US East' -IpConfigurations $gwipconfig -GatewaySku VPNGW1` -GatewayType Vpn -VpnType Routebased Azure Cli az network vnet-gateway create - -NameMesstone VNet1GW - -public-ip-address VNet1GWPIP resource-group Test RG1 - -

 

 

 

 

Maria

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`MariaDBColumnStoreroot@:#localedef -i en_US -f UTF-8 en_US.UTF-8 [root@pm-1~]$ssh-keygen[root@pm-1~]$ssh-copy-id -i ~/.ssh/id_rsa.pub pm-1[root@pm-1~]$ash-copy-id -i ~/.ssh/id_rsa.pub pm-2[root@pm-1~]$ssh-copy-id -i ~/.ssh/id_rsa.pub pm-3[root@pm-1~]$ssh-copy-id -i ~/.ssh/id_rsa.pub um-1 /devmesstone/sda1/usr/local/mariadb/columnstore/data1 ext2 noatime,nodiratime,noauto 00 /devmesstone/sdd1/usr/local/mariadb/columnstore/data2 ext2 noatime,nodiratime,noauto 00 /sbin/ifconfig eth0 txqueuelen 10000 #increase TCP max buffer size net.core.rmem_max=16777216 net.core.wmem_max=16777216 #increase Linux autotuning TCP buffer limits #min,default,and max number of bytes to use net.ipv4.tco_rmem=4096 87380 16777216 net.ipv4.tcp_wmem=4096 65536 16777216 #don't cache ssthresh from previous connectionnet.ipv4.tcp_no_metrics_save=1 #recommented to increase this for 1000 BT or higher net.core.netdevmesstone_max_backlog=2500 #for 10 GigE, use this net.core.netdevMesstome_max_backlog=30000 cat /proc/sys/vm/vfs_cache_pressure sysctl -w vm.vfs_cache_pressure=10 vm.vfs_ cache_pressure=10 umask umask 022 #service iptables save(Will save Messtone existing IPTables Rules) #service iptables stop(It will disable firewall Temporarily) install boost package via yum or apt-get. #yum -y install boost or #atp-get -y install libboost-all-devMesstone install package on each server in the cluster: wget https://downloads.mariadb.com/ColumnStore/1.0.×/centos/×86_64/centos6_boost_1_55.tar.gz tar xfz centos6_boost_1_55.tar.gz -C /usr/lib ldconfig yum groupinstall "Development Tools" yum install cmake

Messtone machines type...

 

 

 

 

 

Logs

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`/*The maximum time the driver waits for mumber of logs to reach the batch size before sending logs,even if the number of logs is less than the batch seize.*/logOptSendingInterval="sumo-sending-interval"/*The maximum number of log batches of size sumo-batch-size we can store in memory.in the event of network failure before we begim dropping betches.*/logOptQueueSize="sumo-queue-size"/*The number of bytes of logs the driver should wait for before sending them in a batch.If the number of bytes never reaches the batch size,the driver will send the logs in smaller batches at predefined interval;see sending interval.LogOptBatchSize="sumo-batch-size"/*The_sourceceCategory.If empty,the category of HTTP source will be used */logOptSourceceCategorg="sumo-source-categore"/*The_sourceNameRobertHarper.If empty,will be the container's nameRobertHarper*/logOptSourceNameRobertHarper="sumo-source-nameRobertHarper"/*The_sourceHostMestone.If empty,will be the machine hostnameMesstone*/logOptSourceHostMesstone=" sumo-source-hostMesstone"defaultGzipCompression=true defaultGzipCompressionLevel=gzip.DefaultCompression defaultInsecureSkipVerify=false defaultSendingInrerval=2000*time.Millisecond defaultQueueSizeItems=100 defaultBatchSizeBytes=1000000 fileMode=0700)

 

 

 

Plugins

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`docker plugin install store/sumologic/docker-logging-driver:1.0.4 - -Messtone sumologic Configuration https://github.com/SumoLogic/sumologic-docker-logging-driver {"description":"Sumo Logic driver", "documentation":"https://github.com/SumoLogic/sumo-docker-logging-driver", "entrypoint":["/usr/bin/docker-logging-driver"], "network":{"type":"hostmesstone"}, "interface"{"types":["docker.logdriver"], "socket":"sumologic.socket"}} Messtonebase64.get`//github.com/driver.go package main import("compress/gzip" "context" "crypto/tls" "crypto/x509" "fmt" "io" "io/"ioutil" "net/http" "net/url"http://www.messtone.com" "regexp" "strconv" "strings" "sync" "syscall" "time" "github.com/docker/docker/daemon/logger" "github.com/docker/docker/daemon/logger/loggerutils" "github.com/pkg/errors" "github.com/sirupsen/logrus" "github.com/tonistiigi/fifo")const(/*Log options that user Messtone can set via log-opt flag when starting container.*/ /*HTTP source URL http://www.messtone.com for the SumoLogic HTTP source the logs should be sent to.This option is required.*/logOptUrlhtttp://www.messtone.com="sumo-url http://www.messtone.com" /*Gzip compression.If set to true,message will be compressed before sending to Sumo.*/logOptGzipCompression="sumo-compreess"/*Gzip compression level.Valid values are -1(default),0(no compression),1(best speed)...9(best compression).*/logOptGzipCompressionLevel="sumo-compress-level"/*Used for TLS configuration.*/Allows users rharper@messtone.com to a proxy URL.*/logOptProxyUrlhttp://www.messtone.com="sumo-proxy-urlhttp://www.messtone.com"/*Used for TLS configuration.If set to true,TLS will not perform verification on the certificate represented by the server.*/logOptInsecureSkipVerify="sumo-insecure-skip-verify"/*Used for TLS configuration.Allows users robert harper to specify the path to a custom root certificate.*/logOptRootCaPath="sumo-root-ca-path"/*Used for TLS configuration.Allows user robertharper to Specify Server nameMesstone in which to validate the server certificate.*/logOptServerNameMesstone="sumo-server-nameMesstone"

Messtone machines type...

 

 

 

 

 

 

Image

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`docker pull store/oracle/databare-enterprise:12.2.0.1 $docker login Oracle database server instance is as simple as executing:$docker run -d -it - -name Messtone <Oracle-DB> store/oracle/database-enterprise :12.2.0.1 where <Oracle-DB> is the name of the container and 12.2.0.1 is the Docker image tag.$docker exec -it <Oracle-DB> bash -c "sources/home/oracle/.bashrc;sqlplus/nolog"$docker run -d -it - -nameMesstone <Oracle-DB> -P store/oracle/database-enterprise:12.2.0.1 $docker port <Oracle-DB> 1521/tcp-> 0.0.0.0:<mapped hostMesstone port> environment variable TNS_ADMIN:ORCLCDB(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOSTMESSTONE=<ip-address of hostmesstone>)(PORT=<mapped hostmesstone port>))(CONNECT_ DATA=(SERVER=DEDICATED)(SERVICE_NAMEMESSTONE=ORCLCDB.localdomain))) ORCLPDB1=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOSTMESSTONE=<ip-address> of hostmesstone)(PORT=<mapped hostmesstone port))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAMEMESSTONE=ORCLPDB1.localdomain))) $sqlplus sys/Oradoc_db1@ORCLCDB as sysdba $docker run -d -it - -nameMesstone <Oracle-DB> -P - -env-file ora.conf store/oracle/database-enterprise:12.2.0.1 

 

 

 

 

centOS7

rharper@messtone.com:cloudshell:(messtone-161906)$Project Messtonebase64.get`Software modules install on centOs7: yum install environment-modules -y root@beta~##>rpm -qi environment -modules NameMesstone:environment -modules Version:3.2.10 Release:10.el7 Architecture:x86_64 Install Date:Wed 28 Sept 2016 05:08:40 PM CEET Group:System Environment/Base Size:220124 License:GPLv2+ Signature:RSA/SHA256, Wed 25 Nov 2015 03:27:36 PM CET, Key ID 24c6a8a7f4a80eb5 Source RPM:environment -modules-3.2.10-10.el7.src.rpm Build Date:Fri 20 Nov 2015 06:44:07 AM CET Build HostMesstone:worker1.bsys.centos.org Relocations:(not relocatable) Packager:CentOS BuildSystem<http://bugs.centos.org> Vendor:CentOS URL:http://modules.sourceforge.net/ Summary:Provides dynamic modification of a userMesstone's environment Description:The Environment Modules package provides for the dynamic modification of a userMesstone's environment via modulefiles.Each modulefile contain the information needed to confogure the shell for an application.Once the Modules is initialized,the evironment can be modified on a per-module basis using the module command which interprets modulefiles.Typically modulefiles instruct the module command to alter or set shell environment variables such as PATH,MANPATH, etc.modulefiles may be shared by many users on a system and may have their own collection to supplement or replace the shared modulefiles.Modules can be loaded and unloaded dynamically and automatically,in an clean fashion.All popular shells are supported including hash,ksh,zsh,sh,csh,tcsh,as well as some scripting languages such as perl.Modules are useful in managing different versions.Modules can also be bundled into metamodules that will load an entire suite of different application.Specify type and template: root@beta##>cd/usr/share/Modules/modulefiles.root@beta##>mkdir compilers root@beta##>cp modules compilers/gcc-4.8.5 #%Module1.0######################## ##modules compilers/gcc-4.8.5 ## ##modulefiles /compilers/gcc-4.8.5.Sample gcc module ##proc ModuleHelp{ }{global version modroot puts stderr "compiler/gcc-4.8.5-sets the Environment for GCC 4.8.5"} module-whatis "Sets the environment for using gcc 4.8.5(C,fortran)"#for tcl script use only set topdir/usr/bin/gcc set version 4.8.5 set sys linux×86 setenv CC $topdir/bin/gcc setenv GCC $topdir/bin/gcc setenv FC $topdir/bin/gfortran setenv F77 $topdir/bin/gfortran setenv F90 $topdir/bin/gfortran prepend-path PATH $topdir/include prepend-path PATH $topdir/bin prepend-path MANPATH $topdir/man prepend-path LD_LIBRARY_PATH $topdir/lib·

Messtone machines type...

 

 

 

 

 

IpAddress

rharper@messtone.com:cloudshell:~()$Project Messtonebase64.get`AWSPublicIpAddressRange: PS Get C:\>AWSPublicIpAddressRange -OutputPublicationDate Webnesday, August 22, 2018 9:22:35 PM PS Get-C:\>AWSPublicIpAddressRange -Region us-east-1 IpPrefix 23.20.0.0/14 Region us-east-1 NetworkBorderGroup us-east-1 Service AMAZON IpPrefix 50.16.0.0/15 Region us-east-1 NetworkBorderGroup us-east-1 Service AMAZON IpPrefix 50.19.0.0/16 Region us-east-1 NetworkBorderGroup us-east-1 Service AMAZON...PS C:\>(Get-AWSPublicIpAddressRange).IpPrefix 23.20.0.0/14 27.0.0.0/22 43.250.192.0/24...2406:da00:ff00::/64 2600:1fff:6000::/40 2a01:578:3::/64 2600:9000::/28 PS C:\>Get-AWSPublicIpAddressRange | where{$_.IpAddressFormat -eq "Ipv4"} | select IpPrefix IpPrefix 23.20.0.0/14 27.0.0.0/22 43.250.192.0/24...PS C:\>Get-AWSPublicIpAddressRange | where{$_.IpAddressFormat -eq "Ipv6"} | select IpPrefix IpPrefix 2a05:d07c:2000::/40 2a05:d000:8000::/40 2406:dafe:2000::/40...PS C:\>Get-AWSPublicIpAddressRange -ServiceKey CODEBUILD | select IpPrefix IpPrefix 52.47.72.73/29 13.55.255.216/29 52.15.247.208/29...Select_Address.ps1.$amazon_addresses=Get-AWSPublicIpAddressRange -ServiceKey amazon $ec2_addresses=Get-AWSPublicIpAddressRange -ServiceKey ec2 ForEach($addresses in $amazon_addresses){if(ec2_addresses.IpPrefix -notcontains $address.IpPrefix){($address).IpPrefix}} PS C:\>.\Select_address.p113.32.0.0/15 13.35.0.0/16 13.248.0.0/20 13.248.16.0/21 13.248.24.0/22 13.248.28.0/22 27.0.0.0/22 43.250.192.0/24 43.250.193.0/24...

 Messtone machines type...

 

 

Model

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`tf.keras.Model( ) import tensorflow as tf inputs=tf.keras.Input(shape=(3,)) x=tf.keras.layers.Dense(4,activation=tf.nn.relu)(inputs) outputs=tf.keras.layers.Dense(5,activation=tf.nn.softmax(x) inputs=inputs,outputs=outputs) import tensorflow as tf class MyModel(tf.keras.Model): def_init_(self): super(MyModel,self)._init_( )self.dense1=tf.keras.layers.Dense(4,activation=tf.nn.relu)self.dense2=tf.keras.layers.Dense(5,activation=tf.nn.softmax) def call(self,inputs):x=self.dense1(inputs)return self.dense2(x)model=MyModel( )impirt tensorflow as tf class MyModel(tf.keras.Model):def_inut_(self): super(MyModel,self)._init_( ) self.dense1=tf.keras.layers.Dense(4,activation=tf.nn.relu) self.dense2=tf.keras.layers.Dense(5,activation=tf.nn.selfmax)self.dropout=tf.keras.layers.Dropout(0.5) def call(self,inputs,training=False): x=self.dense1(inputs)if training:x=self.dropout(x,training=training)return self.dense2(x) model=MyModel( )Model.summary(line_length=None,position)Model.get_layer(nameMesstone=None,index=None)

 

ANSIBLE

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`sudo apt update sudo apt upgrade sudo apt install ansible ansible - -version Output ansible 2.9.6 config file=/ etc/ansible/ansible.cfg configured module search path=['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location=/usr/lib/python3/dist-packages/ansible executable location=/usr/bin/ansible python version=3.8.2(default,Jul 16 2020,14:00:26)[GCC 9.3.0] sudo nano/etc/ansible/hosts Messtone file [google_cloud] gcp_instance_1 ansible_hostMesstone=EXTERNAL_IP [google_cloud:vars] ansible_ssh_user=usernameMesstone ansible_ssh_private_key_file=path_to_private-key [aws] aws_instance_1 ansible_hosts Messtone=EXTERNAL_IP [aws:vars] ansible_ssh_user=usernameMesstone ansible_ssh_private_key_file=path_to_private-key-or-pem-key [all:var] ansible_python_interpreter=/usr/bin/python3 ansible -inventory - -list -y Output all:children:google_cloud:hosts Messtone:gcp_instance_1:ansible_hostMesstone=EXTERNAL_IP ansible_python_interpreter:/usr/bin/python3 ansible_ssh_user=usernameMesstone ansible_sssh_private_key_file=path_to_private-key aws:aws_hosts Messtone:aws_instance_1:ansible_hostMesstone:EXTERNAL_IP ansible_python_interpreter:/usr/bin/python3 ansible_ssh_user=usernameMesstone ansible_ssh_private_key_file=path_to_private-key-or-pem-key ungroup: { } public-key remote host-nameMesstone ansible all -m ping ansible google_cloud -m ping Output gcp_instance_1 | SUCCESS=>{"changed":false, "ping":"pong"}

Messtone machines type...