Snmp-trap – HP Virtual Connect Flex-10 10Gb Ethernet Module for c-Class BladeSystem User Manual

Page 115

Advertising
background image

Command line 115

snmp-trap

Manage SNMP trap information.
Supported actions: add, help, remove, set, show, test

Item

Description

add snmp-trap

Adds a new SNMP trap destination.

You can configure up to five VC-Enet and five VC-FC SNMP trap destinations.

Avoid using duplicate trap destinations. Setting duplicate trap destinations can
result in duplicate traps being sent to the same destination, or only one of the trap

destinations being configured.

Syntax

add snmp-trap <Name> Address=<IPAddress|DNSname>

[Community=<community name

string>][Format=<SNMPv1|SNMPv2>][Severity=<trap

severity|All|None>][DomainCategories=<domain trap

category|All|None>][EnetCategories=<enet trap

category|All|None>][FcCategories=<fc trap

category|All|None>]

Parameter

Name (required)

A unique name for the new trap being added

Properties

Address (required) IP address or DNS name for the trap destination
Community (optional) The SNMP community name string for the specified trap. If not specified, the default

value is "public". For VC-Enet modules, the maximum string length is 39. For VC-FC
modules, the maximum string length is 24.

Format

Format of the new trap. Values are "SNMPv1" and "SNMPv2". If not specified, the

default is "SNMPv1".

Severities

Trap severities to send to the destination. Values are "Normal", "Unknown", "Info",
"Warning", "Minor", "Major", "Critical", "All", and "None". Multiple severities

can be specified, separated by commas. The default severity is "None".

DomainCategories

The VC domain trap categories to send to the destination. Values are "Legacy",

"DomainStatus", "NetworkStatus", "FabricStatus", "ProfileStatus", "ServerStatus",
"EnetStatus", FcStatus", "All", and "None". Multiple categories can be specified,

separated by commas.

EnetCategories

The VC Ethernet trap categories to send to the destination. Values are "PortStatus",
"PortThreshold", "Other", "All", and "None". Multiple categories can be specified,

separated by commas.

FcCategories

The VC Fibre Channel trap categories to send to the destination. Values are

"PortStatus", "Other", "All", and "None". Multiple categories can be specified,
separated by commas.

Examples

->add snmp-trap EnetManagementStation Address=192.112.34.10

Community=private Format=SNMPv1 Severity=Normal,Critical

EnetCategories=Other

Adds a new trap destination for VC-Enet modules

->add snmp-trap FcManagementStation Address=192.112.72.3

Community=private Format=SNMPv1 FcCategories=Other

Adds a new trap destination for VC-FC modules

->add snmp-trap MyTrap Address=192.112.66.12

Adds a new trap using typical defaults

->add snmp-trap MyTrap Address=2001:05c0:9168::1

Severity=All EnetCategories=All

Adds a new trap destination using an IPv6 address

Advertising