CLI Console

CLI Console

CLI Console is the command line interface for managing DataSpiderServer. CLI Console provides the following functions. CLI Console commands includes commands which are only executable by the administrator(administrator commands) and commands executable by all users(user commands).
Also, options of certain user commands are only executable by the administrator (administrator option).

Use "help" command to get the list of CLI Console commands.
Also, use "man" command for detailed information about the commands.
In the display of "help" and "man" command, administrator commands and administrator options are distinguished from user commands by "*" mark.

To start CLI Console

CLI Console includes Server CLI Console and Client CLI Console.Start each as follows.

Server CLI Console

  1. Select $DATASPIDER_HOME/server/bin/CLI.exe(CLI in UNIX/Linux version).
  2. CLI Console starts and automatically logs in as root user.

Client CLI Console

  1. Select $DATASPIDER_HOME//client/bin/CLI.exe(CLI in UNIX/Linux version).
  2. CLI Console starts, type the following information and press Enter key to log in.

    Item name Required / Optional Description Remarks
    HOST Optional Specifies host name/IP address of the machine that DataSpiderServer operates on.
    PORT Optional Specifies the port number of DataSpiderServer.
    • If omitted, the port number set in boot.properties is set.
    USER Required Specifies the user name.  
    PASSWD Required Specifies the password.  

CLI Command List

Commands available in CLI Console server are listed below. Administrator commands and administrator options are distinguished from user commands by "*" mark.

Command name Description Option
adaptertypes Shows a list of available adapters  
cd Changes the current working directory  
chgrp Changes the group  
chmod Changes access authority mode  
chown(*) Changes the owner  
cp Copies files
  • -r, --recursive
  • -f, --force
deploy Registers projects to the server
  • -o, --owner
  • -s, --shared
exit Ends CLI Console  
exp(*) Exports Server Information
  • -G
  • -u
  • -d
  • -g
  • -e
  • -t
  • -c
  • -p
  • -a
  • -m
  • -s
  • -l
  • --group
  • --user
  • --service
  • --gr
  • --env
  • --trigger
  • --calendar
  • --project
  • --applog
  • --mount
  • --gs
  • --gcl
  • --triggerstatus
  • --project-latest-version
gc Executes garbage collection  
get File Retrieval
  • -f, --force
  • -r, --recursive
groupadd(*) Adds groups  
groupdel(*) Deletes groups  
groups Shows a list of groups  
grp Global resource management and status view
  • -a, --all(*)
  • -c, --clear(*)
  • -t, --type
help Shows Help  
id Shows information about users  
imp(*) Imports server information
  • -m, --merge
  • -e, --update-env
  • --triggerstatus
kill Requests to stop the process
  • -t, --timeout
lcd Changes working directory on the local file system  
license Shows license information  
lls Show the list of local file system  
lmkdir Creates a directory on the local file system
  • -p, --parents
locale Shows locale
  • -c, --client
lock Locks files  
lpage Shows the contents of files in the local file system
  • -x, --xml
  • -e, --encoding
lpwd Shows the working directory  
ls Shows file list
  • -l
  • -i, --inode
  • -c
  • -a, --all
man Shows manuals  
memstat Shows memory information
  • -k, --kilo
  • -m, --mega
mkdir Creates directory
  • -p, --CreateParent
mount Shows mount information and mounts the local file system with DataSpiderServer.
  • -l
  • -m, --move
mv Moves files
  • -f, --force
myprojects Shows the list of projects that the current log-in user can refer to.  
myservices Shows the list of services (formerly: projectnames)  
page Shows files on DataSpiderServer
  • -x, --xml
  • -e, --encoding
passwd Changes the password  
ping Checks whether the server has started or not  
printenv Shows the list of environment variables
  • -k, --keyword
processcount Views and sets the number of processes and scripts in progress
  • -m, --max
  • -s, --set
prochmod Modifies the permissions of a shared project
  • -u, --user
  • -g, --group
prodl Download the project to local system
  • -s, --shared
  • -u, --user(*)
  • -a, --all
  • -v, --version
  • -r, --recursive
prodel Deletes the project.
  • -s, --shared
  • -u, --user(*)
  • -f, --force
proinfo Shows the list of project information.
  • -s, --shared
  • -u, --user(*)
  • -v, --version
  • -l, --script-list
proshare Shares a project
  • -u, --user(*)
  • -n, --new-name
prospecgen Generates project specifications
  • -s, --shared
  • -u, --user(*)
  • -p, --output-psp-flow
  • -m, --output-non-mapped-node
  • -t, --output-statistics
  • -f, --force
