showmount how to find a nfs server?
poma
pomidorabelisima at gmail.com
Mon May 6 10:57:36 UTC 2013
On 06.05.2013 10:13, Frank Murphy wrote:
> How can "showmount -e" be used to find nfs-server
> Name and ip unknown as yet.
>
> I do know them, but as above q.
> man showmount hasn't helped in this
>
> nagios(plugin) would probably find this stuff.
> But, want to keep it a close to default
> Xfce install as possible.
This example certainly isn't for a "Name and ip unknown as yet." ;)
But once configured server - Gut, gut, super gut, alles super gut. :)
e.g. Two[1][2] NFS shares via Avahi publish/discovery schema.
NFS Server:
[1] /etc/avahi/services/nfs-share1.service:
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<!-- This is a custom avahi nfs service file -->
<service-group>
<name replace-wildcards="yes">NFS share1 on %h</name>
<service>
<type>_nfs._tcp</type>
<port>2049</port>
<txt-record>path=/share1-dir</txt-record>
</service>
</service-group>
[2] /etc/avahi/services/nfs-share2.service:
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<!-- This is a custom avahi nfs service file -->
<service-group>
<name replace-wildcards="yes">NFS share2 on %h</name>
<service>
<type>_nfs._tcp</type>
<port>2049</port>
<txt-record>path=/share2-dir</txt-record>
</service>
</service-group>
systemctl status avahi-daemon.service
man 5 avahi.service
NFS Client:
avahi-browse -altv
avahi-discover
man 1 avahi-browse
man 1 avahi-discover
poma
More information about the users
mailing list