Brocade Fabric OS Command Reference (Supporting Fabric OS v7.3.0) User Manual

Page 1098

Advertising
background image

1068

Fabric OS Command Reference

53-1003131-01

snmpConfig

2

To enable the swEventTrap of the SW-MIB category only (this operation disables all other SNMP traps
in this MIB category):

switch:admin> snmpconfig --set mibCapability \

-mib_name SW-MIB -bitmask 0x10

Operation succeeded

switch:admin> snmpconfig --show mibCapability

[...]

SW-TRAP: NO

swFault: NO

swSensorScn: NO

swFCPortScn: NO

swEventTrap: YES

DesiredSeverity:4

swFabricWatchTrap: NO

DesiredSeverity:2

swTrackChangesTrap: NO

swIPv6ChangeTrap: NO

swPmgrEventTrap: NO

swFabricReconfigTrap: NO

swFabricSegmentTrap: NO

swExtTrap: NO

[...]

To enable the SW-MIB MIB only without changing the current trap configuration:

switch:admin> snmpconfig --enable mibCapability \

-mib_name SW-MIB

Operation succeeded

switch:admin> snmpconfig --show mibCapability

[...]

SW-TRAP: YES

swFault: NO

swSensorScn: NO

swFCPortScn: NO

swEventTrap: YES

DesiredSeverity:4

swFabricWatchTrap: NO

DesiredSeverity:2

swTrackChangesTrap: NO

swIPv6ChangeTrap: NO

swPmgrEventTrap: NO

swFabricReconfigTrap: NO

swFabricSegmentTrap: NO

swExtTrap: NO

swStateChangeTrap: NO

swPortMoveTrap: NO

swBrcdGenericTrap: NO

[...]

To re-enable all traps under the SW-MIB category:

switch:admin> snmpconfig --set mibCapability \

-mib_name SW-MIB -bitmask 0xFFF

Operation succeeded

switch:admin> snmpconfig --show mibCapability

[...]

SW-TRAP: YES

Advertising