Lat-domains

From SME Server
Jump to: navigation, search

lat-domains

The lazy administrator's tool to manage domainnames

DESCRIPTION

      Creates or deletes domainnames on Mitel's SME servers.  This tool is
      functionally equivalent to the 'virtual domains' option in the server-
      manager, but can be run from the command line or called from an other
      script.  It allows you, for example, to create a large number of domain
      names in a batch process, or delete domain names on a remote machine
      via an ssh console.
      See /usr/doc/lazy-admin-tools/example.domains for the format of the
      input file.

Smecontribs repository for SME Server

yum install --enablerepo=smecontribs smeserver-lazy_admin_tools smeserver-userpanel smeserver-mailsorting
signal-event post-upgrade; signal-event reboot

SYNOPSIS

      lat-domains -a -c "domain | description | i-bay"
      lat-domains -a -i /path/to/domains.list
      lat-domains -d [-f] -c "domain"
      lat-domains -d [-f] -i /path/to/domains.list

OPTIONS

      The following options are supported:
      -a, --add
          Add a domain name to the server
      -c ""Arguments"", --command-line=""Arguments""
          Take arguments from the command line.  See the 'Arguments' section
          below for the various arguments that are accepted.
      -d, --delete
          Delete a domain name from the server. Wildcards (* and ?) are
          accepted.
      -f, --force
          Don't prompt before deleting.
      -h, --help
          Extended help for this tool
      -i FILE, --input-file=FILE
          Use the information from FILE to create or delete the domain
          name(s).  See /usr/doc/lazy-admin-tools for an example of an input
          file.
      Arguments:
         domain*     : Must contain one or more letters, numbers,
                       periods and minus signs. Wildcards (* and ?)
                       can only be used to delete domainnames.
         desription  : Free text description of the domain.
         i-bay       : Location where the content for the website
                       can be found. Must be a valid ibay-name.
                       Otherwise the primary website of the server is
                       assumed.
         * mandatory field

EXAMPLES

lat-domains -a -c "hogwarts.net | School of witchcraft | hogwarts"
      Creates the domain name  'hogwarts.net' and links it to i-bay 'hog-warts'.
lat-domains -a -c "quidditch.net"
      Creates the domain name  'quidditch.net' and links it to the primary
      website.
lat-domains -a -i /root/domains.list
      Creates the domain names defined in /root/domains.list.  Refer to
      /usr/doc/lazy-admin-tools/example.domains for an example of an input
      file.
lat-domains -d -f -c "*.net"
      Deletes all '.net' domain names without prompting (-f).

Bugs

Please raise bugs under the SME-Contribs section in bugzilla and select the e-smith-lazy_admin_tools component or use this link .