hostname not displayed


 
Thread Tools Search this Thread
Operating Systems Solaris hostname not displayed
# 1  
Old 06-14-2004
Question hostname not displayed

Hi,

I posted a problem earlier on on how to change IP addresses on an E450. I was able to work around this and wanna say thanks to all who assisted. But now on my server, I get this error, trying to configure hosts..RPC timed out. Also, when I type on the command line, hostname, nothing is displayed for me to see. Please kindly assit me. That error message comes up repetedly when the server boots up and I need to halt it before and other application service needs to run.....
# 2  
Old 06-14-2004
What does it say in your /etc/hostname.hme0 file ??

It should be your hostname, it's an obvious start but one that could be overlooked...
# 3  
Old 06-14-2004
the file /etc/nodename should contain your hostname. thats the important one..

good luck!
/peter
# 4  
Old 06-14-2004
As root you can set the hostname with the hostname command.

/usr/bin/hostname yourhostname

See the man page on hostname for more info.

From Sunsolve:
Quote:
The best way of altering a host's name, IP address, domain, timezone,
etc., has always been /usr/sbin/sys-unconfig.

This command asks for a new system's configuration consists of
hostname, Network Information Service (NIS) domain name, timezone,
IP address, IP subnet mask, and root password. This command makes
sure there are no applications running that get the configuration
changed while they are running (by shutting down the OS), and makes
sure the configuration details are changed in all the right places.
Please read man page of sys-unconfig(1M) before proceeding.

Please also check that if there is a /etc/inet/ipnodes file exists and
if there is IPv4 ip address entry in that file for new hostname, then
that entry should be same as the one in /etc/hosts file.

Another method, which is not recommended is, changing hostname manually
in files:

/etc/nodename
/etc/inet/hosts
/etc/hostname.le0 or hostname.hme0 or an equivalent file
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts
/etc/inet/ipnodes (if file exists and if hostname entry exists)

After modifying the above files, reboot the system.

Above two methods can change hostname of system. But for other
operations depending on configuration, you may also have to change the
information in /etc/inet/ipnodes, DNS files, NIS server entries,
application files etc. having hostnames.
Side note: I searched sunsolve for hostname and got how to change the hostname on a Microsoft OS instead of Solaris - what is the world coming to and where can I complain!
# 5  
Old 06-14-2004
The hostname <NAME> command will not survive a reboot.. edit the nodename file..

/Peter
# 6  
Old 06-14-2004
Thanks all. I have discopvered the nodename and it does give me the hostname. Now the error that scrolls up on the server whenever I boot up the server tells me "reconfiguring hosts....RCP timed out.." what do I do with this problem? It repeats itself ad I need to halt it.
# 7  
Old 06-14-2004
like RTM showed from sunsolve...The best way is to use the command sys-unconfig .
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Hostname -f hostname: Unknown host

deleted (0 Replies)
Discussion started by: hce
0 Replies

2. SuSE

No IP address displayed in who command

when i open a terminal session of my SUSE server using puTTy and type "who am i" then it displays my local pc ip address. root@LinuxSUSE1> who am i root pts/8 2012-03-28 16:02 (192.168.134.213) But when i open a terminal session of my SUSE server using Xmanager's Xstart and type... (9 Replies)
Discussion started by: Arun_Linux
9 Replies

3. Emergency UNIX and Linux Support

HP UX - ILO Console hostname different than Machine Hostname...

Hi All, So we added a new HP-UX 11.31 machine. Copied OS via Ignite-UX (DVD)over from this machine called machine_a. It was supposed to be named machine_c. And it is when you log in...however when I'm in the ILO console before logging in, it says: It should say: What gives? And how do... (4 Replies)
Discussion started by: zixzix01
4 Replies

4. Shell Programming and Scripting

password getting displayed using sudo

Hi While doing the following command password is gettin dispalyed : ssh <host> "sudo command ; exit" .... while i type my password for 2nd its gettin displayed ... i tried stty -echo and stty echo ... still i am havin problem..:confused: (1 Reply)
Discussion started by: ningy
1 Replies

5. UNIX for Dummies Questions & Answers

Date to be displayed in two digits

I want the date to be displayed in two digits. I have written a script to calculate yesterday's date. I'm getting the yesterday's date as 2009085. Desired output: 20090805 Find the script below: #!/bin/ksh ### Script to get Yesterday Date ############# Y=`date +'%Y'`... (6 Replies)
Discussion started by: venkatesht
6 Replies

6. UNIX for Advanced & Expert Users

why the script name not displayed and not sh invoked?

Say there is a shell script named test.sh. I intentionally omit the #! line in test.sh for testing perpose. I did the following : $ echo $0 -ksh ---> current shell $ echo $$ 12919 ---> PID of the current shell... (4 Replies)
Discussion started by: hongwei
4 Replies

7. Shell Programming and Scripting

Data displayed in two lines

Hi, I am a newbie to both Linux and this forum. I was trying to pull out the data from a database but it is not showing up in the multiple lines, with my limited knowledge i linux u tried to format this but wasn't exactly getting what i wanted. The screenshot below shows my problem. ... (2 Replies)
Discussion started by: Ninjaa
2 Replies

8. Shell Programming and Scripting

Password is getting displayed

My shell script which runs on solaris has an execution in it. Contents of shell script BEGIN : Executable_filename username/password@DBinstance parameter2 parameter3 Contents of shell script END : When i launch the shell script, it connects to database to gets few details.. In the... (3 Replies)
Discussion started by: shafi2all
3 Replies

9. HP-UX

swlist is not displayed in HP-UX

Hi swlist command is not displayed in HP-UX ..it displays swlist: Command not found. uname -a HP-UX inccishh B.11.11 U 9000/800 4046719263 unlimited-user license :b: Best Regards vasanthan (4 Replies)
Discussion started by: vasanthan
4 Replies

10. UNIX for Dummies Questions & Answers

Solaris - unknown hostname - how can I change hostname?

Hello, I am new to Solaris. I am using stand alone Solaris 10.0 for test/study purpose and connecting to internet via an ADSL modem which has DHCP server. My Solaris is working on VMWare within winXP. My WinXP and Solaris connects to internet by the same ADSL modem via its DHCP at the same... (1 Reply)
Discussion started by: XNOR
1 Replies
Login or Register to Ask a Question