Table of ContentsView in Frames

Loading netgroups into SVMs

One of the methods you can use to match clients in export policy rules is by using hosts listed in netgroups. You can load netgroups from a uniform resource identifier (URI) into Storage Virtual Machines (SVMs) as an alternative to using netgroups stored in external name servers (vserver services name-service netgroup load).


  1. Load netgroups into SVMs from an FTP or HTTP URI: vserver services name-service netgroup load -vserver vserver_name -source {ftp|http}://uri

    -vserver vserver_name specifies the SVM name.

    -source {ftp|http}://uri specifies the URI to load from.

    The file must use the same proper netgroup text file format that is used to populate NIS. See the man page for the command for more information about formatting. Data ONTAP checks the netgroup text file format before loading it. If it contains errors, the console displays warning messages to indicate what corrections you have to make to the file. Neglecting to do so might result in client access issues.

    The maximum supported file size is 5 MB.

    The maximum supported level for nesting netgroups is 1000.

    You must only use primary DNS host names when defining host names in the netgroup file. To avoid export access issues, do not define host names using DNS CNAME or round robin records.

    The domain portion of triples in the netgroup file should be kept empty because Data ONTAP does not support them.

    If you need to update the netgroup, you can edit the file and load the updated netgroup file into the SVM.


The following command loads netgroup definitions into the SVM named vs1 from the HTTP URL http://intranet/downloads/corp-netgroup:

vs1::> vserver services name-service netgroup load -vserver vs1
-source http://intranet/downloads/corp-netgroup