vCloud Director REST API

I want to show you how we can test vmware vCloud Directory Rest API

RESTClient Firefox Plugin Login Example
Step 1 – Launch the RESTClient under Tools->Rest Client:

Step 2 – Next we need to add a HTTP Accept header to specify the version of vCloud Director we are connecting to. The name should be “Accept” and value should be “application/*+xml;version=1.5”:

Step 3 – Now we need to add our login information. The login name will be in the format of username@vcd-organiziation and the password will be the password for that account. When you click ok, the credentials will automatically be encoded and added to the request header:

Step 4 – Now we need to specify the HTTP request method which for a login will be a POST operation. You will also need to specify the URL to your vCloud Director server which is in the format of https://vcd-ip/api/sessions. Finally you can connect by clicking on the send button. If you successfully connected, you should see a an HTTP return code of 200 and a yellow bar highlighting a successful login:

usefull example method;

to get organization name and id

https://vcd-ip/api/org

To get the organization informations (you can see org id in above command’s output)

https://https://vcd-ip/api/org/{id}

to list all vdc in the organization

https://https://vcd-ip/api/admin/vdcs/query

Also you can find all operations and elements in below link.

https://www.vmware.com/support/vcd/doc/rest-api-doc-1.5-html/

 

 

Gather All Information of Linux system

You can download this file to gather information all system for Linux Systems. This is Linux version of the Solaris Explorer (SUNWexplo) script.

After download, Please change file extention from txt to sh

Usage :
# ./linux-explorer.sh [option]
-d Target directory for explorer files
-t [hardware] [software] [configs] [cluster] [disks] [network] [all]
-v Verbose output
-s Verify Package Installation
-h This help message
-V Version Number of LINUXEXPLO

linux – Redhat/Centos changing fstab in “Repair filesystem” prompt

If you forgot to remove missing mount point in /etc/fstab, Linux gives you a “Repair Filesystem” prompt in this situation and you can enter that by providing the root password. The problem is that on “Repair Filesystem” prompt, linux file system and rest of the file systems are generally not mounted and if mounted then it is “Read-Only” so you can not change files.

Use following command to mount the filesystem with writable permission:

Repair filesystem # mount -w -o remount /

After this you can go and change /etc/fstab file. Restart your computer and that’s it.

Renaming emx to ethx on Red Hat Enterprise Linux 6

when I tried to change interface name from emX to ethX, 70-persistent-net.rules not found in redhat 6 OS. So I found http://www.sysarchitects.com/em1_to_eth0 this site. It’s helping to resolve the issue.

The problem usually occurs Dell Servers

conclusion : 
1. Make a backup /etc/grub.conf file,
2. Add biosdevname=0 to the kernel boot arguments in /etc/grub.conf (grub.conf sample given by Fedora)

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg_belle-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=0
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.38.8-35.fc15.x86_64)
	root (hd0,0)
	kernel /vmlinuz-2.6.38.8-35.fc15.x86_64 ro root=/dev/mapper/vg_belle-lv_root rd_LVM_LV=vg_belle/lv_root rd_LVM_LV=vg_belle/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet biosdevname=0
	initrd /initramfs-2.6.38.8-35.fc15.x86_64.img

3. Rename interface files name,

# mv /etc/sysconfig/network-scripts/ifcfg-em1 /etc/sysconfig/network-scripts/ifcfg-eth0

And changing the line,

DEVICE="em1"

to

DEVICE="eth0"

4. If exists /etc/udev/rules.d/70-persistent-net.rules, delete it
5. Reboot OS

DNS network unreachable resolving

if you take below error messages in dns log file

Aug 15 13:55:10 namesrv named[1824]: network unreachable resolving ‘ns4.domainname.com/A/IN’: 2001:500:3::42#53
Aug 15 13:55:10 namesrv named[1824]: network unreachable resolving ‘ns1.domainname.com/A/IN’: 2001:500:3::42#53
Aug 15 13:55:10 namesrv named[1824]: network unreachable resolving ‘ns2.domainname.com/AAAA/IN’: 2001:500:3::42#53
Aug 15 13:55:10 namesrv named[1824]: network unreachable resolving ‘ns3.domainname.com/AAAA/IN’: 2001:500:3::42#53
Aug 15 13:55:10 namesrv named[1824]: network unreachable resolving ‘ns4.domainname.com/AAAA/IN’: 2001:500:3::42#53
Aug 15 13:55:10 namesrv named[1824]: network unreachable resolving ‘ns1.domainname.com/AAAA/IN’: 2001:500:3::42#53

it means that the name is tried to resolve IPv6.

Solution:

- in the named flie

/etc/sysconfig/named

you have to add below line end of named file

OPTIONS=”-4″

How to install Centos 6.x bigger than 2 TB one disk

Hi,

I tried to install Centos 6.2 on raid 5 (4 x 4 TB) HP Proliant DL 160 Gen 8. First of all Centos don’t detect raid driver on installation. You have to find b120i raid driver for Centos 6.x OS. You can find my preview Post.

During boot of the Centos 6.x DVD, you need to choose Rescue Mode option with TAB button. add below string end of the line,

… linux dd blacklist=ahci

Please show the raid driver on related window in Centos boots.

After that you will see shell command screen. On this screen command will be used like…

$ parted /dev/sdb

Create a GPT partiton label
(parted) mklabel gpt

you should create partitions what you need with mkpart…

for boot partition (512MB-0MB = 512MB)
(parted) mkpart boot 0.00MB 512.00MB

for swap area (10GB-512MB = 9.5 GB)
(parted) mkpart swap 512.00MB 10.00GB

for root partition (50GB-10GB = 40 GB)
(parted) mkpart root 10.00GB 50.00GB

for backup, remaining empty space (remaining space-50MB = ??)
(parted) mkpart backup 50.00GB -0

to review partition table
(parted) print

GNU Parted 1.8.1
Using /dev/sdb
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) print

Model: HP B120i (scsi)
Disk /dev/sda: 16 TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 17.4kB 512MB 512MB boot
2 512.0MB 10.0GB 9728MB swap
3 10.0GB 50.0GB 40GB root
4 50.0GB 16.0TB 15.5TB backup

to quit
(parted) q

After created partitions, You must format the backup partition. Centos can not format this partition because it is big size.

$ mkfs.ext4 /dev/sdb4

reboot system

$ reboot

After reboot you need to boot Centos 6.x installation DVD with raid driver options. (linux dd blacklist=ahci)

Please keep going on normal installation steps until partitions setting.

Please select customer partition options and don’t touch sdb4 partition area. After finish installation, you can use the sdb4 partition like below,

# mkdir /backup
# mount /dev/sdb4 /backup

Don’t forget to adding fstab to don’t mount after restart :)

HP DL 160 Prolaint Gen8 (Smart Array B120i/B320i storage controller) sunucusunda Centos 6.x RAID driver sorunu

Merhaba,

Not: Bu döküman HP DL 160 G8 için Centos 6.x işletim sistemine RAID sürücüsünün nasıl yüklendiğini anlatmakta olup, Smart Array B120i/B320i storage controller içinde uygulanabilmektedir.

HP DL 160 Prolaint G8 sunucusunda Centos 6.x işletim sistemi kurmak istediğinizde işletim sistemi kurulum sırasında oluşturduğunuz RAID konfigürasyonunu görmez. Bunun için RAID kontrol kartının driver ının yüklenmesi gerekmektedir.

1- Hangi Centos versiyonunu kuruyorsanız ilgili raid kart driver ını aşağıdaki linkden indirin,

http://www.cemkayar.com/download/hpvsa-1.2.4-4.rhel6u1.x86_64.dd.gz –> Centos6.1
http://www.cemkayar.com/download/hpvsa-1.2.4-4.rhel6u2.x86_64.dd.gz –> Centos6.2
http://www.cemkayar.com/download/hpvsa-1.2.4-4.rhel6u3.x86_64.dd.gz –> Centos6.3

2- İlgili dosyayı extract edip FAT32 formatlanmış USB diske aktarın,
3- Sunucuyu Centos 6.x cd / dvd ile boot ettiğinizde ana menüdeki OS kurulum menüsünü tuşu ile düzenleneyin,
4- İlgili satırın sonuna şağıdaki satırı ekleyip ENTER tuşu ile devam edin,

….. linux dd blacklist=ahci
for B120i: blacklist=ahci
for B320i: none

5- Önünüze gelecek menüde /dev/sdb1 ile USB diskine erişip ilgili disk driver ını gösterin,
6- Kuruluma devam edebilirsiniz :)

yandex.ru mail server ip address

You can find below yandex mail servers ip address,

77.88.0.0/18 # yandex.ru
77.88.22.0/23 # yandex.ru
77.88.24.0/21 # yandex.ru
77.88.24.0/22 # yandex.ru
77.88.28.0/22 # yandex.ru
77.88.36.0/23 # yandex.ru
77.88.42.0/23 # yandex.ru
77.88.44.0/24 # yandex.ru
77.88.50.0/23 # yandex.ru
87.250.224.0/19 # yandex.ru
87.250.230.0/23 # yandex.ru
87.250.252.0/22 # yandex.ru
93.158.128.0/18 # yandex.ru
93.158.137.0/24 # yandex.ru
93.158.144.0/21 # yandex.ru
93.158.144.0/23 # yandex.ru
93.158.146.0/23 # yandex.ru
93.158.148.0/22 # yandex.ru
95.108.128.0/17 # yandex.ru
95.108.128.0/24 # yandex.ru
95.108.152.0/22 # yandex.ru
95.108.216.0/23 # yandex.ru
95.108.240.0/21 # yandex.ru
95.108.248.0/23 # yandex.ru
178.154.128.0/17 # yandex.ru
178.154.160.0/22 # yandex.ru
178.154.164.0/23 # yandex.ru
199.36.240.0/22 # yandex.ru
213.180.192.0/19 # yandex.ru
213.180.204.0/24 # yandex.ru
213.180.206.0/23 # yandex.ru
213.180.209.0/24 # yandex.ru
213.180.218.0/23 # yandex.ru
213.180.220.0/23 # yandex.ru