Tagged: Linux

Linux Cat Command - Create New File 0

[How To]: Linux Cat Command – Usage and Examples

Linux Cat Command Cat or “concatenate files and print on the standard output” is a Linux command to print file content on the standard output like screen. This is one of most popular Linux commands. I think that every Linux administrator has executed the below command at least one time 😉 : # cat /var/log/messages So this is actually very useful and popular command. Usage and Examples Cat command has few options but has lot of usages. Show file content: If Cat command run without options, it will shows you the content of the file or files. Show multiple files content: You can view content of multiple files by entering more than one file name in command line, see the below example: Create New File: You be able to create new file by Cat command. Run the below command and then enter some strings and when it’s finished hit Enter, if you are end of a line and then Ctrl+D for save the new file. Please consider that existing files will be overwrite by run same command.   Join Multiple Files: Joining multiple files to a file is possible by Cat command. Here is an example: # cat file1.txt file2.txt file3.txt > all-files.txt...

kernel: WARNING: at fs/sysfs/dir.c:536 sysfs_add_one+0xbb/0xe0 – Oracle Enterprise Linux 0

kernel: WARNING: at fs/sysfs/dir.c:536 sysfs_add_one+0xbb/0xe0 – Oracle Enterprise Linux

Most of modern servers hardware are using UEFI instead of legacy BIOS and modern OS has dedicated partition to stores boot and EFI values. Some times, the partition gets full or OS generate the below log: kernel: WARNING: at fs/sysfs/dir.c:536 sysfs_add_one+0xbb/0xe0 Kernel includes a CONFIG_EFI_VARS_PSTORE feature, and a feature that dumps kernel message log (= the “dmesg” command output) into UEFI variables for persistent storage if the system is crashing (or even if the system is working normally, depending on the options chosen). The cause of the warning is duplicate dump file in EFI partition and OS is trying to write values on same file. There is a simple solution, remove old dump file! I hope this article help you to find out root cause of the warning and resolve that. Here is the complete log on our virtual machine: kernel: WARNING: at lib/kobject.c:196 kobject_add_internal+0x205/0x260() kernel: Hardware name: VMware7,1 kernel: kobject_add_internal failed for dump-type2-0-0-1493749396-cfc8fc79-be2e-4ddc-97f0-9f98bfe298a0 with -EEXIST, don’t try to register things with the same name in the same directory. kernel: Modules linked in: vmw_vsock_vmci_transport vsock oracleasm autofs4 ipv6 vfat fat uinput vmw_balloon coretemp crc32c_intel ghash_clmulni_intel microcode pcspkr sg ixgbe hwmon dca vmw_vmci i2c_piix4 shpchp ext4 jbd2 mbcache dm_round_robin scsi_dh_emc sd_mod...

0

Find HBA Firmware Version in Linux – Easy Way

You need to know, what is version of your HBA firmware to upgrade it or install compatible driver version. There is many ways to find firmware version but I want to share easier way. Just logon to your Linux machine with Sudo user and run the below command: cat /sys/class/fc_host/host*/symbolic_name

RedHat 0

Change Network Device Name Permanently – RedHat

Device Naming Device name management is handled by udev system. When Linux kernel discovers a new device (e.g., a network interface card) added to the system, it notifies udev daemon of the device event. The udev daemon will then match various device attributes against a set of rules to identify the device, name it, and store its information in udev database. In case of network devices, udev relies on MAC addresses to assign persistent names to the devices. The MAC address based naming rules are stored in “/etc/udev/rules.d/70-persistent-net.rules”.

RedHat 0

Generate Ethernet Device UUID – RedHat

What’s UUID? A universally unique identifier (UUID) is a 128-bit number used to identify information in computer systems. Microsoft uses the term globally unique identifier (GUID), either as a synonym for UUID or to refer to a particular UUID variant. When generated according to the standard methods, UUIDs are for practical purposes unique, without requiring a central registration authority or coordination between the parties generating them. The probability that a UUID will be duplicated is not zero, but is so close to zero as to be negligible. Thus, anyone can create a UUID and use it to identify something with near certainty that the identifier does not duplicate one that has already been created to identify something else, and will not be duplicated in the future. Information labeled with UUIDs by independent parties can therefore be later combined into a single database, or transmitted on the same channel, without needing to resolve conflicts between identifiers.

Oracle Help Center 1

Oracle Help Center

Let me guess, you want to know something about Oracle Linux, you will google it! Want to know something about Oracle VM, so you will google it but do you know that you can find all information about Oracle products in a library? Yes, you can find many useful information or download them as different type of documents from Oracle Help Center. There is some categories for all documents and you can find your documents faster: Cloud Application Middleware Database Big Data Enterprise Manager Engineered Systems Java Servers Networking Virtualization Storage Operating Systems Industries

RedHat 0

Centralized Logs By RSyslog

