Step 1: Ensure that you have subscribed to Red Hat Virtualisation Channels. For more information, see Subscribing to Red Hat Virtualisation Manager Channels
Step 2: Install RHEVM packages.
This will take a while…… 1.6GB of downloads…….
The Log Collector Utility for RHEV 3 is located in /usr/bin/rhevm-log-collector and is provided by the rhevm-log-collector package installed on the RHEV manager system.
1. To collect all the information, use command
Linux can be configured to use swap space, aka secondary disk storage, when physical memory is running low. Swap spaces can be allocated as disk partitions ('swap partitions') or as files ('swap files'). While swap partitions are generally preferred over swap files, if your system is a virtual private server (VPS) without a pre-configured swap partition, creating a swap file may be your only option.
Here's some ways to remove empty or blank lines from a file in Unix. Simple but definitely useful. $ grep -v '^$' file.txt$ grep '.' file.txt$ sed '/^$/d' file.txt$ sed -n '/^$/!p' file.txt$ awk NF file.txt$ awk '/./' file.txtIn Vi editor, in escape mode type :g/^$/ d
While trying to upload ssl certificate I got below issue:
I used following command to upload ssl certificate to aws:
aws iam upload-server-certificate --server-certificate-name MysiteCertificate --certificate-body file://home/guest/Downloads/mysite/public.crt --private-key file://home/guest/Downloads/mysite/private.key --certificate-chain file://home/guest/Downloads/mysite/intermediate.pem
While I am trying to upload ssl certificate with aws cli got error saying MalformedCertificate
I used following command to upload ssl certificate:
aws iam upload-server-certificate --server-certificate-name MysiteCertificate --certificate-body public.crt --private-key private.key --certificate-chain intermediate.pem
A client error (MalformedCertificate) occurred when calling the UploadServerCertificate operation: Unable to parse certificate. Please ensure the certificate is in PEM format.
In python there is no direct function to reverse a string, to reverse a string we need to use slicing.
A slice extracts elements based on a start.
An extended slice extracts elements based on start and stop with step/stride.
Some examples of slicing:
When contributing to open source projects, it’s pretty common these days to fork the project on Github, add your contribution, and then send your work as a so-called “pull request” to the project for inclusion. It’s nice, clean and fast. I did this last week to contribute to Apache CloudStack.
Assume you have a complex bash script named 'run_q.sh' (containing good number of loops, Awk statements, multiple lines of code etc) that you need to run against one or more remote servers via SSH. One way would be to copy (i.e. scp) the script to the remote server(s) and then do something like this: e.g. $ scp -2 run_q.sh firstname.lastname@example.org:/tmp/.$ ssh -2 email@example.com sh /tmp/run_q.sh