• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Search

status

GCP Backend Services Health Status

February 14, 2023

Here’s how to get health status of a GCP Load Balancer Backend Services.

For all load balancers except target pool.

gcloud compute backend-services get-health BACKEND_SERVICE_NAME \
--region us-central1 \
--project project-id

gcloud compute backend-services get-health BACKEND_SERVICE_NAME \ --region us-central1 \ --project project-id

For target pool load balancers, use this command.

gcloud compute target-pools get-health TARGET_POOL_NAME \
--region us-central1 \
--project project-id

gcloud compute target-pools get-health TARGET_POOL_NAME \ --region us-central1 \ --project project-id

Filed Under: Cloud Tagged With: backend-service, gcp, health, load balancer, status

Tomcat Install

June 4, 2021

Tomcat requires JRE.

wget jre-8uversion-linux-x64.tar.gz
# or
apt-get install default-jdk

wget jre-8uversion-linux-x64.tar.gz # or apt-get install default-jdk

Install Tomcat 8 on Linux.

wget https://mirrors.gigenet.com/apache/tomcat/tomcat-8/v8.5.66/bin/apache-tomcat-8.5.66.tar.gz
tar zxpvf apache-tomcat-8.5.66.tar.gz
cd /opt/tomcat/apache-tomcat-8.5.66/bin/
./startup.sh

wget https://mirrors.gigenet.com/apache/tomcat/tomcat-8/v8.5.66/bin/apache-tomcat-8.5.66.tar.gz tar zxpvf apache-tomcat-8.5.66.tar.gz cd /opt/tomcat/apache-tomcat-8.5.66/bin/ ./startup.sh

Status|Start|Stop|Restart Tomcat.

systemctl status tomcat8
systemctl start tomcat8
systemctl stop tomcat8
systemctl restart tomcat8

systemctl status tomcat8 systemctl start tomcat8 systemctl stop tomcat8 systemctl restart tomcat8

Filed Under: Misc Tagged With: apache, install, restart, server, start, status, stop, tomcat, web

SSSD Report

May 24, 2021

Generate a SSSD report.

#!/bin/bash
log="log"
> $log
sep () { echo "--------------------------------" >> $log; }
sep
echo "SSSD Status" >> $log
sep
systemctl status sssd >> $log
sep
echo "Contents of /etc/resolv.conf" >> $log
sep
cat /etc/resolv.conf >> $log
sep
echo "Contents of /etc/sssd/sssd.conf" >> $log
sep
cat /etc/sssd/sssd.conf >> $log
sep
echo "Versions of /etc/resolv.conf" >> $log
sep
ls -l /etc/resolv.conf* >> $log
sep
echo "Versions of /etc/sssd/sssd.conf" >> $log
sep
ls -l /etc/sssd/sssd.conf* >> $log
sep
echo "Contents of /var/log/sssd-rollout.log" >> $log
sep
cat /var/log/sssd-rollout.log >> $log
sep
echo "Contents of /var/log/sssd-rollout3.log" >> $log
sep
cat /var/log/sssd-rollout3.log >> $log
sep

#!/bin/bash log="log" > $log sep () { echo "--------------------------------" >> $log; } sep echo "SSSD Status" >> $log sep systemctl status sssd >> $log sep echo "Contents of /etc/resolv.conf" >> $log sep cat /etc/resolv.conf >> $log sep echo "Contents of /etc/sssd/sssd.conf" >> $log sep cat /etc/sssd/sssd.conf >> $log sep echo "Versions of /etc/resolv.conf" >> $log sep ls -l /etc/resolv.conf* >> $log sep echo "Versions of /etc/sssd/sssd.conf" >> $log sep ls -l /etc/sssd/sssd.conf* >> $log sep echo "Contents of /var/log/sssd-rollout.log" >> $log sep cat /var/log/sssd-rollout.log >> $log sep echo "Contents of /var/log/sssd-rollout3.log" >> $log sep cat /var/log/sssd-rollout3.log >> $log sep

Filed Under: Linux Tagged With: generate, report, sssd, status

HTTPD on Redhat & Centos

December 4, 2020

Here are the commands to start, stop, enable and get the status of Apache on RHEL and CentOS.

systemctl enable httpd  # enable on bootup
systemctl status httpd  # get status
systemctl start httpd   # start
systemctl stop httpd    # stop
systemctl restart httpd # restart

systemctl enable httpd # enable on bootup systemctl status httpd # get status systemctl start httpd # start systemctl stop httpd # stop systemctl restart httpd # restart

Filed Under: Linux Tagged With: centos, enable, redhat, start, status, stop

NetApp Unlock File

January 15, 2020

To get status of a file.

lock status -f "/vol/folder/path/filename.doc" -p cifs

lock status -f "/vol/folder/path/filename.doc" -p cifs

To unlock a file.

lock break -f "/vol/folder/path/filename.doc" -p cifs

lock break -f "/vol/folder/path/filename.doc" -p cifs

Filed Under: Cloud Tagged With: lock, netapp, status, unlock

  • Go to page 1
  • Go to page 2
  • Go to Next Page »
  • Home
  • About
  • Search

Copyright © 2023