NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

how to identify hosting filer name based on vfiler name

vemula258
5,851 Views

Hi All,

I'm trying to look for a CLI command where i can identify the hosting filer name if I know the VFiler name

5 REPLIES 5

ekashpureff
5,851 Views

I'm not sure I understand the context of your question.

When logged on to the vfiler itself you get the hosting filer name as part of your prompt:

sim1vf1@sim1>

From a remote host ?

Use rsh to 'source'  two line script on the vfiler so you see the prompt ?

I hope this response has been helpful to you.

At your service,

Eugene Kashpureff
NetAppU Instructor and Independent Consultant
(P.S. I appreciate points for helpful or correct answers.)

vemula258
5,851 Views

Hi Eugene Kashpureff,

Firstly I want to thank you for replying to my question.

But my question is in our environment we can only do rsh to the vfiler and I was not able to find the physical filer through rsh.

Can you kindly help me a way out identifying the physical filer name based on the vfiler.

ekashpureff
5,851 Views

Create a simple script to place in /etc of the vfiler. Call it  /etc/whichfiler

Script could read:

hostname

hostname

Then, from your admin host:

rsh vfiler 'source /etc/whichfiler'

the command prompt should be part of the output, which you can then parse to get the hosting filer name.

I hope this response has been helpful to you.

At your service,

Eugene Kashpureff
NetAppU Instructor and Independent Consultant
(P.S. I appreciate points for helpful or correct answers.)

ekashpureff
5,851 Views

Hmmm, source doesn't give you prompt.

Interesting problem!

Playing with this on my simulator now ...

- Eugene

enrjfitz1
5,851 Views

Im not sure if this is even possible.

By having a vFiler you are securely seperating out your storage resources; if you were able to identify the physical filer details from the vFiler it would be a serious security concern.

Public