Library Version 11.2.5.3

DbEnv::repmgr_stat_print()
Prev | Chapter 11. Replication Methods | Next

## DbEnv::repmgr_stat_print()

    #include <db_cxx.h>

    int
    DbEnv::repmgr_stat_print(u_int32_t flags);

The `DbEnv::repmgr_stat_print()` method displays the Replication Manager statistical information, as described for the `DbEnv::repmgr_stat()` method. The information is printed to a specified output channel (see the DbEnv::set_msgfile() method for more information), or passed to an application callback function (see the DbEnv::set_msgcall() method for more information).

The `DbEnv::repmgr_stat_print()` method may not be called before the DbEnv::open() method is called.

The `DbEnv::repmgr_stat_print()` method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

### Parameters

#### flags

The flags parameter must be set to 0 or by bitwise inclusively OR'ing together one or more of the following values:

- `DB_STAT_ALL`

  Display all available information.

- `DB_STAT_CLEAR`

  Reset statistics after displaying their values.

### Errors

The `DbEnv::repmgr_stat_print()` method may fail and throw a DbException exception, encapsulating one of the following non-zero errors, or return one of the following non-zero errors:

#### EINVAL

If the method was called before DbEnv::open() was called; or if an invalid flag value or parameter was specified.

### Class

DbEnv

### See Also

Replication and Related Methods

Prev | Up | Next
DbEnv::repmgr_stat() | Home | DbEnv::txn_applied()