Mx000系列服务器抓取log步骤

yoyosys
Mx000系列服务器抓取log步骤

此例为M5000 server
[color=Red]explorer server 192.168.0.44 [/color]
1. Find an existing (or create a new) user login on the SP
2. Make sure this SP user login has platadm privileges
3. As root on explorer host, ssh into SP once to establish known_hosts entry
4. Copy/paste /etc/ssh/ssh_host_dsa_key.pub contents from the explorer host
5. On SP as the user login for explorer, setssh -c addpubkey (paste in key)
6. Setup archiving from the SP to the explorer host (setarchiving)
7. On SP as the user login for explorer, test connectivity via snapshot -T
8. As root on the explorer host ./explorer -w xscfextended,default
9. When prompted ; Supply IP address of the SP
10. When prompted ; Supply user login on the SP

以上是官方的操作步骤,下面列出实际操作:
1.在SP上增加一个拥有platadm privileges权限的帐户explorer
XSCF> adduser explorer
XSCF> setprivileges explorer platadm
XSCF> password explorer
New XSCF password:
Retype new XSCF password:
XSCF> showuser explorer
User Name:         explorer
UID:               101
Status:            Enabled
Minimum:           0
Maximum:           99999
Warning:           7
Inactive:          -1
Last Change:       Jun 10, 2008
Password Expires:  Never
Password Inactive: Never
Account Expires:   Never
Privileges:        platadm
XSCF> logout
2.在M5000的一个Domain 0(IP:192.168.0.44)中SSH到SP(IP:192.168.0.182)
# ssh -l explorer 192.168.0.182
The authenticity of host '10.4.145.76 (10.4.145.76)' can't be established.
RSA key fingerprint is 80:c0:74:eb:4d:89:5b:b0:f0:ee:7b:44:72:2f:43:b8.
Are you sure you want to continue connecting (yes/no)  yes
Warning: Permanently added '10.4.145.76' (RSA) to the list of known hosts.
[email]explorer@192.168.0.182[/email]'s password:
XSCF>
3.copy /etc/ssh/ssh_host_dsa_key.pub的内容到SP
XSCF>setssh -c addpubkey
ssh-dss AAAAB3NzaC1kc3MAAACBAOjlASLEYcL2kMpqAarQQFGhtzr06FGc8b5CM4iGOo5P5l7VOxUPegWNsEXxey50PRnOQQDibuXOoB8saeSbABOQ6tD670Qxtfds0JdO
2b33iiTX48O495qyrP67h4HRz31QZ9FkFQoaQlZc/Ff31mt+QN2gq46y5O80cHTxmzK3AAAAFQDJx7xCU8S3FsBLsNMpSWrOlQrI5QAAAIEAppqpBaIb6LuNA3VZpBKUqcUF
oZHKuC1gKfTPTYGbkjfIlKnbKQ4BAsns7krqsFOY5iD3fH+c4k11W/M1JKgtsI6LaNILfFeI5/h1fUL4h2oNH3Ji4x6JAH7qlXgbOu6nCi4f47aJ4Gx1aR4h9Y/NK7+MPInL
UyYVl3JT5s/VHRwAAACAPxF7AhDi+ASY5Ox8+yOFxGFK5Alh+9SCamGUPAx8gS7Vb47WL2gxyzBIdZKKsNC9B5bZwzzZBU4M2gFjUG+6zjg3n078OG5Qgd5M+zEKta8/C4MY
gYdyeLbQJBLfGvGAkgrOmYEsQuc7KZ2RtTe4YtTB6MmTlB4k6zWkvw/XLw4= root@test
回车
<control-d>
XSCF>
4.Next, setup archiving from the SP to the explorer host
XSCF> setarchiving disable
XSCF> setarchiving -k download -r -t [email]root@192.168.0.44[/email]:/tmp/root
Fingerprint: 27:5e:08:5a:34:7c:3e:7b:45:d8:75:7a:43:21:8a:d2
Accept this public key (yes/no)  yes
Enter ssh password for [email]rob@10.4.145.87[/email]:
XSCF> setarchiving enable
Testing the archiving configuration...
Logs will be archived to 192.168.0.44
Test the connectivity via snapshot
NOTE: The '-T' Specifies executing snapshot in  SSH target  mode  using
the value for user@host:directory previously set using setarchiving
5.用explorer用户登录SP
XSCF> snapshot -T   /会在步骤4指定的192.168.0.44:/tmp/root中产生一个SP的snap的文件,后缀名为.zip
6.在explorer server服务器中做如下操作:
oot@test # cd /opt/SUNWexplo/bin
root@test # ./explorer -w xscfextended          /加上,default是同时收集Domain 的信息,此处不需
在此过程中会提示你连接SP的IP,用户名及密码,输入开始创建的用户名密码即可,最后会在/opt/SUNWexplo/output目录下生成一个.tar.gz文件,文件名服务器名+日期时间
7.最后通过FTP,用BIN下载此文件,就可以发给SUN的客服,等结果了.

风之幻想
顶.学习.收藏了.谢谢!!!

badb0y
和和,,,没玩过,,顶一下

brucewoo
没用过M系列的机器,学习一下

Umysun
顶.学习.收藏了.谢谢!!!