In Exadata, we perform several kinds of administration and monitoring activity at storage server like list, alter, drop, add, remove etc. and for that we’ve to use utility to manage those storage servers like cellcli, dcli, exacli andexadcli but prior to work with those utility we must have to understand how they work and what are the uses of them.
Cellcli Utility
cellcli utility use for administration, monitoring and listing etc. at the storage level, below are some facts related to cellcli utility.
- It can work in both interactive & non-interactive mode
- To connect with the cellcli utility we must have the access at the storage server level
- Once we’ll login into the storage server we can manage cell server related task
- Cellcli utility only work with local storage server from which it runs
- We can’t manage remote/other cell servers using cellcli utility
- Location of cellcli utility: /opt/orace/cell/cellsrv/bin/cellcli
Cellcli utility In Interactive Mode
[root@exatest ~]# ssh exatestcel02
CellCLI: Release 23.1.8.0.0 -
Production on Fri Jul 14 05:11:26 UTC 2023
Copyright (c) 2007, 2023, Oracle
and/or its affiliates.
[root@exatestcel02 ~]# cellcli
CELLCLI> list physicaldisk
34:0
E1K5JW
normal
34:1
E1L9NC
normal
Cellcli utility In Non-Interactive Mode
[root@exatest ~]# ssh exatestcel02
CellCLI: Release 23.1.8.0.0 -
Production on Fri Jul 14 05:11:26 UTC 2023
Copyright (c) 2007, 2023, Oracle
and/or its affiliates.
[root@exatestcel02
~]# cellcli -e list cell
attributes msstatus,rsstatus,cellsrvstatus
running running running
[root@exatestcel02 ~]#
Dcli Utility
Unlike cellcli utility, in dcli utility we can manage cell storage servers remotely in a centralized manner.
A. Dcli utility doesn’t support interactive mode
B. We can run OS commands, cellcli commands, OS scripts, cellcli scripts using dcli
C. Python 2.3 is required to use dcli utility
D. ssh-user equivalency is required to manage remote storage server using dcli utility
E. By default, dcli utility connect with celladmin user otherwise we’ve to use -l option to specify username other than celladmin
F. Output always displayed in the terminal session from where it runs
Location Of Dcli utility In Storage Server: /opt/oracle/cell/cellsrv/bin/dcli
Location of dcli utility in
compute node: /usr/local/bin/dcli
[root@oratestdbm01
bin]# dcli -l root -c oratestcel01,oratestcel02,oratestcel03,oratestcel04 date
Oratestcel01: Sun Jan 14 07:09:39
UTC 2024
Oratestcel02: Sun Jan 14 07:09:39
UTC 2024
Oratestcel03: Sun Jan 14 07:09:39
UTC 2024
Oratestcel04: Sun Jan 14 07:09:39
UTC 2024
NOTE A. “-l” use for specifying username other than the default user
NOTE B. “-c” use for specifying storage server
hostname
[root@oratestdbm01 bin]# dcli -l root -c oratestcel01,oratestcel02,oratestcel03,oratestcel04 cellcli -e list cell attributes msStatus,cellsrvstatus,rsstatus
Oratestcel01: running running running
Oratestcel02: running running running
Oratestcel03: running running running
Oratestcel04: running running running
[root@oratestdbm01 bin]# dcli -l root -g /u01/onecommand/cell_group date
Oratestcel01: Sun Jan 14 07:09:39
UTC 2024
Oratestcel02: Sun Jan 14 07:09:39
UTC 2024
Oratestcel03: Sun Jan 14 07:09:39
UTC 2024
Oratestcel04: Sun Jan 14 07:09:39
UTC 2024
NOTE: “-g” use
when we want to specify storage server’s hostname from a file
[root@oratestdbm01 bin]# dcli -l root -g /u01/onecommand/cell_group cellcli -e list cell attributes msStatus,cellsrvstatus,rsstatus
Oratestcel01: running running running
Oratestcel02: running running running
Oratestcel03: running running running
Oratestcel04: running running running
Exacli Utility
Exacli utility is use whenever we’ve to manage storge servers from compute node or when we don’t have direct access at storage server level, however there are certain facts with exacli utility.
A. To use exacli utility we must have to create a non-default user, default users that comes with the storage server configuration are root, celladmin and cellmonitor
B. We can’t use default user to run exacli utility from compute node
C. Exacli uses https connection to connect with storage server rather than using ssh-user equivalency like we use for cellcli or dcli.
D. All the communication between exacli and MS process running on cell server is over https security certification which allow the cell to confirm their identity to exacli.
E. Exacli doesn’t support
·
Alter cell with the restart, startup and shutdown
option
·
Create user, alter user, drop user
·
Calibrate to check cell performance
·
Describe
·
Help
·
Set spool
·
Start & “@”
· Comments using REMARK
F. Exacli also can’t get the cell attributes like rsstatus, msstatus and cellsrvstatus by using list cell commands We have to create role and assign privileges to that role
G. We must have to assign the created role alongwith required privileges to the non-default user which will be use by exacli utility
NOTE
A.
Whenever exacli tries to connect with storage server with non-default user it
checks cookies jar for the user’s password and if it finds cookies in last 24
hour related to the user then it’s doesn’t ask for the password.
NOTE
B.
cookies work only for 24 hours after that it again ask for password and a new cookie is generated and store in cookie jar file for the next 24 hour.
NOTE
C.
whether we specify cookie or not, by default exacli checks the user’s
information in cookies
NOTE
D.
Location of Cookies jar File: ~HOME/.exacli/cookierjar
Password: **********
EXA-30016: This connection is not
secure, You have asked ExaCLI to connect to cell oratestcel01 securely. The
identity of oratestcel01 cannot be verified.
Exadcli Utility
Exadcli utility is use for the
centralized management of the storage server from the compute node, however
there are some facts with exadcli utility.
B. Exadcli support exacli command and exacli scripts
C. It uses the same cookie jar mechanism as exacli to check user’s password
D. Like exacli it only works with non-defult user that we create to use either exacli or exadcli utility or we can also call it as role-based privileges
E. Unlike cellcli we can’t perform administration work in exadcli like list,alter,drop,add etc.
F. We can use semicolon ( ; ) separated commands in exadcli to execute multiple commands at a time
G. Exadcli uses https connection to connect with storage server rather than using ssh user equivalency like we use for cellcli
H. Unlike dcli, exacli can’t be use to execute shell commands