ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Redhat OS checklist sample

Redhat OS checklist sample

原创 Linux操作系统 作者:sepulcrum 时间:2007-08-24 08:35:08 0 删除 编辑

[root ~]# more /etc/resolv.conf
# Added by kickstart file
# -----------------------
domain test.com
nameserver 165.204.224.33
nameserver 165.204.224.2
[root ~]# grep hosts /etc/nsswitch.conf
#hosts: db files ldap nis dns
hosts: dns files
[root ~]# time nslookup szcadmin
Server: 165.204.224.33
Address: 165.204.224.33#53

Name: szcadmin.test.com
Address: 165.204.233.5


real 0m0.079s
user 0m0.004s
sys 0m0.008s
[root ~]# time nslookup localhost
Server: 165.204.224.33
Address: 165.204.224.33#53

Name: localhost.test.com
Address: 165.204.224.161


real 0m0.010s
user 0m0.004s
sys 0m0.005s
[root ~]# more /etc/ntp.conf
# Added by kickstart file
# -----------------------
logfile /var/log/messages
server 165.204.233.96 prefer
server 165.204.233.97
[root ~]# service ntpd status
ntpd (pid 6880) is running...
[root ~]# ntpq
ntpq> peers
remote refid st t when poll reach delay offset jitter
==============================================================================
*ssuztest3.test.com 163.181.36.44 5 u 48 128 377 0.206 -4.014 7.200
+ssuztest4.test.com 163.181.36.44 5 u 104 128 377 0.190 6.784 7.187
ntpq> exit
[root ~]# date
Fri Apr 27 11:51:44 CST 2007
[root ~]# more ~root/.forward
root@szcadmin.test.com
[root ~]# grep mailhost /etc/hosts
165.204.233.100 suzmail.test.com suzmail mailhost
[root ~]# service sendmail status
sendmail (pid 6976 6968) is running...
[root ~]# echo "Hello World" | mail -s "Hello World" root
[root ~]# grep info /etc/syslog.conf
# Log anything (except mail) of level info or higher.
*.info;mail.none;news.none;authpriv.none;cron.none /var/log/messages
*.info @szcadmin
[root ~]# service syslog status
syslogd (pid 6561) is running...
klogd (pid 6566) is running...
[root ~]# grep `hostname` /var/log/messages* | tail -1
Apr 27 12:00:32 localhost sshd(pam_unix)[8754]: session opened for user root by root(uid=0)
[root ~]# more /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost
GATEWAY=165.204.224.254
[root ~]# grep `hostname` /etc/hosts
165.204.224.161 localhost.test.com localhost
[root ~]# grep IPADD /etc/sysconfig/network-scripts/ifcfg-eth*
[root ~]# grep NETMASK /etc/sysconfig/network-scripts/ifcfg-eth*
[root ~]# grep GATEWAY /etc/sysconfig/network-scripts/ifcfg-eth*
[root ~]# more /proc/sys/net/ipv4/ip_forward
0
[root ~]# service vsftpd status
vsftpd (pid 8592) is running...
[root ~]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 53550228 7600224 43229800 15% /
/dev/sda1 101086 14862 81005 16% /boot
none 12316768 0 12316768 0% /dev/shm
/dev/sdb2 550043688 104184 521998856 1% /oracle
[root ~]# grep -i swap /proc/meminfo
SwapCached: 0 kB
SwapTotal: 16779884 kB
SwapFree: 16779884 kB
[root /]# vxdisk list
DEVICE TYPE DISK GROUP STATUS
sda auto:none - - online invalid
sdaa auto:cdsdisk - - online
sdb auto:none - - online invalid
sdc auto:cdsdisk oradg304-sst0020-disk000 oradg304 online
sdd auto:cdsdisk - - online
sde auto:cdsdisk oradg304-sst0020-disk002 oradg304 online
sdf auto:cdsdisk - - online
sdg auto:cdsdisk - - online
sdh auto:cdsdisk - - online
sdi auto:cdsdisk - - online
sdj auto:cdsdisk - - online
sdk auto:cdsdisk - - online
sdl auto:cdsdisk - - online
sdm auto:cdsdisk oradg304-sst0020-disk010 oradg304 online
sdn auto:cdsdisk - - online
sdo auto:cdsdisk oradg304-sst0020-disk012 oradg304 online
sdp auto:cdsdisk - - online
sdq auto:cdsdisk - - online
sdr auto:cdsdisk oradg304-sst0020-disk015 oradg304 online
sds auto:cdsdisk oradg304-sst0020-disk016 oradg304 online
sdt auto:cdsdisk oradg304-sst0020-disk017 oradg304 online
sdu auto:cdsdisk oradg304-sst0020-disk018 oradg304 online
sdv auto:cdsdisk oradg304-sst0020-disk019 oradg304 online
sdw auto:cdsdisk - - online
sdx auto:cdsdisk - - online
sdy auto:cdsdisk - - online
sdz auto:cdsdisk oradg304-sst0020-disk023 oradg304 online

[root ~]# more /etc/sysconfig/diskdump | grep DEVICE
# DEVICE=/dev/sdc8
DEVICE=/dev/sdb1
[root ~]# grep -v "#" /etc/cron.d/sysstat
*/10 * * * * root /usr/lib64/sa/sa1 1 1
53 23 * * * root /usr/lib64/sa/sa2 -A

