Configure Distributed Command Line Interface (DCLI)

To manger and monitor Exadata Storage we can use two utility.

  • DCLI

CELLCLI: Each Exadata Storage Cell is administered individually by using cellcli. But this utility can connect a local cell server. cellcli works with MS process to perform the administration task like creation of cell or grid disk.

DCLI: DCLI utility enables execution of commands on multiple database and storage servers.

Following types of command supported by DCLI.

  • OS command
  • CELLCLI command
  • Operating System scripts
  • CELLCLI scripts

Steps to Configure dcli:

Add all cell server’s host name to a file.

[root@exacell01 ~]# su - celladmin
[celladmin@exacell01 ~]$ pwd
[celladmin@exacell01 ~]$ vi cell_servers
[celladmin@exacell01 ~]$
[celladmin@exacell01 ~]$ cat cell_servers

Generate RSA public and private key

[celladmin@exacell01 ~]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/celladmin/.ssh/id_rsa):
Created directory '/home/celladmin/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/celladmin/.ssh/id_rsa.
Your public key has been saved in /home/celladmin/.ssh/
The key fingerprint is:
f1:d8:0e:04:3a:92:ed:03:21:77:80:e8:f5:5b:a8:b3 celladmin@exacell01.localdomain

Add the key to dcli for all listed cell servers.

[celladmin@exacell01 ~]$ dcli -g cell_servers -l celladmin -k -s '-o StrictHostKeyChecking=no'
celladmin@exacell01's password:
celladmin@exacell02's password:
exacell01: ssh key added
exacell02: ssh key added

DCLI command:

[celladmin@exacell01 ~]$ dcli -g cell_servers cellcli -e list cell
exacell01: exacell01     online
exacell02: exacell02     online
[celladmin@exacell01 ~]$ dcli -g cell_servers cellcli -e list celldisk
exacell01: CD_OCR00_exacell01    normal
exacell01: CD_OCR01_exacell01    normal
exacell01: FD_00_exacell01       normal
exacell01: FD_01_exacell01       normal
exacell01: FD_02_exacell01       normal
exacell01: FD_03_exacell01       normal
exacell02: CD_OCR00_exacell02    normal
exacell02: CD_OCR01_exacell02    normal
exacell02: FD_00_exacell02       normal
exacell02: FD_01_exacell02       normal
exacell02: FD_02_exacell02       normal
exacell02: FD_03_exacell02       normal

Leave a Reply