<commit_before># nbu_tools
Various tools for managing NetBackup

- [add_server_nbu](#add_server_nbu)

- [del_server_nbu](#del_server_nbu)

- [chk_con_nbu](#chk_con_nbu)

Use Case:
- [Catalog Migration Pre-check](# Use Case - Catalog Migration Pre-check)

## add_server_nbu

<p>Adds SERVER entries to configuration, similar to bundled NetBackup's 
<code>add_media_server_on_clients</code>, but more flexible and faster.</p>
<p> Issue with <code>add_media_server_on_clients</code> that is runs in single thread and if there are 
multiple unreachable clients in the domain it takes very long time to complete. And server 
list is taken from bp.conf/registry on the master server, which might be undesirable in testing
or migration scenarios. </p>

Script is written for python 2.6.9 using only standard libraries. Compatible python interpreter 
is shipped with most major platforms. For convenience it was packaged with PyInstaller for 
Windows and Linux platforms.<commit_msg>markdown typo<commit_after># nbu_tools
Various tools for managing NetBackup

- [add_server_nbu](#add_server_nbu)

- [del_server_nbu](#del_server_nbu)

- [chk_con_nbu](#chk_con_nbu)

Use Case:
- [Use Case - Catalog Migration Pre-check](# Use Case - Catalog Migration Pre-check)

## add_server_nbu

<p>Adds SERVER entries to configuration, similar to bundled NetBackup's 
<code>add_media_server_on_clients</code>, but more flexible and faster.</p>
<p> Issue with <code>add_media_server_on_clients</code> that is runs in single thread and if there are 
multiple unreachable clients in the domain it takes very long time to complete. And server 
list is taken from bp.conf/registry on the master server, which might be undesirable in testing
or migration scenarios. </p>

Script is written for python 2.6.9 using only standard libraries. Compatible python interpreter 
is shipped with most major platforms. For convenience it was packaged with PyInstaller for 
Windows and Linux platforms.
{'fraction_non_alphanumeric': 0.06993363961204696, 'fraction_numerical': 0.0030627871362940277, 'mean_word_length': 5.282051282051282, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6552670', 'n_tokens_mistral': 601, 'n_tokens_neox': 573, 'n_words': 232}