Using Command Line Tools
Handlers and bindings are managed by a tool called ‘traped’ (TRAPper EDitor) which is located in /opt/trapper/bin. It takes a command as its first argument, then additional arguments optionally.
Command line syntax:
traped list modules
Prints a list of all modules
traped list handlers
Prints a list of all handlers
traped list matches
Prints a list of matches in a form: <trap_oid> <handler_name>
traped create module <name>
Creates an empty module <name>
Example:
# traped create module test
traped create handler <name>
Creates an empty handler <name>
Example:
# traped create handler test
traped read <name>
Prints handler/module <name> to stdout
Example:
# traped read test > test.lua
traped update <name>
Updates handler/module <name> with a script passed via stdin
Example:
# traped update test < test.lua
traped delete <name>