Extend Service Output for NFS Mounts (AIX + Linux)

Hi @rawiriblundell
yes, but on our Redhat 7 System, the command should look a little bit different:

This is an example nfs-share:
nfs-hostname.foo.bar:/images on /images type nfs4 (rw,relatime,vers=4.1,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=100.100.100.100,local_lock=none,addr=100.100.100.100)

and the command:

$ mount | awk '$5 ~ "nfs" {printf "%s on %s\n",$1,$3}'
nfs-hostname.foo.bar:/images on /images

I’ve replaced $4 with $5 and used a ~ for regular expression matching.

I’ve already checked the command on an AIX System. Example nfs-share:
nfs-hostname /samba/service /nfsmnt nfs3 Sep 01 07:03 bg,soft,rw,intr,sec=sys

command:

# mount | awk '$4 ~ "nfs" {printf "%s:%s on %s\n",$1,$2,$3}'
nfs-hostname:/samba/service on /nfsmnt

It would be great, if this additional information would always be contained in the NFS Service Summary, but at least when the Service has a Problem.

Regards
Christian

1 Like