Return message types with CLI commands

When a CLI command returns a message, that message is now prefixed with a category describing the type, as follows:

  • Error

  • Warning

  • Information

Syntax

session show-message-type [ enable | [disable]]

When enabled, the CLI return messages are prefixed with string that indicates the type of message. Entered at the manager level.

The disable option disables prefixing returned messages for the session for which this command is executed.

Note: This setting is not saved when the switch is rebooted.

Default: Disabled on all CLI sessions

Message prefixes

HP Switch(config)# router rip
Error: IP Routing support must be enabled first.

HP Switch(config)# qinq mixed vlan
Warning: This command will reboot the device. Any prior configuration
on this config file will be erased and the device will boot up with a
default configuration
for the new qinq mode.
Do you want to continue [y/n]? n

HP Switch(config)# snmp-server mib hpSwitchAuthMIB included
Information: For security reasons, network administrators are
encouraged to disable SNMPv2 before using the MIB.

To determine if message labeling is enabled, enter theshow session command.

The label cli-return-message command enabled

HP Switch(config)# show session
show message type   : Enabled
cli interactive mode: Enabled