proul Uploads the project from local system
  • -e, --exist_project
  • -s, --shared
  • -u, --user(*)
prounshare Unshares a shared project
  • -n, --new-name
ps Shows scripts/processes
  • -a, --all(*)
  • -u, --user(*)
  • -t, --time
put Puts files on DataSpiderServer
  • -f, --force
  • -r, --recursive
pwd Shows the working directory on DataSpiderServer  
reconnect Reconnects to DataSpiderServer  
repository Repository DB management
  • -t, --test(*)
  • -c, --connection
  • -r, --reconnection
  • --cleanup(*)
run Executes scripts
  • -w, --wait
  • -t, --type
  • --enable-type-switch
rm Deletes files/directories
  • -r, --recursive
  • -f, --force
scriptnames Shows the list of script names  
scriptspecgen Generates script specifications
  • -s, --shared
  • -u, --user(*)
  • -p, --output-psp-flow
  • -m, --output-non-mapped-node
  • -t, --output-statistics
  • -f, --force
session(*) Manages session information and shows status
  • -l, --detail
  • -k, --kill
setenv(*) Adds or updates environment variables
  • -f, --force
shutdown(*) Stops and restarts DataSpiderServer
  • -r, --reboot
sleep Stops for a certain period of time  
su Changes to another user
  • -
svcchgrp Changes the owner group of a service  
svcchmod Changes the access permission mode of a service  
svcchown Changes the owner of a service  
threadstat Gets thread information
  • -v, --verbose
touch Updates file/ directory modified time  
trigger Controls triggers
  • -e, --enable
  • -d, --disable
  • --all-enable
  • --all-disable
umount Detaches mount  
uname Shows system information  
undeploy Deletes registered project(services) from server.  
unlock Releases lock  
useradd(*) Adds users  
userdel(*) Deletes users  
usergroup(*) Registers to the group/removes from the group
  • -a, --add
  • -d, --delete
usermod(*) Updates user information  
users Shows the list of users registered on DataSpiderServer
  • -a, --all
versioninfo Gets the version of the modules installed on DataSpiderServer .  
who Shows the client application identifier
  • -l, --long
whoami Shows log-in name  

Command information about wildcard

Wildcard can be specified in certain commands using "*"( asterisk).
[Supported Commands]
  1. ls
    Wildcard can be used in <path> of "ls [ -l ] [ -i ] [ -c ] [ <path> ... ]".
    [Usage]
    "Ls *","ls test *", etc.

  2. cd
    Wildcard can be used in <directory> of "cd [ <directory> ]".Arguments are passed to whatever matches first.
    [Usage]
    "Cd *", "cd test *", etc.

  3. touch
    Wildcard can be used in <path> of "touch <path>".The modified date/time of all paths that match will be updated.
    [Usage]
    "Touch *", "touch **/*" etc.

  4. rm
    Wildcard can be used in <path> of "rm [ -f ] [ -r ] <path>".All paths that match will be removed.
    [Usage]
    "Rm *. txt" , "rm **/*. txt", etc.

  5. chmod
    Wildcard can be used in <path> of "chmod <mode> <path>".The access mode of all paths that match will be changed.
    [Usage]
    "Chmod 777 *" , "chmod 777 test *", etc.

  6. chown
    Wildcard can be used in <path> of "chown <user> <path>".The owner of all paths that match will be changed.
    [Usage]
    "Chown user *" , "chown user test *", etc.

  7. chgrp
    Wildcard can be used in <path> of "chgrp <group> <path>".The group of all paths that match will be changed.
    [Usage]
    "Chgrp group *" , "chgrp group test *", etc.

  8. lock
    Wildcard can be used in <file> of "lock <file>".All files that match will be locked.
    [Usage]
    "Lock *" , "lock test *", etc.

  9. uncock
    Wildcard can be used in <file> of "unlock <file>".All files that match will be unlocked.
    [Usage]
    "Unlock *" , "unlock test *", etc.

  10. cp
    Wildcard can be used in <source_path> of "cp [ -r ] [ -f ] <source_path> <dest_path>".All paths that match will be selected and copied.
    [Usage]
    "cp *.txt tmp" , "cp **/* ../backup", etc.

  11. mv
    Wildcard can be used in <source_path> of "mv [ -f ] <source_path> <dest_path>".All paths that match will be selected and moved.
    [Usage]
    "mv *.txt tmp" , "mv **/* ../backup", etc.

CLI Batch

Commands are typically executed from CLI Console, yet they can also be executed from batch programs.
CLI.exe of Client CLI Console can not execute batch program.

Specification Limits

Main exceptions

None.

Notes