<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3587470620336641026</id><updated>2024-10-09T15:35:27.469-07:00</updated><category term="Websphere"/><category term="jython"/><category term="wsadmin"/><category term="Websphere MQ"/><category term="Websphere Process Server"/><category term="MQ"/><category term="python"/><category term="SSL"/><category term="Application"/><category term="IHS"/><category term="Server"/><category term="apache"/><category term="find"/><category term="unix"/><category term=".net"/><category term="C#"/><category term="delete"/><category term="files"/><category term="jar"/><category term="java"/><category term="monitor"/><category term="nodeagent"/><category term="perl"/><category term="AdminTask.createPolicySetAttachment"/><category term="Distribution List"/><category term="HTTP Server"/><category term="LifecycleServicesMBeanFactory"/><category term="SYSTEM.CLUSTER.COMMAND.QUEUE"/><category term="Security"/><category term="WSRR"/><category term="Websphere Message Broker"/><category term="Websphere application server"/><category term="basic"/><category term="certificate"/><category term="commands"/><category term="core"/><category term="coregroup"/><category term="define"/><category term="getApplication"/><category term="header"/><category term="install"/><category term="model"/><category term="node"/><category term="policy"/><category term="redirect"/><category term="script"/><category term="service"/><category term="vbScript"/><category term="virtualhost"/><category term="AIX"/><category term="Access-Control-Allow-Origin"/><category term="AdminApp"/><category term="AdminConfig"/><category term="AdminControl"/><category term="AdminTask"/><category term="AdminTask.listServices"/><category term="AdminTask.setBinding"/><category term="Alexa"/><category term="Amazon"/><category term="Android"/><category term="Apache .indd download IE8 IE ForceType Content-Disposition attachment filename"/><category term="Application Name"/><category term="Archive"/><category term="Authentication"/><category term="BPC"/><category term="Broker"/><category term="Business Space"/><category term="CLUSRCVR"/><category term="CLUSSDR"/><category term="CORS"/><category term="Choreographer"/><category term="Clustering"/><category term="Cross-origin resource sharing"/><category term="DefaultWSRR"/><category term="Deployment Environment"/><category term="Display Name"/><category term="DocumentBuilderFactory"/><category term="EAR"/><category term="ESQL"/><category term="Explorer"/><category term="GCP"/><category term="Generate"/><category term="HTTP Authentication"/><category term="HTTPRequest"/><category term="Help()"/><category term="IBM http Server"/><category term="IPC_CONNECTOR_ADDRESS"/><category term="Inquire"/><category term="JAX-RPC"/><category term="JVM"/><category term="LifecycleConstants"/><category term="MQAX200"/><category term="MapWebModToVH"/><category term="Message"/><category term="Publish"/><category term="Query"/><category term="QueryTable"/><category term="RAD8"/><category term="Rational Application Developer"/><category term="RemoteAL"/><category term="SCA"/><category term="SCAImport"/><category term="SOAPRequest"/><category term="SYSTEM.CLUSTER.REPOSITORY.QUEUE"/><category term="ServiceRegistries"/><category term="Starfish"/><category term="Subscribe"/><category term="TRIGMON"/><category term="Table"/><category term="WAS"/><category term="WMI"/><category term="WMQ"/><category term="WSDL"/><category term="WSSN"/><category term="WSSP"/><category term="Webservice"/><category term="Websphere Service registry and repository"/><category term="WsImportBinding"/><category term="XMS"/><category term="activex"/><category term="agent"/><category term="applyDeploymentOptions"/><category term="audio"/><category term="binding"/><category term="cell server"/><category term="channel"/><category term="chmod"/><category term="class"/><category term="client"/><category term="clone"/><category term="cloud"/><category term="cluster"/><category term="compare"/><category term="configure"/><category term="confirmUninstall"/><category term="cookie"/><category term="create"/><category term="decrypt"/><category term="default_host"/><category term="depth"/><category term="disableDashboards"/><category term="dmgr"/><category term="dom"/><category term="dot"/><category term="drive"/><category term="echo"/><category term="endpoint"/><category term="exclude"/><category term="extract"/><category term="folder"/><category term="for"/><category term="gcloud"/><category term="grep"/><category term="group"/><category term="gsk6cmd"/><category term="gsk7cmd"/><category term="heap"/><category term="help"/><category term="import"/><category term="initial"/><category term="installation"/><category term="listSCAModules"/><category term="log4j"/><category term="logger"/><category term="manageprofile"/><category term="max"/><category term="me"/><category term="mint"/><category term="mobile"/><category term="modifySCAImportWSBinding"/><category term="monitoring"/><category term="mp3"/><category term="mqsichangeproperties"/><category term="mqsisetdbparms"/><category term="multiple"/><category term="music"/><category term="name"/><category term="not working"/><category term="one"/><category term="own"/><category term="parser"/><category term="password"/><category term="permissions"/><category term="play"/><category term="plugin"/><category term="port"/><category term="properties"/><category term="proxy"/><category term="purge"/><category term="readDeploymentOptions"/><category term="recent"/><category term="remote"/><category term="replace"/><category term="repos"/><category term="runDeleteSchemaScripts"/><category term="run_templates"/><category term="runmqckm"/><category term="schema"/><category term="search"/><category term="serviceRegistry"/><category term="shell"/><category term="showSCAImportBinding"/><category term="signer"/><category term="sixe"/><category term="socket"/><category term="spaces"/><category term="ssh"/><category term="start"/><category term="stash"/><category term="stop"/><category term="storage"/><category term="string"/><category term="tablet"/><category term="trigger"/><category term="txt2dbm"/><category term="unable"/><category term="unregister"/><category term="unzip"/><category term="url"/><category term="usernametoken"/><category term="vi"/><category term="ws_security"/><category term="wsadmin LTPA keys jython"/><category term="xml"/><category term="zip"/><category term="zipfile"/><title type='text'>Cloud Seeding</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>57</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-5104463481515949752</id><published>2023-11-14T03:40:00.000-08:00</published><updated>2023-11-14T03:40:13.859-08:00</updated><title type='text'>Cloud Application Architecture for HA/DR</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;b&gt;Application Architecture&lt;/b&gt;&lt;/p&gt;&lt;p&gt;A usual factor in an application is how many components make up an applications as well as how distributed is the design. In cloud computing LAMP(Linux, Apache, mysql, PHP) stack is famous stack of components to be used to deliver a web application. This is a base stack and is more to explain three tier architecture within a cloud system on a single server, we will use this to explain a distributed architecture as well. The components you pickup to make up your application has direct or indirect impact on availability and reliability of an application. For these document purposes we will be using following tiering of an application:&lt;/p&gt;&lt;p&gt;&lt;b&gt;Multi Tier(N Tier)&lt;/b&gt;&lt;/p&gt;&lt;p&gt;A multi tier application have multi server components making the solution. Each server has its own role within the application. Usually a multi tier application will have requirements of access by an external party like a user accessing the application on a browser or an application accessing an API. For these documents we will keep it to a three tier architecture but the more server components you will add the principles remain the same.&lt;/p&gt;&lt;p&gt;The following diagram depicts a three tier architecture for a web serving application for both Azure and GCP. This can be a typical lamp stack with Azure container instance hosting Linux OS with PHP build and same for GCP Cloud Run, Azure App gateway and GCP Cloud load balancing replacing Apache and we have picked MYSQL PaaS offering by Azure and GCP&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic2mLYS7YneDh221RggvbXrftDEUENho4IJpZcNVmPx5tXOHl4gFhanzlRGu5NmhGTT8cgTp3H8JhitlsXwFCWDxPpya1y-43aOIcBaRhpelN82vQM21kIIvfCGhXHJsEVn3qjVVHML1T1Xkb_Mx6If1eJl_NQBF1qFCcZXFCcic5bQ6XbX8SjV_UWTA4/s470/multitier1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;157&quot; data-original-width=&quot;470&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic2mLYS7YneDh221RggvbXrftDEUENho4IJpZcNVmPx5tXOHl4gFhanzlRGu5NmhGTT8cgTp3H8JhitlsXwFCWDxPpya1y-43aOIcBaRhpelN82vQM21kIIvfCGhXHJsEVn3qjVVHML1T1Xkb_Mx6If1eJl_NQBF1qFCcZXFCcic5bQ6XbX8SjV_UWTA4/w536-h179/multitier1.jpg&quot; width=&quot;536&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;You can further this architecture into multiple different tiers based on your computing and processing needs. Like if you find that your interaction with MySQL server is actually a bottleneck when you do synchronous write to your DB then you can choose to make it asynchronous by adding a messaging tier like below:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyc0cyDNoytPrAhOoAW4Psc9DGVOGzn3QwkVYgjfoPEsxMigTM6eDkc8NuL6phcMPu95RfTZhhNg-x56YkQa7Wht3sbU7LCo_w90s2eIkm0inNnreT46ixVu_pTdmeEYW-Uh6mwL-2cHDb1RYaEW9Z9Js7dETvgW6uqxxuHHX8MJMpi_jRt00qJGhyphenhyphenQmQ/s468/multitier2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;193&quot; data-original-width=&quot;468&quot; height=&quot;216&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyc0cyDNoytPrAhOoAW4Psc9DGVOGzn3QwkVYgjfoPEsxMigTM6eDkc8NuL6phcMPu95RfTZhhNg-x56YkQa7Wht3sbU7LCo_w90s2eIkm0inNnreT46ixVu_pTdmeEYW-Uh6mwL-2cHDb1RYaEW9Z9Js7dETvgW6uqxxuHHX8MJMpi_jRt00qJGhyphenhyphenQmQ/w595-h216/multitier2.jpg&quot; width=&quot;595&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;As you can see we have quite easily extended just the middleware component by adding one more middleware layer within the solution and the middleware 2 has now only responsibility of writing to a DB after picking up messages from either Azure Service Bus or Google PubSub. Middleware 1 is still connected to DB layer for read operations. This is a major benefit of a distributed system that you can add more capability or change your architecture easily at each layer. Well its not as easy as this in practice though, in real world you will also design for say concurrency in first approach and latency of write in second approach but this is to give an example of art of possibility in a distributed system. Not to deviate from the original context of this document remember the more components you add your availability starts to decrease. Look back at the 9’s computation and see how you fare as you continue to add components.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 18px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 18px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;&lt;b&gt;Two Tier&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;A two tier application will have same number of components but may not have a need for a storage tier or the storage tier usage is so little like reference data that it can be easily bundled in with the middleware or server components. A lot of software vendor also distribute their software like this in a container or virtual machine which is self contained within a computing tier for easy distribution. A good example will be SonarQube which comes as single tier self contained setup and PostgresSQL wrapped into the container hosting server component. A diagrammatic representation of a two tier system will be as below:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGgXOtp88EMyXo6XeHjb7JYOQOuBQ490cGjI6wcwrz2IOsu1Az0wJucrYbe28pPwTny4CnAhr7bRPRmObrj54eiExybUZfoYrl8vvOZrDo9Vr1gQDOyrdMt-Lf_zt2xTy4lvpkShkkgQvloIm9KzT79WiHFwvf-ECq7UkG36XF0oIQIApMqVD9yrXaHXI/s468/twotier1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;168&quot; data-original-width=&quot;468&quot; height=&quot;144&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGgXOtp88EMyXo6XeHjb7JYOQOuBQ490cGjI6wcwrz2IOsu1Az0wJucrYbe28pPwTny4CnAhr7bRPRmObrj54eiExybUZfoYrl8vvOZrDo9Vr1gQDOyrdMt-Lf_zt2xTy4lvpkShkkgQvloIm9KzT79WiHFwvf-ECq7UkG36XF0oIQIApMqVD9yrXaHXI/w567-h144/twotier1.jpg&quot; width=&quot;567&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;You will find that you cannot extend this with all the components individually but you are able to extend the application as a whole as long as you do not have data sharing needs between the compute components of your application. So the state has to be localized. But its much easier to design for availability and recovery because there will be no running data needs. An example of this with either a container or VM will be like below:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXHr_2kyaxKT6SYsanyTSGx4jtHubTfzcTodfV5OLUDq0gvhyYF9D9xskqQrGzwQY7i0Bj6PcO_t65U2zHcRmCypoPujJOPcgqK9vb5-gqGjj5Ea_29bIMbPqXENiugGGZU7FwKsjQnb1DptVCTuTfhPQHVq3Oiol0ih32FjjG7jgcJmg5gzy1-unY5RI/s468/Twotier2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;323&quot; data-original-width=&quot;468&quot; height=&quot;307&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXHr_2kyaxKT6SYsanyTSGx4jtHubTfzcTodfV5OLUDq0gvhyYF9D9xskqQrGzwQY7i0Bj6PcO_t65U2zHcRmCypoPujJOPcgqK9vb5-gqGjj5Ea_29bIMbPqXENiugGGZU7FwKsjQnb1DptVCTuTfhPQHVq3Oiol0ih32FjjG7jgcJmg5gzy1-unY5RI/w444-h307/Twotier2.jpg&quot; width=&quot;444&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;The good thing is you are able to extend capacity of your application and increase availability as a result. You can also choose to distribute your application widely to multiple zones or regions but due to limited data sharing abilities very few use cases will fall into this architecture way of delivering systems. BUT if you count your 9’s you will find that you are able to to get a much higher number due to less number of distributed components.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 18px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 18px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;&lt;b&gt;Single Tier&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;As the name suggests this will be simplest of all architecture with all components squashed into one server be it your serving layer , app layer or storage layer. Usually you will use this for migration use cases in cloud where you already have something running on premises in a VM or container and you want to quickly move it into cloud without investing much time in redesigning your system. This architecture is also good for batch processing with high computing needs which you can squash into a single compute system. Availability and recovery is usually easier because you have a single component to manage and you can move it around between zone redundancy and region redundancy. Usually on demand VM/containers also is very handy as well as dynamic scaling of the whole server is much easier. Following diagram depicts couple of typical Single tier system:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px; min-height: 18px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhACUJ_NulnuD8Q4eR6vtfkiEHSbOjJgDq71e7nd1kHsIDjqJzlCVoprgxEJHSVf3Iw35yYB7FBH2T9ArkXyN_DEWiqUwixvL1k4pux8tLlLO91CvsxXenwhmMBnoPdqR_8qwrFDCbem3z0wdz-x3kxVE2m5NSXdXNQC-fJT22etS9azWli_w-k_UTe_ag/s535/singletier1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;535&quot; data-original-width=&quot;468&quot; height=&quot;422&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhACUJ_NulnuD8Q4eR6vtfkiEHSbOjJgDq71e7nd1kHsIDjqJzlCVoprgxEJHSVf3Iw35yYB7FBH2T9ArkXyN_DEWiqUwixvL1k4pux8tLlLO91CvsxXenwhmMBnoPdqR_8qwrFDCbem3z0wdz-x3kxVE2m5NSXdXNQC-fJT22etS9azWli_w-k_UTe_ag/w369-h422/singletier1.jpg&quot; width=&quot;369&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;Marinating availability is usually very hard for a serving application in this architectural practice mainly because we cannot distribute our web serving part and the whole application need to scale including the web serving part which usually means a visible disruption to users. But we can control a lot of it using some of the other infrastructure components or deployment methods like clever DNS systems like Traffic Manager from Azure or GCP cloud DNS. We can also attempt active/passive for quick switchover or use DevOps practices for scaling.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 24px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 19.9px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;&lt;b&gt;Other Computing factors in HA/DR&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 18px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 18px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;&lt;b&gt;Networking&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;Networking is also a major factor in your availability and recovery strategy. First your users need to be able to reach all your redundant instances which is usually easier for zonal redundancy but starts to become difficult when you need to spread geographically. Interconnectivity between the components for stateful applications can also become crucial for a geographical distributed system. So wherever possible pick global solutions for your storage needs like Cosmo DB from Azure if you need Multi region read and write or GCP Cloud Storage which is a global offering.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;You will also need to cater for networking components in your availability and recovery strategy because you will usually find that your application availability is as good as the ability of your networks to reach to all your interfacing components. A typical network diagram will look like below for your application and you will need to cater for availability of most of these components.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsZ4NJ3GII7pjPtF8r1cE4YfgPYpZULFejzpoiq4tJ53WZZU6TN46hBUUxvhhPfkUKyiFwC1trug7R-WAMVjhsNBsddaAChXyMOyRn3nisixvpbJ9Vjmt3IF8piZtBUDtdA1X4mpnnDV0OZp7dt5FROXKfL9260vJQwnt7ZBwMuVsm5Pou0zKIYeOvOzM/s480/networking.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;480&quot; data-original-width=&quot;468&quot; height=&quot;441&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsZ4NJ3GII7pjPtF8r1cE4YfgPYpZULFejzpoiq4tJ53WZZU6TN46hBUUxvhhPfkUKyiFwC1trug7R-WAMVjhsNBsddaAChXyMOyRn3nisixvpbJ9Vjmt3IF8piZtBUDtdA1X4mpnnDV0OZp7dt5FROXKfL9260vJQwnt7ZBwMuVsm5Pou0zKIYeOvOzM/w430-h441/networking.jpg&quot; width=&quot;430&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;The diagram above has a simple depiction of a DMG layer but in practice its made up of multiple layers. You will usually have a WAF for webserving application as well so you can filter traffic at http layer etc. Though it still conveys the message that from your internal firewall/s you need to make sure that your fronting layer is accessible to continue to have better availability.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 18px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 18px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;&lt;b&gt;Name Resolution&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;Name resolution is another factor for your domain. Also the factor which matters is do you need a pretty name(Usually for browser apps you will) or happy with a machine name. Whatever name you pickup, resolving it to a single IP will always bring your application to single point of failure. Though some of the newer DNS solutions like Azure Traffic Manager and GCP External load balancers are able to give you clever aliases which can also do ping and bring in a lot of http server capabilities within DNS space where you can apply different algorithms and geographically distribute your solution as well as make sure that your users are always hitting a healthy server. A typical diagram for name resolution will be like below:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT3Q3j90IKRD-FI77e957BRjyvylPyfF4IlPNFfTLlVXKua2QRnmSMTd_fHquSB6dAF8-q8B5Z4htmqS9sYhO6Q_yWNA3-ymVclpQ3ySr5C02biU5td4FFw-yTOVFVwA-TmCPoc2DhPfhrKuyqEb4CKMGdgkvBTT2Bi7CTIgYn0Whr3FsTXuc00VuLwnY/s468/dns.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;173&quot; data-original-width=&quot;468&quot; height=&quot;142&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT3Q3j90IKRD-FI77e957BRjyvylPyfF4IlPNFfTLlVXKua2QRnmSMTd_fHquSB6dAF8-q8B5Z4htmqS9sYhO6Q_yWNA3-ymVclpQ3ySr5C02biU5td4FFw-yTOVFVwA-TmCPoc2DhPfhrKuyqEb4CKMGdgkvBTT2Bi7CTIgYn0Whr3FsTXuc00VuLwnY/w539-h142/dns.jpg&quot; width=&quot;539&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;In the above diagram the dotted line represents address resolution and there is no traffic originating to servers. The user first goes to multiple DNS servers and finds the IP a name represents and then the solid line represents actual traffic to the App. In reality the DNS is cached at multiple places so the user do not have to do the round trip every time. This is usually controlled by time to live setting on a DNS server which is also a factor for availability as a cached DNS may route traffic to an unhealthy server if TTL is very large.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 18px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 18px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;&lt;b&gt;Protocols&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 16px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px 0px 16px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;Protocols are also a major factor of availability and recovery strategy. You will find that the lower you go in network stack your choices will be limited. A stateless protocol like HTTP is usually easy to design for but application designed for some of the pure TCP protocol like MQTT or Kafka may force you to look at your connection state before you failover and that usually means a disturbance at user side. Even on HTTP, if you are using streaming services you will find that you need to make sure your availability is static.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;span class=&quot;s1&quot; style=&quot;font-kerning: none;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/5104463481515949752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2023/11/cloud-application-architecture-for-hadr.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/5104463481515949752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/5104463481515949752'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2023/11/cloud-application-architecture-for-hadr.html' title='Cloud Application Architecture for HA/DR'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic2mLYS7YneDh221RggvbXrftDEUENho4IJpZcNVmPx5tXOHl4gFhanzlRGu5NmhGTT8cgTp3H8JhitlsXwFCWDxPpya1y-43aOIcBaRhpelN82vQM21kIIvfCGhXHJsEVn3qjVVHML1T1Xkb_Mx6If1eJl_NQBF1qFCcZXFCcic5bQ6XbX8SjV_UWTA4/s72-w536-h179-c/multitier1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-3241654402633447111</id><published>2023-09-08T03:31:00.000-07:00</published><updated>2023-09-08T03:31:16.186-07:00</updated><title type='text'>Cloud Naming Principles</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #172b4d; font-family: &amp;quot;Segoe UI&amp;quot;, sans-serif; font-size: 12pt; letter-spacing: -0.05pt;&quot;&gt;Naming standard is the basic pillar of any automation, framework and adoption. A good and consistent naming standard will help us in all our practices like development (Dev), financial(Fin), Security(Sec) and Operations(Ops). A good name is always which is identifiable even when read out of the context in which it is defined. Like if you have virtual machine in cloud and you see that name in a variable file in your code repository, it should be able to tell you what exactly is getting build and who it belongs to. Some of the best practices of naming are as below:&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small; margin: 0.75rem 0px 0px; white-space-collapse: preserve;&quot;&gt;
&lt;span style=&quot;color: #172b4d; font-family: &amp;quot;Segoe UI&amp;quot;, sans-serif; font-size: 12pt; letter-spacing: -0.05pt;&quot;&gt;&amp;nbsp;&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol start=&quot;1&quot; style=&quot;background-color: white; box-sizing: border-box; color: #222222; display: flow-root; font-family: Arial, Helvetica, sans-serif; font-size: small; margin-bottom: 0cm; margin-top: 0cm; padding-left: var(--ed--list--item-counter--padding,24px); white-space-collapse: preserve;&quot; type=&quot;1&quot;&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #172b4d; margin-bottom: 0cm; margin-left: 15px; margin-top: 0cm;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;, sans-serif; font-size: 12pt; letter-spacing: -0.05pt;&quot;&gt;Keep it short but meaningful - Its important that we keep our names as short as possible but still keep the relevance. Its a difficult one to juggle but keeping it short
 is an important principle because these names are usually fed into IT systems which have their own constraints on number of characters they can handle.&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #172b4d; margin-bottom: 0cm; margin-left: 15px; margin-top: 0cm;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;, sans-serif; font-size: 12pt; letter-spacing: -0.05pt;&quot;&gt;Consistent Elements - All names should have some consistent elements which then identify them to larger organization or functional aspect of that component. For Example Google
 in name will always identify any object even outside Google&#39;s context to be one belonging to some place in Google. Similarly VM as consistent element in a virtual machine will always identify that its virtual machine which is being built.&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #172b4d; margin-bottom: 0cm; margin-left: 15px; margin-top: 0cm;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;, sans-serif; font-size: 12pt; letter-spacing: -0.05pt;&quot;&gt;Define your separator - Usually “-” as a separator in your names makes it more readable. But there are objects which will not allow you to have separators like Azure Storage
 account so have provisions for those in your conventions.&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #172b4d; margin-bottom: 0cm; margin-left: 15px; margin-top: 0cm;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;, sans-serif; font-size: 12pt; letter-spacing: -0.05pt;&quot;&gt;Document the exceptions - A good practice of any conventions is to document what is the fall-back if there are objects which doesn’t allow to fit in the convention and a
 process for it to be included in the convention by extending the convention.&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #172b4d; margin-bottom: 0cm; margin-left: 15px; margin-top: 0cm;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;, sans-serif; font-size: 12pt; letter-spacing: -0.05pt;&quot;&gt;Document the variable elements - The variable elements in the name is what makes it unique for identity purposes. Its important that we document the rules for defining this
 element. Usually if we align it to our CMDB structure or project short codes then the names can be mapped backward to the initiative it was created for. It is also important that we have good rules around the number of characters a variable element can have.
 Usually 4 is a good number.&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #172b4d; margin-bottom: 0cm; margin-left: 15px; margin-top: 0cm;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;, sans-serif; font-size: 12pt; letter-spacing: -0.05pt;&quot;&gt;Versioning and parallelism - An important aspect of a name is to support multiple version of that object or many items of that object. This need to be implemented at every
 level as it provides extendibility in the architecture. Though some of the highest level like Azure tenant or Google org may not allow this, we should ideally apply this everywhere this is allowed. A three character numbering system is usually prevalent where
 the first character signifies version and the last 2 character signifies parallel object. For example VM-001 which is a virtual machine of version 0 and this is the first object. Obviously this creates a problem similar to what we had in Year 2000 ( Famously
 known as Y2K ) as you can have maximum of 9 version and 99 items. But if we are having more than 9 version of an object or creating more than 99 items than we need to look at our design and try and see why we are not doing micro computing.&lt;u&gt;&lt;/u&gt;&lt;u&gt;&lt;/u&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #172b4d; margin-bottom: 0cm; margin-left: 15px; margin-top: 0cm;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;, sans-serif; font-size: 12pt; letter-spacing: -0.05pt;&quot;&gt;Leave things on Tagging - It is tempting to derive everything by name of an object but not always fruitful because of the first objective I mentioned above about keeping
 it short. Tagging is here to help. Use tags to derive every other information you think will add context to the object instead of squashing everything in the name. Like operating System of a VM can easily be a tag element&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/3241654402633447111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2023/09/cloud-naming-principles.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/3241654402633447111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/3241654402633447111'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2023/09/cloud-naming-principles.html' title='Cloud Naming Principles'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-3678935926991159761</id><published>2020-04-28T03:48:00.002-07:00</published><updated>2020-04-29T05:52:48.867-07:00</updated><title type='text'>Continuous Validation - A concept</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h1 style=&quot;mso-list: l0 level1 lfo1;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_Toc38962223&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: &amp;quot;Fujitsu Sans Medium&amp;quot;; mso-fareast-font-family: &amp;quot;Fujitsu Sans Medium&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;Introduction&lt;/span&gt;&lt;/a&gt;&lt;span lang=&quot;EN-US&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;This blog outlines an approach to
