#author("2018-08-02T09:17:49+09:00","","")
[[コマンド]]
#freeze
#author("2018-08-10T21:07:41+09:00","","")
[[CentOS7]]

*環境確認 [#b7d30a82]
cat /etc/redhat-release
**OSのバージョン確認 [#qa1d5957]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# cat /etc/redhat-release|

**カーネルバージョンの確認 [#z8d238c3]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# uname -a|

**CPUの確認 [#za2a3371]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# less /proc/cpuinfo|

**メモリの確認 [#p54a18b0]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# less /proc/meminfo|

**free メモリーの使用状況の確認[#kd82e2ae]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# free|

**swapon swap構成情報確認[#q484adaa]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# swapon -s|

**内臓ハードディスクの確認 [#y19999ff]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# fdisk -l|

**df ディスク構成情報確認[#c3695bff]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# df|

**RAID確認 [#y30c0b13]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# ls -al /dev/md0|

**ディスクパーティション確認 [#a9d31129]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# less /proc/partitions|

**GRUBローダのインストール先確認 [#mcb1cf6a]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# less /etc/grub.conf|

**MBRのFilesystemのマウントポイント /boot [#l3b1c4ab]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# df /boot|

**printenv 環境変数の確認 [#x4d74c7b]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# printenv|

**現在使っているドライバ(モジュール)を調べる [#e3955d2a]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# lshw -C network|
各項目のconfiguration行の、driver=にドライバ名がある。

**タイムゾーンの確認 [#wfabcfd1]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# less /etc/sysconfig/clock|

**ホスト名の確認 [#ub205e33]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# hostname|
|[root@localhost ~]# less /etc/sysconfig/network|

**ネットワーク [#r1508649]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# ifconfig -a|

**ネットワークインターフェース情報の確認 [#fbf5c402]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# ip address show|

**NIC(eth0)設定確認 [#u20c1e29]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# less /etc/sysconfig/network-scripts/ifcfg-eth0|
|DEVICE="eth0" &br; BOOTPROTO=static &br; BROADCAST=xxx.xxx.xxx.255 &br; HWADDR="00:00:FF:00:FF:00" &br; IPADDR=xxx.xxx.xxx.xxx &br; NETMASK=255.255.255.0 &br; NETWORK=xxx.xxx.xxx.0 &br; NM_CONTROLLED="yes" &br; ONBOOT="yes"|

**NIC(eth1)設定確認 [#radc65e1]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# less /etc/sysconfig/network-scripts/ifcfg-eth1|

**NIC(eth2)設定確認 [#v6b8a94b]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# less /etc/sysconfig/network-scripts/ifcfg-eth2|

**ルーティングテーブル確認 [#hc5eac86]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# ip route|

**ルーティング情報確認 [#z1d7e212]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# route -n|

**名前解決に使用するDNSの確認 [#bdf4fc9f]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# less /etc/resolv.conf &br; search hogehoge.local &br; nameserver xxx.xxx.xxx.xxx|

**名前解決の順序指定 [#h935a4ef]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# less /etc/nsswitch.conf|

**hosts 確認 [#w999f5a5]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# more /etc/hosts|

**hosts.allow 確認 [#d653b9eb]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# more /etc/hosts.allow|

**hosts.deny 確認 [#adea5d47]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# more /etc/hosts.deny|

**ログローテート確認 [#vde369a8]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# more /etc/logrotate.d/sysklogd.base|

**logrotate.confの確認 [#y1c47cfb]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# more /etc/logrotate.conf|

**cron設定確認(root) [#c41a3b98]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# crontab -l|

**基本OS情報(名前解決の順序指定) [#dd15d915]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# less /etc/nsswitch.conf|

**SELinuxの状態確認。Disabledと表示されればSELinuxは無効化されている。 [#z40699fe]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# getenforce|

**kdump OS起動時の動作確認 [#s8af6fbd]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# chkconfig kdump --list|

**最後に実行されたhwclockコマンドの引数確認 [#z2f6389d]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# less /etc/adjtime|

**ユーザーグループ確認 [#n99259c2]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# less /etc/group|

**ユーザー確認 [#s1aa4778]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# less /etc/passwd|

**mon のバージョン確認 [#s6f084ef]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# mon -v|

**BIND 設定確認 [#zffefa64]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# named-checkzone xxx.local /var/named/chroot/var/named/xxx.local.db|

**Oracle tnsname.oraを確認 [#ea822e9d]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# more /opt/oracle/instantclient_10_2/network/admin/tnsnames.ora|


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS