Previous Topic: BFC 3.5: Network Diagnostics at Install and DiscoveryNext Topic: check_passphrase_specify_file


BFC 3.5.x Passphrase Check Scripts

BFC 3.5.x Passphrase Check Scripts

These are useful if you have a customer who created their BFC, want to recover it from replica or mnesia.db and are unsure of their passphrase. These can also be used to verify the passphrase before changing the BFC hostname or IP: BFC Hostname and External IP Change Script. Both scripts must be run from as server running the BFC service and output will be either:

ERROR: incorrect passphrase.

or

Passphrase is correct.

  1. The first script is designed to compare the passphrase hash stored in '/etc/bfc/conf/components.config'. This can be used to compare against a currently running/intact BFC.
    usage: check_passphrase <passphrase>
    example:  su - bfcadmin -c "/tmp/check_passphrase passphrase123"
    check_passphrase
     
    
  2. The next script is designed to compare the passphrase stored in their replica and since this location may vary, you must specify the path to the /repl.check file. This will be used if the original BFC has crashed and the data no longer exists or if you want to recover from an original version of the replica if the case was something to the effect of the BFC was rebuilt with the incorrect passphrase like I ran into.
    usage: check_passphrase_specify_file <passphrase> [</path_to/replica/repl.check>]
    example:  su - bfcadmin -c "/tmp/check_passphrase_specify_file passphrase123 /mnt/replica/repl.check"
    check_passphrase_specify_file