Change hostname in AIX

2013.04.30 20:17

ischo Views:56140

원문 : 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 143550
211 SAS RAID controller for AIX [1] file ischo 2017.02.04 28387
210 TCP dump in AIX environment [1] ischo 2014.12.05 41283
» Change hostname in AIX ischo 2013.04.30 56140
208 SIGNAL NUMBERS in KILL command ischo 2013.02.16 40431
207 Maximum number of thread per process in AIX ischo 2013.02.06 47301
206 Install Apache webserver(source compile) in AIX 6.1 ischo 2013.02.01 59975
205 How to identify processor core in AIX ischo 2013.01.10 113289
204 Shell script : Check named alive & start that if it dead. [1] ischo 2012.12.26 40309
203 AIX Tuning point - CPU,MEM,VG + FAQ [1] ischo 2012.11.20 53614
202 how to identify process ID which opened specific TCP port without install lsof ischo 2012.10.17 72229
201 p시리즈 장비 OP패널에서 강제 shutdown 방법 조인상 2012.10.13 35689
200 [IBM] x시리즈 M3,M4 블레이드센터 제원 조인상 2012.10.06 30195
199 IBM System x Sales Tech and Sales School 조인상 2012.08.09 38067
198 Power6 System Reference Code 조인상 2012.08.09 37836
197 IBM x3650 M3 Service Guide file 조인상 2012.08.04 38515
196 펌웨어 업그레이드 for old p5 series Servers(SF240-417) file ischo 2012.07.26 35600
195 디버그툴 dbx 사용법 file 조인상 2012.07.26 42879
194 IBM AIX Version 6.1 Differences Guide file 조인상 2012.07.26 55705
193 IBM AIX Version 7.1 Differences Guide file 조인상 2012.07.26 45880
192 p시리즈 펌웨어 업데이트 방법 조인상 2012.07.20 43935
Requesting to the server, please wait.