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.

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...