NFS Client unable to access shared DIR's

I ve a client : <clientname> and a server: <servername>
Both of them running: HPUX B.11.31

SERVER outputs:
I ve shared a folder in <servername> called /test and the O/P for

# exportfs
-               /test   root=<clientname>,rw=<clientname>,ro   ""

# showmount -e
export list for <servername>:
/test   (everyone)

# ps -ef | grep rpc
root    35     0  0  Jan  5  ?         0:00 krpckd
daemon  1104     1  0  Jan  5  ?         0:00 /usr/sbin/rpc.statd
root  1027     1  0  Jan  5  ?         0:00 /usr/sbin/rpcbind
root  1110     1  0  Jan  5  ?         0:00 /usr/sbin/rpc.lockd
root  1579     1  0  Jan  5  ?         0:06 /opt/dce/sbin/rpcd
root  2182     1  0  Jan  5  ?         0:00 /usr/sbin/rpc.mountd
root 26623 17818  0 23:53:04 pts/ti    0:00 grep rpc

CLIENT outputs:

# ps -ef | grep rpc
 root    29     0  0  Jan  2  ?         0:00 krpckd
 root  1697     1  0  Jan  2  ?         0:12 /opt/dce/sbin/rpcd
 root 19904     1  0 22:44:55 ?         0:00 /usr/sbin/rpcbind
 root 19931     1  0 22:45:17 ?         0:00 /usr/sbin/rpc.lockd
daemon 19925     1  0 22:45:17 ?         0:00 /usr/sbin/rpc.statd
 root 21690 15214  0 23:54:11 pts/tc    0:00 grep rpc
 root 21194     1  0 23:34:01 ?         0:00 /usr/sbin/rpc.mountd

# showmount -e <servername>
export list for <servername>:
/test   (everyone)

# ll
lrwxrwxrwx   1 root       sys             32 Feb  1 23:14 test -> /net/<servername>/test

#cd test
sh: test:  not found.

NOTE:
I ve included both server and clients in each others /etc/hosts file and also in
/.rhosts file
I ve also verified that both client and server are able to ping each other and remsh commands from each other.

Please throw some light on why is the nfs link not working on <clientname>?

First mount your nfs share on client

On client side :

mount <servername>:/test /net/<servername>/test

Then the link will work, otherwise it points to nothing.

I did the following code execution on client:

#mount <servername>:/test /net/<servername>/test
mount: /net/<servername>/test: No such file or directory

Even though the /test dir exists on server !

If it's not mounted, it won't be visible yet. You need to mount the base of the NFS folder, not the folder you want inside it.

You need to distinguish between :

NFS SERVER with exported directory, in your case /test
NFS CLIENT on which you want to mount the exported /test from NFS SERVER

So lets make an example :

The hostname of your NFS SERVER is neptune
The hostname of your NFS CLIENT is saturn

You have exported the directory /test on neptune properly (as seen from your post)
Now on saturn the NFS CLIENT mount it :

mount neptune:/test /your/local/mountpoint
cd / ## this is not so wise.
ln -fs /your/local/mountpoint test

cd /test now to be on NFS filesystem exported from neptune

It's better to avoid symlinks directly under root (/) filesystem.

Hope that clears things out.

Hello peasant,
Your code works absolutely fine, Thanks for that.
But what i intended to do here was instead of mounting the drive using 'mount' command, creating a symbolic link to a remote DIR using /net/<servername>/<Anydir>.

For Ex:
In the Client,I wish to do

# ln -s /net/<servername>/<anydir>  locallink

So that the locallink file in my CLIENT should act as a symbolic link to <anydir> in SERVER.
Would be glad if you could help with that.

You have to mount it.
Links cannot be used to 'link' servers, just local filesystems/files.