Chinaunix首页 | 论坛 | 博客
  • 博客访问: 604211
  • 博文数量: 43
  • 博客积分: 4250
  • 博客等级: 上校
  • 技术积分: 486
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-04 04:09
文章分类
文章存档

2009年(2)

2008年(5)

2007年(29)

2006年(7)

我的朋友

分类: LINUX

2007-09-19 17:17:03

不用多说,只看看官方一般是怎样收集系统信息的,并利用收集的信息来解决一些常见问题.对大家都有帮助.

#sysreport -dmidecode -firewall -norpm

This utility will go through and collect some detailed information
about the hardware and setup of your Red Hat Linux system.
This information will be used to diagnose problems with your system
and will be considered confidential information.  Red Hat will use
this information for diagnostic purposes ONLY.

Please wait while we collect information about your system.

This process may take a while to complete....
No changes will be made to your system during this process.

NOTE: You can safely ignore a failed message. This only means a file
we were checking for did not exist.

If your system hangs while gathering rpm information, please abort
the script with CTRL-C and run it again after adding -norpm to the
sysreport command line

Press ENTER to continue, or CTRL-C to quit.

 

Getting system configuration information.

Determining Red Hat Linux version:[  OK  ]
Determinding your current hostname:[  OK  ]
Getting the date:[  OK  ]
Checking your systems current uptime and load average:[  OK  ]
Checking available memory:[  OK  ]
Checking free disk space:[  OK  ]
Checking currently running processes:[  OK  ]
Checking current process tree:[  OK  ]
Collecting information about ld.so.conf:[  OK  ]
Collecting information about ld.so.conf.d:[  OK  ]
Collecting IPC-related information:[  OK  ]
Collecting information about chkconfig --list:[  OK  ]
Collecting information about /etc/rc.d:[  OK  ]
Lists information about files opened (lsof)[  OK  ]
Collecting interprocess communication facilities status[  OK  ]
Collecting interprocess communication facilities status[  OK  ]
Collecting information about the boot process (grub.conf):[  OK  ]
Collecting information about the boot process (grub.map):[  OK  ]
Collecting init configuration:[  OK  ]
Collecting information about X:[  OK  ]
Gathering sysctl information (/proc/sys):[  OK  ]
Gathering sysctl information (/etc/sysctl.conf):[  OK  ]
Collecting information about cron (cron.d):[  OK  ]
Collecting information about cron (cron.daily):[  OK  ]
Collecting information about cron (cron.deny):[  OK  ]
Collecting information about cron (cron.hourly):[  OK  ]
Collecting information about cron (cron.monthly):[  OK  ]
Collecting information about cron (cron.weekly):[  OK  ]
Collecting information about cron (crontab):[  OK  ]
Gathering Syslog config information:[  OK  ]
Gathering ntp configuration (/etc/ntp.conf):[  OK  ]
Gathering ntp configuration (/etc/ntp/step-tickers):[  OK  ]
Gathering IP information (/sbin/ifconfig):[  OK  ]
Checking network routes:[  OK  ]
Collecting Name Service Switch config information:[  OK  ]
Collecting NIS client information:[  OK  ]
Collecting system configuration information:[  OK  ]
Collecting information about system authentication (pam):[  OK  ]

Getting information about the kernel.

Getting kernel version:[  OK  ]
Checking module information:[  OK  ]
Checking module information iptable_filter:[  OK  ]
Checking module information ip_tables:[  OK  ]
Checking module information x_tables:[  OK  ]
Checking module information nfs:[  OK  ]
Checking module information lockd:[  OK  ]
Checking module information nfs_acl:[  OK  ]
Checking module information sunrpc:[  OK  ]
Checking module information sg:[  OK  ]
Checking module information i2c_piix4:[  OK  ]
Checking module information pcnet32:[  OK  ]
Checking module information i2c_core:[  OK  ]
Checking module information serio_raw:[  OK  ]
Checking module information mii:[  OK  ]
Checking module information ide_cd:[  OK  ]
Checking module information cdrom:[  OK  ]
Checking module information dm_snapshot:[  OK  ]
Checking module information dm_zero:[  OK  ]
Checking module information dm_mirror:[  OK  ]
Checking module information dm_mod:[  OK  ]
Checking module information mptspi:[  OK  ]
Checking module information mptscsih:[  OK  ]
Checking module information scsi_transport_spi:[  OK  ]
Checking module information mptbase:[  OK  ]
Checking module information sd_mod:[  OK  ]
Checking module information scsi_mod:[  OK  ]
Checking module information ext3:[  OK  ]
Checking module information jbd:[  OK  ]
Checking module information ehci_hcd:[  OK  ]
Checking module information ohci_hcd:[  OK  ]
Checking module information uhci_hcd:[  OK  ]
Gathering information about your filesystems:[  OK  ]
Gathering information about your system stat:[  OK  ]
Gathering information about your partitions:[  OK  ]
Collecting information regarding kernel modules[  OK  ]
Collecting information regarding kernel modules (modeprobe.conf)[  OK  ]
Getting information about the hardware.