validate build artifacts periodically. There are considerable effort
made in automating and integrating build and deploy for both
infrastructure and applications in every organisation but overtime there may be a need to sanity check
the automation itself to early identify potential issues and save developers
time at the time of real execution. While CI/CD dictates periodic build and
deploy at every stage to make sure confidence in consistent builds are high,
there are occasions when some part of the build like infrastructure
provisioning is not part of daily build cycles to save time and money. Such moving
parts should be validated periodically to have confidence in them at the time of
execution.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h1 style=&quot;mso-list: l0 level1 lfo1;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_Toc38962227&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;Objective&lt;/span&gt;&lt;/a&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;The main objective of continuous
validation is to be able to validate a piece of code periodically irrespective of
any code changes done on the main build artifacts. This type of change is
required when a build artifacts have multiple dependencies and those
dependencies has their own set of changes outside a build process. For example
a change in centralized policy can hamper future execution of AWS image builder.
A periodic tests in such cases will establish truth and will make sure automation
is fully available when needed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_Toc38962228&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot;&gt;An example build pipeline with
validation:&lt;/span&gt;&lt;/a&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfueCxYhmSSKOVB9tklmHDNhSwtL_W4pZo2C4E1Lvn0vupkKrM6niFyERC5aPLNua-_2-_RWCwg60heXB9LAxt_yrm3kt99tuklkP8zGP6dSURYp_nLZeCkeOS8CpjBccX4xLJ4tXIdd0/s1600/first.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;648&quot; data-original-width=&quot;1152&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfueCxYhmSSKOVB9tklmHDNhSwtL_W4pZo2C4E1Lvn0vupkKrM6niFyERC5aPLNua-_2-_RWCwg60heXB9LAxt_yrm3kt99tuklkP8zGP6dSURYp_nLZeCkeOS8CpjBccX4xLJ4tXIdd0/s640/first.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoBodyText&quot; style=&quot;page-break-after: avoid;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;





