Oracle VM Site Review - Oracle VM Health Check
view counter

Linux Feed

Linux Support, Oracle Linux, Red Hat Enterprise Linux, SUSE, Oracle Unbreakable Enterprise Kernel and the Oracle Unbreakable Linux Support Program (ULN) resources, news, and support articles.

Taking inputs from user in a script

Here we will see how to take input from user in a script with the help of read command.#!/bin/bash

  • Lets try multiplication of two numbers which the user enters.
  • What read does is ? It takes values by user on stdin.
  • It prompt the user to input any value on stdin.
  • -p is used to display a prompt.

read -p "First number:" value1

Positional parameters in Bash scripting

Here we will see the naming convention of parameters which are passed to a script and how we can use them? how shifting works?#!/bin/bash

  • # Positional parameters
  • #       $0          $1     $2    $3   .......   $n
  • # Command  Arg1 Arg2 Arg3 ....... Argn

Merging of various commands

Lets create a file with following content:#!/bin/bashecho "Value which is there in variable USER  is $USER"

  • What this above line will do, it will fetch the variable USER which is built-in.

Sourcing a variable

Lets create a file with following content:#!/bin/bashecho "$var1"Assign a value to a local variable var1sunny@sunny-workstation bin]$ var1=sunny-workstationsunny@sunny-workstation bin]$ chmod +x 2_simple_script.sh 

Resolving unreach or unavail nodes in OpenLava-3.0

After configuring OpenLava-3.0 using the tar ball and following the instruction according to the OpenLava – Getting Started Guide
After fixing OpenLava with LM is Down Error Messages for OpenLava-3.0, you may errors

LM is Down Error Messages for OpenLava-3.0

After configuring OpenLava-3.0 using the tar ball and following the instruction according to the OpenLava – Getting Started Guide
I was encountering errors like
# lsid
openlava project 3.0, June 25 2015
ls_getclustername(): LIM is down; try later
Debugging:

Workshop: hands-on CloudStack at DevOpsDays Amsterdam

Today I hosted a CloudStack hands-on workshop at DevOpsDays Amsterdam, together with my colleague Fred Neubauer. It was really awesome to see all attendees building their own CloudStack cloud. And succeeding! Here are the slides and instructions: We proposed the workshop to the CloudStack Collaboration Conference Europe, in Dublin next October so we might do it […]

view counter