Change hostname in AIX

2013.04.30 20:17

ischo Views:50732

원문 : http://www.ischo.net -- 조인상 // 시스템 엔지니어

Writer : http://www.ischo.net -- ischo // System Engineer in Replubic Of Korea

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

Writer : http://www.ischo.net -- ischo // System Engineer
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 


Change hostname in AIX

 

 

1. Apply hostname information in inet0 device to ODM permanently.
   # chdev -l inet0 -a hostname=<new hostname>
   or
   # smitty hostname

 


2. Change hostname ( affected now, but after reboot will not changed)
   # hostname <new hostname>



3. change hostname at command 'uname'
   # uname -S <new hostname>
   or
   run # /etc/rc.net  
  * uname command's result will not change after run 'hostname <newhostname>' command.

     it need to run 'uname -S'. it will be affected after reboot, because booting script /etc/rc.net including 'uname -S' command.


  

4. edit /etc/hosts file to apply new hostname

 # vi /etc/hosts

 <interface IP>     <new hostname>

ex) 192.168.10.2     oldhostname   ->   192.168.10.2     newhostname

 


5. edit DNS file (ex:/etc/resolv.conf) if necessary.

# vi /etc/resolv.conf

 

 


No. Subject Author Date Views
Notice [공지] 게시자료 열람자유. 불펌금지입니다. 조인상 2010.12.07 121332
211 SAS RAID controller for AIX [1] file ischo 2017.02.04 21945
210 TCP dump in AIX environment [1] ischo 2014.12.05 35161
» Change hostname in AIX ischo 2013.04.30 50732
208 SIGNAL NUMBERS in KILL command ischo 2013.02.16 34457
207 Maximum number of thread per process in AIX ischo 2013.02.06 41230
206 Install Apache webserver(source compile) in AIX 6.1 ischo 2013.02.01 54503
205 How to identify processor core in AIX ischo 2013.01.10 107871
204 Shell script : Check named alive & start that if it dead. [1] ischo 2012.12.26 34179
203 AIX Tuning point - CPU,MEM,VG + FAQ [1] ischo 2012.11.20 47870
202 how to identify process ID which opened specific TCP port without install lsof ischo 2012.10.17 66724
201 p시리즈 장비 OP패널에서 강제 shutdown 방법 조인상 2012.10.13 32806
200 [IBM] x시리즈 M3,M4 블레이드센터 제원 조인상 2012.10.06 27094
199 IBM System x Sales Tech and Sales School 조인상 2012.08.09 31875
198 Power6 System Reference Code 조인상 2012.08.09 31635
197 IBM x3650 M3 Service Guide file 조인상 2012.08.04 32426
196 펌웨어 업그레이드 for old p5 series Servers(SF240-417) file ischo 2012.07.26 29562
195 디버그툴 dbx 사용법 file 조인상 2012.07.26 39426
194 IBM AIX Version 6.1 Differences Guide file 조인상 2012.07.26 49423
193 IBM AIX Version 7.1 Differences Guide file 조인상 2012.07.26 40127
192 p시리즈 펌웨어 업데이트 방법 조인상 2012.07.20 40547
Requesting to the server, please wait.