In this tutorial, How do I use “Jenkins build periodically with parameters”? Using the “Parameterized Scheduler” Plugin. The default, not yet Parameterized Scheduler plugin in Jenkins. A Jenkins plugin to support parameters in this build scheduler. Jenkins the essential for DevOps Roles.
Make sure you have the necessary plugins installed in Jenkins to support parameterized builds if they are not available by default.
Jenkins build periodically with parameters
Step 1: Setup the Parameterized Scheduler plugin
In “Manage Jenkins” –> In the “Available” tab –> Select “Parameterized Scheduler” –> click “Install without restart”.
In this example, I use two parameters: NAME and SITE.
In the “Build Triggers” tab, select “Build periodically with parameters”
Jenkins setting automation run job with parameters every fifteen minutes as the picture below
# every fifteen minutes auto run job
H/15 * * * * % NAME=Huu; SITE=WWW.DEVOPSROLES.COM
Example “Execute shell” basic.
Conclusion
Through the article, you can use Jenkins build periodically with parameters as above. I hope will this your helpful. Thank you for reading the DevopsRoles page!
In this tutorial, we will address how to solve the issue of “Oracle 12c unable to access port 5500”. This is an essential skill for DevOps roles involved in Oracle database management. By following these steps, you will be able to resolve the port access issue and ensure smooth connectivity to your Oracle database.
Accessing the Oracle Database with Required Privileges
First, access the Oracle database with the necessary permissions:
sqlplus / as sysdba
Checking Port 5500 from SYSDBA Oracle
Execute the following SQL command to check the current HTTPS port configuration:
SQL> select dbms_xdb_config.gethttpsport from dual;
Terminal Output
markdownCopy codeGETHTTPSPORT ------------ 5500
If the port is not set to 5500, you can set it using the following command:
Setting HTTPS Port to 5500
Execute the following PL/SQL command to set the HTTPS port to 5500:
SQL> exec DBMS_XDB_CONFIG.SETHTTPSPORT(5500);
Terminal Output
PL/SQL procedure successfully completed.
Starting the Listener Service
To ensure that the listener service is running, use the lsnrctl command from the command line:
[oracle@DBOracle ~]$ lsnrctl start LISTENER
Checking Port 5500 Listening in Linux
Verify that port 5500 is listening by using the netstat command:
$ netstat -nplt | grep 5500
Accessing the Oracle Database Web Interface
Now, you should be able to access the Oracle database web interface. Open your web browser and navigate to:
https://192.168.1.114:5500/em/
Conclusion
In this article, we covered how to solve the “Oracle 12c unable to access port 5500” issue. By following these steps, you should now be able to configure and access port 5500 for your Oracle database. This ensures efficient management and connectivity for your database applications. Thank you for reading the DevopsRoles page!
How to use the SCP command in Linux to copy a file from one server to another. it is used to securely copy a file to or from a remote server.
Discover the simplicity and power of using the SCP command in Linux for secure file transfers. This tutorial will guide you through various examples of how to utilize SCP to copy files and directories between servers securely. Whether you are a beginner or an experienced administrator, mastering the SCP command is crucial for managing remote file transfers efficiently.
SCP command example
Copy file from one client location to another server location
With the SCP command, transferring files between servers becomes a seamless task. This guide has shown you several practical examples to help you understand how to use SCP effectively. By integrating these techniques into your workflow, you’ll enhance your server management skills and ensure secure data handling. I hope will this your helpful. Thank you for reading the DevopsRoles page!
In this tutorial, How do I list all services running in Linux distribution? List running service on Ubuntu Or Systemd service management. Linux the essential for DevOps Roles.
In this tutorial, How do I use the tar command the compress and extract files and folders in Linux? Linux the essential for DevOps Roles.
The tar command in Linux is used for creating and manipulating tar archives, which are commonly used for bundling multiple files and directories into a single file. Here are a few examples of how to use the tar command.
-c –create Create a new archive. -x –extract Extract files from an archive. -t –list List the contents of an archive. -f –file=ARCHIVE Use archive file or directories ARCHIVE. -v –verbose Verbosely list files processed. -a –auto-compress Use archive suffix to determine the compression program. -j –bzip2 Filter the archive through bzip2. -J –xz Filter the archive through xz. -z –gzip Filter the archive through gzip.
For example, tar command examples, compress a directory.
Creating an archive of a directory as command below
[huupv@huupv devopsroles]$ tar -cvf folder.tar folder
The archiving a folder compressed “gzip” you can use -z option.
[huupv@huupv devopsroles]$ tar -czf folder.tar.gz folder
You can compress the archive with “bzip2” by using -j option
[huupv@huupv devopsroles]$ tar -cjf folder.tar.bz2 folder
Or compress “xz” by using the -J option.
[huupv@huupv devopsroles]$ tar -cJf folder.tar.xz folder
For example, Extract a directory from an archive
To extract a directory from an archive in the current location
[huupv@huupv devopsroles]$ tar -xvf folder.tar
Or to extract a directory from an archive to a specific “your_folder”.
[huupv@huupv devopsroles]$ tar -xvf folder.tar -C ./directory/your_folder
For example list archive content
Listing content as command below
[huupv@huupv devopsroles]$ tar -tvf folder.tar
For listing the content of a tar.gz archive
[huupv@huupv devopsroles]$ tar -tzvf folder.tar.gz
You can exclude one or several folders “–exclude” option as the command below
[huupv@huupv devopsroles]$ tar --exclude='./tar-folder/folder1'--exclude='./tar-folder/folder3' -cvf my-archive.tar ./tar-folder
The screen output terminal
./tar-folder/
./tar-folder/folder2/
Conclusion
Through the article, you can use tar command examples in Linux as above. These are just a few examples of how to use the tar command in Linux. The tar command offers many other options and functionalities, so you can refer to the command’s manual (man tar) for more detailed information and usage examples. I hope will this your helpful. Thank you for reading the DevopsRoles page!
Through the article, you can use Linux system information and hardware Information as above. These are just a few examples of commands you can use to obtain system and hardware information on Linux. Depending on your distribution and installed packages, there may be additional tools available. I hope will this your helpful. Thank you for reading the DevopsRoles page!
In this tutorial, How do I check disk space on Linux distribution? Sometimes you find out which directory consumes how much disk space. I used the du command and the df command. Linux the essential for DevOps Roles.
To check the disk space on a Linux system, you can use the df command. Here’s how you can do it:
Investigate the folder for Disk Usage
Checking Disk Space
Linux check disk space
Investigate the folder for Disk Usage
du command summarizes disk usage and recursively for files and directories
The syntax,
du [option]
For example, Summarizing disk usage in the current directory
[huupv@huupv devopsroles]$ du -sh *
The summarizing includes hidden files
[huupv@huupv devopsroles]$ du -sh .[!.]* *
you can add total the output by adding the -c option
[huupv@huupv devopsroles]$ du -csh .[!.]* *
The screen output terminal:
Investigate root director will only show folders with more than 20GB for disk usage
[huupv@huupv devopsroles]$ sudo du --threshold=20G -ch /.[!.]* /*
Checking Disk Space
[huupv@huupv devopsroles]$ df -h
Conclusion
Thought the article, you can use Linux check disk space as above. I hope will this your helpful. Thank you for reading the DevopsRoles page!
In this tutorial, How do I use the Bash script symbolic link? A symbolic link or a soft link. Much the same as the shortcut in Windows or a Macintosh alias. Bash script the essential for DevOps Roles.
Bash script Function get Symbolic link
#!/bin/bash
#Function get Symbolic link
getSymboliclink (){
local FOLDER=$1
echo "----------------- Symbolic link ------------------"
find $FOLDER -type l -exec ls -l {} \; | awk '{print $1 " " $3 " " $4 " " $9 " -> " $11}'
}
getSymboliclink $1
The screen output terminal:
Conclusion
Thought the article, you can use the Bash script symbolic link as above. I hope will this your helpful. More details refer to Bash script .