使用 DECLI 配置Exadata上cell节点的celladmin的信任关系

联系:QQ(5163721)

标题:使用 DECLI 配置Exadata上cell节点的celladmin的信任关系

作者:Lunar©版权所有[文章允许转载,但必须以链接方式注明源地址,否则追究法律责任.]

在Exadata上缺省没有配置cell节点的celladmin用户的信任关系,但是有时候我们需要用,那么手工配置一下吧。

借助dcli工具,使得配置很简单:

[celladmin@dm01cel01 ~]$ mkdir ~/.ssh
[celladmin@dm01cel01 ~]$ chmod 700 ~/.ssh
[celladmin@dm01cel01 ~]$ 

[celladmin@dm01cel02 ~]$ mkdir ~/.ssh
[celladmin@dm01cel02 ~]$ chmod 700 ~/.ssh
[celladmin@dm01cel02 ~]$ 

[root@dm01cel03 ~]# su - celladmin
[celladmin@dm01cel03 ~]$ mkdir ~/.ssh
[celladmin@dm01cel03 ~]$ chmod 700 ~/.ssh
[celladmin@dm01cel03 ~]$ 


[celladmin@dm01cel01 ~]$ cat cell.txt
dm01cel01
dm01cel02
dm01cel03
[celladmin@dm01cel01 ~]$ 

[celladmin@dm01cel01 ~]$ dcli -k -g cells.txt
Error: Neither RSA nor DSA keys have been generated for current user.
Run 'ssh-keygen -t rsa' to generate an ssh key pair.
[celladmin@dm01cel01 ~]$ 

[celladmin@dm01cel01 ~]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/celladmin/.ssh/id_dsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/celladmin/.ssh/id_dsa.
Your public key has been saved in /home/celladmin/.ssh/id_dsa.pub.
The key fingerprint is:
04:62:d8:41:b6:62:bd:3f:8c:14:41:6e:dc:9a:f3:0a celladmin@dm01cel01.lunar.com
[celladmin@dm01cel01 ~]$ 



[celladmin@dm01cel01 ~]$ dcli -k -g cell.txt
The authenticity of host 'dm01cel01 (192.168.1.12)' can't be established.
RSA key fingerprint is 52:bf:9a:5f:f7:00:6f:ad:8d:d6:17:74:3f:37:56:fe.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'dm01cel01,192.168.1.12' (RSA) to the list of known hosts.
celladmin@dm01cel01's password: 
The authenticity of host 'dm01cel03 (192.168.1.14)' can't be established.
RSA key fingerprint is e6:63:e6:57:b6:b8:66:0c:01:ba:78:23:41:e7:30:8d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'dm01cel03,192.168.1.14' (RSA) to the list of known hosts.
celladmin@dm01cel03's password: 
The authenticity of host 'dm01cel02 (192.168.1.13)' can't be established.
RSA key fingerprint is 08:64:74:44:c3:63:d1:2d:d3:c2:45:19:5a:3d:60:0f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'dm01cel02,192.168.1.13' (RSA) to the list of known hosts.
celladmin@dm01cel02's password: 
dm01cel01: ssh key added
dm01cel02: ssh key added
dm01cel03: ssh key added
[celladmin@dm01cel01 ~]$ 


[celladmin@dm01cel01 ~]$ dcli -g cell.txt "cellcli -e list cell"
dm01cel01: dm01cel01     online
dm01cel02: dm01cel02     online
dm01cel03: dm01cel03     online
[celladmin@dm01cel01 ~]$ 

[celladmin@dm01cel01 ~]$ dcli -g cell.txt "date"
dm01cel01: Wed Mar 19 15:12:50 CST 2014
dm01cel02: Wed Mar 19 15:12:50 CST 2014
dm01cel03: Wed Mar 19 15:12:50 CST 2014
[celladmin@dm01cel01 ~]$ 
此条目发表在 FAQ, 日常运维 分类目录。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注