logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

wallet-report - Wallet server reporting interface

Author

       Russ Allbery <eagle@eyrie.org>

Commands

       acls
       acls duplicate
       acls empty
       acls entry <scheme> <identifier>
       acls unused
           Returns  a  list  of ACLs in the database.  Except for the "duplicate" report, ACLs will be listed in
           the form:

               <name> (ACL ID: <id>)

           where <name> is the human-readable name and <id> is the numeric ID.  The numeric ID  is  what's  used
           internally by the wallet system.  There will be one line per ACL.

           For  the  "duplicate"  report, the output will instead be one duplicate set per line.  This will be a
           set of ACLs that all have the same entries.  Only the names will be given, separated by spaces.

           If no search type is given, all the ACLs in the database will be returned.  If  a  search  type  (and
           possible search arguments) are given, then the ACLs will be limited to those that match the search.

           The currently supported ACL search types are:

           acls duplicate
               Returns all sets of ACLs that are duplicates, meaning that they contain exactly the same entries.
               Each line will be the names of the ACLs in a set of duplicates, separated by spaces.

           acls empty
               Returns all ACLs which have no entries, generally so that abandoned ACLs can be destroyed.

           acls entry <scheme> <identifier>
               Returns  all  ACLs  containing  an entry with given scheme and identifier.  The scheme must be an
               exact match, but the <identifier> string will match any identifier containing that string.

           acls nested <acl>
               Returns all ACLs that contain this ACL as a nested entry.

           acls unused
               Returns all ACLs that are not referenced by any of the objects in the wallet database, either  as
               an owner or on one of the more specific ACLs.

       audit acls name
       audit objects name
           Returns  all  ACLs or objects that violate the current site naming policy.  Objects will be listed in
           the form:

               <type> <name>

           and ACLs in the form:

               <name> (ACL ID: <id>)

           where <name> is the human-readable name and <id> is the numeric ID.  The numeric ID  is  what's  used
           internally by the wallet system.  There will be one line per object or ACL.

       help
           Displays a summary of all available commands.

       objects
       objects acl <acl>
       objects flag <flag>
       objects owner <owner>
       objects type <type>
       objects unused
       objects unstored
           Returns a list of objects in the database.  Objects will be listed in the form:

               <type> <name>

           There will be one line per object.

           If  no  search  type  is  given, all objects in the database will be returned.  If a search type (and
           possible search arguments) are given, the objects will be limited to those that match the search.

           The currently supported object search types are:

           objects acl <acl>
               Returns all objects for which the given ACL name or ID has any permissions.  This includes  those
               objects owned by the ACL as well as those where that ACL has any other, more limited permissions.

           objects flag <flag>
               Returns all objects which have the given flag set.

           objects host <hostname>
               Returns  all  objects that belong to the given host.  This requires adding local configuration to
               identify objects that belong to a given host.  See "OBJECT HOST-BASED  NAMES"  in  Wallet::Config
               for more information.

           objects owner <acl>
               Returns all objects owned by the given ACL name or ID.

           objects type <type>
               Returns all objects of the given type.

           objects unused
               Returns  all  objects  that  have  never  been  downloaded  (have  never been the target of a get
               command).

       owners <type-pattern> <name-pattern>
           Returns a list of all ACL entries in owner ACLs for all  objects  matching  both  <type-pattern>  and
           <name-pattern>.   These  can  be the type or name of objects or they can be patterns using "%" as the
           wildcard character following the normal rules of SQL patterns.

           The output will be one line per ACL line in the form:

               <scheme> <identifier>

           with duplicates suppressed.

       schemes
           Returns a list of all registered ACL schemes.

       types
           Returns a list of all registered object types.

Description

wallet-report provides a command-line interface for running reports on the wallet database.  It is
       intended to be run on the wallet server as a user with access to the wallet database and configuration,
       but can also be made available via remctl to users who should have reporting privileges.

       This program is a fairly thin wrapper around Wallet::Report that translates command strings into method
       calls and returns the results.

Name

       wallet-report - Wallet server reporting interface

Options

wallet-report takes no traditional options.

See Also

Wallet::Config(3), Wallet::Report(3), wallet-backend(8)

       This   program   is   part   of   the   wallet   system.    The   current   version   is  available  from
       <https://www.eyrie.org/~eagle/software/wallet/>.

1.5                                                2024-04-30                                   WALLET-REPORT(8)

Synopsis

wallet-reporttype [args ...]

See Also