uname -S newhostname


 
Thread Tools Search this Thread
Operating Systems AIX uname -S newhostname
# 1  
Old 03-21-2009
uname -S newhostname

hi freinds recently i have change hostname node as using uname -s ******* but next time i saw the name using uname -n the name did t changed is that i have to reboot the system
# 2  
Old 03-21-2009
I think you need to use "uname -S newhostname", that is using an upper case S.

If this is a Solaris 10 machine then check /etc/inet/ipnodes (usually replaced by a link to /etc/inet/hosts on later versions of Soklais 10).
# 3  
Old 03-22-2009
hostname

no tony i gave uname -S ********* after cmd xcecution its shows only after putting this cmd uname -n but not in the #prmpt ie. sen***#
# 4  
Old 03-22-2009
Quote:
Originally Posted by senmak
no tony i gave uname -S ********* after cmd xcecution its shows only after putting this cmd uname -n but not in the #prmpt ie. sen***#
As an AIX admin you'd change hostname with
Code:
# hostname <whatever>

and uname with
Code:
# uname -S <whatever>

These are different things.

If you want to see the hostname in the shell prompt you'd probably assign hostname -s to a variable in .profile and use it to adapt PS1. Sample:
Code:
export NODE=`hostname -s`

export PS1='($?)$NODE:$PWD > '

You could do sth. similar with uname -s of course.
# 5  
Old 03-31-2009
If this is an AIX box, you want the hostname saved into your ODM. Use the "smitty hostname" to set it. Then it will survive the reboot.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

Difference between UNAME and WHO

Hi, What is the exact output tells me when i issued UNAME and WHO ? Regards, Nantha.Y (2 Replies)
Discussion started by: Nandy
2 Replies

2. Solaris

uname -a

bssmsrv223:/ 53 ] uname -a SunOS bssmsrv223 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-V245 bssmsrv223:/ 54 ] what does 118833-36 denotes in Generic_118833-36 (2 Replies)
Discussion started by: hiten.r.chauhan
2 Replies

3. UNIX for Dummies Questions & Answers

uname -a output

Can anyone please let me know the meaning of output of uname -a ? I am totally new to unix or linux and just thinking to start learning. When I run uname -a the output I get is - "Linux blx28ap01 2.6.18-238.12.1.el5 #1 SMP Sat May 7 20:18:50 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux" I want to... (7 Replies)
Discussion started by: csrohit
7 Replies

4. Fedora

uname too vague?

Hi all, I am ssh'ed into a cluster and want to install a package. However, I don't know which type to chose (CentOS, Fedora, OpenSuSE are some of the options). I ran called uname with various arguments but none are specific... $ uname -n resolute.research... $ uname -i x86_64 $ uname... (6 Replies)
Discussion started by: neurorad
6 Replies

5. UNIX for Advanced & Expert Users

tr command with uname -n

Using the command : echo $eup_terminal_code | tr -s 'mil vrn qcm' 'mci pql qcm' it works,but this translation changes depending on the system. I'd like to define the following variables ,one for each system : mil22h_from='mil vrn frl' mil22h_to='mci vci fci' ... (4 Replies)
Discussion started by: Pierluigi.sala
4 Replies

6. UNIX for Dummies Questions & Answers

Uname command

Hi, Can anyone let me know the -n option in uname command in unix? Gone through the man pages of uname, but unable to interpret. Thanks in advance. (1 Reply)
Discussion started by: venkatesht
1 Replies

7. Solaris

uname help

hi all, Operating System Name : Unix Sun Solaris Operating system release level : 5.10 Operating system version : Generic_137111-06 i know the release level that is kernel version Generic_137111-06 what is number... (6 Replies)
Discussion started by: coxmanchester
6 Replies

8. Linux

Uname

what is the difference between uname -m and uname -i what it actually means (2 Replies)
Discussion started by: Dileepsp
2 Replies

9. AIX

uname -S

hi , i have made a mistake :( on the production enviourment by change tha host name . after that i returned back the old name. but i think this will not afeect the system until reboot the machine. laso i tried to telnet the syetem by the host name not by the IP address and it works fine. ... (2 Replies)
Discussion started by: habuzahra
2 Replies
Login or Register to Ask a Question