Gathering DMI information:[  OK  ]
Getting kernel command line[  OK  ]
Gathering information about your CPU:[  OK  ]
Gathering information about your Ram:[  OK  ]
Gathering information about your ioports:[  OK  ]
Gathering information about your interrupts:[  OK  ]
Gathering information about your scsi devices:[  OK  ]
Gathering information about your dma:[  OK  ]
Gathering information about your devices (/proc/devices):[  OK  ]
Gathering information about your ide drivers:[  OK  ]
Gathering information about your bus:[  OK  ]
Gathering info on udev configuration:[  OK  ]

Getting disk and filesystem information.

Collecting information from /etc/fstab:[  OK  ]
Checking mounted file systems (mount)[  OK  ]
Checking mounted file systems (/proc/mounts)[  OK  ]
Collecting Software RAID information (/proc/mdstat)[  OK  ]
Collecting Software RAID information (mdadm -D /dev/md*)[  OK  ]
Collecting Automount information (auto.master)[  OK  ]
Collecting Automount information (auto.misc)[  OK  ]
Collecting Automount information (auto.net)[  OK  ]
Collecting LVM information:[  OK  ]
Collecting USB devices list (lsusb):[  OK  ]
Collecting global devices list (lshal):[  OK  ]

collecting information about commonly used network services

Collecting information from /etc/host.conf:[  OK  ]
Collecting information from /etc/hosts:[  OK  ]
Collecting information from /etc/hosts.allow:[  OK  ]
Collecting information from /etc/hosts.deny:[  OK  ]
Collecting information about the ftp servers (ftpusers):[  OK  ]
Collecting information about the ftp servers (user_list):[  OK  ]
Collecting information about the ftp servers (vsftpd.conf):[  OK  ]
Collecting information about the ftp servers (vsftpd_conf_migrate.sh):[  OK  ]
Collecting information about ypbind configuration:[  OK  ]
Getting iptables information:[  OK  ]
Getting iptables information (filter):[  OK  ]
Getting iptables information (mangle):[  OK  ]
Getting iptables information (nat):[  OK  ]
Getting LDAP configuration (ldap.conf)[  OK  ]
Getting LDAP configuration (ldap.conf)[  OK  ]
Getting ssh configuration (ssh_config)[  OK  ]
Getting sshd configuration (sshd_config)[  OK  ]
Sendmail Configuration (/etc/mail/sendmail.cf):[  OK  ]
Sendmail User aliases (/etc/aliases):[  OK  ]
Getting files from (Makefile)[  OK  ]
Getting files from (access)[  OK  ]
Getting files from (domaintable)[  OK  ]
Getting files from (helpfile)[  OK  ]
Getting files from (local-host-names)[  OK  ]
Getting files from (mailertable)[  OK  ]
Getting files from (sendmail.cf)[  OK  ]
Getting files from (sendmail.mc)[  OK  ]
Getting files from (submit.cf)[  OK  ]
Getting files from (submit.mc)[  OK  ]
Getting files from (trusted-users)[  OK  ]
Getting files from (virtusertable)[  OK  ]
Collecting host resolution information[  OK  ]
Collecting information about the NFS:[  OK  ]
Getting samba informations (lmhosts)[  OK  ]
Getting samba informations (smb.conf)[  OK  ]
Getting samba informations (wbinfo -g):[  OK  ]
Getting samba informations (wbinfo -u):[  OK  ]
Getting /etc/securetty[  OK  ]
Getting /etc/shells[  OK  ]
Getting ulimit info[  OK  ]
Getting nscd configuration[  OK  ]
Getting Kerberos informations (/etc/krb5.conf)[  OK  ]
Getting information about apache[  OK  ]
Getting information about apache (php.conf)[  OK  ]
Getting information about apache (proxy_ajp.conf)[  OK  ]
Getting information about apache (squid.conf)[  OK  ]
Getting information about apache (welcome.conf)[  OK  ]
Getting information about squid[  OK  ]

Gathering information from system logs

Collecting information from dmesg:[  OK  ]
Collecting messages files (/var/log/messages)[  OK  ]
Collecting maillog files (/var/log/maillog)[  OK  ]
Collecting information (/var/log/sa)[  OK  ]
Collecting X logs (/var/log/Xorg.0.log)[  OK  ]
Collecting information (/var/log/rpmpkgs)[  OK  ]
Collecting information (/var/log/boot.log)[  OK  ]
Collecting information (/var/log/secure)[  OK  ]
Collecting log files from Apache[  OK  ]

阅读(3439) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~