免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 8334 | 回复: 10

利用XSCF收集收集M5000主机信息包[同样适用于M4000/M8000/M9000] [复制链接]

论坛徽章:
0
发表于 2009-11-11 09:07 |显示全部楼层
环境/产品+ w8 `% @& O5 f9 H\" ]
硬件环境:1*M5000
软件环境:Solaris 10 U6
lXSCF版本:1081
版本:4.24.10( g) @3 E2 G$ A, P3 a
% _3 ~- `! W* \\
3 Q\' x# u# ^- O, @1 S7 u
准备工作
r  |2 [0 L
XSCF#0-LAN0和主机网卡都接入局域网中,提前配置好XSCF#0-LAN#0网络信息,且与主机网卡IP在同一网段,启动XSCFSSH服务/ b3 k* ]& s1 \\\' u! }

( M) O# @


登录XSCF,创建具有platadm权限的用户explorer! \\1 [) d& t! h) _% O\' S9 f

login: eis

Password:

XSCF> adduser explorer

XSCF> setprivileges explorer platadm

XSCF> password explorer

New XSCF password: explorer

BAD PASSWORD: it is based on a dictionary word

Retype new XSCF password:explorer

XSCF> showuser explorer

User Name:% l$ X; B. t& P& D7 L
explorer

UID:; E( y\" k# p. [5 \\6 E) e
102

Status:

Minimum:6 `3 c- k* N. @
0

Maximum:
99999

Warning:
7

Inactive:
-1

Last Change:5 K1 E+ M$ H- x% w! M. K
Mar 30, 2009

Password Expires:. x: [: k, i6 I. O* J\' V
Never

Password Inactive: Never

Account Expires:0 [& X# L( c3 s5 o
Never

Privileges:7 u+ e) l: T) o
platadm

2.确认SSH服务已经启动:

XSCF> showssh

SSH status: enabled

SSH DSCP: accept

RSA key:

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAtyK+STeDJzRVxeUewCcRJX/a4qJEmHz7l1Mg54iQBHEjIs1zqAklRaS8yIx3xQKZQM22sKsjJeGHn17EiW6fpS/+3qlu1hkP1BXUuZEGhE4gN2s7dGV1Km9tnGxpKSqO39tBfObCEf4tJ5+KkLyyXNAwVxi3dCCmLAH7l0WV4M8=

Fingerprint:

1024 51:6c:7c:48:f7:a0:7a:15:6a:a2:b7:f5:02:dd:32:ce

DSA key:

ssh-dss AAAAB3NzaC1kc3MAAACBAJB76zYZuHJBkk4F1E7pfU3Mi4187SKdhOkhQPgbDfK9pH+Ph/aDEFoOUDy0onQh28YRG66yrQsH/5XeqFKpMoE+w+ABVa7cufxE6R/27ORZQFbHOvAdW6oYHdtNvdR1049xtyjleSUqnWH42JmyJ0xQ3oUgsJhTMbi0qmsCO74DAAAAFQCNx8HYJSRHsSGSlp/pvTxsh7ZsAwAAAIAJnuXFvwQlFQW3LSpxd5N8ZJaAwdzE0mpU29HECcVBQ7gFMTMcrPxtemtEodXMAlrtvgP8nx6fKCa5j7VoL0tzmaroszg04afDq8jBD1XEWYgs34119EFLQo43GmamOiaFIl4tCE4rIP2tRkC+SF6bsk/89D2bPGtoZN8qPvV3gQAAAIB9WqbxBxCSg3npsE50aRybDzgMCeFlUM+mT7GmnS7nOMorFVChVWgaWQazr4l7duKmxUzLIZELe/KFz49ZGgIHxVBrYH/TtwmiKh+bzVAmd92tSJaw7Vy9oVEGiNYE9EW45icsa8tTK510ackBCNxSA5afp5Eoio8MgZ0qdZtZfQ==

Fingerprint:

1024 fc:ce:5a:f0:22:d4:c1:1b:0e:c8:4e:9b:a8:15:cb:61

3.通过M5000主机系统使用explorer用户采用SSH方式连接到XSCF下:

root@WYdb1 # ssh -l explorer 10.26.12.21

The authenticity of host \'10.26.12.21 (10.26.12.21)\' can\'t be established.

RSA key fingerprint is 51:6c:7c:48:f7:a0:7a:15:6a:a2:b7:f5:02:dd:32:ce.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added \'10.26.12.21\' (RSA) to the list of known hosts.

explorer@10.26.12.21\'s password: explorer

XSCF>

4.查看M5000操作系统下/etc/ssh/ssh_host_dsa_key.pub文件:

root@WYdb1 # more /etc/ssh/ssh_host_dsa_key.pub

ssh-dss AAAAB3NzaC1kc3MAAACBANMloG0JTgOYWEL0JFy2hBTwjsrvgXjOqLftDM7/gs7LwNHVYfcJL/IabOhPYLDI8/9ISsbCFECJDdfncSEwk4mzGEApgCMS0+0GWeOp

lLKAP2yPT8Ah+hr8+Yc/sF8wh5wDQhKlr1hk8W3ZjP7vcrl4kfYasFpL3cxDMXNre0LTAAAAFQCbpDSfXnIj1yB8z+K2LPJm1D1dywAAAIEAxfjEh33nHviIUKL9hiTfc9/w

54pAMXkCYfVenyjrWDuV4s4eX13sGudojh2hZ3BhjiTY8f+pnPRiOjhWQ6veLS4GlrkaV4DIpshnrS0nGsLwJ6zn+OvOU95LdZoFCTHN1QF8LcZ7T1bSUsjELzxF49S+s3hA

PI1mqi+7IbDccMsAAACAI2fyWz83BtmRn5TH88X5VgxQg6MxhVztiQGUFK5Mku8P6mKq4SnaZ0LU/qTpIqvawZRi7feRuhGFphtiYKn7eKmZjIdknoFqnt7uaOLaRnTZKYJN

AXZl20630YhToUv3Bi6fsW89k04ryC8z7fbxHEsAeC3/extq6+XuYaysFfs= root@WYdb1

5.XSCF下创建SSH的密钥(密钥内容为第4步中查看到的/etc/ssh/ssh_host_dsa_key.pub内容):

XSCF> setssh -c addpubkey

Please input a public key:

ssh-dss AAAAB3NzaC1kc3MAAACBANMloG0JTgOYWEL0JFy2hBTwjsrvgXjOqLftDM7/gs7LwNHVYfcJL/IabOhPYLDI8/9ISsbCFECJDdfncSEwk4mzGEApgCMS0+0GWeOp

lLKAP2yPT8Ah+hr8+Yc/sF8wh5wDQhKlr1hk8W3ZjP7vcrl4kfYasFpL3cxDMXNre0LTAAAAFQCbpDSfXnIj1yB8z+K2LPJm1D1dywAAAIEAxfjEh33nHviIUKL9hiTfc9/w

54pAMXkCYfVenyjrWDuV4s4eX13sGudojh2hZ3BhjiTY8f+pnPRiOjhWQ6veLS4GlrkaV4DIpshnrS0nGsLwJ6zn+OvOU95LdZoFCTHN1QF8LcZ7T1bSUsjELzxF49S+s3hA

PI1mqi+7IbDccMsAAACAI2fyWz83BtmRn5TH88X5VgxQg6MxhVztiQGUFK5Mku8P6mKq4SnaZ0LU/qTpIqvawZRi7feRuhGFphtiYKn7eKmZjIdknoFqnt7uaOLaRnTZKYJN

AXZl20630YhToUv3Bi6fsW89k04ryC8z7fbxHEsAeC3/extq6+XuYaysFfs= root@WYdb1

<control-d>退出

6.设置存档,使用操作系统的root用户、IP地址为主机物理IP

XSCF> setarchiving disable

XSCF> setarchiving -k download -r -t root@10.26.12.18:/

Downloading public host key from 10.26.12.18...

Fingerprint: 0e:93:9b:e9:be:03:88:cf:ff:66:04:6d:8d:c4:ec:aa

Accept this public key (yes/no)? yes

Enter ssh password for root@10.26.12.18: root

XSCF> setarchiving enable

Testing the archiving configuration...

Logs will be archived to 10.26.12.18.

7.XSCF下执行snapshot,在主机操作系统的根目录下会生成已XSCFhostnameXSCF#0-LAN#0IP及当前系统时间为名称的一个.zip文件,即为XSCF的信息包:

XSCF> snapshot -T

Setting up ssh connection to root@10.26.12.18...

Collecting data into root@10.26.12.18://scf0-WYdb1_10.26.12.21_2009-03-30T03-02-38.zip

Data collection complete

8.或者,在M5000主机操作系统下执行下面explorer命令也可将XSCF信息收集在explorer信息包中:

root@WYdb1 # explorer -w xscfextended,default

WARNING: EXP_CONTRACT_ID not set!

WARNING: EXP_REPLY not set!


2 warnings found in /etc/opt/SUNWexplo/default/explorer


ATTENTION: Are you using Sun Explorer Data Collector to help in the resolution

of an issue on a Sun product? In some cases, remote collaboration tools such

as Sun\'s Shared Shell can accelerate issue resolution.
Ask your Service

representative about Shared Shell or visit http://www.sun.com/sharedshell.

It\'s secure, safe, and easy to use.


Mar 30 11:05:13 WYdb1[1557] explorer: explorer ID: explorer.852855d6.WYdb1-2009.03.30.03.05

Mar 30 11:05:13 WYdb1[1557] patch: RUNNING

Mar 30 11:05:19 WYdb1[1557] pkg: RUNNING

Mar 30 11:05:41 WYdb1[1557] sysconfig: RUNNING

Mar 30 11:06:09 WYdb1[1557] sysconfig: exited: AP not installed

Mar 30 11:06:09 WYdb1[1557] Tx000: RUNNING

Mar 30 11:06:10 WYdb1[1557] Tx000: exited: Module cannot be run on this platform

Mar 30 11:06:10 WYdb1[1557] cluster: RUNNING

Mar 30 11:06:18 WYdb1[1557] cluster: exited: Cluster software not installed

Mar 30 11:06:18 WYdb1[1557] crypto: RUNNING

Mar 30 11:06:18 WYdb1[1557] cst: RUNNING

Mar 30 11:06:18 WYdb1[1557] cst: exited: CST not installed

Mar 30 11:06:18 WYdb1[1557] disks: RUNNING

Mar 30 11:07:04 WYdb1[1557] emc: RUNNING

Mar 30 11:07:04 WYdb1[1557] emc: exited: EMCpower not installed

Mar 30 11:07:04 WYdb1[1557] etc: RUNNING

Mar 30 11:07:05 WYdb1[1557] fcal: RUNNING

Mar 30 11:07:06 WYdb1[1557] firelink: RUNNING

Mar 30 11:07:06 WYdb1[1557] firelink: exited: Sun Firelink Interconnect not installed

Mar 30 11:07:07 WYdb1[1557] fma: RUNNING

Mar 30 11:07:08 WYdb1[1557] fru: RUNNING

Mar 30 11:07:08 WYdb1[1557] hds: RUNNING

Mar 30 11:07:08 WYdb1[1557] hds: exited: No Hitachi software found

Mar 30 11:07:08 WYdb1[1557] ilomextended: RUNNING

Mar 30 11:07:08 WYdb1[1557] indy: RUNNING

Mar 30 11:07:08 WYdb1[1557] init: RUNNING

Mar 30 11:07:09 WYdb1[1557] ipmi: RUNNING

Mar 30 11:07:09 WYdb1[1557] ipmi: exited: Not x86 platform

Mar 30 11:07:09 WYdb1[1557] ipmiextended: RUNNING

Mar 30 11:07:09 WYdb1[1557] j2se: RUNNING

Mar 30 11:07:12 WYdb1[1557] ldap: RUNNING

Mar 30 11:07:12 WYdb1[1557] lic: RUNNING

Mar 30 11:07:12 WYdb1[1557] lp: RUNNING

Mar 30 11:07:13 WYdb1[1557] lvm: RUNNING

Mar 30 11:07:13 WYdb1[1557] messages: RUNNING

Mar 30 11:07:13 WYdb1[1557] ndd: RUNNING

Mar 30 11:07:19 WYdb1[1557] netconnect: RUNNING

Mar 30 11:07:19 WYdb1[1557] netconnect: exited: Netconnect not installed

Mar 30 11:07:19 WYdb1[1557] netinfo: RUNNING

Mar 30 11:07:27 WYdb1[1557] pci: RUNNING

Mar 30 11:07:27 WYdb1[1557] pci: exited: Not x86 platform

Mar 30 11:07:27 WYdb1[1557] photon: RUNNING

Mar 30 11:07:27 WYdb1[1557] photon: exited: No photons installed

Mar 30 11:07:27 WYdb1[1557] prometheus: RUNNING

Mar 30 11:07:27 WYdb1[1557] prometheus: exited: Storage Manager not installed

Mar 30 11:07:27 WYdb1[1557] quorumserv: RUNNING

Mar 30 11:07:27 WYdb1[1557] quorumserv: exited: Cluster Quorum Server software not installed

Mar 30 11:07:27 WYdb1[1557] samfs: RUNNING

Mar 30 11:07:27 WYdb1[1557] samfs: exited: SAM-FS or QFS not installed

Mar 30 11:07:27 WYdb1[1557] sanextended: RUNNING

Mar 30 11:07:28 WYdb1[1557] sap: RUNNING

Mar 30 11:07:28 WYdb1[1557] sap: exited: SAP not installed

Mar 30 11:07:28 WYdb1[1557] sbu: RUNNING

Mar 30 11:07:28 WYdb1[1557] sbu: exited: Solstice Backup not installed

Mar 30 11:07:28 WYdb1[1557] se3k: RUNNING

Mar 30 11:07:28 WYdb1[1557] se3k: exited: neither SUNWsccli nor SUNWsscs installed

Mar 30 11:07:28 WYdb1[1557] se3kextended: RUNNING

Mar 30 11:07:28 WYdb1[1557] se3kextended: exited: neither SUNWsccli nor SUNWsscs installed

Mar 30 11:07:28 WYdb1[1557] se61xx: RUNNING

Mar 30 11:07:28 WYdb1[1557] se6320: RUNNING

Mar 30 11:07:28 WYdb1[1557] se6920: RUNNING

Mar 30 11:07:28 WYdb1[1557] servicetags: RUNNING

Mar 30 11:07:28 WYdb1[1557] sf15k_ndd: RUNNING

Mar 30 11:07:28 WYdb1[1557] sf15k_sc: RUNNING

Mar 30 11:07:28 WYdb1[1557] sf15k_sc: exited: SMS not installed

Mar 30 11:07:29 WYdb1[1557] sonoma: RUNNING

Mar 30 11:07:29 WYdb1[1557] sonoma: exited: No A3X00 installed

Mar 30 11:07:29 WYdb1[1557] ssa: RUNNING

Mar 30 11:07:29 WYdb1[1557] ssa: exited: No SSAs installed

Mar 30 11:07:29 WYdb1[1557] ssp: RUNNING

Mar 30 11:07:29 WYdb1[1557] ssp: exited: Not an SSP system

Mar 30 11:07:29 WYdb1[1557] st25xx: RUNNING

Mar 30 11:07:29 WYdb1[1557] st5800: RUNNING

Mar 30 11:07:29 WYdb1[1557] storade: RUNNING

Mar 30 11:07:29 WYdb1[1557] storade: exited: StorAde Data Service\'s not installed

Mar 30 11:07:29 WYdb1[1557] storedge: RUNNING

Mar 30 11:07:29 WYdb1[1557] storedge: exited: StorEdge Data Services, Storage Manager Basic Apps not installed

Mar 30 11:07:29 WYdb1[1557] stortools: RUNNING

Mar 30 11:07:29 WYdb1[1557] stortools: exited: StorTools not installed

Mar 30 11:07:29 WYdb1[1557] sunjes: RUNNING

Mar 30 11:07:34 WYdb1[1557] sunjes: exited: Sun Java Enterprise System is not installed

Mar 30 11:07:34 WYdb1[1557] sunray: RUNNING

Mar 30 11:07:34 WYdb1[1557] sunray: exited: SUNWuto not installed

Mar 30 11:07:34 WYdb1[1557] t3: RUNNING

Mar 30 11:07:34 WYdb1[1557] t3: exited: T3 and T4 not installed

Mar 30 11:07:34 WYdb1[1557] t3extended: RUNNING

Mar 30 11:07:34 WYdb1[1557] tape: RUNNING

Mar 30 11:07:34 WYdb1[1557] u4ft: RUNNING

Mar 30 11:07:34 WYdb1[1557] u4ft: exited: Not an FT1800 system

Mar 30 11:07:34 WYdb1[1557] var: RUNNING

Mar 30 11:07:35 WYdb1[1557] vtsst: RUNNING

Mar 30 11:07:35 WYdb1[1557] vtsst: exited: StorTools Diagnostics not installed

Mar 30 11:07:35 WYdb1[1557] vxfs: RUNNING

Mar 30 11:07:35 WYdb1[1557] vxfs: exited: VxFS not installed

Mar 30 11:07:35 WYdb1[1557] vxvm: RUNNING

Mar 30 11:07:35 WYdb1[1557] vxvm: exited: VxVM not installed

Mar 30 11:07:35 WYdb1[1557] xscfextended: RUNNING

Mar 30 11:07:35 WYdb1[1557] xscfextended: RUNNING

You will be prompted for remote system information.

Type return to end the list.

Remote hostname or IP address: 10.26.12.21
//XSCF#0-LAN#0
IP地址

Remote username: explorer 6 X* ?$ i& o7 c! T  i+ w
6 e: G( l\' S; V1 l
//XSCF
下具有platadm权限的用户名

Telnet password or blank to use SSH connection: explorer9 d8 Q\" r) D0 N\' o5 m7 Y3 _& p
//XSCF
下具有platadm权限的用户密码

Mar 30 11:09:50 WYdb1[1557] xscfextended: Data gathering complete for 10.26.12.21.

Remote hostname or IP address:
//回车即可

Mar 30 11:11:49 WYdb1[1557] explorer: data collection complete

Mar 30 11:11:51 WYdb1[1557] explorer: removing previous explorers from /opt/SUNWexplo/output

Mar 30 11:11:51 WYdb1[1557] explorer: Explorer finished! C* q, |9 o2 {9 `, R


//XCSF给我们提供了很强大的远程管理功能,有兴趣的朋友亲自来试试吧!

论坛徽章:
10
处女座
日期:2015-01-22 16:08:50技术图书徽章
日期:2018-09-13 11:25:52技术图书徽章
日期:2018-09-13 11:25:45技术图书徽章
日期:2018-09-13 11:25:37技术图书徽章
日期:2018-09-13 11:25:29黑曼巴
日期:2018-06-04 09:03:192017金鸡报晓
日期:2017-01-10 15:19:56极客徽章
日期:2016-12-07 14:03:402015年迎新春徽章
日期:2015-03-04 09:50:28技术图书徽章
日期:2018-09-13 11:26:01
发表于 2009-11-12 08:59 |显示全部楼层
xscf?
没听说过。。。

论坛徽章:
0
发表于 2009-12-08 18:44 |显示全部楼层
很强大,差点被这玩艺搞死了。

论坛徽章:
0
发表于 2009-12-09 11:51 |显示全部楼层
这玩意刚接触,挺好玩的。

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
发表于 2009-12-09 15:53 |显示全部楼层
NND,转帖也不注明出处,我要追究你的法律责任{:3_338:}

http://www.chinaitproject.com/vi ... &extra=page%3D2

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
发表于 2009-12-09 16:08 |显示全部楼层
NND,转帖也不注明出处,我要追究你的法律责任{:3_338:}

http://www.chinaitproject.com/vi ... &extra=page%3D2
本文来自: IXPUB技术社区(www.ixpub.net) 详细出处参考:http://www.ixpub.net/viewthread.php?tid=1036511

论坛徽章:
1
白羊座
日期:2013-08-28 15:51:39
发表于 2009-12-10 17:02 |显示全部楼层
请尊重原创者

chinaitproject.com观光团路做~~~~:pao:

论坛徽章:
202
15-16赛季CBA联赛之北控
日期:2020-01-03 11:02:38黑曼巴
日期:2017-12-11 12:52:0315-16赛季CBA联赛之浙江
日期:2017-12-28 14:13:3815-16赛季CBA联赛之广夏
日期:2018-03-01 16:41:0915-16赛季CBA联赛之青岛
日期:2018-08-08 11:17:1915-16赛季CBA联赛之江苏
日期:2018-08-08 14:12:3815-16赛季CBA联赛之江苏
日期:2018-09-17 13:50:1315-16赛季CBA联赛之天津
日期:2018-12-27 08:57:2015-16赛季CBA联赛之广夏
日期:2019-01-03 14:18:1715-16赛季CBA联赛之吉林
日期:2017-12-11 12:51:5915-16赛季CBA联赛之天津
日期:2017-10-30 09:57:3515-16赛季CBA联赛之山西
日期:2017-01-11 15:00:12
发表于 2009-12-10 17:10 |显示全部楼层
chinaitproject.com 观光团

论坛徽章:
0
发表于 2009-12-10 17:13 |显示全部楼层
ChinaITProject观光团路过。顺带鄙视下转贴当原创的。。

论坛徽章:
0
发表于 2009-12-10 17:17 |显示全部楼层
:confused::bye:要尊重原创啊  做人要厚道


chinaitproject.com 观光团
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

DTCC2020中国数据库技术大会 限时8.5折

【架构革新 高效可控】2020年6月4日~6日第十一届中国数据库技术大会将在北京隆重召开。

大会设置2大主会场,20+技术专场,将邀请超百位行业专家,重点围绕数据架构、AI与大数据、传统企业数据库实践和国产开源数据库等内容展开分享和探讨,为广大数据领域从业人士提供一场年度盛会和交流平台。

http://dtcc.it168.com


大会官网>>
  

北京盛拓优讯信息技术有限公司. 版权所有 16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122
中国互联网协会会员  联系我们:huangweiwei@it168.com
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP