Skip to main content

Posts

Showing posts from September, 2022

How to link image pull secret to service account in openshift

Hello Techie's, If your services are running in ECS - Openshift container platform and you need to edit the credentials of the Image pull secret, please follow the below steps. What is Image Pull Secret ? It is used to pull an image from a private container image registry or repository to the deployment. How does the yaml file of Image Pull secret looks ? apiVersion: v1 kind: Secret metadata:   ...   name: secret_name   ... data:   .dockerconfigjson: eyJodHRwczovL2luZGV4L ... J0QUl6RTIifX0= type: kubernetes.io/dockerconfigjson Problem Statement: Let's say, you are updating the existing Image Pull Secret values -  for example, changing docker credentials of your repository or updating the uid password from 8 character password to 15 character.  As you make changes in exising secret, Deployments or build which you trigger will obviously fail.  To overcome that you need to link the updated Image Pull secret to the service account which are using that secr...

shell script to run command in remote servers using ssh

  Hello Techie's, what if, You have a single shell script whics helps to exexute any command on the remote servers ?  Sound's Cool ? Let's Say you want to check the Java version in your RHEL servers or you just want to know the contents of the particular directory or current backround process running on the server or any commands which comes to your mind, Below shell script is your one stop solution. ------------------------------------------------------------------------------------------- #!/bin/bash #This script helps to execute commands on multiple servers with the help of ssh #List of servers - one server per line SERVER_LIST=/home/directory/server #option for the SSH commands SSH_OPTIONS='-o ConnectTimeout=2' #Displaying the usage of the script and exit messages usage() {echo "usage: ${0} { -nsv } [-f FILE] CMD" >&2 echo "Execute CMD as a single command on every server" >&2  echo "  -f FILE use FILE for the list of server...

command to restore buckets in couchbase

  Hello Techie's, Before you want to restore, first of all you need the backup. Below blog helps you to backup the buckets in couchbase  How to backup buckets in couchbase (vichietechie.blogspot.com) Restoring the Buckets  cd /opt/couchbase/bin cbbackupmgr restore -a /data/backup/couchbase/buckets/* -r bucket_name -c host_name -u admin -p password

How to backup buckets in couchbase

  Hello Techie's, Let's say, you need to scrap the existing couchbase cluster and create a new cluster running on the latest couchbase version, First step you need to do is taking backup of the Buckets. How do you do that ? Step 1 - Create the backup folder mkdir -p /data/backup/couchbase/buckets Step 2 - Create config for all the Buckets cd /opt/couchbase/bin cbbackupmgr config -a /data/backup/couchbase/buckets/`data +Y-%b` -r config_name --include-buckets bucket_name_1,bucket_name_2 Step 3 - Check if config is created cbbackupmgr info -a  /data/backup/couchbase/buckets/* -all Step 4 - Backup all Buckets cbbackupmgr backup -c couchbase://hostname -u admin -p password -a  /data/backup/couchbase/buckets/* -r config_name  Step 5 - Check if buckets are backed up cbbackupmgr list -a  /data/backup/couchbase/buckets/* want to know more about couchbase ? click here ->  what is Couchbase (vichietechie.blogspot.com)

what is Couchbase

  Hello Techie's, As a Techie's we all aware about the term "Database". In the last 3 decades there has been lot of new technology have been introduced in database -  Oracle, sqlserver, transcational database, middleware, Queues, topics. When the data in the schemas started expanding, It becomes very difficult to make changes because of its Rigid structure.  To overcome the above limitations, The new technology called NOSQL Database has been introduced. What is Couchbase server ? It is One of the NOSQL Database, which stores json files & binary files as a key & value pair. SQL                        NOSQL Database                Bucket Table                      Virtual Bucket Row                       Document Column          ...

Autosys commands

Hello Techie's, If you are using CA Workload automation tool to schedule the jobs in your Environment, you will find below commands useful. To check the autosys agent status autorep -m hostname To check the job status autorep -j job_name Start a job $sendevent -E START JOB -J <NAME OF JOB> $sendevent -E FORCE_START_JOB -J <NAME OF JOB> Kill a job $sendevent -E KILL JOB -J <NAME OF JOB> Put a job On HOLD $sendevent -E JOB_ON_HOLD -J <NAME OF JOB> Put a job Off HOLD $sendevent -E JOB_OFF_HOLD -J <NAME OF JOB> Put a job On Ice $sendevent -E JOB_ON_ICE -J <NAME OF JOB> Put a job Off Ice $sendevent -E JOB_OFF_ICE -J <NAME OF JOB> Change status of job  $sendevent -E CHANGE_STATUS -S SUCCESS -J <NAME OF JOB> To get information about the previous run $autorep -J <NAME OF JOB> -r <No of runs back> To list all the job present in a Job box $autorep -J %<NAME OF JOB>% -q To check the dependency on the job $job_depands -c -w -J ...