Checklist For UNIX Hostname/IP Change

If a unix host is running properly but you only want to change hostname and/or IP address, please check the following check-list and make proper changes. This check-list applies to SDC only, other sites only for reference.
For Sun Solaris (you may change manually or try command "/usr/sbin/sys-unconfig"):

"/usr/sbin/showmount -a"
"exportfs -ua" or "unshareall"
/etc/hosts or /etc/inet/hosts
/etc/net/*/*host*
/etc/nodename
/etc/hostname.*
/etc/hosts.equiv
/etc/dumpadm.conf
/etc/rmtab
"cp /etc/nsswitch.files /etc/nsswitch.conf"
"rm -rf /var/nis", "rm /etc/.rootkey*"
reboot
/usr/lib/nis/nisclient -i -h sdc-master
/san/Solaris/Custom_Jumpstart/jumpstart/fin_sdc/rcs_and_misc_setup.fin -check_files
reboot


For RedHat Linux:

"/usr/sbin/showmount -a"
"exportfs -ua"
/etc/sysconfig/network-scripts/ifcfg-*
/etc/sysconfig/network
/etc/hosts
/etc/hosts.equiv
"cp /etc/nsswitch.files /etc/nsswitch.conf"
"rm -rf /var/nis", "rm /etc/.rootkey*"
reboot
/usr/lib/nis/nisinit -c -H sdc-master
/san/Solaris/Custom_Jumpstart/jumpstart/fin_sdc/rcs_and_misc_setup.fin -check_files
reboot

[@more@]

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

转载于:http://blog.itpub.net/115961/viewspace-1002144/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值