Finding IP address of the system hosting an NAS


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory Finding IP address of the system hosting an NAS
# 1  
Old 04-09-2009
Finding IP address of the system hosting an NAS

Hi,

On Solaris 5.8 when I run the command df -F nfs one of the outputs I am getting is:
Code:
pun-filer-01:/vol/Unix/punehome/vineetd

out of which "pun-filer-01" is hostname of the machine on which the NAS device is hosted and /vol/Unix/punehome/vineetd is the mount point.

I am interested in getting the IP address of this machine instead of hostname. Is there any command which can provide me with this information from the Solaris 5.8 machine? I will resolve this Hostname as a last resort only. If there is a command to get the IP then it will be really better.

Please help.

Thanks,

Vineet

Last edited by Yogesh Sawant; 04-09-2009 at 07:18 AM.. Reason: added code tags
# 2  
Old 04-10-2009
nslookup or dig command

You can write script where you give hostname (from output of df ) to any of nslookup or dig and then parse output again and replace resolved IP-Address into original output of df
# 3  
Old 04-10-2009
look up the Man page for the "showmount" command. One of the options should do what you want.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Backup for NAS huge File system

Gents, I have NAS File System mounted in Solaris as \Sysapp with size 8 TB the problem once the backup stared it is impacting the performance of the OS. Do you have any idea how to can we backup this FS with fast scenario without impacting the OS. Backup type : Netbackup (3 Replies)
Discussion started by: AbuAliiiiiiiiii
3 Replies

2. Red Hat

Related to "NAS" some file system (mounted volumes) were not writable

Dear friends, I have been facing an issue with one of my red hat unix machine, suddenly lost to switch sudo users. My all colleagues lost to switch to access sudo users. Then, we have realized its related to NAS issue which does not allowing to write the file. because of this we got so many... (1 Reply)
Discussion started by: Chand
1 Replies

3. UNIX for Dummies Questions & Answers

MilesWeb.com shared hosting or unlimited hosting plans?

I want to host a website in India, after all my research I have found MilesWeb.com, I am planning to go for their shared plan http://www.milesweb.com/cpanel-hosting.php I have test their contact options and response time, they are really available 24/7. I have checked few other providers, they... (1 Reply)
Discussion started by: Guruguy
1 Replies

4. Shell Programming and Scripting

Finding if my IP address belongs in a Class C group

I need help with a tcl code. I have a variable "myIP" which reads IP address from socket. How do I use regex to find out if it belongs to a group for e.g., 50.65.75.240/28 or 50.65.75.128/25 etc. (2 Replies)
Discussion started by: ampak
2 Replies

5. AIX

System email address change?

With a recent move to a new data center, the domain for our system emails have changed. We used automated emails with our daily process for informational and report sending. I edited the /etc/mail/sendmail.cf file where it had an entry pointing to the old mail server so I change this to our new... (3 Replies)
Discussion started by: NycUnxer
3 Replies

6. Shell Programming and Scripting

Finding an email address

Hi all, I have a file with X number of lines. Somewhere within each line will be an email address following the format: <telephone_number>@domain.net Each line is not a set length and there are no delimiters to work with. I want to write a script that extracts the telephone number... (3 Replies)
Discussion started by: mandriver
3 Replies

7. UNIX for Dummies Questions & Answers

Finding an IP address

Using either % nslookup www.computerhope.com or % host www.computerhope.com Is there a way to single out only the IP address and not all the other information that these commands return by using the options or something of this nature. For Example I would like to do this Echo... (1 Reply)
Discussion started by: slim1509
1 Replies

8. UNIX for Dummies Questions & Answers

Finding IP address of the workstation

Hi, I have the following requirement. I want to configure in the .profile file of my user id in such a way that it loads a particular set of command when i log in from a particular machine and another set when i log into the server from a different machine. What is the command to get the... (1 Reply)
Discussion started by: Vijay Srinivasa
1 Replies

9. UNIX for Dummies Questions & Answers

Finding LocalHost IP Address

I am writing a program that need to be run on several machines. I am running UNIX and wanted to know if there is a command similar to ipconfig (in DOS) that would return the IP Address of the machine that I am working on. (Not just the loopback address of 127.0.0.1). (1 Reply)
Discussion started by: hazard0007
1 Replies

10. IP Networking

Finding an x25 address for a server

I am trying to find the x25 address of a server. Presumably this is stored in some sort of config file - and while I can find the IP and OSI addresses - I cannot work out where to find the x25 address.....any ideas? (Unix on Solaris) (1 Reply)
Discussion started by: peter.herlihy
1 Replies
Login or Register to Ask a Question