&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;fujitsu sans&amp;quot; , sans-serif; font-size: 10.0pt; line-height: 115%;&quot;&gt;Build with both Commit and Scheduler 1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;fujitsu sans&amp;quot; , sans-serif; font-size: 10.0pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;fujitsu sans&amp;quot; , sans-serif; font-size: 10.0pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h1 style=&quot;mso-list: l0 level1 lfo1;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_Toc38962229&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: &amp;quot;Fujitsu Sans Medium&amp;quot;; mso-fareast-font-family: &amp;quot;Fujitsu Sans Medium&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot;&gt;Key methods&lt;/span&gt;&lt;/a&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;It’s important to have complete end to
end run of an automation to make sure we have high level of confidence in
validation done prior to the actual run of an automation. Though it’s always
complex to achieve such an efficiency as usually automation will produce
artifacts at every stage of process. Some of the changes may also be lasting
and can create problems in subsequent executions. So it’s very important that
continuous validation is designed along with any automation to make sure
automation is aware of the validation. There are two key methods of validation:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_Toc38962230&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot;&gt;Dry run method&lt;/span&gt;&lt;/a&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;A dry run method allows an automation to
run every step without committing any changes. When available this makes
validation simple and we can run as many cycle as we want. But dry run is
usually dependent on product and services used for automation. For example both
AWS CLI and GCP gCloud provides dry run for any committable changes but Jenkins
which mainly work through plugin is totally dependent on build providers like
Gradle or Maven to apply dry run to a particular build. Dry run need to be
built and integrated into an automation script at the time of development so
that every step can be executed in a dry run mode. There is an additional
disadvantage of some future changes may not support dry run method and thus
continuous validation will impact future developments or development
methodologies. In the step process dry run can be depicted as below:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoBodyText&quot; style=&quot;page-break-after: avoid;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ4JNl5ljNPgpzLFEC5TtWfsF2_1xIPBrbNobM0Nwmjxx9bwWg3UM51QrccQuN6RMws7oi-9NsWzijCvWsLC9XELcFoGNtPvxw8ZKafVjXEC_fkzQyqmiepxu3heTHdTyi1Rq3jTp1JwA/s1600/second.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;648&quot; data-original-width=&quot;1152&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ4JNl5ljNPgpzLFEC5TtWfsF2_1xIPBrbNobM0Nwmjxx9bwWg3UM51QrccQuN6RMws7oi-9NsWzijCvWsLC9XELcFoGNtPvxw8ZKafVjXEC_fkzQyqmiepxu3heTHdTyi1Rq3jTp1JwA/s640/second.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoBodyText&quot; style=&quot;page-break-after: avoid;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoCaption&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Build
with Deploy report &lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span lang=EN-US&gt;&lt;span
style=&#39;mso-element:field-begin&#39;&gt;&lt;/span&gt;&lt;span
style=&#39;mso-spacerun:yes&#39;&gt; &lt;/span&gt;SEQ Build_with_Deploy_report \* ARABIC &lt;span
style=&#39;mso-element:field-separator&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span lang=&quot;EN-US&quot;&gt;1&lt;/span&gt;&lt;!--[if supportFields]&gt;&lt;span
lang=EN-US&gt;&lt;span style=&#39;mso-element:field-end&#39;&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]--&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;mso-list: l0 level2 lfo1;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_Toc38962231&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;Test Commit method&lt;/span&gt;&lt;/a&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;As the name suggests the test commit method
runs like a usual automation but at each step any artifact it will produce is
labeled to identify the artifacts produced by continuous validation. In test
commit method the most important bit is cleanup so that we can cleanup what is
produced at the beginning of next validation. This is required to save
resources used for validation and also have confidence in subsequent run. If we
do not cleanup then we will end up with a lot of validation resources which
will incur cost and space. Also if we do not cleanup properly then any artifact
created by validation may assist subsequent validation runs affecting the
outcome of validation.&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;Any cleanup
should run before the actual validation run and not just after every run. This
allows any validation output to be valid and verifiable before the next run. A
test commit method is better explained with a cycle rather than steps which is
unusual for build process. The cycle makes sure that the outcome of previous
run is fed into next scheduler run to achieve cleanup.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6mDIECGJaAmOQeO7QfpPlzWqJ5fhQbPgUO5tLIWUmLDwNXLQ-5UMjsXOhjX29JVWWDUWvw8HqxWTmpMTR0VMTIgBeQY9Ulk8yk9Ls43hfbCe31_IgEQWEE9V_TM_lV2nH5xxGGkjOnyE/s1600/third.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;648&quot; data-original-width=&quot;1152&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6mDIECGJaAmOQeO7QfpPlzWqJ5fhQbPgUO5tLIWUmLDwNXLQ-5UMjsXOhjX29JVWWDUWvw8HqxWTmpMTR0VMTIgBeQY9Ulk8yk9Ls43hfbCe31_IgEQWEE9V_TM_lV2nH5xxGGkjOnyE/s640/third.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h1 style=&quot;mso-list: l0 level1 lfo1;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_Toc38962232&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;Product support&lt;/span&gt;&lt;/a&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;As evident from all diagrams any automation
must provide a scheduled trigger to be able to validate continuously outside
SCM checkout because you do not want to check in on schedule and create history
of artefacts within SCM. Both Jenkins and AWS image build provides triggers
outside SCM checkout. In Jenkins we can use Scheduler plugin and AWS has plenty
of event based triggers like Cloud watch and SNS. All SCM provides generic
variables to use for any build trigger. Both Scheduler and SCM trigger should
have same structural data but with different values in generic variable to act
as an identifier for build process.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h1&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_Toc38962233&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot;&gt;Schedule design&lt;/span&gt;&lt;/a&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;All validation schedule should be
implemented during office hours or just before office hours so that any failure
outcome can be looked at immediately. Any failure report should invalidate the
next schedule till any manual intervention is notified to the process. Usually
some integration with Jira is advised for accountability. Also continuous
validation steps should lock down the build process so that it’s not running
concurrent with any other build. If a build process takes longer than 30
minutes then it should be schedule in such a way that on a clean run it
finishes just before the office hours.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoBodyText&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h1&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_Toc38962233&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;In Practice&lt;/span&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;div&gt;
I guess we should try and put this to practice. For that I have done a AWS codepipeline which usually does a code build based on a code commit . Code build itself uses a packer build file to build an AMI. I will not go into details of this setup as there are many ways to build an AMI.Here is a shell script which synthetically trigger this pipeline and then applies all that we wrote above. First a step diagram to explain what&#39;s going on in the script:&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_Toc38962233&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtoHP5r6un7aN3UuZmIaOJfTTSVcaZWSIy47MHqEE1Whmry6Nzzr3wwD7R_erzdT5FY4IQV7fZ4QM3GxiQFhT7-im9vj8Ym-itmHQIhTu7bVAc9Gzb1XwpyUtO0WdOwWRYHZPZ3HgAIjY/s1600/four.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;648&quot; data-original-width=&quot;1152&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtoHP5r6un7aN3UuZmIaOJfTTSVcaZWSIy47MHqEE1Whmry6Nzzr3wwD7R_erzdT5FY4IQV7fZ4QM3GxiQFhT7-im9vj8Ym-itmHQIhTu7bVAc9Gzb1XwpyUtO0WdOwWRYHZPZ3HgAIjY/s400/four.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_Toc38962233&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_Toc38962233&quot;&gt;pipeline.sh:&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_Toc38962233&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;
&lt;/span&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;export AWS_DEFAULT_REGION=eu-west-1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;bucket=my-bucket&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;pipelines=`aws codepipeline list-pipelines`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;pipelines=`echo $pipelines | jq &#39;.pipelines&#39;`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;for row in $(echo &quot;${pipelines}&quot; | jq -r &#39;.[] | @base64&#39;); do&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; _jq() {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;echo ${row} | base64 --decode | jq -r ${1}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;name=`echo $(_jq &#39;.name&#39;)`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;if [[ $name == *&quot;AMI-&quot;* ]]; then&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;echo $name&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;touch $name.txt&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;aws s3 ls s3://$bucket/codepipeline/$name-last.txt&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;if [[ $? -eq 0 ]]; then&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;aws s3 cp s3://$bucket/codepipeline/$name-last.txt .&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;last_ami_id=`cat $name-last.txt`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;rm $name-last.txt&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;aws ec2 deregister-image --image-id $last_ami_id&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;fi&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;aws s3 cp $name.txt s3://$bucket/codepipeline/$name.txt&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;execution=`aws codepipeline start-pipeline-execution --name $name`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;execution_id=`echo $execution | jq .pipelineExecutionId`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;execution_id=`echo $execution_id | sed &#39;s/&quot;//g&#39;`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;sleep 5&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;status=` aws codepipeline get-pipeline-execution --pipeline-name $name --pipeline-execution-id $execution_id`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;status=`echo $status | jq .pipelineExecution.status`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;status=`echo $status | sed &#39;s/&quot;//g&#39;`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;while [[ $status != *&quot;Succeeded&quot;* ]];&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;do&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; status=` aws codepipeline get-pipeline-execution --pipeline-name $name --pipeline-execution-id $execution_id`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; status=`echo $status | jq .pipelineExecution.status`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; status=`echo $status | sed &#39;s/&quot;//g&#39;`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if [[ $status == *&quot;Failed&quot;* ]]; then&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; aws s3 rm s3://$my-bucket/codepipeline/$name.txt&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit 1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fi&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sleep 5&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;done&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;build_id=`aws codepipeline get-pipeline-state --name $name | jq .stageStates[1].actionStates[].latestExecution.externalExecutionId`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;build_id=`echo $build_id | sed &#39;s/&quot;//g&#39;`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;build_details=`aws codebuild batch-get-builds --ids $build_id`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;log_group=`echo $build_details | jq .builds[].logs.groupName | sed &#39;s/&quot;//g&#39;`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;log_stream=`echo $build_details | jq .builds[].logs.streamName | sed &#39;s/&quot;//g&#39;`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;ami_id=`aws logs filter-log-events --log-group-name $log_group --log-stream-names $log_stream | grep -m2 ami- | tail -1`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;ami_id={`echo &quot;${ami_id::-2}&quot;`}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;ami_id=`echo $ami_id | jq .message`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;ami_id=`echo $ami_id | sed &#39;s/&quot;//g&#39; | cut -d&#39;:&#39; -f3`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;ami_id=`echo &quot;${ami_id::-2}&quot;`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;aws s3 rm s3://$bucket/codepipeline/$name.txt&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;echo &quot;Got the AMI id to delete $ami_id&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;#aws ec2 deregister-image --image-id $ami_id&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;echo $ami_id &amp;gt; $name-last.txt&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp;aws s3 cp $name-last.txt s3://$bucket/codepipeline/$name-last.txt&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;fi&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;done&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
Also you must inject an identifier in your build itself. For this I am creating a 0 byte file in AWS S3 if the job is run from a scheduled a job.&lt;br /&gt;
Further in the AMI build job we will have step to check if 0 byte file exist and then introduce an identifier in the name of your AMI build. This will make sure your AMI is identified as been created from scheduler&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;_Toc38962233&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/3678935926991159761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2020/04/continuous-validation-concept.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/3678935926991159761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/3678935926991159761'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2020/04/continuous-validation-concept.html' title='Continuous Validation - A concept'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfueCxYhmSSKOVB9tklmHDNhSwtL_W4pZo2C4E1Lvn0vupkKrM6niFyERC5aPLNua-_2-_RWCwg60heXB9LAxt_yrm3kt99tuklkP8zGP6dSURYp_nLZeCkeOS8CpjBccX4xLJ4tXIdd0/s72-c/first.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-7834025787015789380</id><published>2019-12-01T08:58:00.001-08:00</published><updated>2019-12-01T08:58:09.210-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="clone"/><category scheme="http://www.blogger.com/atom/ns#" term="gcloud"/><category scheme="http://www.blogger.com/atom/ns#" term="GCP"/><category scheme="http://www.blogger.com/atom/ns#" term="repos"/><title type='text'>Recursively clone repository from google cloud repository</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This is a small shell script to clone all your repos when changing VMs or for setting up dev machines. I find it very handy. The script assumes that gcloud init has been done and default project is where all repos are.&lt;br /&gt;
&lt;br /&gt;
for repo in `gcloud source repos list`;&lt;br /&gt;
do&lt;br /&gt;
if [[ $repo =~ &quot;https&quot; ]]; then&lt;br /&gt;
repo_name=`echo ${repo##*/}`;&lt;br /&gt;
echo $repo_name;&lt;br /&gt;
gcloud source repos clone $repo_name;&lt;br /&gt;
fi&lt;br /&gt;
done&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
This should clone all cloud repo in the current folder. You can extend it fit all your other needs.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/7834025787015789380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2019/12/recursively-clone-repository-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/7834025787015789380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/7834025787015789380'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2019/12/recursively-clone-repository-from.html' title='Recursively clone repository from google cloud repository'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-4439242910750735502</id><published>2016-11-24T21:04:00.000-08:00</published><updated>2016-11-25T04:36:40.519-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Alexa"/><category scheme="http://www.blogger.com/atom/ns#" term="Amazon"/><category scheme="http://www.blogger.com/atom/ns#" term="audio"/><category scheme="http://www.blogger.com/atom/ns#" term="cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="dot"/><category scheme="http://www.blogger.com/atom/ns#" term="drive"/><category scheme="http://www.blogger.com/atom/ns#" term="echo"/><category scheme="http://www.blogger.com/atom/ns#" term="me"/><category scheme="http://www.blogger.com/atom/ns#" term="mint"/><category scheme="http://www.blogger.com/atom/ns#" term="mp3"/><category scheme="http://www.blogger.com/atom/ns#" term="music"/><category scheme="http://www.blogger.com/atom/ns#" term="one"/><category scheme="http://www.blogger.com/atom/ns#" term="own"/><category scheme="http://www.blogger.com/atom/ns#" term="play"/><category scheme="http://www.blogger.com/atom/ns#" term="Starfish"/><category scheme="http://www.blogger.com/atom/ns#" term="storage"/><title type='text'>How to connect to Microsoft one drive with php</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Well I was reluctant to test this to start with but when I started reading through Microsoft documentation I realized Microsoft has worked out a little beauty here. You can learn how to set yourself &amp;nbsp;to start using one drive&amp;nbsp;&lt;a href=&quot;https://dev.onedrive.com/sdk/js-v7/js-picker-overview.htm&quot;&gt;here&lt;/a&gt;. Which is basically a javascript documentation of how to access one drive. But being a server side programmer I needed a way to do this using a server side scripting language for our project to play users music on Amazon Alexa enabled devices. I soon found that I can do this with some basic curl commands. Here is my curl block in php to list an App folder of one drive:&lt;br /&gt;
&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, &quot;https://api.onedrive.com/v1.0/drive/special/approot/children&quot;);&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
curl_setopt($ch, CURLOPT_TIMEOUT, &#39;3&#39;);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HEADER, true);&lt;br /&gt;
$headers = array();&lt;br /&gt;
$headers[] = &#39;Authorization: Bearer &#39; . {access_token};&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);&lt;br /&gt;
$server_output = curl_exec ($ch);&lt;br /&gt;
$info = curl_getinfo($ch);&lt;br /&gt;
$header = substr($server_output, 0, $info[&#39;header_size&#39;]);&lt;br /&gt;
$returnCode= curl_getinfo($ch, CURLINFO_HTTP_CODE);&lt;br /&gt;
echo&amp;nbsp;substr($server_output, $info[&#39;header_size&#39;]);&lt;br /&gt;
&lt;br /&gt;
Obviously you will need to authorize your app and acquire an access_token first using one drive api. You can do that by just redirecting user to Microsoft authentication page using something like below:&lt;br /&gt;
&lt;br /&gt;
header(&#39;Location: &#39; . &amp;nbsp;&#39;https://login.live.com/oauth20_authorize.srf?client_id={Your_cline_id}&amp;amp;scope=onedrive.appfolder&amp;amp;response_type=code&amp;amp;redirect_uri=https://somewhere.com/where_you will_like_to_receive_response,false);&lt;br /&gt;
&lt;br /&gt;
The above will return a Auth code in the url. Now you can use the Auth code to get a access token like below using curl:&lt;br /&gt;
&lt;br /&gt;
$ch = curl_init(&quot;https://login.live.com/oauth20_token.srf&quot;);&lt;br /&gt;
curl_setopt($ch, CURLOPT_POST, 1);&lt;br /&gt;
curl_setopt($ch, CURLOPT_POST, 5);&lt;br /&gt;
curl_setopt($ch,CURLOPT_POSTFIELDS, &quot;client_id=Your_clinet_id&amp;amp;client_secret=Your_Client_Secret&amp;amp;redirect_uri=Same_URL_Where_you_received_response&amp;amp;grant_type=authorization_code&amp;amp;code=code_you_received_in_previous_call&quot;);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER,Array(&#39;Content-Type: application/x-www-form-urlencoded&#39;));&lt;br /&gt;
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;
$Rec_Data = curl_exec($ch);&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
echo $Rec_Data;&lt;br /&gt;
&lt;br /&gt;
If you are an Amazon echo, Amazon dot or any alexa enabled device user, which supports audio stream you can use our skill &lt;a href=&quot;http://www.starfishmint.com/audio&quot;&gt;Starfish Audio&lt;/a&gt;&amp;nbsp;which uses this piece of code to play users music on Alexa enabled devices from Microsoft one drive. How it all hangs together is explained in this blog &lt;a href=&quot;https://www.starfishmint.com/blog/audio.html&quot;&gt;here&lt;/a&gt;. You can play your own music on alexa and the technology behind it just few curl commands. How cool is that?&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/4439242910750735502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2016/11/how-to-connect-to-microsoft-one-drive.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/4439242910750735502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/4439242910750735502'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2016/11/how-to-connect-to-microsoft-one-drive.html' title='How to connect to Microsoft one drive with php'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-6571750214852915946</id><published>2015-07-08T06:51:00.000-07:00</published><updated>2015-07-08T06:52:59.614-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="wsadmin LTPA keys jython"/><title type='text'>wsadmin importing/exporting LTPA keys</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Before I forget I want to put it here. these two commands you can put them in your scripts to export/import LTPA keys from Websphere environment:&lt;br /&gt;
&lt;br /&gt;
AdminTask.exportLTPAKeys(&quot;[-&lt;br /&gt;
&lt;div&gt;
&lt;wbr&gt;&lt;/wbr&gt;ltpaKeyFile file:&quot; +&amp;nbsp; &quot;/tmp/abhi.key&quot; + &quot; -password &quot; + &quot;abhi&quot; + &quot;]&quot;)&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
AdminTask.importLTPAKeys(&quot;[-&lt;br /&gt;
&lt;div&gt;
&lt;wbr&gt;&lt;/wbr&gt;ltpaKeyFile file:&quot; +&amp;nbsp; &quot;/tmp/abhi.key&quot; + &quot; -password &quot; + &quot;abhi&quot; + &quot;]&quot;)&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
Replace&amp;nbsp; &quot;/tmp/abhi.key&quot; with your path and &quot;abhi&quot; with your password. You really want them to be dynamic and pass them as parameters in your script and then the syntax will be as below:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
AdminTask.exportLTPAKeys(&quot;[-&lt;br /&gt;
&lt;div&gt;
&lt;wbr&gt;&lt;/wbr&gt;ltpaKeyFile file:&quot; +&amp;nbsp; sys.argv[0] + &quot; -password &quot; + sys.argv[1] + &quot;]&quot;)&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
AdminTask.importLTPAKeys(&quot;[-&lt;br /&gt;
&lt;div&gt;
&lt;wbr&gt;&lt;/wbr&gt;ltpaKeyFile file:&quot; +&amp;nbsp; sys.argv[0] + &quot; -password &quot; + sys.argv[1] + &quot;]&quot;)&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/6571750214852915946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2015/07/wsadmin-importingexporting-ltpa-keys.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/6571750214852915946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/6571750214852915946'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2015/07/wsadmin-importingexporting-ltpa-keys.html' title='wsadmin importing/exporting LTPA keys'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-8800757479293615404</id><published>2015-06-23T07:05:00.001-07:00</published><updated>2015-06-24T03:29:54.411-07:00</updated><title type='text'>awk and sed to delete specific lines in a file</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
You can tell I am excited by this. After few months of just meetings on my timeline I have finally done some coding for a friend to remove WAS servers from IHS plugin. They basically want to remove servers after the plugin is generated for some customisation. Reason I am excited that I finally used awk and sed to do the job for me. I have never been a fan of awk or sed and it&#39;s due to my limitations and before you jump on it I am fully aware that they are some of the best thing going around:&lt;br /&gt;
&lt;br /&gt;
I am going to focus on the unix bit here so if you need wsadmin bit just put it in the comments and I will get you the equivalent jython. But all it did is gave me Name of server which became my key to search in plugin to remove from plugins.&lt;br /&gt;
&lt;br /&gt;
##This will be my resultant server Name&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;serverName=&#39;MyServer&#39;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
##These two lines gets me the line number of &amp;lt;Server&amp;gt;&amp;lt;/Server&amp;gt; tag (Only the first line). Then we know the &amp;lt;server&amp;gt;&amp;lt;/server tag&amp;gt; has 5 elements so we add 6 to it. This bit is not required as the servers can be removed just by taking them out of &amp;lt;PrimaryServers&amp;gt;&amp;lt;/PrimaryServers&amp;gt; tag. But this will make it look clean.&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;firstLine=`awk &#39;match($0,v){print NR; exit}&#39; v=$serverName $pathToFile/plugin-cfg.xml`&lt;br /&gt;lastLine=`expr $firstLine + 6`&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
##This line removes the 7 lines we are interested in. It uses a temp file to write and then moves it&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;sed &quot;${firstLine}&quot;,&quot;${lastLine}d&quot; $currentFile &amp;gt; $currentFile.tmp &amp;amp;&amp;amp; mv $currentFile.tmp $currentFile&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;## This bit does exactly the same but removes a single line instead of a block as it is removing from &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;PrimaryServers&amp;gt;&amp;lt;/PrimaryServers&amp;gt; tag&lt;/span&gt;&lt;br /&gt;firstLine=`awk &#39;match($0,v){print NR; exit}&#39; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;v=$serverName $pathToFile/plugin-cfg.xml`&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;sed &quot;${firstLine}d&quot; $currentFile &amp;gt; $currentFile.tmp &amp;amp;&amp;amp; mv $currentFile.tmp $currentFile&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/8800757479293615404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2015/06/awk-and-sed-to-delete-specific-lines-in.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/8800757479293615404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/8800757479293615404'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2015/06/awk-and-sed-to-delete-specific-lines-in.html' title='awk and sed to delete specific lines in a file'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-5941981642117686028</id><published>2015-02-24T04:33:00.003-08:00</published><updated>2015-02-24T04:33:53.413-08:00</updated><title type='text'>Getting hostname/IP from network Alias on Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Only putting it here because I achived it in the end with very simple awk commands:&lt;br /&gt;
&lt;br /&gt;
nslookup Your_Network_Alias | grep Name | awk -F &quot;:&quot; &#39;{print $2}&#39; | awk -F &quot; &quot; &#39;{print $1}&#39;&lt;br /&gt;
&lt;br /&gt;
If you need IP then you can change it like below:&lt;br /&gt;
&lt;br /&gt;
nslookup Your_Network_Alias | grep Address | tail -1 | awk -F &quot;:&quot; &#39;{print $2}&#39; | awk -F &quot; &quot; &#39;{print $1}&#39;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/5941981642117686028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2015/02/getting-hostnameip-from-network-alias.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/5941981642117686028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/5941981642117686028'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2015/02/getting-hostnameip-from-network-alias.html' title='Getting hostname/IP from network Alias on Linux'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-6823670265444548321</id><published>2014-08-31T06:22:00.003-07:00</published><updated>2014-08-31T06:23:37.728-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Access-Control-Allow-Origin"/><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="CORS"/><category scheme="http://www.blogger.com/atom/ns#" term="Cross-origin resource sharing"/><category scheme="http://www.blogger.com/atom/ns#" term="header"/><category scheme="http://www.blogger.com/atom/ns#" term="IHS"/><title type='text'>Restricting Cross-origin resource sharing (CORS)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here below few lines in your IHS/apache configuration to make sure you are only exposing assets you will like to expose with this very helpful protocol:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SetEnvIf Request_URI &quot;^/some/Url?&quot; allow_cors&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SetEnvIf Origin &quot;^(.*\.example\.com)$&quot; ORIGIN_DOMAIN=www.example.com&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;IfModule mod_headers.c&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Header always add Access-Control-Allow-Origin &quot;%{ORIGIN_DOMAIN}e&quot; env=allow_cors&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Header always add Access-Control-Allow-Methods &quot;GET&quot; env=allow_cors&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The first line will make sure you are only allowing URLs which you want to expose. You can duplicate that line for any more assets you want to expose.&lt;br /&gt;
The second line will make sure you are only allowing domains you trust to get access to your assets. Again you can duplicate the line if you want give access to multiple domains. &lt;br /&gt;
&lt;br /&gt;
And the last bit is setting the headers to allow CORS.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/6823670265444548321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2014/08/restricting-cross-origin-resource.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/6823670265444548321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/6823670265444548321'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2014/08/restricting-cross-origin-resource.html' title='Restricting Cross-origin resource sharing (CORS)'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-5246532280827379583</id><published>2014-06-06T05:11:00.000-07:00</published><updated>2014-06-06T05:11:54.087-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="find"/><category scheme="http://www.blogger.com/atom/ns#" term="grep"/><category scheme="http://www.blogger.com/atom/ns#" term="jar"/><category scheme="http://www.blogger.com/atom/ns#" term="shell"/><category scheme="http://www.blogger.com/atom/ns#" term="string"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><category scheme="http://www.blogger.com/atom/ns#" term="unzip"/><title type='text'>Bit of shell script to grep within files in jar</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We always need these funky stuff to debug our issues don&#39;t we. So here is the piece I generally use :&lt;br /&gt;
&lt;br /&gt;
find . -name &#39;*.jar&#39; -print | while read findjar; do&lt;br /&gt;
&amp;nbsp; echo &quot;Finding in $findjar:&quot;&lt;br /&gt;
&amp;nbsp; unzip -qq -l $findjar| sed &#39;s/.* //&#39; | while read cls; do&lt;br /&gt;
&amp;nbsp; &amp;nbsp; unzip -c $findjar&amp;nbsp;$cls | grep -q &#39;StringToSearch&#39; &amp;amp;&amp;amp; echo &quot; &amp;nbsp; &quot;$cls&lt;br /&gt;
&amp;nbsp; done&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
To run it make sure you are in the root of path where the jars are based and you can just copy paste it to your shell and make sure you replace &quot;StringToSearch&quot; with your own string.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/5246532280827379583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2014/06/bit-of-shell-script-to-grep-within.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/5246532280827379583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/5246532280827379583'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2014/06/bit-of-shell-script-to-grep-within.html' title='Bit of shell script to grep within files in jar'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-1301772291407546355</id><published>2014-05-14T04:27:00.000-07:00</published><updated>2014-05-14T04:27:37.869-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chmod"/><category scheme="http://www.blogger.com/atom/ns#" term="not working"/><category scheme="http://www.blogger.com/atom/ns#" term="permissions"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><category scheme="http://www.blogger.com/atom/ns#" term="unable"/><title type='text'>What to do when ssh is not working (OpenSSH)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This blog is to remind me the things I need to do to make ssh working when I am certain that the keys are added correctly. Enabling ssh is already documented very well on the internet.&lt;br /&gt;
&lt;br /&gt;
Make sure the ~/ (HOME) folder of the remote user do not have permissions for groups or for everyone else to write. If you are uncertain what it should be then just execute:&lt;br /&gt;
&lt;br /&gt;
chmod 755 /home/{userid}&lt;br /&gt;
&lt;br /&gt;
Same for .ssh folder and I suggest you be even conservative here and set it to&lt;br /&gt;
&lt;br /&gt;
chmod 600 &amp;nbsp;/home/{userid}/.ssh&lt;br /&gt;
&lt;br /&gt;
Same for authorized_keys (or authorized_keys2 if you are on SSH version 2). Set it to&lt;br /&gt;
&lt;br /&gt;
chmod 600 &amp;nbsp;/home/{userid}/.ssh/authorized_keys&lt;br /&gt;
&lt;br /&gt;
A brief explanation of permissions are as below:&lt;br /&gt;
&lt;br /&gt;



&lt;span class=&quot;left&quot; style=&quot;font-family: &#39;Segoe UI&#39;; font-size: 9pt;&quot;&gt;7 - rwx&lt;br /&gt;6 - rw&lt;br /&gt;5 - rx&lt;br /&gt;4 - r&lt;br /&gt;2 - w&lt;br /&gt;1 - x&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;the top three are combinations of the bottom 3&amp;nbsp;&lt;table&gt;&lt;/table&gt;
i.e. add 4+1=5 for rx&amp;nbsp;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You can debug ssh connection passing -v to your connection attempt i.e ssh -v {userid}@{hostname}&lt;br /&gt;&lt;table&gt;&lt;/table&gt;
&lt;table&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/1301772291407546355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2014/05/what-to-do-when-ssh-is-not-working.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/1301772291407546355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/1301772291407546355'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2014/05/what-to-do-when-ssh-is-not-working.html' title='What to do when ssh is not working (OpenSSH)'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-504940280154222720</id><published>2014-04-23T09:28:00.000-07:00</published><updated>2014-04-23T09:28:16.284-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache .indd download IE8 IE ForceType Content-Disposition attachment filename"/><title type='text'>Apache, IE8 Download unknown file types</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I stumbled upon this issue while configuring a new Adobe CQ5 system. The file in question is an adobe indesign file with an extension .indd. We had this file on our apache server and it worked perfectly on all other browser but IE8 on Windows 7 system. We had to obviously setup Mime type etc first to make sure the server is sending the right headers back to the browser but it will simply say unable to download file in first attempt but will work the next time in IE8.&lt;br /&gt;
&lt;br /&gt;
Well I haven&#39;t been able to resolve this completely but have given a work around to our client which is acceptable but not ideal. Obviously if you are in website business you have to get all the solutions on server side as you can&#39;t expect all your audience to change there side of things.&lt;br /&gt;
&lt;br /&gt;
Below is what I added to our httpd.conf to fool IE8 in thinking that the file is actually and html file and not an unknown type. The ideal way was to define it as application/octet-stream but IE8 won&#39;t buzz because it need to find the association of the file downloaded to save it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;FilesMatch &quot;\.(indd)$&quot;&amp;gt;&lt;br /&gt;
ForceType text/html&lt;br /&gt;
Header set Cache-Control &quot;&quot;&lt;br /&gt;
Header set Pragma &quot;&quot;&lt;br /&gt;
Header set Content-Transfer-Encoding &quot;binary&quot;&lt;br /&gt;
#Header set Content-Disposition attachment&lt;br /&gt;
SetEnvIf REQUEST_URI &quot;/([^/]+)$&quot; FILENAME=$1&lt;br /&gt;
Header set Content-Disposition &quot;attachment; filename=\&quot;%{FILENAME}e\&quot;&quot; env=FILENAME&lt;br /&gt;
&amp;lt;/FilesMatch&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;FilesMatch &quot;\.(indd)$&quot;&amp;gt; &amp;nbsp;bit is to identify my files extension and you will need to replace indd with your extension if you are trying it.&lt;br /&gt;
ForceType text/html is the line which is setting the type as an html file which allows multiple extensions&lt;br /&gt;
&lt;br /&gt;
The last two lines in the configuration is there to force file extension which is the only unacceptable bit in the whole solution as Windows 7 will then try an add .htm to the extension and you have to manually remove the extension before saving.&lt;br /&gt;
All other browsers are smart enough to not care what you are downloading and they start downloading without a SAVE prompt straight away so you shouldn&#39;t have trouble with them.&lt;br /&gt;
Also if you can control your users accessing your site then you can just ask them to make an association to a program for the file type and it should download fine after that. Like ask them to try and open and assign say notepad to open such file type. After that if you will try and download then it will download fine.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/504940280154222720/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2014/04/apache-ie8-download-unknown-file-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/504940280154222720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/504940280154222720'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2014/04/apache-ie8-download-unknown-file-types.html' title='Apache, IE8 Download unknown file types'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-4656076724454155181</id><published>2014-02-04T02:24:00.000-08:00</published><updated>2014-02-08T02:30:42.253-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="jython"/><category scheme="http://www.blogger.com/atom/ns#" term="monitoring"/><category scheme="http://www.blogger.com/atom/ns#" term="port"/><category scheme="http://www.blogger.com/atom/ns#" term="socket"/><category scheme="http://www.blogger.com/atom/ns#" term="wsadmin"/><title type='text'>Jython to query ports of a server and check if its listening</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This is a piece I did to monitor a given cell. It queries all nodes and server&#39;s ports and tries to make a socket connection to see if anything listening on the given port. Had to write my own call for java sockets as the one within socket.py does not support timeouts.&lt;br&gt;
&lt;br&gt;
Here is the code:&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;========================================================================&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;import java.net&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;def _splitlines(s):&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; rv = [s]&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; if &#39;\r&#39; in s:&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; rv = s.split(&#39;\r\n&#39;)&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; elif &#39;\n&#39; in s:&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; rv = s.split(&#39;\n&#39;)&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; if rv[-1] == &#39;&#39;:&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; rv = rv[:-1]&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; return rv&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br&gt;&lt;/span&gt;
&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;def getServerNamedEndPoint() :&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; all_nodes = _splitlines(AdminConfig.list( &quot;Node&quot; ))&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for nodeEntry in all_nodes :&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nodeEntryName = AdminConfig.showAttribute(nodeEntry, &quot;name&quot;)&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nodeHostName = AdminConfig.showAttribute(nodeEntry, &quot;hostName&quot;)&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; serversOnNode = _splitlines(AdminConfig.list( &quot;ServerEntry&quot;, nodeEntry))&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for serverEntry in serversOnNode :&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; serverEntryName = AdminConfig.showAttribute(serverEntry, &quot;serverName&quot;)&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; namedEndPoints = _splitlines(AdminConfig.list(&quot;NamedEndPoint&quot;, serverEntry))&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for eachPoint in namedEndPoints :&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; thisPtrName = AdminConfig.showAttribute(eachPoint, &quot;endPointName&quot;)&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; thisPtr = AdminConfig.showAttribute(eachPoint, &quot;endPoint&quot;)&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; thisPort = AdminConfig.showAttribute(thisPtr, &quot;port&quot;)&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if sys.argv[0].find(&#39;medium&#39;) &amp;gt;= 0 or sys.argv[0].find(&#39;high&#39;) &amp;gt;= 0 :&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print &#39;Checking Server &amp;nbsp;%s on node %s for %s on port %s&#39; % (serverEntryName,nodeHostName,thisPtrName,thisPort)&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try:&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myAdd=java.net.InetSocketAddress(nodeHostName, int(thisPort))&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mySock=java.net.Socket()&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mySock.connect(myAdd,100)&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if sys.argv[0].find(&#39;high&#39;) &amp;gt;= 0 :&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print &#39;Server &amp;nbsp;%s on node %s for %s on port %s &amp;nbsp;is Accessible&#39; % (serverEntryName,nodeHostName,thisPtrName,thisPort)&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; except java.net.ConnectException,e:&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if sys.argv[0].find(&#39;high&#39;) &amp;gt;= 0 :&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print &#39;Most likely server %s is not listening but Netwrok is fine on port %s &#39; % (nodeHostName,thisPort)&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; except java.net.UnknownHostException,msg:&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print &#39;This Nodes is not reachable %s&#39; % nodeHostName&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; except java.net.SocketTimeoutException,msg1:&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print &#39;%s on port %s for server %s is not reachable&#39; % (nodeHostName,thisPort,serverEntryName)&lt;/span&gt;&lt;br&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;#end_for_eachPoint&lt;/span&gt;&lt;br&gt;
&lt;div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; #end_for_serverEntry&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; #end_for_nodeEntry&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; print &quot;All Check Complete. If any server had issue it would be printed above&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;#end_def&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;getServerNamedEndPoint()&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;========================================================================&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br&gt;&lt;/div&gt;
To run it: pass a verbose level to jython for logging (low,medium or high)&lt;br&gt;
&lt;br&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/4656076724454155181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2014/02/jython-to-query-ports-of-server-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/4656076724454155181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/4656076724454155181'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2014/02/jython-to-query-ports-of-server-and.html' title='Jython to query ports of a server and check if its listening'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-7369634951155901635</id><published>2013-11-07T05:23:00.000-08:00</published><updated>2013-11-11T03:05:42.547-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="perl"/><category scheme="http://www.blogger.com/atom/ns#" term="redirect"/><category scheme="http://www.blogger.com/atom/ns#" term="spaces"/><category scheme="http://www.blogger.com/atom/ns#" term="txt2dbm"/><category scheme="http://www.blogger.com/atom/ns#" term="url"/><title type='text'>Modify txt2dbm to allow spaces</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Modified txt2dbm file to allow spaces in source and destination url. The trick is to replace all spaces with %20 in your txt file and then use the modified txt2dbm perl script to replace them with spaces before converting. This is needed because the criteria for txt2dbm to identify source and destination is the space between them.Here is the script after modification:&lt;br /&gt;
&lt;br /&gt;
====================================================================&lt;br /&gt;
#!/usr/bin/perl&lt;br /&gt;
##&lt;br /&gt;
## &amp;nbsp;txt2dbm -- convert txt map to dbm format&lt;br /&gt;
##&lt;br /&gt;
&lt;br /&gt;
use SDBM_File;&lt;br /&gt;
use Fcntl;&lt;br /&gt;
&lt;br /&gt;
($txtmap, $dbmmap) = @ARGV;&lt;br /&gt;
&lt;br /&gt;
open(TXT, &quot;&amp;lt;$txtmap&quot;) or die &quot;Couldn&#39;t open $txtmap!\n&quot;;&lt;br /&gt;
tie (%DB, &#39;SDBM_File&#39;, $dbmmap,O_RDWR|O_TRUNC|O_CREAT, 0644) or die &quot;Couldn&#39;t create $dbmmap!\n&quot;;&lt;br /&gt;
&lt;br /&gt;
while (&amp;lt;TXT&amp;gt;) {&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;next if (/^\s*#/ or /^\s*$/);&lt;br /&gt;
&amp;nbsp; my ($str1,$str2) = ($1,$2);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$str1 =~s|%20| |g;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; $DB{$str1} = $str2 if (/^\s*(\S+)\s+(\S+)/);&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
untie %DB;&lt;br /&gt;
close(TXT);&lt;br /&gt;
&lt;br /&gt;
=================================================================&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/7369634951155901635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2013/11/modified-txt2dbm-file-to-allow-spaces.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/7369634951155901635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/7369634951155901635'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2013/11/modified-txt2dbm-file-to-allow-spaces.html' title='Modify txt2dbm to allow spaces'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-3585741613548486455</id><published>2013-10-18T09:45:00.000-07:00</published><updated>2013-10-18T09:45:05.418-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cluster"/><category scheme="http://www.blogger.com/atom/ns#" term="core"/><category scheme="http://www.blogger.com/atom/ns#" term="coregroup"/><category scheme="http://www.blogger.com/atom/ns#" term="nodeagent"/><category scheme="http://www.blogger.com/atom/ns#" term="Server"/><category scheme="http://www.blogger.com/atom/ns#" term="Websphere"/><title type='text'>Match Nodeagent coregroup with server coregroup</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In a big Websphere farm this will be a handy script to iterate through all clusters and update servers to be in same coregroup as nodeagent:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;matchCoreGroup.py&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;===========================&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;_modules = [&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;sys&#39;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;time&#39;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;re&#39;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;glob&#39;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;os&#39;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;os.path&#39;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;getopt&#39;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;traceback&#39;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;# A lot of modules aren&#39;t available in WAS 602.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;# Log an import failure, but continue on so that scripts can&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;# still call functions that don&#39;t use these modules.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;for module in _modules:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; try:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; locals()[module] = __import__(module, {}, {}, [])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; except ImportError:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; print &#39;Error importing %s.&#39; % module&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;def _splitlines(s):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; rv = [s]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; if &#39;\r&#39; in s:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; rv = s.split(&#39;\r\n&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; elif &#39;\n&#39; in s:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; rv = s.split(&#39;\n&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; if rv[-1] == &#39;&#39;:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; rv = rv[:-1]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; return rv&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;#enddef&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;def getCellName():&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Return the name of the cell we&#39;re connected to&quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; # AdminControl.getCell() is simpler, but only&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; # available if we&#39;re connected to a running server.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; cellObjects = getObjectsOfType(&#39;Cell&#39;) &amp;nbsp;# should only be one&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; cellname = getObjectAttribute(cellObjects[0], &#39;name&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return cellname&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;#enddef&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;def getObjectsOfType(typename, scope = None):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Return a python list of objectids of all objects of the given type in the given scope&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; (another object ID, e.g. a node&#39;s object id to limit the response to objects in that node)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; Leaving scope default to None gets everything in the Cell with that type.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; ALWAYS RETURNS A LIST EVEN IF ONLY ONE OBJECT.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; if scope:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #sop(m, &quot;AdminConfig.list(%s, %s)&quot; % ( repr(typename), repr(scope) ) )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return _splitlines(AdminConfig.list(typename, scope))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; else:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #sop(m, &quot;AdminConfig.list(%s)&quot; % ( repr(typename) ) )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return _splitlines(AdminConfig.list(typename))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;#enddef&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;def getObjectAttribute(objectid, attributename):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Return the value of the named attribute of the config object with the given ID.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; If there&#39;s no such attribute, returns None.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; If the attribute value looks like a list, converts it to a real python list.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; TODO: handle nested &quot;lists&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; #sop(&quot;getObjectAttribute:&quot;,&quot;AdminConfig.showAttribute(%s, %s)&quot; % ( repr(objectid), repr(attributename) ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; result = AdminConfig.showAttribute(objectid, attributename)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; if result != None and result.startswith(&quot;[&quot;) and result.endswith(&quot;]&quot;):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # List looks like &quot;[value1 value2 value3]&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = _splitlist(result)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return result&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;#enddef&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;def listAllServers():&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;return a list of all servers, EXCEPT node agents or&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; deployment managers, as a list of lists.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; E.g. [[&#39;nodename&#39;,&#39;proxyname&#39;], [&#39;nodename&#39;,&#39;proxyname&#39;]].&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; Typical usage:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for (nodename,servername) in listAllServers():&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; callSomething(nodename,servername)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; all = listServersOfType(None)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; result = []&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for (nodename,servername) in all:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stype = getServerType(nodename,servername)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # sometimes, dmgr has no type... who knows why&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if stype != None and stype != &#39;DEPLOYMENT_MANAGER&#39;:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #sop(m,&quot;%s/%s: %s&quot; % (nodename,servername,stype))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result.append( [nodename,servername] )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return result&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;#enddef&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;def getServerType(nodename,servername):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Get the type of the given server.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; E.g. &#39;APPLICATION_SERVER&#39; or &#39;PROXY_SERVER&#39;.&quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; node_id = getNodeId(nodename)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; serverEntries = _splitlines(AdminConfig.list( &#39;ServerEntry&#39;, node_id ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for serverEntry in serverEntries:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sName = AdminConfig.showAttribute( serverEntry, &quot;serverName&quot; )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if sName == servername:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return AdminConfig.showAttribute( serverEntry, &quot;serverType&quot; )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return None&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;#enddef&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;#def getNodeId(nodename):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;# &amp;nbsp; &amp;nbsp;nId=AdminConfig.getid(&#39;/Cell:%s/Node:%s/&#39; %(getCellName(), nodename)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;# &amp;nbsp; &amp;nbsp;return nId&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;def getNodeId(nodename):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return AdminConfig.getid(&#39;/Cell:&#39;+getCellName()+&#39;/Node:&#39;+nodename)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;#enddef&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;def getNodeName(node_id):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Get the name of the node with the given config object ID&quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return getObjectAttribute(node_id, &#39;name&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;#endef&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;def listServersOfType( typename ):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;return a list of servers of a given type as a list of lists.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; E.g. [[&#39;nodename&#39;,&#39;proxyname&#39;], [&#39;nodename&#39;,&#39;proxyname&#39;]].&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; Typical usage:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for (nodename,servername) in listServersOfType(&#39;PROXY_SERVER&#39;):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; callSomething(nodename,servername)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; Set typename=None to return all servers.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; # Go through one node at a time - can&#39;t figure out any way to&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; # find out what node a server is in from the Server or ServerEntry&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; # object&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; result = []&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; node_ids = _splitlines(AdminConfig.list( &#39;Node&#39; ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; cellname = getCellName()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for node_id in node_ids:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nodename = getNodeName(node_id)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; serverEntries = _splitlines(AdminConfig.list( &#39;ServerEntry&#39;, node_id ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for serverEntry in serverEntries:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sName = AdminConfig.showAttribute( serverEntry, &quot;serverName&quot; )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sType = AdminConfig.showAttribute( serverEntry, &quot;serverType&quot; )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if typename == None or sType == typename:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result.append([nodename, sName])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return result&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;#enddef&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;def getObjectNameList( typename ):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Returns list of names of objects of the given type&quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; #sop(m,&quot;Entry. typename=%s&quot; % ( repr(typename) ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; ids = _splitlines(AdminConfig.list( typename ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; result = []&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for id in ids:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result.append(AdminConfig.showAttribute(id,&quot;name&quot;))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; #sop(m,&quot;Exit. result=%s&quot; % ( repr(result) ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return result&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;def getObjectByName( typename, objectname ):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Get an object of a given type and name - WARNING: the object should be unique in the cell; if not, use getObjectByNodeAndName instead.&quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; all = _splitlines(AdminConfig.list( typename ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; result = None&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for obj in all:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name = AdminConfig.showAttribute( obj, &#39;name&#39; )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if name == objectname:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if result != None:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; raise &quot;FOUND more than one %s with name %s&quot; % ( typename, objectname )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = obj&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return result&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;def findCoreGroupIdForServer(nodename, servername ):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Returns the coregroup_id which contains the specified server.&quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; #sop(m,&quot;Entry. servername=%s&quot; % ( servername ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; coregroup_id = None&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; cg_names = getObjectNameList( &#39;CoreGroup&#39; )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for cg_name in cg_names:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cg_id = getObjectByName( &#39;CoreGroup&#39;, cg_name )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #sop(m,&quot;cg_id=%s&quot; % ( repr(cg_id) ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; serverlist = listCoreGroupServers(cg_id)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (node,server) in serverlist:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;if -1 != &amp;nbsp;node.find( nodename ):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #sop(m,&quot;server=%s&quot; % ( server ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if -1 != repr( server ).find( servername ):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;coregroup_id = cg_id&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;#sop(m,&quot;Match: Found server in coregroup. coregroup_id=%s&quot; % ( repr(coregroup_id) ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;break&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if coregroup_id != None:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; if coregroup_id == None:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; raise m + &quot; Error: Could not find coregroup. coregroupname=%s&quot; % (coregroupname)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; #sop(m,&quot;Exit. coregroup_id=%s&quot; % ( coregroup_id ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return coregroup_id&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;def listCoreGroupServers( coregroup_id ):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Returns a list of coregroupserver_ids in the specified coregroup.&quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; #sop(m,&quot;Entry. coregroup_id=%s&quot; % ( coregroup_id ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; # Get the list of servers within the coregroup.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; coregroupservers = AdminConfig.showAttribute( coregroup_id, &quot;coreGroupServers&quot; )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; #sop(m,&quot;coregroup_id=%s coregroupservers=%s&quot; % ( repr(coregroup_id), coregroupservers ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; # FIXME: use _splitlist() here&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; # Verify the string contains a list of servers.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; if (not coregroupservers.startswith( &#39;[&#39; )) or (not coregroupservers.endswith( &#39;]&#39; )):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; raise m + &quot; Error: CoreGroupServer string does not start and stop with square brackets.&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; # Strip off the leading and trailing square brackets.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; coregroupservers = coregroupservers[1:(len(coregroupservers) - 1)]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; #sop(m,&quot;coregroupservers=%s&quot; % (coregroupservers))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; # Convert the single long string to a list of strings.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; coregroupservers_list = coregroupservers.split(&#39; &#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; coregroupnode_list=[]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for coregroupserver in coregroupservers_list:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;#print AdminConfig.showAttribute(coregroupserver,&quot;nodeName&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;#print &quot; Adding &quot; + AdminConfig.showAttribute(coregroupserver,&quot;nodeName&quot;) + &quot; and &quot; + coregroupserver&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; coregroupnode_list.append([AdminConfig.showAttribute(coregroupserver,&quot;nodeName&quot;), coregroupserver])&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; #sop(m,&quot;Exit. coregroupservers_list=%s&quot; % ( repr(coregroupservers_list) ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; #return coregroupservers_list&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return coregroupnode_list&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;def getServerId(nodename,servername):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Return the config id for a server or proxy. &amp;nbsp;Could be an app server or proxy server, etc&quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; id = getObjectByNodeAndName(nodename, &quot;Server&quot;, servername) # app server&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; if id == None:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id = getObjectByNodeAndName(nodename, &quot;ProxyServer&quot;, servername)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return id&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;def listServerClusters():&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Return list of names of server clusters&quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; cluster_ids = _splitlines(AdminConfig.list( &#39;ServerCluster&#39; ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; cellname = getCellName()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; result = []&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for cluster_id in cluster_ids:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result.append(AdminConfig.showAttribute(cluster_id,&quot;name&quot;))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return result&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;def listServersInCluster(clusterName): &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; clusterId = AdminConfig.getid(&quot;/ServerCluster:&quot; + clusterName + &quot;/&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; clusterMembers = _splitlines(AdminConfig.list(&quot;ClusterMember&quot;, clusterId ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return clusterMembers&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;def startAllServersInCluster(clusterName):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; clusterMembers = listServersInCluster(clusterName)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for clusterMember in clusterMembers:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nodeName = AdminConfig.showAttribute( clusterMember, &quot;nodeName&quot; )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; serverName = AdminConfig.showAttribute( clusterMember, &quot;memberName&quot; )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; startServer(nodeName, serverName)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;def stopAllServersInCluster(clusterName):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; clusterMembers = listServersInCluster(clusterName)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for clusterMember in clusterMembers:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nodeName = AdminConfig.showAttribute( clusterMember, &quot;nodeName&quot; )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; serverName = AdminConfig.showAttribute( clusterMember, &quot;memberName&quot; )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stopServer(nodeName, serverName)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;def isServerRunning(nodename,servername):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Returns a boolean to say if the server is running.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;Not 100% accurate but should be close - relies on there only being an mbean for&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; a server if it&#39;s running&quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; mbean = AdminControl.queryNames(&#39;type=Server,node=%s,name=%s,*&#39; % (nodename,servername))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; if mbean:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 1&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;def startServer( nodename, servername ):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; if isServerRunning(nodename,servername):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print &quot;Server %s is laready running&quot; %(servername)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; else:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AdminControl.startServer( servername, nodename, 240)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; waitForServerStartSecs = 240&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; waitRetries = waitForServerStartSecs / 15&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if waitRetries &amp;lt; 1:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; waitRetries = 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retries = 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while not isServerRunning(nodename,servername) and retries &amp;lt; waitRetries:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; time.sleep(15) &amp;nbsp;# seconds&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retries += 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if not &amp;nbsp;isServerRunning(nodename,servername) :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print &quot;SERVER FAILED TO START %s,%s&quot; % (nodename,servername)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;else:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; &amp;nbsp;print &quot;Server Restarted %s,%s&quot; % (nodename,servername)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;#endif&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;#enddef&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;def stopServer( nodename, servername ):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; if not isServerRunning(nodename,servername):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print &quot;server %s,%s is already stopped&quot; % (nodename,servername)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; else:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;AdminControl.stopServer( servername, nodename )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&quot;&quot;&quot;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;waitForServerStartSecs = 240&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; waitRetries = waitForServerStartSecs / 15&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if waitRetries &amp;lt; 1:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; waitRetries = 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retries = 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while not isServerRunning(nodename,servername) and retries &amp;lt; waitRetries:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; time.sleep(15) &amp;nbsp;# seconds&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; retries += 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if not &amp;nbsp;isServerRunning(nodename,servername) :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print &quot;SERVER stopped sucessfully &amp;nbsp;%s,%s&quot; % (nodename,servername)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print &quot;Server still running %s,%s&quot; % (nodename,servername)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&quot;&quot;&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;#enddef &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;def getObjectByNodeAndName( nodename, typename, objectname ):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Get the config object ID of an object based on its node, type, and name&quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; # This version of getObjectByName distinguishes by node,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; # which should disambiguate some things...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; node_id = getNodeId(nodename)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; all = _splitlines(AdminConfig.list( typename, node_id ))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; result = None&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; for obj in all:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name = AdminConfig.showAttribute( obj, &#39;name&#39; )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if name == objectname:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if result != None:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; raise &quot;FOUND more than one %s with name %s&quot; % ( typename, objectname )&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = obj&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; return result&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;def save ():&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; AdminConfig.save()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;#enddef&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;clusterList=listServerClusters()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;clusterDone=[]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;for (nodename,servername) in listAllServers():&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if &amp;nbsp;servername.find(&#39;nodeagent&#39;) &amp;lt; 0 :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;todoCluster=&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;isDone=0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;nodeagentId=findCoreGroupIdForServer(nodename,&quot;nodeagent&quot;).split(&#39;(&#39;)[0]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;serverId=findCoreGroupIdForServer(nodename,servername).split(&#39;(&#39;)[0]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;#print &quot;Server=%s Node=%s&quot; % (serverId,nodeagentId)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if serverId.find(nodeagentId) &amp;lt; 0 :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;#print &quot;%s=%s %s=%s&quot; % (servername,serverId,nodename,nodeagentId)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;print &quot;Moving %s to core group %s from core group %s&quot; %(servername,nodeagentId,serverId)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;for cluster in clusterList:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt; &amp;nbsp; &amp;nbsp;for appServer in listServersInCluster(cluster):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;if appServer.find(servername) &amp;gt; -1 :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt; &amp;nbsp; todoCluster=cluster&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt; &amp;nbsp; #clusterDone.append(todoCluster)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;#endif&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt; &amp;nbsp; &amp;nbsp;#endfor&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;#endfor&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;for doneCluster in clusterDone:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt; &amp;nbsp; &amp;nbsp;if doneCluster.find(todoCluster) &amp;gt; -1 :&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; #clusterDone.append(todoCluster)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; isDone=1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt; &amp;nbsp; &amp;nbsp;#endfi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;#endfor&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;if isDone &amp;lt; 1 :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt; &amp;nbsp; print &quot;Found in cluster %s and the whole cluster will be updated&quot; %(todoCluster)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt; &amp;nbsp; stopAllServersInCluster(todoCluster)&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt; &amp;nbsp; print &quot;updting %s now &quot; %(todoCluster)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AdminTask.moveClusterToCoreGroup(&#39;[-source &#39;+serverId+&#39; -target &#39;+nodeagentId+&#39; &amp;nbsp;-clusterName &#39;+todoCluster+&#39;]&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt; &amp;nbsp; print &quot;Cluster %s updated starting now&quot; %(todoCluster)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt; &amp;nbsp; startAllServersInCluster(todoCluster)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt; &amp;nbsp; clusterDone.append(todoCluster)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;else:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt; &amp;nbsp; print &quot;This cluster %s is already done in this iteration&quot; %(todoCluster)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;#endif&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;#endif&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;#endif&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;#endfor&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;save()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;============================&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/3585741613548486455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2013/10/match-nodeagent-coregroup-with-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/3585741613548486455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/3585741613548486455'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2013/10/match-nodeagent-coregroup-with-server.html' title='Match Nodeagent coregroup with server coregroup'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-750131120383802433</id><published>2013-10-04T05:00:00.000-07:00</published><updated>2013-10-04T05:00:21.851-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="header"/><category scheme="http://www.blogger.com/atom/ns#" term="IHS"/><category scheme="http://www.blogger.com/atom/ns#" term="virtualhost"/><category scheme="http://www.blogger.com/atom/ns#" term="Websphere"/><category scheme="http://www.blogger.com/atom/ns#" term="WSSN"/><category scheme="http://www.blogger.com/atom/ns#" term="WSSP"/><title type='text'>Setting websphere header to resolve virtual host</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Following two entries will specifically modify WSSN and WSSP header at IHS layer for them to resolve in plugin or on Websphere server layer. This is if you don&#39;t want to create multiple entries in your Websphere virtual host for different domains you support:&lt;br /&gt;
&lt;br /&gt;
RequestHeader set $WSSN MyHost.com&lt;br /&gt;
RequestHeader set $WSSP 80&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/750131120383802433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2013/10/setting-websphere-header-to-resolve.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/750131120383802433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/750131120383802433'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2013/10/setting-websphere-header-to-resolve.html' title='Setting websphere header to resolve virtual host'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-500732608018263421</id><published>2013-08-06T07:33:00.001-07:00</published><updated>2013-08-06T07:35:25.384-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cell server"/><category scheme="http://www.blogger.com/atom/ns#" term="compare"/><category scheme="http://www.blogger.com/atom/ns#" term="core"/><category scheme="http://www.blogger.com/atom/ns#" term="coregroup"/><category scheme="http://www.blogger.com/atom/ns#" term="group"/><category scheme="http://www.blogger.com/atom/ns#" term="jython"/><category scheme="http://www.blogger.com/atom/ns#" term="nodeagent"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="WAS"/><category scheme="http://www.blogger.com/atom/ns#" term="Websphere"/><title type='text'>Compare Server CoreGroup with Nodeagent coreGroup </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In a bigger cell with multiple core groups some time nodeagent and server core group may go out of sync (due to manual errors). Below is an handy script to check entire cell in the Deployment Manager its connected to and compare there core groups:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;def _splitlines(s):&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; rv = [s]&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; if &#39;\r&#39; in s:&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; rv = s.split(&#39;\r\n&#39;)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; elif &#39;\n&#39; in s:&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; rv = s.split(&#39;\n&#39;)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; if rv[-1] == &#39;&#39;:&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; rv = rv[:-1]&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; return rv&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;#enddef&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;def getCellName():&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Return the name of the cell we&#39;re connected to&quot;&quot;&quot;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; # AdminControl.getCell() is simpler, but only&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; # available if we&#39;re connected to a running server.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; cellObjects = getObjectsOfType(&#39;Cell&#39;) &amp;nbsp;# should only be one&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; cellname = getObjectAttribute(cellObjects[0], &#39;name&#39;)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; return cellname&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;#enddef&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;def getObjectsOfType(typename, scope = None):&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Return a python list of objectids of all objects of the given type in the given scope&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; (another object ID, e.g. a node&#39;s object id to limit the response to objects in that node)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; Leaving scope default to None gets everything in the Cell with that type.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; ALWAYS RETURNS A LIST EVEN IF ONLY ONE OBJECT.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; if scope:&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #sop(m, &quot;AdminConfig.list(%s, %s)&quot; % ( repr(typename), repr(scope) ) )&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return _splitlines(AdminConfig.list(typename, scope))&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; else:&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #sop(m, &quot;AdminConfig.list(%s)&quot; % ( repr(typename) ) )&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return _splitlines(AdminConfig.list(typename))&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;#enddef&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;def getObjectAttribute(objectid, attributename):&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Return the value of the named attribute of the config object with the given ID.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; If there&#39;s no such attribute, returns None.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; If the attribute value looks like a list, converts it to a real python list.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; TODO: handle nested &quot;lists&quot;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; #sop(&quot;getObjectAttribute:&quot;,&quot;AdminConfig.showAttribute(%s, %s)&quot; % ( repr(objectid), repr(attributename) ))&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; result = AdminConfig.showAttribute(objectid, attributename)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; if result != None and result.startswith(&quot;[&quot;) and result.endswith(&quot;]&quot;):&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # List looks like &quot;[value1 value2 value3]&quot;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = _splitlist(result)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; return result&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;#enddef&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;def listAllServers():&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;return a list of all servers, EXCEPT node agents or&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; deployment managers, as a list of lists.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; E.g. [[&#39;nodename&#39;,&#39;proxyname&#39;], [&#39;nodename&#39;,&#39;proxyname&#39;]].&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; Typical usage:&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; for (nodename,servername) in listAllServers():&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; callSomething(nodename,servername)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;&quot;&quot;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; all = listServersOfType(None)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; result = []&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; for (nodename,servername) in all:&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stype = getServerType(nodename,servername)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # sometimes, dmgr has no type... who knows why&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if stype != None and stype != &#39;DEPLOYMENT_MANAGER&#39;:&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #sop(m,&quot;%s/%s: %s&quot; % (nodename,servername,stype))&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result.append( [nodename,servername] )&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; return result&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;#enddef&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;def getServerType(nodename,servername):&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Get the type of the given server.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; E.g. &#39;APPLICATION_SERVER&#39; or &#39;PROXY_SERVER&#39;.&quot;&quot;&quot;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; node_id = getNodeId(nodename)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; serverEntries = _splitlines(AdminConfig.list( &#39;ServerEntry&#39;, node_id ))&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; for serverEntry in serverEntries:&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sName = AdminConfig.showAttribute( serverEntry, &quot;serverName&quot; )&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if sName == servername:&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return AdminConfig.showAttribute( serverEntry, &quot;serverType&quot; )&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; return None&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;#enddef&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;#def getNodeId(nodename):&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;# &amp;nbsp; &amp;nbsp;nId=AdminConfig.getid(&#39;/Cell:%s/Node:%s/&#39; %(getCellName(), nodename)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;# &amp;nbsp; &amp;nbsp;return nId&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;def getNodeId(nodename):&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; return AdminConfig.getid(&#39;/Cell:&#39;+getCellName()+&#39;/Node:&#39;+nodename)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;#enddef&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;def getNodeName(node_id):&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Get the name of the node with the given config object ID&quot;&quot;&quot;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; return getObjectAttribute(node_id, &#39;name&#39;)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;def listServersOfType( typename ):&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;return a list of servers of a given type as a list of lists.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; E.g. [[&#39;nodename&#39;,&#39;proxyname&#39;], [&#39;nodename&#39;,&#39;proxyname&#39;]].&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; Typical usage:&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; for (nodename,servername) in listServersOfType(&#39;PROXY_SERVER&#39;):&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; callSomething(nodename,servername)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; Set typename=None to return all servers.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;&quot;&quot;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; # Go through one node at a time - can&#39;t figure out any way to&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; # find out what node a server is in from the Server or ServerEntry&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; # object&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; result = []&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; node_ids = _splitlines(AdminConfig.list( &#39;Node&#39; ))&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; cellname = getCellName()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; for node_id in node_ids:&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nodename = getNodeName(node_id)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; serverEntries = _splitlines(AdminConfig.list( &#39;ServerEntry&#39;, node_id ))&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for serverEntry in serverEntries:&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sName = AdminConfig.showAttribute( serverEntry, &quot;serverName&quot; )&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sType = AdminConfig.showAttribute( serverEntry, &quot;serverType&quot; )&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if typename == None or sType == typename:&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result.append([nodename, sName])&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; return result&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;#enddef&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;def getObjectNameList( typename ):&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Returns list of names of objects of the given type&quot;&quot;&quot;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; #sop(m,&quot;Entry. typename=%s&quot; % ( repr(typename) ))&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; ids = _splitlines(AdminConfig.list( typename ))&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; result = []&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; for id in ids:&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result.append(AdminConfig.showAttribute(id,&quot;name&quot;))&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; #sop(m,&quot;Exit. result=%s&quot; % ( repr(result) ))&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; return result&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;def getObjectByName( typename, objectname ):&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Get an object of a given type and name - WARNING: the object should be unique in the cell; if not, use getObjectByNodeAndName instead.&quot;&quot;&quot;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; all = _splitlines(AdminConfig.list( typename ))&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; result = None&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; for obj in all:&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name = AdminConfig.showAttribute( obj, &#39;name&#39; )&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if name == objectname:&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if result != None:&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; raise &quot;FOUND more than one %s with name %s&quot; % ( typename, objectname )&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = obj&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; return result&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;def findCoreGroupIdForServer(nodename, servername ):&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Returns the coregroup_id which contains the specified server.&quot;&quot;&quot;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; #sop(m,&quot;Entry. servername=%s&quot; % ( servername ))&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; coregroup_id = None&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; cg_names = getObjectNameList( &#39;CoreGroup&#39; )&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; for cg_name in cg_names:&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cg_id = getObjectByName( &#39;CoreGroup&#39;, cg_name )&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #sop(m,&quot;cg_id=%s&quot; % ( repr(cg_id) ))&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; serverlist = listCoreGroupServers(cg_id)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (node,server) in serverlist:&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if -1 != &amp;nbsp;node.find( nodename ):&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #sop(m,&quot;server=%s&quot; % ( server ))&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if -1 != repr( server ).find( servername ):&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; coregroup_id = cg_id&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #sop(m,&quot;Match: Found server in coregroup. coregroup_id=%s&quot; % ( repr(coregroup_id) ))&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if coregroup_id != None:&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; if coregroup_id == None:&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; raise m + &quot; Error: Could not find coregroup. coregroupname=%s&quot; % (coregroupname)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; #sop(m,&quot;Exit. coregroup_id=%s&quot; % ( coregroup_id ))&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; return coregroup_id&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
def listCoreGroupServers( coregroup_id ):&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Returns a list of coregroupserver_ids in the specified coregroup.&quot;&quot;&quot;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; #sop(m,&quot;Entry. coregroup_id=%s&quot; % ( coregroup_id ))&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; # Get the list of servers within the coregroup.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; coregroupservers = AdminConfig.showAttribute( coregroup_id, &quot;coreGroupServers&quot; )&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; #sop(m,&quot;coregroup_id=%s coregroupservers=%s&quot; % ( repr(coregroup_id), coregroupservers ))&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; # FIXME: use _splitlist() here&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; # Verify the string contains a list of servers.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; if (not coregroupservers.startswith( &#39;[&#39; )) or (not coregroupservers.endswith( &#39;]&#39; )):&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; raise m + &quot; Error: CoreGroupServer string does not start and stop with square brackets.&quot;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; # Strip off the leading and trailing square brackets.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; coregroupservers = coregroupservers[1:(len(coregroupservers) - 1)]&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; #sop(m,&quot;coregroupservers=%s&quot; % (coregroupservers))&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; # Convert the single long string to a list of strings.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; coregroupservers_list = coregroupservers.split(&#39; &#39;)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; coregroupnode_list=[]&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; for coregroupserver in coregroupservers_list:&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #print AdminConfig.showAttribute(coregroupserver,&quot;nodeName&quot;)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #print &quot; Adding &quot; + AdminConfig.showAttribute(coregroupserver,&quot;nodeName&quot;) + &quot; and &quot; + coregroupserver&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; coregroupnode_list.append([AdminConfig.showAttribute(coregroupserver,&quot;nodeName&quot;), coregroupserver])&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; #sop(m,&quot;Exit. coregroupservers_list=%s&quot; % ( repr(coregroupservers_list) ))&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; #return coregroupservers_list&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; return coregroupnode_list&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
def getServerId(nodename,servername):&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Return the config id for a server or proxy. &amp;nbsp;Could be an app server or proxy server, etc&quot;&quot;&quot;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; id = getObjectByNodeAndName(nodename, &quot;Server&quot;, servername) # app server&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; if id == None:&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id = getObjectByNodeAndName(nodename, &quot;ProxyServer&quot;, servername)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; return id&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
def getObjectByNodeAndName( nodename, typename, objectname ):&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;Get the config object ID of an object based on its node, type, and name&quot;&quot;&quot;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; # This version of getObjectByName distinguishes by node,&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; # which should disambiguate some things...&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; node_id = getNodeId(nodename)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; all = _splitlines(AdminConfig.list( typename, node_id ))&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; result = None&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; for obj in all:&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name = AdminConfig.showAttribute( obj, &#39;name&#39; )&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if name == objectname:&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if result != None:&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; raise &quot;FOUND more than one %s with name %s&quot; % ( typename, objectname )&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = obj&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; return result&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
for (nodename,servername) in listAllServers():&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if &amp;nbsp;servername.find(&#39;nodeagent&#39;) &amp;lt; 0 :&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nodeagentId=findCoreGroupIdForServer(nodename,&quot;nodeagent&quot;).split(&#39;(&#39;)[0]&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; serverId=findCoreGroupIdForServer(nodename,servername).split(&#39;(&#39;)[0]&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #print &quot;Server=%s Node=%s&quot; % (serverId,nodeagentId)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if serverId.find(nodeagentId) &amp;lt; 0 :&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print &quot;%s=%s %s=%s&quot; % (servername,serverId,nodename,nodeagentId)&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/500732608018263421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2013/08/compare-server-coregroup-with-nodeagent.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/500732608018263421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/500732608018263421'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2013/08/compare-server-coregroup-with-nodeagent.html' title='Compare Server CoreGroup with Nodeagent coreGroup '/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-3436861603277396589</id><published>2013-06-19T08:35:00.001-07:00</published><updated>2013-06-19T08:35:43.129-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="apache"/><category scheme="http://www.blogger.com/atom/ns#" term="cookie"/><category scheme="http://www.blogger.com/atom/ns#" term="IHS"/><category scheme="http://www.blogger.com/atom/ns#" term="mobile"/><category scheme="http://www.blogger.com/atom/ns#" term="redirect"/><category scheme="http://www.blogger.com/atom/ns#" term="tablet"/><title type='text'>IHS redirecting to your mobile sites.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
No rocket science but a very handy one to remember if you have two sites for web and mobile:&lt;br /&gt;
&lt;br /&gt;
First step will be to add cookie management piece if you want to give your user a choice to access full site even on mobile&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RewriteCond %{QUERY_STRING} stop_mobi=yes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RewriteRule .* - [CO=stop_mobi:yes:.yoursite.com:30]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RewriteCond %{HTTP_COOKIE} stop_mobi=yes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RewriteCond %{QUERY_STRING} !stop_mobi=no&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RewriteRule .* - [CO=stop_mobi:yes:.yoursite.com:30]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RewriteCond %{QUERY_STRING} stop_mobi=no&lt;br /&gt;
&amp;nbsp; &amp;nbsp; RewriteRule .* - [CO=stop_mobi:yes:.yoursite.com:-30]&lt;br /&gt;
&lt;br /&gt;
Replace yoursite.com with your website and you can choose to have different parameter than stop_mobi&lt;br /&gt;
&lt;br /&gt;
Next step will be to identify all user agents from popular mobiles. The below one covers most of them.&lt;br /&gt;
&lt;br /&gt;
# Bare URI rewrites&lt;br /&gt;
RewriteCond %{HTTP_USER_AGENT} &quot;Minimo|Windows CE|Opera Mini|Symbian|IEMobile&quot; [NC,OR]&lt;br /&gt;
RewriteCond %{HTTP_USER_AGENT} &quot;PalmSource|MobilePhone|Nokia|AvantGo|UP.Link/&quot; [NC,OR]&lt;br /&gt;
RewriteCond %{HTTP_USER_AGENT} &quot;PPC; MDA|BlackBerry|iPhone|iPod|Cellphone&quot; [NC,OR]&lt;br /&gt;
RewriteCond %{HTTP_USER_AGENT} &quot;PocketPC|PalmOS|\(webOS/|MobileExplorer|NetFront&quot; [NC,OR]&lt;br /&gt;
RewriteCond %{HTTP_USER_AGENT} &quot;SonyEricsson|Android.*Mobile|Samsung|Danger hiptop&quot; [NC,OR]&lt;br /&gt;
RewriteCond %{HTTP_USER_AGENT} &quot;Configuration/CLDC|Profile/MIDP|UP.Browser/&quot; [NC]&lt;br /&gt;
&lt;br /&gt;
Now the last bit is to check if stop_mobi (cookie/parameter) is not there and then redirect&lt;br /&gt;
&lt;br /&gt;
# stop_mobi check&lt;br /&gt;
RewriteCond %{HTTP_COOKIE} !stop_mobi=yes&lt;br /&gt;
RewriteCond %{QUERY_STRING} !stop_mobi=yes&lt;br /&gt;
# Redirect all Pages&lt;br /&gt;
RewriteRule ^/(.*) http://YourSite.com/$1 [R,L]&lt;br /&gt;
&lt;br /&gt;
Notice I am passing the context user originally sent me. If the context don&#39;t match on web and mobile then you can setup a further redirect on mobile site to map pages.&lt;br /&gt;
&lt;br /&gt;
Also for Android I have used Android.*Mobile to keep user on tablet on the web platform. Not full proof as Motorola apparently doesn&#39;t send that in user-agent but covers most others. If this is not your requirement then just make it Android.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/3436861603277396589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2013/06/ihs-redirecting-to-your-mobile-sites.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/3436861603277396589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/3436861603277396589'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2013/06/ihs-redirecting-to-your-mobile-sites.html' title='IHS redirecting to your mobile sites.'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total><georss:featurename>Greater London, UK</georss:featurename><georss:point>51.52241608253253 -0.1043701171875</georss:point><georss:box>51.206303082532528 -0.7498171171875 51.838529082532531 0.5410768828125</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-3053274441303078201</id><published>2012-09-19T03:11:00.004-07:00</published><updated>2013-05-28T08:16:49.451-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="class"/><category scheme="http://www.blogger.com/atom/ns#" term="find"/><category scheme="http://www.blogger.com/atom/ns#" term="jar"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="search"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>Finding jars containing missing classes</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Working on J2EE systems we all find ourselves in situations where some classes are not at its correct path and we don&#39;t know which jar it should be in. This is a handy little script to search all jars in a given &amp;nbsp; &amp;nbsp; &lt;br /&gt;
path.&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
pattern=$1&lt;br /&gt;
path=$2&lt;br /&gt;
&lt;br /&gt;
for jarname in $(find $path -type f -name &quot;*.jar&quot;)&lt;br /&gt;
do&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;match=`jar -tvf $jarname | grep $pattern`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if [ ! &amp;nbsp;-z &quot;$match&quot; ]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;echo &quot;Found in: &amp;nbsp;$jarname&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;echo &quot;$match&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fi&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
run the script ./findJar.sh &amp;lt;class_name&amp;gt; &amp;lt;path_of_jars&amp;gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/3053274441303078201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2012/09/finding-jars-containing-missing-classes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/3053274441303078201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/3053274441303078201'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2012/09/finding-jars-containing-missing-classes.html' title='Finding jars containing missing classes'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-2676110589246597997</id><published>2012-08-10T07:31:00.003-07:00</published><updated>2012-08-11T20:55:44.821-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="channel"/><category scheme="http://www.blogger.com/atom/ns#" term="Explorer"/><category scheme="http://www.blogger.com/atom/ns#" term="MQ"/><category scheme="http://www.blogger.com/atom/ns#" term="SSL"/><category scheme="http://www.blogger.com/atom/ns#" term="WMQ"/><title type='text'>Step by step guide to enable SSL between QM and MQ Explorer</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Following are the steps to enable SSL between QM and MQ explorer&lt;br /&gt;
&lt;br /&gt;
On the Queue Manager:&lt;br /&gt;
&lt;br /&gt;
Create a QM Key database file:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;gsk7cmd -keydb -create -db &quot;/var/mqm/qm1.kdb&quot; -pw abhi -type cms -expire 365 -stash&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Create a CA database file:&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;gsk7cmd -keydb -create -db &quot;/var/mqm/wmqca.kdb&quot; -pw abhi -type cms -expire 365 -stash&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;br /&gt;
Create CA cert:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;gsk7cmd -cert -create -db &quot;/var/mqm/wmqca.kdb&quot; -pw abhi -label wmqca -dn &quot;CN=WMQ CA,OU=WMQ,O=MQ,L=LEEDS,ST=PARK,C=UK&quot; -expire 365&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Extract CA cert:&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;gsk7cmd -cert -extract -db &quot;/var/mqm/wmqca.kdb&quot; -pw abhi -label wmqca -target /var/mqm/wmqca.crt -format ascii&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Add CA cert to QM repository:&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;gsk7cmd -cert -add -db &quot;/var/mqm/qm1.kdb&quot; -pw abhi -label wmqca -file /var/mqm/wmqca.crt -format ascii&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Create Certificate Request:&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;gsk7cmd -certreq -create -db &quot;/var/mqm/qm1.kdb&quot; -pw abhi -label ibmwebspheremq&amp;lt;QM_NAME&amp;gt; -dn &quot;CN=REMQM,OU=WMQ,O=MQ,L=LEEDS,ST=PARK,C=UK&quot; -file &quot;/var/mqm/qm1.arm&quot;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Note:- make sure you label the certificate exactly as ibmwebspheremq&amp;lt;QM_NAME&amp;gt; replace &amp;lt;QM_NAME&amp;gt; with actual  queue manager name&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Sign Certificate:&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;gsk7cmd -cert -sign -file &quot;/var/mqm/qm1.arm&quot; -db &quot;/var/mqm/wmqca.kdb&quot; -pw abhi -label wmqca -target &quot;/var/mqm/qm1cert1.arm&quot; -format ascii -expire 340&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Receive Signed cert:&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt; gsk7cmd -cert -receive -db &quot;/var/mqm/qm1.kdb&quot; -pw abhi -file &quot;/var/mqm/qm1cert1.arm&quot; -format ascii&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;background-color: #d3e0f0; color: #7a7a7a; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: normal;&quot;&gt;ALTER QMGR SSLKEYR(&#39;&lt;/span&gt;/var/mqm/qm1&lt;span style=&quot;background-color: #d3e0f0; color: #7a7a7a; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: normal;&quot;&gt;&#39;)&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Alter channel you use for MQ explorer:&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Suppose if its SYSTEM.DEF.SVRCONN then execute command:&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;ALTER CHANNEL(SYSTEM.DEF.SVRCONN)&lt;span style=&quot;background-color: #d3e0f0; color: #7a7a7a; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;CHLTYPE(SVRCONN) &lt;/span&gt;&lt;span style=&quot;background-color: #d3e0f0; color: #7a7a7a; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;SSLCIPH(TRIPLE_DES_SHA_US)&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;background-color: #d3e0f0; color: #7a7a7a; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;background-color: #d3e0f0; color: #7a7a7a; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;On MQ EXPLORER:&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;background-color: #d3e0f0; color: #7a7a7a; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;background-color: #d3e0f0; color: #7a7a7a; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;copy wmqca.kdb and wmqca.crt file to Windows box in &lt;/span&gt;C:\Program Files\IBM&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;background-color: #d3e0f0; color: #7a7a7a; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;background-color: #d3e0f0; color: #7a7a7a; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;Create a key Database file:&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;background-color: #d3e0f0; color: #7a7a7a; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;gsk7cmd -keydb -create -db &quot;C:\Program Files\IBM\exp.jks&quot; -pw abhi -type jks&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Add CA cert to database:&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;gsk7cmd -cert -add -db &quot;C:\Program Files\IBM\exp.jks&quot; -pw abhi -label wmqca -file &quot;C:\Program Files\IBM\wmqca.crt&quot; -format ascii&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Create a certificate request:&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;gsk7cmd -certreq -create -db &quot;C:\Program Files\IBM\exp.jks&quot; -pw abhi -label explorer -dn &quot;CN=EXP,OU=WMQ,O=MQ,L=LEEDS,ST=PARK,C=UK&quot; -file &quot;C:\Program Files\IBM\expreq1.arm&quot;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Sign the cert:&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;gsk7cmd -cert -sign -file &quot;C:\Program Files\IBM\expreq1.arm&quot; -db &quot;C:\Program Files\IBM\wmqca.kdb&quot; -pw abhi -label wmqca -target &quot;C:\Program Files\IBM\expcert1.arm&quot; -format ascii -expire 340&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Receive the cert:&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;gsk7cmd -cert -receive -db &quot;C:\Program Files\IBM\exp.jks&quot; -pw abhi -file &quot;C:\Program Files\IBM\expcert1.arm&quot; -format ascii&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;Now when you are connecting a  remote queue manager using MQ explorer select SSLCIPH &lt;span style=&quot;background-color: #d3e0f0; color: #7a7a7a; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;TRIPLE_DES_SHA_US and the key data base file you have created in above step .&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;background-color: #d3e0f0; color: #7a7a7a; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;background-color: #d3e0f0; color: #7a7a7a; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/2676110589246597997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2012/08/step-by-step-guide-to-enable-ssl.html#comment-form' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/2676110589246597997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/2676110589246597997'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2012/08/step-by-step-guide-to-enable-ssl.html' title='Step by step guide to enable SSL between QM and MQ Explorer'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-1841509442131022854</id><published>2012-08-02T07:52:00.000-07:00</published><updated>2012-08-02T07:54:21.360-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="installation"/><category scheme="http://www.blogger.com/atom/ns#" term="run_templates"/><category scheme="http://www.blogger.com/atom/ns#" term="serviceRegistry"/><category scheme="http://www.blogger.com/atom/ns#" term="Websphere"/><category scheme="http://www.blogger.com/atom/ns#" term="Websphere Service registry and repository"/><category scheme="http://www.blogger.com/atom/ns#" term="WSRR"/><title type='text'>Customizing WSRR 7.0.0.2 install</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We can customize the way we install WSRR 7.0.0.2 by changing run_templates shell script and corresponding&amp;nbsp;template_response.xml. I have done following customization:&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
To install WSRR with your existing WAS profile. Comment the following lines in run_templates&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
#&quot;${WAS_IMAGE}&quot;/install -silent -OPT silentInstallLicenseAcceptance=true -OPT allowNonRootSilentInstall=true -OPT disableOSPrereqChecking=true -OPT disableNonBlockingPrereqChecking=true -OPT installType=installNew -OPT profileType=none -OPT feature=samplesSelected -OPT feature=languagepack.console.all -OPT feature=languagepack.server.all -OPT installLocation=&quot;${WAS_LOCATION}&quot;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
#echo WAS rc: $?&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
But make sure&amp;nbsp;WAS_LOCATION= variable is pointing to your existing WAS installation Ex:&lt;/div&gt;
&lt;div&gt;
WAS_LOCATION=/usr/IBM/WebSphere/AppServer&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If you need to your pass your own response file then pass then change the part which is calling Installation manager:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&quot;${IM_IMAGE}&quot;/userinst &amp;nbsp;--launcher.ini &quot;${IM_IMAGE}&quot;/user-silent-install.ini -input &lt;b&gt;&quot;${PROGDIR}&quot;/template_response.xml&lt;/b&gt; -log &quot;${WAS_LOCATION}&quot;/logs/wsrr/install.log&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now you can customize response files according to your environment:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
To change location of installer change the following tags:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&amp;lt;server&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- #################### IM Repository Location #####################--&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;repository location=&#39;/usr/IBM/WebSphereWSR/media/IM1.4.1/&#39; temporary=&#39;true&#39;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- ############### WAS Import Repository Location (This folder will contain all fixpacks to update was to minimum WAS level##################--&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;repository location=&quot;/usr/IBM/WebSphereWSR/media/WAS_SYNC/&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- ################# WSRR Repository Location ###################--&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;repository location=&quot;/usr/IBM/WebSphereWSR/media/wsrr/repository/&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;repository location=&quot;/usr/IBM/WebSphereWSR/media/BS7.0.0.2/&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;repository location=&quot;/usr/IBM/WebSphereWSR/media/WSRR7.0.0.2/wsrr.7002/&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;/server&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Change the&amp;nbsp;following tag to your WAS installation location:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;profile installLocation=&#39;/usr/IBM/WebSphereWSR/AppServer&#39; id=&#39;IBM WebSphere Application Server - ND&#39;&amp;gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/1841509442131022854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2012/08/customizing-wsrr-7002-install.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/1841509442131022854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/1841509442131022854'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2012/08/customizing-wsrr-7002-install.html' title='Customizing WSRR 7.0.0.2 install'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-279695754053967130</id><published>2012-06-15T03:42:00.001-07:00</published><updated>2012-06-15T03:42:44.751-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AdminTask"/><category scheme="http://www.blogger.com/atom/ns#" term="help"/><category scheme="http://www.blogger.com/atom/ns#" term="Help()"/><category scheme="http://www.blogger.com/atom/ns#" term="Websphere"/><category scheme="http://www.blogger.com/atom/ns#" term="wsadmin"/><title type='text'>Getting help in wsadmin jython</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This one is for me as I always tend to forget how to get all the parameters I need for any particular method of different wsadmin objects. For instance to get help on AdminTask.modifySSlSettings() I need to do:&lt;br /&gt;
&lt;br /&gt;
AdminTask.help(&#39;modifySSlSettings&#39;) and it will print me all parameters this method supports.&lt;br /&gt;
&lt;br /&gt;
Or you can also run it interactive to get all the parameters like:&lt;br /&gt;
&lt;br /&gt;
AdminTask.modifySSlSettings(&#39;-interactive&#39;)&lt;br /&gt;
&lt;br /&gt;
You can also list all supported commands for AdminTask like:&lt;br /&gt;
&lt;br /&gt;
AdminTask.help(&#39;-commands&#39;) &lt;br /&gt;
&lt;br /&gt;
One can also use wild cards like:&lt;br /&gt;
&lt;br /&gt;
print AdminTask.help(&#39;-commands *create*&#39;) &lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;
&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/279695754053967130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2012/06/getting-help-in-wsadmin-jython.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/279695754053967130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/279695754053967130'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2012/06/getting-help-in-wsadmin-jython.html' title='Getting help in wsadmin jython'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-5596854830393165432</id><published>2012-04-17T12:11:00.000-07:00</published><updated>2012-04-17T12:11:59.232-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="configure"/><category scheme="http://www.blogger.com/atom/ns#" term="IHS"/><category scheme="http://www.blogger.com/atom/ns#" term="install"/><category scheme="http://www.blogger.com/atom/ns#" term="plugin"/><title type='text'>Installing IHS and Plugin seperately</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;I generally install and configure IHS and plugin separately. Following are the steps I follow:&lt;br /&gt;
&lt;br /&gt;
Install IHS:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Path of Installer&amp;gt;/IHS/install -silent -options &amp;lt;Path of Response file&amp;gt;/ihsres.ihs&lt;br /&gt;
&lt;br /&gt;
ihsres.ihs:&lt;br /&gt;
&lt;br /&gt;
-OPT silentInstallLicenseAcceptance=true &lt;br /&gt;
-OPT allowNonRootSilentInstall=true &lt;br /&gt;
-OPT disableOSPrereqChecking=true &lt;br /&gt;
-OPT installLocation=&amp;lt;Location to Install&amp;gt; &lt;br /&gt;
-OPT httpPort=&amp;lt;Non Secure HttpPort you want to listen on - 80&amp;gt; &lt;br /&gt;
-OPT adminPort=&amp;lt;Admin Port of IHS server - 8008&amp;gt; &lt;br /&gt;
-OPT createAdminAuth=true &lt;br /&gt;
-OPT adminAuthUser=&amp;lt;Admin User&amp;gt; &lt;br /&gt;
-OPT adminAuthPassword=&amp;lt;Admin Password&amp;gt; &lt;br /&gt;
-OPT adminAuthPasswordConfirm=&amp;lt;Confirm What you wrote above :)&amp;gt; &lt;br /&gt;
-OPT runSetupAdmin=false &lt;br /&gt;
-OPT createAdminUserGroup=false &lt;br /&gt;
-OPT installPlugin=false&lt;br /&gt;
&lt;br /&gt;
Now to install Websphere plugin:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;lt;path of Installer&amp;gt;/plugin/install -silent -options &amp;lt;path of response file&amp;gt;/plgres.plg&lt;br /&gt;
&lt;br /&gt;
plgres.plg content:&lt;br /&gt;
&lt;br /&gt;
-OPT allowNonRootSilentInstall=true &lt;br /&gt;
-OPT silentInstallLicenseAcceptance=true &lt;br /&gt;
-OPT disableOSPrereqChecking=true &lt;br /&gt;
-OPT installType=remote &lt;br /&gt;
-OPT installLocation=&amp;lt;Location to install Plugin&amp;gt;&lt;br /&gt;
-OPT webServerSelected=none &lt;br /&gt;
&lt;br /&gt;
Now you will need to run a shell script to configure this plugin:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Install_Root&amp;gt;/bin/ConfigureIHSPlugin.sh -plugin.home &amp;lt;Path where plugin will be configured&amp;gt; -plugin.config.xml &amp;lt;path where plugin file will be kept&amp;gt; -ihs.conf.file &amp;lt;path of httpd.conf&amp;gt; -ihs.admin.usergroup &amp;lt;Ihs Admin user&amp;gt;&amp;nbsp; -operating.system &amp;lt;Operating System like AIX or Linux&amp;gt; -operating.system.arch 64 or 32 -WAS.webserver.name &amp;lt;Name of Webserver&amp;gt; -WAS.host.name &amp;lt;Deployment Manager Host IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/5596854830393165432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2012/04/installing-ihs-and-plugin-seperately.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/5596854830393165432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/5596854830393165432'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2012/04/installing-ihs-and-plugin-seperately.html' title='Installing IHS and Plugin seperately'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-9116078924586240086</id><published>2012-04-17T11:47:00.000-07:00</published><updated>2012-04-17T11:47:04.888-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="create"/><category scheme="http://www.blogger.com/atom/ns#" term="Deployment Environment"/><category scheme="http://www.blogger.com/atom/ns#" term="Generate"/><category scheme="http://www.blogger.com/atom/ns#" term="import"/><category scheme="http://www.blogger.com/atom/ns#" term="jython"/><category scheme="http://www.blogger.com/atom/ns#" term="Websphere"/><category scheme="http://www.blogger.com/atom/ns#" term="Websphere Process Server"/><title type='text'>Defining Fully Supported Deployment Environment Silently</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;In Websphere Process Server I could not find a jython way of defining Deployment environment using wsadmin. So the route I chose is to create a template of Deployment Environment and update it using a program(In my case shell scripts) and then import it using wsadmin. This is how my template looks:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;template.xml:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;ASCII&quot;?&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;wbitopology:WBITopology xmi:version=&quot;2.0&quot; xmlns:xmi=&quot;http://www.omg.org/XMI&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:wbitopology=&quot;http://www.ibm.com/wbi/schemas/6.1/wbitopology.xmi&quot; name=&quot;ENVNAME&quot; version=&quot;6.2.0.3&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;pattern id=&quot;Reference&quot; name=&quot;Remote Messaging and Remote Support&quot; version=&quot;6.2.0.3&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;runtime id=&quot;WPS&quot; name=&quot;WPS&quot; version=&quot;6.2.0.3&quot; value=&quot;3&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;roles id=&quot;ADT&quot; name=&quot;AppTarget&quot; version=&quot;6.2.0.3&quot; baseRuntime=&quot;WPS&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;deploymentTarget xsi:type=&quot;wbitopology:WBICluster&quot; name=&quot;ENVNAME.AppTarget&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;nodes name=&quot;NODEANAME1&quot; runtime=&quot;WPS&quot; hostName=&quot;HOSTNAME1&quot; port=&quot;0&quot; numOfServers=&quot;1&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;nodes name=&quot;NODEANAME2&quot; runtime=&quot;WPS&quot; hostName=&quot;HOSTNAME2&quot; port=&quot;0&quot; numOfServers=&quot;1&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;/roles&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;roles id=&quot;Support&quot; name=&quot;Support&quot; version=&quot;6.2.0.3&quot; baseRuntime=&quot;WPS&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;deploymentTarget xsi:type=&quot;wbitopology:WBICluster&quot; name=&quot;ENVNAME.Support&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;nodes name=&quot;NODEANAME1&quot; runtime=&quot;WPS&quot; hostName=&quot;HOSTNAME1&quot; port=&quot;0&quot; numOfServers=&quot;1&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;nodes name=&quot;NODEANAME2&quot; runtime=&quot;WPS&quot; hostName=&quot;HOSTNAME2&quot; port=&quot;0&quot; numOfServers=&quot;1&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;/roles&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;roles id=&quot;Messaging&quot; name=&quot;Messaging&quot; version=&quot;6.2.0.3&quot; baseRuntime=&quot;WAS&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;deploymentTarget xsi:type=&quot;wbitopology:WBICluster&quot; name=&quot;ENVNAME.Messaging&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;nodes name=&quot;NODEANAME1&quot; runtime=&quot;WPS&quot; hostName=&quot;HOSTNAME1&quot; port=&quot;0&quot; numOfServers=&quot;1&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;nodes name=&quot;NODEANAME2&quot; runtime=&quot;WPS&quot; hostName=&quot;HOSTNAME2&quot; port=&quot;0&quot; numOfServers=&quot;1&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;/roles&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;components id=&quot;WBI_CEI&quot; name=&quot;WBI_CEI&quot; version=&quot;6.2.0.3&quot; topologyRole=&quot;Support&quot; baseRuntimeId=&quot;WAS&quot; level=&quot;1&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dataSrc component=&quot;WBI_CEI&quot; createTable=&quot;false&quot; dbcomponent=&quot;WBI_CEI_EVENT&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authAlias name=&quot;CELLNAME/ENVNAME.Support/EventAuthDataAliasOracle&quot; userName=&quot;WPSCEID&quot; password=&quot;wpsceid&quot; component=&quot;WBI_CEI&quot; description=&quot;CEI Event data source authentication alias&quot; dbcomponent=&quot;WBI_CEI_EVENT&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;driverType&quot; value=&quot;&quot; type=&quot;&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;URL&quot; value=&quot;JDBCURL&quot; type=&quot;&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;jndiName&quot; value=&quot;jdbc/cei&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;name&quot; value=&quot;event&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;description&quot; value=&quot;Event server data source&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;dataStoreHelperClassName&quot; value=&quot;com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;provider scope=&quot;Cluster=ENVNAME.Support&quot; databaseType=&quot;ORACLE10G&quot; providerType=&quot;Oracle JDBC Driver&quot; implementationType=&quot;XA data source&quot; dbcomponent=&quot;WBI_CEI_EVENT&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dataSrc&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authAliases name=&quot;CommonEventInfrastructureJMSAuthAlias&quot; userName=&quot;ADMINUSER&quot; password=&quot;ADMINPASS&quot; component=&quot;WBI_CEI&quot; description=&quot;CEI JMS authentication alias&quot; dbcomponent=&quot;WBI_CEI_EVENT&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;siBuses id=&quot;WBI_SIB&quot; name=&quot;CEI_bus&quot; topologyRole=&quot;Messaging&quot; baseRuntimeId=&quot;WAS&quot; level=&quot;2&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bus name=&quot;ceiBus&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;wbiMEs name=&quot;ceiBusME&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authAlias name=&quot;CEIME_ENVNAME.Messaging_Auth_Alias&quot; userName=&quot;WPSCM00&quot; password=&quot;wpscm00&quot; component=&quot;CEI_bus&quot; description=&quot;CEI ME data source authentication alias&quot; dbcomponent=&quot;WBI_CEI_ME&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dataSrc component=&quot;CEI_bus&quot; schemaName=&quot;WPSCM00&quot; createTable=&quot;false&quot; dbcomponent=&quot;WBI_CEI_ME&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authAlias name=&quot;CEIME_ENVNAME.Messaging_Auth_Alias&quot; userName=&quot;WPSCM00&quot; password=&quot;wpscm00&quot; component=&quot;CEI_bus&quot; description=&quot;CEI ME data source authentication alias&quot; dbcomponent=&quot;WBI_CEI_ME&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;driverType&quot; value=&quot;&quot; type=&quot;&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;URL&quot; value=&quot;JDBCURL&quot; type=&quot;&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;jndiName&quot; value=&quot;jdbc/com.ibm.ws.sib/ENVNAME.Messaging-CommonEventInfrastructure_Bus&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;name&quot; value=&quot;CEI ME data source&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;description&quot; value=&quot;CEI Messaging Engine data source&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;dataStoreHelperClassName&quot; value=&quot;com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;provider scope=&quot;Cluster=ENVNAME.Messaging&quot; databaseType=&quot;ORACLE10G&quot; providerType=&quot;Oracle JDBC Driver&quot; implementationType=&quot;XA data source&quot; dbcomponent=&quot;WBI_CEI_ME&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dataSrc&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/wbiMEs&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bus&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/siBuses&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;dbType&quot; value=&quot;ORACLE10G&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;jdbcClassPath&quot; value=&quot;ORACLE_JDBC_DRIVER_PATH&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;/components&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;components id=&quot;WBI_SCA&quot; name=&quot;WBI_SCA&quot; version=&quot;6.2.0.3&quot; topologyRole=&quot;AppTarget&quot; baseRuntimeId=&quot;WESB&quot; level=&quot;1&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authAliases name=&quot;SCA_Auth_Alias&quot; userName=&quot;ADMINUSER&quot; password=&quot;ADMINPASS&quot; component=&quot;WBI_SCA&quot; description=&quot;SCA authentication alias&quot; dbcomponent=&quot;WBI_SCA&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;siBuses id=&quot;WBI_SIB&quot; name=&quot;SCA_system_bus&quot; topologyRole=&quot;Messaging&quot; baseRuntimeId=&quot;WAS&quot; level=&quot;2&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bus name=&quot;sysBus&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;wbiMEs name=&quot;scaSysBusME&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authAlias name=&quot;SCASYSME01_Auth_Alias&quot; userName=&quot;WPSSS00&quot; password=&quot;wpsss00&quot; component=&quot;SCA_system_bus&quot; description=&quot;SCA System Bus ME data source authentication alias&quot; dbcomponent=&quot;WBI_SCA_SYS_ME&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dataSrc component=&quot;SCA_system_bus&quot; schemaName=&quot;WPSSS00&quot; createTable=&quot;false&quot; dbcomponent=&quot;WBI_SCA_SYS_ME&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authAlias name=&quot;SCASYSME01_Auth_Alias&quot; userName=&quot;WPSSS00&quot; password=&quot;wpsss00&quot; component=&quot;SCA_system_bus&quot; description=&quot;SCA System Bus ME data source authentication alias&quot; dbcomponent=&quot;WBI_SCA_SYS_ME&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;driverType&quot; value=&quot;&quot; type=&quot;&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;URL&quot; value=&quot;JDBCURL&quot; type=&quot;&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;jndiName&quot; value=&quot;jdbc/com.ibm.ws.sib/ENVNAME.Messaging-SCA.SYSTEM.CELLNAME.Bus&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;name&quot; value=&quot;SCA System Bus ME data source&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;description&quot; value=&quot;SCA System Bus Messaging Engine data source&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;dataStoreHelperClassName&quot; value=&quot;com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;provider scope=&quot;Cluster=ENVNAME.Messaging&quot; databaseType=&quot;ORACLE10G&quot; providerType=&quot;Oracle JDBC Driver&quot; implementationType=&quot;XA data source&quot; dbcomponent=&quot;WBI_SCA_SYS_ME&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dataSrc&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/wbiMEs&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bus&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/siBuses&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;siBuses id=&quot;WBI_SIB&quot; name=&quot;SCA_app_bus&quot; topologyRole=&quot;Messaging&quot; baseRuntimeId=&quot;WAS&quot; level=&quot;2&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bus name=&quot;appBus&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;wbiMEs name=&quot;scaAppBusME&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authAlias name=&quot;SCAAPPME01_Auth_Alias&quot; userName=&quot;WPSSA00&quot; password=&quot;wpssa00&quot; component=&quot;SCA_app_bus&quot; description=&quot;SCA Application Bus ME data source authentication alias&quot; dbcomponent=&quot;WBI_SCA_APP_ME&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dataSrc component=&quot;SCA_app_bus&quot; schemaName=&quot;WPSSA00&quot; createTable=&quot;false&quot; dbcomponent=&quot;WBI_SCA_APP_ME&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authAlias name=&quot;SCAAPPME01_Auth_Alias&quot; userName=&quot;WPSSA00&quot; password=&quot;wpssa00&quot; component=&quot;SCA_app_bus&quot; description=&quot;SCA Application Bus ME data source authentication alias&quot; dbcomponent=&quot;WBI_SCA_APP_ME&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;driverType&quot; value=&quot;&quot; type=&quot;&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;URL&quot; value=&quot;JDBCURL&quot; type=&quot;&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;jndiName&quot; value=&quot;jdbc/com.ibm.ws.sib/ENVNAME.Messaging-SCA.APPLICATION.CELLNAME.Bus&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;name&quot; value=&quot;SCA Application Bus ME data source&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;description&quot; value=&quot;SCA Application Bus Messaging Engine data source&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;dataStoreHelperClassName&quot; value=&quot;com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;provider scope=&quot;Cluster=ENVNAME.Messaging&quot; databaseType=&quot;ORACLE10G&quot; providerType=&quot;Oracle JDBC Driver&quot; implementationType=&quot;XA data source&quot; dbcomponent=&quot;WBI_SCA_APP_ME&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dataSrc&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/wbiMEs&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bus&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/siBuses&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dependencies name=&quot;WBI_CEI&quot; value=&quot;WBI_CEI&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;/components&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;components id=&quot;WBI_BRM&quot; name=&quot;WBI_BRM&quot; version=&quot;6.2.0.3&quot; topologyRole=&quot;Support&quot; baseRuntimeId=&quot;WPS&quot; level=&quot;1&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;contextRoot&quot; value=&quot;/br&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;/components&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;components id=&quot;WBI_RECOVERY&quot; name=&quot;WBI_RECOVERY&quot; version=&quot;6.2.0.3&quot; topologyRole=&quot;AppTarget&quot; baseRuntimeId=&quot;WESB&quot; level=&quot;1&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dependencies name=&quot;WBI_SCA&quot; value=&quot;WBI_SCA&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;/components&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;components id=&quot;WBI_BPC&quot; name=&quot;WBI_BPC&quot; version=&quot;6.2.0.3&quot; topologyRole=&quot;AppTarget&quot; baseRuntimeId=&quot;WPS&quot; level=&quot;1&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dataSrc component=&quot;WBI_BPC&quot; schemaName=&quot;WPSBE00&quot; createTable=&quot;false&quot; dbcomponent=&quot;WBI_BPC&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authAlias name=&quot;BPCDB_ENVNAME.AppTarget_Auth_Alias&quot; userName=&quot;WPSBE00&quot; password=&quot;wpsbe00&quot; component=&quot;WBI_BPC&quot; description=&quot;Business Process Choreographer data source authentication alias&quot; dbcomponent=&quot;WBI_BPC&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;driverType&quot; value=&quot;&quot; type=&quot;&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;URL&quot; value=&quot;JDBCURL&quot; type=&quot;&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;jndiName&quot; value=&quot;jdbc/BPEDB&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;name&quot; value=&quot;Business Process Choreographer data source&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;description&quot; value=&quot;Business Process Choreographer data source&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;dataStoreHelperClassName&quot; value=&quot;com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;connPoolAttributes name=&quot;reapTime&quot; value=&quot;120&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;connPoolAttributes name=&quot;agedTimeout&quot; value=&quot;1800&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;connPoolAttributes name=&quot;maxConnections&quot; value=&quot;30&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;connPoolAttributes name=&quot;minConnections&quot; value=&quot;1&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;provider scope=&quot;Cluster=ENVNAME.AppTarget&quot; databaseType=&quot;ORACLE10G&quot; providerType=&quot;Oracle JDBC Driver&quot; implementationType=&quot;XA data source&quot; dbcomponent=&quot;WBI_BPC&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dataSrc&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authAliases name=&quot;BPC_Auth_Alias&quot; userName=&quot;ADMINUSER&quot; password=&quot;ADMINPASS&quot; component=&quot;WBI_BPC&quot; description=&quot;Business Process Choreographer JMS authentication alias&quot; dbcomponent=&quot;WBI_BPC&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;siBuses id=&quot;WBI_SIB&quot; name=&quot;BPC_bus&quot; topologyRole=&quot;Messaging&quot; baseRuntimeId=&quot;WAS&quot; level=&quot;2&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bus name=&quot;bpcBus&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;wbiMEs name=&quot;bpcBusME&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authAlias name=&quot;BPCME_00_Auth_Alias&quot; userName=&quot;WPSBC00&quot; password=&quot;wpsbc00&quot; component=&quot;BPC_bus&quot; description=&quot;Business Process Choreographer ME data source authentication alias&quot; dbcomponent=&quot;WBI_BPC_ME&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dataSrc component=&quot;BPC_bus&quot; schemaName=&quot;WPSBC00&quot; createTable=&quot;false&quot; dbcomponent=&quot;WBI_BPC_ME&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authAlias name=&quot;BPCME_00_Auth_Alias&quot; userName=&quot;WPSBC00&quot; password=&quot;wpsbc00&quot; component=&quot;BPC_bus&quot; description=&quot;Business Process Choreographer ME data source authentication alias&quot; dbcomponent=&quot;WBI_BPC_ME&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;driverType&quot; value=&quot;&quot; type=&quot;&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;URL&quot; value=&quot;JDBCURL&quot; type=&quot;&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;jndiName&quot; value=&quot;jdbc/com.ibm.ws.sib/ENVNAME.Messaging-BPC.CELLNAME.Bus&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;name&quot; value=&quot;Business Process Choreographer ME data source&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;description&quot; value=&quot;Business Process Choreographer Messaging Engine data source&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;dataStoreHelperClassName&quot; value=&quot;com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;provider scope=&quot;Cluster=ENVNAME.Messaging&quot; databaseType=&quot;ORACLE10G&quot; providerType=&quot;Oracle JDBC Driver&quot; implementationType=&quot;XA data source&quot; dbcomponent=&quot;WBI_BPC_ME&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dataSrc&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/wbiMEs&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bus&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/siBuses&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;jmsAPIUser&quot; value=&quot;ADMINUSER&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;jmsAPIPassword&quot; value=&quot;ADMINPASS&quot; type=&quot;password&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;adminUsers&quot; value=&quot;ADMINUSER&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;monitorUsers&quot; value=&quot;ADMINUSER&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;escalationUser&quot; value=&quot;ADMINUSER&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;escalationPassword&quot; value=&quot;ADMINPASS&quot; type=&quot;password&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;adminGroups&quot; value=&quot;&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;monitorGroups&quot; value=&quot;&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;bfmContextRoot&quot; value=&quot;/BFMIF_&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;htmContextRoot&quot; value=&quot;/HTMIF_&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;mailServer&quot; value=&quot;&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;mailSessionUserId&quot; value=&quot;ADMINUSER&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;mailSessionPassword&quot; value=&quot;{xor}&quot; type=&quot;password&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;explorerURLPrefix&quot; value=&quot;&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;/components&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;components id=&quot;WBI_BSPACE&quot; name=&quot;WBI_BSPACE&quot; version=&quot;6.2.0.3&quot; topologyRole=&quot;Support&quot; baseRuntimeId=&quot;WESB&quot; level=&quot;1&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dataSrc component=&quot;WBI_BSPACE&quot; schemaName=&quot;IBMBUSSP&quot; dbcomponent=&quot;WBI_BSPACE&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authAlias name=&quot;BSPACE_Auth_Alias&quot; userName=&quot;IBMBUSSP&quot; password=&quot;ibmbussp&quot; component=&quot;WBI_BSPACE&quot; description=&quot;Business Space data source authentication alias&quot; dbcomponent=&quot;WBI_BSPACE&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;driverType&quot; value=&quot;&quot; type=&quot;&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;URL&quot; value=&quot;JDBCURL&quot; type=&quot;&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;jndiName&quot; value=&quot;jdbc/bpm/BusinessSpace&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;name&quot; value=&quot;Business Space data source&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;description&quot; value=&quot;Business Space data source&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;dataStoreHelperClassName&quot; value=&quot;com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;provider scope=&quot;Cluster=ENVNAME.Support&quot; databaseType=&quot;ORACLE10G&quot; providerType=&quot;Oracle JDBC Driver&quot; implementationType=&quot;XA data source&quot; dbcomponent=&quot;WBI_BSPACE&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dataSrc&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;/components&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;components id=&quot;WBI_BPCEventCollector&quot; name=&quot;WBI_BPCEventCollector&quot; version=&quot;6.2.0.3&quot; topologyRole=&quot;Support&quot; baseRuntimeId=&quot;WPS&quot; level=&quot;1&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dataSrc component=&quot;WBI_BPCEventCollector&quot; schemaName=&quot;WPSBC00&quot; createTable=&quot;false&quot; dbcomponent=&quot;WBI_BPCEventCollector&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authAlias name=&quot;BPCEDB_ENVNAME.Support_Auth_Alias&quot; userName=&quot;WPSBC00&quot; password=&quot;wpsbc00&quot; component=&quot;WBI_BPCEventCollector&quot; description=&quot;Business Process Choreographer reporting function data source authentication alias&quot; dbcomponent=&quot;WBI_BPCEventCollector&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;driverType&quot; value=&quot;&quot; type=&quot;&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;URL&quot; value=&quot;JDBCURL&quot; type=&quot;&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;jndiName&quot; value=&quot;jdbc/OBSVRDB_ENVNAME.Support&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;name&quot; value=&quot;Business Process Choreographer reporting function source&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;description&quot; value=&quot;Business Process Choreographer reporting function data source&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;attributes name=&quot;dataStoreHelperClassName&quot; value=&quot;com.ibm.websphere.rsadapter.Oracle10gDataStoreHelper&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;provider scope=&quot;Cell=CELLNAME&quot; databaseType=&quot;ORACLE10G&quot; providerType=&quot;Oracle JDBC Driver&quot; implementationType=&quot;XA data source&quot; dbcomponent=&quot;WBI_BPCEventCollector&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dataSrc&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dependencies name=&quot;WBI_CEI&quot; value=&quot;WBI_CEI&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dependencies name=&quot;WBI_BPC&quot; value=&quot;WBI_BPC&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;/components&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;components xsi:type=&quot;wbitopology:WBIRestServicesComponent&quot; id=&quot;WBI_RESTSERVICES&quot; name=&quot;WBI_RESTSERVICES&quot; version=&quot;6.2.0.3&quot; topologyRole=&quot;Support&quot; baseRuntimeId=&quot;WESB&quot; level=&quot;1&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;webModules name=&quot;rest.gateway.war&quot; applicationName=&quot;REST Services Gateway&quot; contextRoot=&quot;/rest&quot; transportType=&quot;https://&quot; hostName=&quot;RESTHOST&quot; port=&quot;RESTPORT&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endpoints id=&quot;433144d9-c8a2-4343-b5fb-6e0ae9eff4ab&quot; name=&quot;Business Calendar&quot; description=&quot;WBI Business Calendar REST API&quot; type=&quot;{com.ibm.bpm}TimeTable&quot; typeDisplayName=&quot;Time Tables&quot; version=&quot;6.2.0.0&quot; url=&quot;/bpm/businesscalendar&quot; lastModified=&quot;1332867881017&quot; publicEndpoint=&quot;true&quot; providerEndpointID=&quot;BusinessCalendar&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endpoints id=&quot;c21b683a-abcf-467c-a918-cf96e0bd0c14&quot; name=&quot;Business Rules&quot; description=&quot;WBI Business Rule REST API&quot; type=&quot;{com.ibm.bpm}BusinessRules&quot; typeDisplayName=&quot;Business Rules&quot; version=&quot;6.1.2.0&quot; url=&quot;/bpm/brules&quot; lastModified=&quot;1332867881017&quot; providerEndpointID=&quot;BusinessRules&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endpoints id=&quot;67116d70-125c-432e-8ad2-c8c52621188c&quot; name=&quot;Direct Deploy&quot; description=&quot;Internal REST service for directly deploying SCA modules&quot; type=&quot;{com.ibm.bpm}DirectDeploy&quot; typeDisplayName=&quot;Direct Deploy&quot; version=&quot;6.2.0.0&quot; url=&quot;/serverComponent&quot; lastModified=&quot;1332867881017&quot; providerEndpointID=&quot;DirectDeploy&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endpoints id=&quot;532f13fb-0ea1-4408-8ed0-8d6865ec7fca&quot; name=&quot;Health Monitor&quot; description=&quot;The Health Monitor REST is an application programming interface for system health&quot; type=&quot;{com.ibm.bpm}HealthMonitor&quot; typeDisplayName=&quot;Health Monitor&quot; version=&quot;6.2.0.0&quot; url=&quot;/bpm/hm/v1&quot; lastModified=&quot;1332867881017&quot; providerEndpointID=&quot;HM&quot; jndiName=&quot;HM&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endpoints id=&quot;05a02928-1f2a-481e-a1ac-33e758a3df4d&quot; name=&quot;Virtual Member Manager&quot; description=&quot;User Membership REST API&quot; type=&quot;{com.ibm.bpm}VirtualMemberManager&quot; typeDisplayName=&quot;User Membership&quot; version=&quot;6.2.0.0&quot; url=&quot;/ws/um&quot; lastModified=&quot;1332867881017&quot; publicEndpoint=&quot;true&quot; providerEndpointID=&quot;VirtualMemberManager&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endpoints id=&quot;f09b83e0-37c4-4987-919d-7ae59ccc729b&quot; name=&quot;WBI Security&quot; description=&quot;WBI Security REST API&quot; type=&quot;{com.ibm.bpm}Security&quot; typeDisplayName=&quot;Security&quot; version=&quot;6.2.0.0&quot; url=&quot;/bpm/security&quot; lastModified=&quot;1332867881017&quot; providerEndpointID=&quot;WBISecurity&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endpoints id=&quot;7bd322a1-fa83-459e-a88d-7d1b5394ee9d&quot; name=&quot;SCA Administration&quot; description=&quot;SCA appplication module administration&quot; type=&quot;{com.ibm.bpm}SCAAdmin&quot; typeDisplayName=&quot;SCA Administration&quot; version=&quot;6.2.0.0&quot; url=&quot;/sca/modules&quot; lastModified=&quot;1332867881017&quot; providerEndpointID=&quot;{com.ibm.bpm}SCAAdmin&quot; jndiName=&quot;SCAAdmin&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/webModules&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;/components&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;components id=&quot;WBI_BPCExplorer&quot; name=&quot;WBI_BPCExplorer&quot; version=&quot;6.2.0.3&quot; topologyRole=&quot;Support&quot; baseRuntimeId=&quot;WPS&quot; level=&quot;1&quot;&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties name=&quot;contextRoot&quot; value=&quot;/bpc&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dependencies name=&quot;WBI_BPC&quot; value=&quot;WBI_BPC&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dependencies name=&quot;WBI_BPCEventCollector&quot; value=&quot;WBI_BPCEventCollector&quot; type=&quot;String&quot;/&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;/components&amp;gt; &lt;/span&gt;&lt;br style=&quot;color: blue;&quot; /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/wbitopology:WBITopology&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Now the above template you can change it using any program. You need to replace following item with actual values:&lt;br /&gt;
&lt;br /&gt;
replaceTerm=&amp;lt;Host Name of Node1&amp;gt;&lt;br /&gt;
searchTerm=&quot;HOSTNAME1&quot; &lt;br /&gt;
replaceTerm=&amp;lt;Host Name of Node 2&amp;gt;&lt;br /&gt;
searchTerm=&quot;HOSTNAME2&quot; &lt;br /&gt;
replaceTerm=&amp;lt;Name of Node1&amp;gt; &lt;br /&gt;
searchTerm=&quot;NODEANAME1&quot; &lt;br /&gt;
replaceTerm=&amp;lt;Name of Node2&amp;gt;&lt;br /&gt;
searchTerm=&quot;NODEANAME2&quot; &lt;br /&gt;
replaceTerm=&amp;lt;WPS Admin User ID&amp;gt;&lt;br /&gt;
searchTerm=&quot;ADMINUSER&quot; &lt;br /&gt;
replaceTerm=&amp;lt;WPS Admin User Password&amp;gt;&lt;br /&gt;
searchTerm=&quot;ADMINPASS&quot; &lt;br /&gt;
replaceTerm=&amp;lt;Name of Cell&amp;gt;&lt;br /&gt;
searchTerm=&quot;CELLNAME&quot; &lt;br /&gt;
replaceTerm=&amp;lt;Full JDBC URL Like jdbc:oracle:thin:@&amp;lt;db IP&amp;gt;:&amp;lt;Db Port&amp;gt;:&amp;lt;data base name  &amp;gt;&lt;br /&gt;
searchTerm=&quot;JDBCURL&quot; &lt;br /&gt;
replaceTerm=&amp;lt;Rest Host Ip. Usually your load balancer or leave it blank&amp;gt; &lt;br /&gt;
searchTerm=&quot;RESTHOST&quot; &lt;br /&gt;
replaceTerm=&amp;lt;Rest Host Port. Usually your load balancer or leave it blank&amp;gt; &lt;br /&gt;
searchTerm=&quot;RESTPORT&quot; &lt;br /&gt;
replaceTerm=&amp;lt;Name of the Deployment Environment.You can select anything&amp;gt;&lt;br /&gt;
searchTerm=&quot;ENVNAME&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now you can import this file using jython like below:&lt;br /&gt;
&lt;br /&gt;
AdminTask.importDeploymentEnvDef(&#39;[-filePath %s -topologyName %s]&#39; % (&amp;lt;Path of your xml&amp;gt;,&amp;lt;Name you chose as ENVNAME&amp;gt;)) &lt;br /&gt;
&lt;br /&gt;
To generate the enviornment use:&lt;br /&gt;
&lt;br /&gt;
AdminTask.generateDeploymentEnv(&#39;[-topologyName %s]&#39; % (&amp;lt;Name you chose as ENVNAME&amp;gt;))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/9116078924586240086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2012/04/defining-fully-supported-deployment.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/9116078924586240086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/9116078924586240086'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2012/04/defining-fully-supported-deployment.html' title='Defining Fully Supported Deployment Environment Silently'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>0</thr:total><georss:featurename>Chelmsford, Essex CM1 2EF, UK</georss:featurename><georss:point>51.7475833 0.45062459999996918</georss:point><georss:box>51.7468748 0.44961259999996916 51.748291800000004 0.45163659999996919</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3587470620336641026.post-3939175672289453626</id><published>2012-04-17T11:19:00.000-07:00</published><updated>2012-04-17T11:19:44.978-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AdminTask.createPolicySetAttachment"/><category scheme="http://www.blogger.com/atom/ns#" term="define"/><category scheme="http://www.blogger.com/atom/ns#" term="dmgr"/><category scheme="http://www.blogger.com/atom/ns#" term="install"/><category scheme="http://www.blogger.com/atom/ns#" term="manageprofile"/><category scheme="http://www.blogger.com/atom/ns#" term="node"/><category scheme="http://www.blogger.com/atom/ns#" term="Websphere Process Server"/><title type='text'>Installing/configuring Websphere Process Server 6.2 Silently</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Its a handy command to install Websphere Process Server 6.2 complete with response file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Install Directory&amp;gt;/WBI/install -silent -options &amp;lt;Path of response file&amp;gt;/wps.res&lt;br /&gt;
&lt;br /&gt;
Content of WPS res:&lt;br /&gt;
&lt;br /&gt;
-OPT silentInstallLicenseAcceptance=true &lt;br /&gt;
-OPT allowNonRootSilentInstall=true &lt;br /&gt;
-OPT disableOSPrereqChecking=true &lt;br /&gt;
-OPT disableNonBlockingPrereqChecking=true&amp;nbsp; &lt;br /&gt;
-OPT createProfile=false&amp;nbsp; &lt;br /&gt;
-OPT wpsInstallType=typical &lt;br /&gt;
-OPT samplesSelected=false &lt;br /&gt;
-OPT useExistingWAS=false&amp;nbsp; &lt;br /&gt;
-OPT profileType=none &lt;br /&gt;
-OPT installLocation=&amp;lt;Path to Install like /usr/IBM/WebSphere&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now this just install the product but it does not create any profile. This is how we need to create profiles with Oracle11G database:&lt;br /&gt;
&lt;br /&gt;
Deployment Manager:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;WPS_HOME&amp;gt;/bin/manageprofiles.sh -create -profileName dmgr -templatePath &amp;lt;WPS_HOME&amp;gt;/profileTemplates/dmgr.wbiserver -profilePath &amp;lt;profile Path like /usr/IBM/WebSphere/ProcServer/profiles&amp;gt; -enableAdminSecurity false -ndtopology true -topologyPattern Reference -dbType Oracle10g -dbNAME &amp;lt;database name&amp;gt; -dbDriverType oracle_thin -dbHostName &amp;lt;db Host name&amp;gt; -dbJDBCClasspath &amp;lt;Oracle Client Jar Path like /oracle/lib&amp;gt; -dbServerPort &amp;lt;db port&amp;gt; -dbDelayConfig true -dbUserId &amp;lt;database user&amp;gt; -dbPassword &amp;lt;database password&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Node:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;WPS_HOME&amp;gt;/bin/manageprofiles.sh -create -profileName &amp;lt;profile Name&amp;gt; -templatePath &amp;lt;WPS_HOME/profileTemplates/managed.wbiserver&amp;gt; -profilePath &amp;lt;profile Path like /usr/IBM/WebSphere/ProcServer/profiles&amp;gt; -enableAdminSecurity false -ndtopology true -topologyPattern Reference -dbType Oracle10g -dbNAME &amp;lt;database Name&amp;gt; -dbDriverType oracle_thin -dbHostName &amp;lt;db Host&amp;gt; -dbJDBCClasspath &amp;lt;Oracle client path like /oracle/lib&amp;gt; -dbServerPort &amp;lt;db port&amp;gt; -dbDelayConfig true -fileStoreForME false -dbCommonForME true -configureBSpace false -configureBRM false -configureBPC false -ceiOverrideDataSource false -dbUserId &amp;lt;database user&amp;gt; -dbPassword &amp;lt;database password&amp;gt; -federateLaterProcServer false -dmgrHost &amp;lt;deployment manager host&amp;gt; -dmgrPort &amp;lt;deployment Manager port&amp;gt; -dmgrAdminUserName &amp;lt;deployment manager user&amp;gt; -dmgrAdminPassword &amp;lt;deployment manager password&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In next blog I will talk about how to define a two node Golden Topology using scripts.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.abhijeet-kumar.com/feeds/3939175672289453626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.abhijeet-kumar.com/2012/04/installingconfiguring-websphere-process.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/3939175672289453626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3587470620336641026/posts/default/3939175672289453626'/><link rel='alternate' type='text/html' href='http://www.abhijeet-kumar.com/2012/04/installingconfiguring-websphere-process.html' title='Installing/configuring Websphere Process Server 6.2 Silently'/><author><name>Micky</name><uri>http://www.blogger.com/profile/05588350220715638020</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiim-hkvuUs7PdUMHzi_SRXbaNn766B1kXXH59cDVt3iZDIyyuWxhJuIaSS6mmIPxsHk7R_yBnE-rfro9No5GibnsD0iOIR9YO_h_JHEdTeJhrieCVhJ64OPSCh3HaWSkISEByIB0IrBPYZxdvactDYMJCYxe_Fivagfp6VS8gRv7MMsg/s220/Abhijeet-Photo.jpeg'/></author><thr:total>4</thr:total></entry></feed>