CYPHESIS-TOOLS(6) - man page online | games
17 April 2014
CYPHESIS-TOOLS(6) cyphesis CYPHESIS-TOOLS(6)
NAMEcyconfig, cyconvertrules, cydumprules, cyloadrules, cypasswd, cypython, cydb - cyphesis tools
SYNOPSIS/usr/bin/cyaddrules [ --section:option=value... ] [ rulesetname atlas-xml-file ] /usr/bin/cyconfig [ --section:option=value... ] /usr/bin/cyconvertrules rule_file /usr/bin/cydumprules /usr/bin/cyloadrules [ --section:option=value... ] [ rulesetname atlas-xml-file ] /usr/bin/cypasswd [ -a -s -d account ] /usr/bin/cyexport filepath /usr/bin/cyimport filepath /usr/bin/cypython [ --section:option=value... ] /usr/bin/cydb [ --section:option=value... ] dataset action
DESCRIPTIONThe cyphesis tools manage the data and configuration files used by cyphesis. The cyaddrules tool uploads Atlas XML rules files into the a running server. If rules already exist in the server, then the default attributes are updated, and if the rule has a script associated with it, then the script is reloaded from file. cyaddrules can either upload the file given on the command line, or if none is specified it will upload the rule file for the ruleset specified in the server config, and any rule files it depends on. cyaddrules is typically used to add additional rules during rule development without hav‐ ing to restart the server. Rules can be loaded directly into a running server using cyad‐ drules. The cyconfig program provides an easy scriptable way to make permanent changes to the server config from the command line. It works by writing new config options to .cyphe‐ sis.vconf in the users home directory, which is read by the server at startup, and over‐ rides the contents of the main config file. For a description of the various options that the server takes, please see cyphesis(6). The cyconvertrules program converts Atlas XML rules files from an older historic format into the format used by cyphesis since version 0.3.1. The cydumprules program dumps rules from the database table used by the server into a set of Atlas XML rules files. Note that this does not produce a set of files containing the same rules as those that were loaded in using cyloadrules because some of the rules in the rulesets that were not top level may have been overloaded, and do not exist in the data‐ base table. Typically this command will be used to get an updated copy of the top level ruleset from the server database, and the rest of the files will be ignored. The cyloadrules tool loads Atlas XML rules files into the database table used by the server. The rules table is read by the server at startup, so a server restart is typically required after loading rules. cyloadrules can either load the file given on the command line, or if none is specified it will load the rule file for the ruleset specified in the server config, and any rule files it depends on. Rules can be loaded directly into a run‐ ning server using cyaddrules. The cypasswd tool is used to administrate the accounts table in the server database. The cyexport tool exports entities (and optionally rules) from a running server into a file. The file generated can be imported into a server through the tool cyimport. The cyimport tool imports entities and rules from a file, previously exported through the cyexport tool, into a running server. The cypython tool allows you to execute Python code in a running server. This command must be run on the same machine as the server (it uses domain sockets for communication with the server). When run the user is presented with an interactive console into which Python code can be entered. Commands are sent to the server by pressing enter. The cydb tool is used to perform maintanence on the server database. Use only when the server is offline. The first argument specified which dataset to work with, and the sec‐ ond argument specifies the action for that data set. The following datasets are sup‐ ported: rules Purge and list rules. user Purge, list, delete or modify user entries. user Purge the world of all entities.
OPTIONSThe cypasswd can either add a new account, set the password of an existing account, or remove an account from the database. When no arguments are given, it prompts for a new admin password for cyphesis. When run with the -a option, the command prompts for a pass‐ word to be entered and an account with the username given by account, and with the pass‐ word supplied at the prompt is created. When run with the -s option, the command prompts for a password, and the existing account with username given by account has its password changed to the new one entered. When run with the -d option, the account with username given by account is removed from the database. Whenever the cypasswd prompts for a password, a second prompt is displayed asking for con‐ firmation of the password. If the two password entered do not match, the operation is aborted, and no changes are made to the database. The cyexport by default only exports entities, but can also export rules through the option --export:rules=1. By default no transient entities are exported. This can be changed by the option --export:transients=1
AUTHORWritten by Alistair Riddoch and Erik Ogenvik.
REPORTING BUGSReport bugs to <@worldforge.org>.
COPYRIGHTCopyright 2004 Alistair Riddoch. Copyright 2013 Erik Ogenvik.
17 April 2014 CYPHESIS-TOOLS(6)
SEE ALSOcyphesis(6), cyclient(6), cycmd(6)
|This manual||Reference||Other manuals|
|cyphesis-tools(6)||referred by||cyclient(6) | cycmd(6) | cyphesis(6)|
|refer to||cyclient(6) | cycmd(6) | cyphesis(6)|