SourceForge.net Logo

CGRU

LinkedIn
Since 1.6.7 (at 2012.12.03) site moved to cgru.info

Command line interface to Afanasy server and database


$ afcmd

Manipulate server parameters and database, query various information. Modify jobs, users, renders.

afcmd [command] execute a command.

afcmd command without any arguments to see output of afanasy environment initialization.

afcmd h display help - list all commands.

afcmd h [command] display help for specified command.

afcmd v [other arguments] put program in verbose mode.
In this mode program outputs in|out messages size.

Some useful commands:

Database:

$ afcmd db_drivers
List available database drivers.

$ afcmd db_check
Check database connection.

$ afcmd db_resetall
Drop tables in Afanasy database if any, and create new. This command must be executed at least before frist Afanasy start to create needed tables.

$ afcmd db_jobsclean
Delete invalid jobs from database. This can happen on some Afanasy bug (which I will fix :) ) or on some connection bug (this never happened yet, but it is possible). Invalid job in this case is a job with not all required data in other tables (blocks, tasks ..)

$ afcmd db_sysjobdel
It deletes system job from database. It needed if system job will have too much changes with new Afanasy version. Server does not delete system job in any case. The only way to delete system job is to stop server and to delete system job from database.

Server:

$ afcmd cload
Ask Afanasy server to reread config files. It can be reconfigured without restart.

$ afcmd fload
Ask Afanasy server to reread farm configuration. It can be reconfigured without restart.

$ afcmd stat
Output traffic statistics.

General:

$ afcmd num
Test how Afanasy will fill numeric command with numbers (first and last frame).

$ afcmd parse
Parse input with specified python class. For example you can check parser work:
mantra -V a -f render/scene.0001.ifd | afcmd parse my_custom_parser_class_name

Since 1.6.7 (at 2012.12.03) site moved to cgru.info
SourceForge.net Project

CGRU

Libre Graphics World