What’s Syslog? Syslog server is a server for centralizing logs that both enterprise and small businesses using native solution or third-party solution for our log centralization. When you have syslog server in your environment, there is no concern about finding root causes even when you are faced with critical hardware problem. Because you have your logs on another storage or path or devices and you can look at them to find root cause.  There is many third-party syslog server that you can install on Windows, Linux and also deploy as virtual appliance. But we want to configure our syslog server by using RSYSLOG which it’s installed on all RedHat based distribution by default.

RedHat Labs Application 0

Red Hat Access Labs – Review

What’s Red Hat Access Labs? Red Hat Access Labs is a package of online application that you can use them to generate configuration files, bash script to detect vulnerabilities, analyzing issues and … .  The online applications are created by RedHat engineers to help you improve performance, troubleshoot issues, identify security problems, and optimize configuration. You can access to the application via the below link: https://access.redhat.com/labs Also you need to valid username on RedHat web site to access to the lab.

VI Keyboard Shortcuts – Cheat Sheet 0

VI Keyboard Shortcuts – Cheat Sheet

VI If you are familiar with Linux shell, I’m sure that you have used “vi” for editing your documents but the tool is very difficult, if you are beginner in Linux. I want to share some keyboard shortcuts that you can use for edit your files faster. Quitting : x Exit, saving changes :q Exit as long as there have been no changes ZZ Exit and save changes if any have been made :q! Exit and ignore any changes Inserting Text i Insert before cursor I Insert before line a Append after cursor A Append after line o Open a new line after current line O Open a new line before current line r Replace one character R Replace many characters

0

Oracle Linux Yum Server

Yum Server Sometimes, you need to update single package on your Linux (Oracle – RedHat) and you have to search and find RPM file on this regard or compile the package from its source code. But we are talking enterprise Linux servers that you can’t accept any risk of installing miscellaneous or unreliable package on your server. So you need to have safe and secure source for installation or upgrade. Maybe, you are thinking about YUM! Yes, you can update your application by run Yum but if your server has no connection to internet! There is many solution for updating Linux packages but we are talking about a single application and some special conditions. Hopefully, Oracle has a service that called “Yum Server” and the service is free for use by anyone. Oracle Yum Server offers you a free and convenient way to install the latest Oracle Linux packages as well as packages from the Oracle VM installation media via a yum client. Please consider that this service deliver no support to you and just you can download updated packages from that.

KickStart Menu 2

Linux KickStart – Automated Installation

Kickstart installations offer a means to automate the installation process, either partially or fully. Kickstart files contain answers to all questions normally asked by the installation program, such as what time zone you want the system to use, how the drives should be partitioned, or which packages should be installed. Providing a prepared Kickstart file when the installation begins therefore allows you to perform the installation automatically, without need for any intervention from the user. This is especially useful when deploying Red Hat Enterprise Linux on a large number of systems at once. Kickstart files can be kept on a single server system and read by individual computers during the installation. This installation method can support the use of a single Kickstart file to install Linux on multiple machines, making it ideal for network and system administrators. All scripts and the log files of their execution are stored in the /tmp directory to assist with debugging installation failures. Note You must read your distribution documents about fresh installation and upgrading current OS because some distributions don’t support upgrading via KickStart. How Do You Perform a Kickstart Installation? Kickstart installations can be performed using a local DVD, a local hard drive, or via NFS, FTP,...

0

Veeam Linux Agent

Veeam Endpoint Backup was introduced by me on another post. Veeam Endpoint Backup is an application for Windows and now, Veeam has made an agent for Linux and you be able to take backup from Linux machines files. This is beta version and I suggest that don’t install it for production purpose but you can test it on test environment. Linux desktop distributions are popular today more than few years ago and many users use Linux on their laptops and desktops and their data needs to protection and backup. Also VMware and Citrix added support for Linux desktop distributions as VDI operating systems, so you can have VDI benefits such as remote protocols on your Linux desktop and Veeam Endpoint Backup focus on this solution and it will cover Linux and Windows clients in future. Veeam Linux Agent has the below benefits: Backup anywhere Back up Linux instances running in the cloud or on premises Flexible recovery Perform on-premises restores from backups of individual cloud instances, or cloud restores of on-premises backups Integration with Veeam Backup & Replication™ Take full advantage of Veeam backup repositories as target locations; leverage existing Veeam Backup & Replication capabilities for granular recovery — and...

hv replica job re ip 2

Re-IP Rule on Linux VM: Best Solution in Veeam Backup and Replication 7.x Version and Newer

Veeam Backup & Replication is one of the best backup and replication software that you can use them in your virtual environment. Veeam BR be able to IP customization during disaster-recovery and you can have your virtual machines in a DR site with different IP plan. But Veeam BR just support Windows VMs for IP customization or “Re-IP Rule”. So what can we do about Linux virtual machines and others?