how to find server name | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

how to find server name

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-04-2009
RahulJoshi's Avatar
RahulJoshi RahulJoshi is offline
Registered User
 
Join Date: Aug 2008
Last Activity: 13 September 2013, 10:47 AM EDT
Location: PUNE
Posts: 146
Thanks: 0
Thanked 1 Time in 1 Post
how to find server name

How to find server name , i need command .
Sponsored Links
    #2  
Old 08-04-2009
johnbach johnbach is offline
Registered User
 
Join Date: Jun 2009
Last Activity: 21 April 2011, 4:33 AM EDT
Posts: 61
Thanks: 3
Thanked 0 Times in 0 Posts

Code:
uname -n
uname --help

Sponsored Links
    #3  
Old 08-04-2009
sai21 sai21 is offline
Registered User
 
Join Date: Oct 2008
Last Activity: 8 October 2009, 8:14 AM EDT
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
hostname
    #4  
Old 08-04-2009
RahulJoshi's Avatar
RahulJoshi RahulJoshi is offline
Registered User
 
Join Date: Aug 2008
Last Activity: 13 September 2013, 10:47 AM EDT
Location: PUNE
Posts: 146
Thanks: 0
Thanked 1 Time in 1 Post
this does not solve purpose

uname -n ==it gives machine name not server name
and
host name == gives current host system

I WANT TO KNOW SERVER NAME
Sponsored Links
    #5  
Old 08-04-2009
panyam panyam is offline Forum Advisor  
Registered User
 
Join Date: Sep 2008
Last Activity: 24 July 2014, 3:48 AM EDT
Posts: 1,156
Thanks: 20
Thanked 104 Times in 99 Posts
What is the Difference between them ??
Sponsored Links
    #6  
Old 08-04-2009
methyl methyl is offline Forum Advisor  
Advisor
 
Join Date: Mar 2008
Last Activity: 18 April 2014, 5:13 AM EDT
Posts: 6,396
Thanks: 287
Thanked 672 Times in 642 Posts
Not enough information. Please state the Operating System of the computers involved and how you are connecting between them. Also please make it clear which is the client and which is the server.

If you know the IP address you can try looking up the name with "nslookup".
See:

Code:
man nslookup

Sponsored Links
    #7  
Old 08-04-2009
ryandegreat25 ryandegreat25 is offline
Registered User
 
Join Date: Jul 2009
Last Activity: 27 November 2013, 3:15 AM EST
Posts: 286
Thanks: 16
Thanked 3 Times in 3 Posts
maybe you mean server model..
try (solaris)

Code:
prtdiag

Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to find a non-keon server trichyselva UNIX for Advanced & Expert Users 0 05-29-2008 05:04 AM
Find server details lalelle Solaris 1 02-04-2008 12:27 PM
Need to find whether my unix server is a stand alone server or its in a cluster Naveen Kumar V Solaris 1 09-06-2007 06:35 AM
How to find NFS server vigsgb UNIX for Dummies Questions & Answers 1 07-22-2005 04:44 AM
How to find i.p address of our server vpotluri UNIX for Dummies Questions & Answers 4 09-23-2002 02:09 PM



All times are GMT -4. The time now is 07:49 AM.