Name | RHEL/OEL | Solaris | AIX | HP-UX |
---|---|---|---|---|
OS Version | cat /etc/*-release |
uname -r |
oslevel -r |
uname -r |
Processor Architecture | arch |
arch |
uname -p |
uname -m |
Number of Processors | cat /proc/cpuinfo |
psrinfo -pv |
lsdev -C -c processor |
ioscan -kf | grep processor | wc -l |
Free Space on Filesystems | df -h |
df -h |
df -k (in kilobytes) |
bdf (in kilobytes) |
Swap Size | free -m |
swap -s |
lsps -a |
swapinfo |
RAM Size | free -m |
prtconf | grep Memory |
bootinfo -r |
machinfo | grep Memory |
List of Running Processes | top |
prstat -a |
topas |
top |
List of Network Interfaces | ifconfig -a |
ifconfig -a |
ifconfig -a |
netstat -in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Updates all git repositories in the current directory's subfolders. | |
# Optionally filters folders by a name prefix. | |
# | |
# --- Script Logic --- | |
# Use the first command-line argument as a filter, otherwise match all folders. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
URL=http://host.docker.internal:8080/auth/realms/master/protocol/openid-connect/token | |
DATA="username=admin&password=admin&grant_type=password&client_id=admin-cli&client_secret=7f2fc8e5-f01c-471b-b981-ef7534041790" | |
ATTR_NAME="access_token" | |
# Get JWT token | |
TOKEN=$(curl -ss -d "$DATA" -H "Content-Type: application/x-www-form-urlencoded" -X POST $URL | grep -o "\"$ATTR_NAME\":\"[^\"]*\"" | cut -d'"' -f4) | |
echo $TOKEN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
URL="http://host.docker.internal:8080/auth/realms/master/.well-known/openid-configuration" | |
# Waiting until HTTP 200 | |
until [ "$(curl -sL -w "%{http_code}\\n" $URL -o /dev/null)" == "200" ] | |
do | |
echo "$(date) - still trying to connect to $URL" | |
sleep 5 | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check parameter value and set defaults | |
if [ -z "$ENV_VARIABLE" ]; then | |
export ENV_VARIABLE=qwe123 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo off | |
set max_timeout=7 | |
set url=http://localhost:4000/api/bookTrip | |
set JWT=eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ0aFlOSURidTU4RFVUMF9hRzRoOHVCQTBuQnhUd0ExQzFBcExWYU1JNExFIn0.eyJqdGkiOiI4YjkzNjljYi0zZDVlLTRiZjgtODRjZi1hNTE4NmRkNTIzYTEiLCJleHAiOjE1MzIwMTQzOTUsIm5iZiI6MCwiaWF0IjoxNTMyMDExMzk1LCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwODAvYXV0aC9yZWFsbXMvVGVzdFJlYWxtIiwiYXVkIjoiZGVtbzItYXBwIiwic3ViIjoiNzI0ZDAwMzctZGVhYi00MDU4LWFlMWUtNzc1ZWE1Y2RkZTk3IiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiZGVtbzItYXBwIiwiYXV0aF90aW1lIjowLCJzZXNzaW9uX3N0YXRlIjoiNzliMTI4NzQtOWM2ZS00MTBjLTgzZDYtMGFjYjcxMGMzYTM2IiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJ1bWFfYXV0aG9yaXphdGlvbiIsInVzZXIiXX0sInJlc291cmNlX2FjY2VzcyI6eyJkZW1vLWFwcCI6eyJyb2xlcyI6WyJ1bWFfcHJvdGVjdGlvbiJdfSwiYnJva2VyIjp7InJvbGVzIjpbInJlYWQtdG9rZW4iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sIm5hbWUiOiJVc2VyMSBmaXJzdCBuYW1lIFVzZXIyIGxhc3QgbmFtZSIsInByZWZlcnJlZF91c2VybmFtZS |