Skip to main content

Posts

Shell Script to Monitor the mounts points above desired threshold on Linux

Shell Script to Monitor the mounts points above desired threshold on Linux I am going to share my script which I use to monitor the mount points on linux server. Script: Save script as you want and modify accordingly. #!/bin/bash # # Script: mount_monitor.sh # Version: 1.0 # Author: Himanshu Singh # Description: Monitors  the mount points and sends email if usage exceeds 90%. # Set email recipient RECIPIENT="support@funoracleapps.com" # Function to send email notification send_email() {     SUBJECT="Mount Point Usage Alert"     BODY="Mount point usage exceeded 90% on the server."     echo "$BODY" | mailx -s "$SUBJECT" "$RECIPIENT" } # Main script logic THRESHOLD=90 # Get mount points and check usage MOUNT_POINTS=$(df -h | awk '{print $6}' | sed -n '2,$p') for MOUNT_POINT in $MOUNT_POINTS; do     USAGE=$(df -h "$MOUNT_POINT" | awk 'NR==2 {print $5}' | sed 's/%//')     if [ "$USAGE...

Setting up an Oracle Cloud OCI Command Line (CLI) in Oracle Linux 8

Setting up an OCI Command Line (CLI) in Oracle Linux 8 Oracle Cloud Infrastructure Command Line Interface (OCI CLI) is a powerful tool that allows you to manage your Oracle Cloud Infrastructure resources and services through the command line. It provides a way to automate and script tasks, create and manage resources, and interact with your cloud environment programmatically. Here's a step-by-step guide to installing and setting up OCI CLI. Before you start, ensure you have the following prerequisites: Oracle Cloud Account: You need an active Oracle Cloud account. Steps: 1) I will create a server with Oracle Linux 8 on OCI always free to use as a centralized OCI CLI server. It will be completed within 5 mins in OCI. 2)  It would a good choice to update server before installing the CLI. It will be a time taking process. [opc@ocicliserver ~]$ sudo dnf update 3) Now Lets Install OCI CLI. [opc@ocicliserver ~]$ sudo dnf -y install oraclelinux-developer-release-el8 [opc@ocicliserver...

How to Synchronise the AD tables FND_NODES, ADOP_VALID_NODES, and FND_OAM_CONTEXT_FILES in 12.2

How to Synchronise the AD tables FND_NODES, ADOP_VALID_NODES, and FND_OAM_CONTEXT_FILES in 12.2 Error: When running autoconfig or running adopt prepare AutoConfig could not successfully execute the following scripts: Directory: <EBS_BASE>/fs#/FMW_Home/webtier/perl/bin/perl -I <EBS_BASE>/fs#/FMW_Home/webtier/perl/lib/5.10.0 -I <EBS_BASE>/fs#/FMW_Home/webtier/perl/lib/site_perl/5.10.0 -I <EBS_BASE>/fs#/EBSapps/appl/au/12.0.0/perl -I <EBS_BASE>/fs#/FMW_Home/webtier/ohs/mod_perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi /<EBS_BASE>/fs#/inst/apps/<SID_hostname>/admin/install txkGenADOPWrapper.pl INSTE8_APPLY 1 SQL> SQL> Connected. SQL> SELECT ad_zd_adop.get_node_type('<hostname>') FROM DUAL * ERROR at line 1: ORA-01422: exact fetch returns more than requested number of rows ORA-06512: at "APPS.AD_ZD_ADOP", line 3049 Or ADOP error as FUNCTION: ADOP::GlobalVars::_GetMandatoryArgs [ Level 1 ] ERRORMSG: adop is not ...

Query for EBS URL profile value checking Related to Webservices in Oracle Apps

Query for EBS URL profile value checking Related to Webservices in Oracle Apps I am sharing a query to check the profile values related to web service. It can be used handy when troubleshooting any web service issues in EBS. Query: set pagesize 132   col NAME format A40   col LEVEL_SET format a15   col CONTEXT format a20   col VALUE format A20 wrap   col Server format a10   col resp format a8 wrap   col application format a10   break on NAME   select     '('||language||')-'||n.user_profile_option_name NAME,     decode(v.level_id,            10001, 'Site',             10002, 'Application',            10003, 'Responsibility',            10004, 'User',            10005, 'Server',      ...

A Beginner's Guide to Shell Scripting: Automating Tasks and Streamlining Workflows

A Beginner's Guide to Shell Scripting: Automating Tasks and Streamlining Workflows Shell scripting is a powerful tool that allows users to automate tasks, streamline workflows, and interact with their computer's operating system through a command-line interface. In this article, we will explore the basics of shell scripting, including its benefits, key concepts, and practical examples to help beginners get started on their scripting journey. Table of Contents Introduction to Shell Scripting Setting Up Your Environment Basic Shell Commands Variables and Data Types Conditional Statements Looping Constructs Functions Script Execution and Permissions Practical Examples Automating File Backups Batch Renaming Files Monitoring System Resources Best Practices for Effective Shell Scripting Conclusion 1. Introduction to Shell Scripting Shell scripting involves writing a series of commands in a file, known as a shell script, which can be executed as a program. It allows users to combine a...

Concurrent Processing Steps To Shut Down The Concurrent Managers Only On A Secondary Node in Oracle EBS PCP

Concurrent Processing Steps To Shut Down The Concurrent Managers Only On A Secondary Node in Oracle EBS To shut down all services on just one node, including any concurrent managers running just on that node. This would typically be the script "adstpall.sh" - however this script calls adcmctl.sh which stops concurrent managers on ALL nodes. Solution: For to Oracle Applications Manager (OAM) under System Administrator responsibility. Users can take the secondary node offline, and force all concurrent processing requests to fail-over onto the primary node. This will not prevent the remaining node from running its current jobs. Steps to take a node offline :- 1. Login to Oracle Application Manager manager responsibility. 2. Click on desired node in '<Host>' column. 3. On the next screen, change the status to 'Offline' and click on 'Go'. 4. Confirm the status is changed to 'Offline'. If you like please follow and comment

Managing Underperforming Team Members: Navigating Difficult Waters with Empathy and Resolution

Managing Underperforming Team Members: Navigating Difficult Waters with Empathy and Resolution In any professional setting, managing a team member who is consistently underperforming can be a challenging and delicate task. As a team leader or manager, it is crucial to address the situation with empathy, clear communication, and a focus on finding a constructive resolution. In this article, we will explore effective strategies to handle underperforming team members after giving multiple warnings and address the situation while preserving team morale and achieving better outcomes. Identify the Root Cause: Before taking any disciplinary action, it is essential to identify the root cause of the team member's underperformance. Conduct a performance review meeting to discuss their challenges and concerns openly. The employee might be facing personal issues, lacking necessary skills or training, or experiencing burnout. Understanding the underlying reasons will guide you in crafting a tai...