Are you an aspiring IT professional? Wondering what soft skills you need to succeed in the industry? Check out our blog post on the importance of soft skills for IT professional aspirants. From communication and problem-solving skills to adaptability and teamwork, we list the top soft skills you need to succeed in the IT industry. Don’t miss out – read our blog post now!
Basics of Computer Networking
Are you curious about the basics of computer networking and how it has transformed the way we communicate and share information? From sending emails to streaming videos, networking technology has become an integral part of our lives. From switches to routers to wireless access points, this blog post will cover it all. Join us as we explore the world of networking and its importance in our modern lives.
Setting Up a Local Yum Repository
Yum package manager allows users to install, update and remove software package in RedHat based linux systems, Yum uses repositories defined in yum.repos.d directory to download the packages and dependencies, in scenarios where public access is not available we can setup local yum repositories to ease the package management on our linux systems, In this blog we take a look at different options and steps to configure local yum repos.
Using rsyslog with CLI
Refer to understanding linux logging for understaning more about syslogs and linux logging
Here we discuss about using rsyslog wih cli, and how it can be used to log messages through CLI and also send priority messages
Log Messages
We can run the command logger to log messages from command line
[root@midas rsyslog.d]# logger "hello this is the message"
[root@midas rsyslog.d]# cat /var/log/messages | grep hello
Sep 29 19:36:38 midas /usr/libexec/gdm-wayland-session[2503]: hello,, this is secured , please dont use if you dont have unauthorized access
Oct 1 21:50:36 midas root[4555]: hello this is the message
[root@midas rsyslog.d]#
Sending rsyslog messages with priority
Priority is a critical part of logging, we need to set the priority of the message basis its severity.
Emergency Priority
Messages with emergency priority are configured such as they get rerouted to console, terminals, and ssh sessions. rsyslog allows such messages to be sent through cli which allows them to be immediately viewed by the other uses.
Run the following command from any terminal
[root@midas rsyslog.d]# logger -p emerg "this is the emergency message"
You will get following message on all the terminals
[centos@midas ~]$
Broadcast message from systemd-journald@midas (Sat 2022-10-01 21:55:43 IST):
root[4607]: this is the emergency message
Message from syslogd@midas at Oct 1 21:55:43 ...
root[4607]:this is the emergency message