[root ~]# sar | tail -l
11:00:01 AM CPU %user %nice %system %iowait %idle
11:10:01 AM all 0.05 0.00 0.03 0.04 99.88
11:20:01 AM all 0.03 0.00 0.02 0.02 99.93
11:30:01 AM all 0.03 0.00 0.02 0.03 99.92
11:40:01 AM all 0.03 0.00 0.01 0.02 99.93
11:50:01 AM all 0.03 0.00 0.02 0.01 99.94
12:00:01 PM all 0.04 0.00 0.06 0.03 99.87
12:10:01 PM all 0.04 0.00 0.02 0.02 99.92
12:20:01 PM all 0.04 0.00 0.06 0.02 99.88
Average: all 0.04 0.00 0.03 0.02 99.91
[root ~]# grep cron /etc/syslog.conf
*.info;mail.none;news.none;authpriv.none;cron.none /var/log/messages
# Log cron stuff
cron.* /var/log/cron
[root ~]# more /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
[root ~]# uname -a
Linux localhost 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux
[root ~]# more /etc/vsftpd.ftpusers
# Users that are not allowed to login via ftp
#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
[root ~]# ls /root/.rhosts
/root/.rhosts
[root ~]# grep auth /etc/syslog.conf
# Don't log private authentication messages!
*.info;mail.none;news.none;authpriv.none;cron.none /var/log/messages
# The authpriv file has restricted access.
authpriv.* /var/log/secure
[root ~]# grep pts /etc/securetty
# Uncomment pts/? below to allow root telnet
# pts/0
# pts/1
# pts/2
# pts/3
# pts/4
[root ~]# grep ttyS /etc/securetty
# ttyS0 is the serial connection, unit 0 from the SP. This allows root login from SP
ttyS0
[root ~]# last | head -5
root pts/1 suzpccpgc904 Fri Apr 27 12:00 - 12:22 (00:21)
root pts/0 suzpccpgc904 Fri Apr 27 11:44 still logged in
root pts/1 suzpccpgc904 Fri Apr 27 11:02 - 11:22 (00:20)
[root ~]# cat /proc/swaps
Filename Type Size Used Priority
/dev/sda2 partition 16779884 0 -1
[root ~]# grep password /etc/pam.d/login
password required pam_stack.so service=system-auth
[root etc]# grep PASS /etc/login.defs
# PASS_MAX_DAYS Maximum number of days a password may be used.
# PASS_MIN_DAYS Minimum number of days allowed between password changes.
# PASS_MIN_LEN Minimum acceptable password length.
# PASS_WARN_AGE Number of days warning given before a password expires.
PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_MIN_LEN 5
PASS_WARN_AGE 7
[root ~]# cat /etc/motd
================================================================================
Linux localhost.localdomain 2.6.9-42.EL #1 Wed Jul 12 23:15:20 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux
Installation for localhost.localdomain completed on Wed Apr 25 01:19:09 SGT 2007
================================================================================
This is a private computer facility.
Access for any reason must be specifically authorized by the owner.
Unless you are authorized, your continued access and any other use may expose you to criminal and/or civil proceedings.
All actions will be monitored.


Unauthorized access strictly prohibited

If you have any enqueries, please contact System Administrator:

================================================================================
[root ~]# egrep "processor|MHz" /proc/cpuinfo
processor : 0
cpu MHz : 996.398
processor : 1
cpu MHz : 996.398
processor : 2
cpu MHz : 996.398
processor : 3
cpu MHz : 996.398
[root ~]# grep MemTotal /proc/meminfo
MemTotal: 24633540 kB
[root ~]# fdisk -l

Disk /dev/sda: 72.9 GB, 72999763968 bytes
255 heads, 63 sectors/track, 8875 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 2102 16779892+ 82 Linux swap
/dev/sda3 2103 8875 54404122+ 83 Linux

Disk /dev/sdb: 597.9 GB, 597998698496 bytes
255 heads, 63 sectors/track, 72702 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 3133 25165791 83 Linux
/dev/sdb2 3134 72702 558812992+ 83 Linux

Disk /dev/sdc: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdd: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes

Device Boot Start End Blocks Id System

Disk /dev/sde: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdf: 268.4 GB, 268435456000 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdg: 268.4 GB, 268435456000 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdh: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdi: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdj: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdk: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdl: 268.4 GB, 268435456000 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdm: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdn: 268.4 GB, 268435456000 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdo: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdp: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdq: 268.4 GB, 268435456000 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdr: 805.3 GB, 805306368000 bytes
255 heads, 63 sectors/track, 97906 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sds: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdt: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdu: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdv: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdw: 268.4 GB, 268435456000 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdx: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdy: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdz: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes

Device Boot Start End Blocks Id System

Disk /dev/sdaa: 5368 MB, 5368709120 bytes
166 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 10292 * 512 = 5269504 bytes

Device Boot Start End Blocks Id System
[root ~]# more /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
IPADDR=165.204.224.161
NETMASK=255.255.255.0
NETWORK=165.204.224.0
BROADCAST=165.204.224.255
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=none
GATEWAY=165.204.224.254
IPV6INIT=no
USERCTL=no


[root /etc]# ethtool eth8
Settings for eth8:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Current message level: 0x000000ff (255)
Link detected: yes

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10897379/viewspace-965510/,如需转载,请注明出处,否则将追究法律责任。

上一篇: Logmnr
请登录后发表评论 登录
全部评论
  • 博文量
    26
  • 访问量
    170337