NetOPS/Configuration

Masking SNMPv3 credentials

Mask SNMPv3 credentials using secret text macros.

Overview

By default, SNMPv3 authentication and privacy passphrases entered directly on a host's interface are stored and displayed as plain text in the Netwatch frontend. This guide explains how to use Secret Text Macros to mask these values so they cannot be viewed after saving.


Prerequisites

Before configuring secret macros, ensure the following:

  • The target host is already configured or to configure with an SNMPv3
  • You know the SNMPv3 authentication and privacy passphrases you wish to mask

Step 1 – Navigate to the Host Configuration

  1. From the left-hand navigation menu, go to:

    Data Collection → Hosts

  2. Locate/create the host whose SNMPv3 credentials you want to mask.

  3. Click on the host name to open its configuration.

Micro Node – Front View

Step 2 – Open the Macros Tab

  1. Inside the host configuration window, click the Macros tab.
  2. You will see a list of any existing user macros defined for this host.
Micro Node – Front View

Step 3 – Add Macros for Your SNMPv3 Credentials

  1. Click Add to create a new macro entry.

  2. Add the following macros (repeat the Add step for each):

    Macro NameValuePurpose
    {$SNMP_AUTHPASS}Your authentication passphraseReplaces the hardcoded auth passphrase
    {$SNMP_PRIVPASS}Your privacy passphraseReplaces the hardcoded privacy passphrase
    {$SNMP_SECNAME}Your SNMPv3 security usernameOptionally masks the security name too

    Tip: You may name the macros anything you like, but using consistent naming conventions (e.g. {$SNMP_AUTHPASS})


Step 4 – Set the Macro Type to "Secret Text"

This is the critical step that enables masking.

  1. After entering the macro name and value, locate the type dropdown at the right end of the Value field.

  2. Click the dropdown and select Secret text.

    The value field will immediately change to display asterisks (******) in place of the passphrase.

  3. Repeat for each credential macro you added.

Important: Once you save the configuration, it will no longer be possible to view the original value. To update a masked value, hover over the Value field and click the Set new value button that appears. This will erase the current value before allowing you to enter a new one.

Micro Node – Front View

Step 5 – Save the Macro Configuration

  1. Click Update (or Add if this is a new host) to save the host configuration.
  2. The macros are now saved with masking applied.

Step 6 – Reference the Macros in the SNMPv3 Interface Fields

Now replace the hardcoded passphrases on the host's Host tab with the macro names.

  1. Click back to the Host tab within the same host configuration.

  2. Scroll down to the Interfaces section and locate the SNMP interface.

  3. Update the following fields to use your macros:

    FieldReplace with
    Authentication passphrase{$SNMP_AUTHPASS}
    Privacy passphrase{$SNMP_PRIVPASS}
    Security name{$SNMP_SECNAME}
  4. Click Update to save.

The SNMPv3 fields will now display the macro names rather than the raw passphrases, and the underlying values remain masked in the frontend.

Micro Node – Front View

Troubleshooting

IssuePossible CauseResolution
Macro not resolving / items unsupportedMacro name typo in the interface fieldVerify the macro name matches exactly, including {$ prefix and } suffix
Need to update a masked valueCannot view existing valueHover over the Value field and click Set new value — this clears and replaces the current secret
Macros not inherited on hostTemplate macro not defined at host levelAdd the macro override directly on the host's Macros tab
SNMPv3 authentication fails after changeWrong value entered when setting new secretRe-enter the passphrase carefully; there is no way to retrieve the previous value once saved