Usage  smgroup.(sh/bat) <options> <commands> <command options>
  
Options for SEPDB connection  

  -?,  --help                # this help.
  -h , --host <host>         # specifies the host name.
			       if missing will use localhost;
  -p , --port <port>         # specifies the port number.
	                       if missing will use 10288;
  -d , --dbname <database>   # specifies SEP database name for your 
                               connection.
			       database name is required;
  -u , --user <username>     # specifies the username for SEPDB connection.
			       if missing will use guest;
  -P , --passwd <password>   # specifies the password for SEPDB connection.
		               if missing will use guest;
  -s , --security <security> # specifies the security type for 
                               SEPDB connection.
			       The secutity type must be   jsse or ptls.
			       If missing the connection is opened without 
			       security;

Commands 
	 
  -add                       # create new group in specified SEP database.
  Options for 'add' 
    <groupname>              # group name that will be added to SEPDB.
			       groupname is required;
					 
  -mod                       # modify a group in specified SEP database.
  Options for 'mod' 
    <groupname>              # the name of the group will be changed from 
                               'groupname' to 'name'.
			       group name is required;
    --name <newgroupname>    # new group name. 
			       newgroupname is required;
										 
  -del                       # delete a group from specified SEP database.
  Options for 'del' 
    <groupname>              # the group name that will be removed.
			       groupname is required;
	                        You can't remove the group until have users.
																 
  -list                      # list existing groups in SEP DB, or user groups 
                               or group users.
  Options for 'list' 
    [<groupname>]            # list users for specified group;
    [--uname <username>]     # list groups for specified user;
                                 If parameter missing, list all groups 
			       from SEPDB.

Examples 
  The following examples for SEP database connection, using 'localhost' , 
port '10288', username 'root' and the <root_password>.
 
  smgroup.sh -add -u root -P rootPWD -d XMLDB crow
    # create group with specified group name 'crow'.

  smgroup.sh -mod -u root -P rootPWD -d XMLDB --name csabi crow 
    # change group name 'crow' to 'csabi'.

  smgroup.sh -del -u root -P rootPWD -d XMLDB crow 
    # delete group 'crow' form specified XMLDB SEP database.

  smgroup.bat -list -d XMLDB
    # list all group from XMLDB SEP database.
    
  smgroup.bat -list -d XMLDB --uname crow
    # list groups of user 'crow'.