enable password-display

Enables the display of the community string.
Syntax
enable password-display [ md5-fmt ]
no enable password-display [ md5-fmt ]
Command Default

The display of the community string is not enabled.

Parameters
md5-fmt
Specifies that the community string is displayed in MD5 format.
Modes

Global configuration mode

Usage Guidelines

This command enables the display of the SNMP community string and password in the output of certain show commands. The display of the SNMP community strings and password remains encrypted in the startup configuration and running configuration files with or without this command. However, note that when the enable password-display command is configured, the passwords and SNMP community strings will be displayed in clear text in the show command output unless the md5-fmt is used.

To prevent the community string being displayed in clear text in the output for the show ip bgp neighbors, show ip ospf, and show snmp commands, use the enable password-display command with the md5-fmt keyword.

The no form of the command disables the display of the community string in the output of these show commands.

Examples

The following example shows how to enable the display of the community string.

device(config)# enable password-display

The following example shows how to prevent the display of the community string in clear text format in the output of the show ip bgp neighbors command.

device(config)# show ip bgp neighbors

    Total number of BGP Neighbors: 1
1   IP Address: 8.8.8.2, AS: 10001 (IBGP), RouterID: 0.0.0.0, VRF: default-vrf
    State: CONNECT, Time: 0h13m4s, KeepAliveTime: 60, HoldTime: 180
    Minimal Route Advertisement Interval: 0 seconds
       MD5 Password: minerdi…

device(config)# enable password-display md5-fmt

device(config)# show ip bgp neighbors

    Total number of BGP Neighbors: 1
1   IP Address: 8.8.8.2, AS: 10001 (IBGP), RouterID: 0.0.0.0, VRF: default-vrf
    State: CONNECT, Time: 0h9m50s, KeepAliveTime: 60, HoldTime: 180
    Minimal Route Advertisement Interval: 0 seconds
       MD5 Password: $Nj1nblVAPQ==
…
History
Release version Command history
08.0.92a The md5-fmt keyword was added.