Library Version 12.1.6.0

DB_ENV->repmgr_stat_print()
Prev | Chapter 10. Replication Methods | Next

## DB_ENV->repmgr_stat_print()

    #include <db.h>

    int
    DB_ENV->repmgr_stat_print(DB_ENV *env, u_int32_t flags);

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

The `DB_ENV->repmgr_stat_print()` method may not be called before the DB_ENV->open() method is called.

The `DB_ENV->repmgr_stat_print()` method returns a non-zero error value on failure and 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 `DB_ENV->repmgr_stat_print()` method may fail and return one of the following non-zero errors:

#### EINVAL

If the method was called before DB_ENV->open() was called; or if an invalid flag value or parameter was specified.

### Class

DB_ENV

### See Also

Replication and Related Methods

Prev | Up | Next
DB_ENV->repmgr_stat() | Home | DB_SITE->close()