Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated using 4PSA automated script

Excerpt

This script allows you to create a new client account, update the client information or remove a client account.

Usage

Shell

/usr/local/dnsmanager/bin/clients.sh <command> <login_name> <options>

Where <command> is one of:

Argument

Parameter

Description

-c, --create

login_name

Creates a new client account

-u, --update

login_name

Updates client account

-r, --remove

login_name

Removes client account

--info or -i

login_name

retrieves client information

--on

login_name

enables client account

--off

login_name

disables client account

and <options> are:

Argument

Parameter

Description

--status or -s

<true|false>

turns client on/off (default: true)

--company or -o

<string>

company name

--name or -n

<string>

contact name (required for creation)

--login or -l

<login_name>

control panel login name (may be used only with update command)

--passwd or -p

<passwd>

control panel password (required for creation)

--phone or -ph

<number>

phone number

--fax or -f

<number>

fax

--email or -e

<string>

e-mail address (required for creation)

--addr or -a

<string>

street

--city or -t

<string>

city

--pcode or -d

<string>

postal/zip code

--country or -y

<string>

country

--state or -se

<string>

US state

Examples

In these examples, you are logged in as root and you call the scripts by their directory.

Add New Client

Shell
/usr/local/dnsmanager/bin/client.sh --create newclient --company "Client Company" --name "Client Name" --passwd "123qwe" --phone "021.21.223.23" --fax "021.21.223.23" \
--email "newclient@example.com" --addr "This is the client address" --city "Some City" --pcode "111111" --country "Fr"

Update Client Information

Shell
/usr/local/dnsmanager/bin/client.sh
 --create newclient --company "Client Company" --name "Client Name" --passwd "123qwe" --phone "021.21.223.23" --fax "021.21.223.23" \
--email "newclient@example.com" --addr "This is the client address" --city "Some City" --pcode "111111" --country "Fr"

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.