snmp-server

Required Command-Line Mode = Configure

Use the snmp-server command to configure all SNMP-related functionality on the GigaVUE‑OS node, including enabling SNMP generally, adding notification destinations, specifying notification events, adding standard MIB-II contact/location info, and enabling the system’s SNMP server so that management stations can poll the GigaVUE‑OS node remotely using standard SNMP commands (Get, GetNext, Walk, and so on).

Refer to the “Using SNMP” chapter in the GigaVUE-OS H-VUE Administration Guide for details on configuring SNMP.

The snmp-server command has the following syntax:

snmp-server
   community <community string>
   contact <string>
   enable [communities] [mult-communities] [notify]
   host <IPv4 / IPv6 address or Hostname>
      disable
      informs [community] [port <port number>] [version <2c | 3>]

         <engineID <engine ID> <user <username>> <auth | encrypted auth | prompt auth>
            <md5 <password> | sha <password> <priv <des <password> | aes-128 <password>> 
     traps [community] [port <port number>] [version <1 | 2c | 3>]

         <user <username>> <auth | encrypted auth | prompt auth>
            <md5 <password> | sha <password> <priv <des <password> | aes-128 <password>>
  location <string>
   notify
      community <string>
      event
[systemreset] [configsave] [modulechange] [linkspeedstatuschange] [unexpectedshutdown] [userauthfail] [firmwarechange] [packetdrop] [gspacketdrop] [tunnelstatus] [tunneldeststatus] [bufferoverusage] [rxtxerror] [powerchange] [fanchange] [portutilization] [lowportutilization] [ibstatechange] [gscpuutilization] [gsportutilz] [gsportlowutilz] [evallicensereminder] [watchdogreset] [inlinetoolrecovery] [gdpupdate] [opticstemp] [exhausttemp] [switchcputemp] [cputemp] [2ndflashboot] [operationmode] [gigasmartcputemp] [eporttemp] [policytrigger] [process-cpu-threshold] [process-mem-threshold] [system-cpu-threshold] [system-mem-threshold] [ipgatewaystatus] [all]
      port <port number>
   port <port number>
   user <username | admin> v3
<auth | encrypted auth | prompt auth> <md5 <password> | sha <password>
         <priv <des <password> | aes-128 <password>>
      <enable>

The following table describes the arguments for the snmp-server command.

Argument

Description

community <community string>

Specifies the read-only community string used to connect to this node using SNMP. The default value is public.

If you enable the mult-communities option, you can specify multiple community strings for the node.

Refer to the “Recommendations for Vulnerabilities” section in the GigaVUE Fabric Management Guide for more information.

Examples:

(config) # snmp-server community secret

contact <string>

Specifies the MIB-II contact information for this device (syscontact). For example:

(config) # snmp-server contact “John Smith”

enable
  [communities]
   [mult-communities]
   [notify]

Specifies different aspects of the system’s SNMP functionality as follows:

enable—Enables the SNMP server in general.
enable communities—Enables community-based authentication for the system.
enable mult-communities—Allows the configuration of multiple communities with the snmp-server community <community string> command for authentication.
enable notify—Enables notifications, allowing SNMP informs and traps to be sent from this node/cluster. Once notifications are enabled, you can specify the events that will generate traps using the snmp-server notify command.

Refer to the “Recommendations for Vulnerabilities” section in the GigaVUE Administration Guide for details.

host

Adds a destination for SNMP notifications.

 

<IPv4 / IPv6 address or Hostname>

Specifies the IPv4 address, IPv6 address, or the hostname of this destination for SNMP traps. You can specify multiple destinations, each with its own trap version and community string.

 

disable

Temporarily disables the sending of traps to the specified destination. For example, the following command disables traps sent to 192.168.1.25:

(config) # snmp-server host 192.168.1.25 disable

To re-enable traps for the specified destination:

(config) # no snmp-server host 192.168.1.25 disable

 

informs [community] [port <port number>] [version <2c | 3>]

for version 3 only:

<engineID <engine ID> <user <username>> <auth | encrypted auth | prompt auth><md5 <password> | sha <password> <priv <des <password> | aes-128 <password>>

Specifies whether or not this destination should be used as a destination for SNMP inform events. You can override the default port and community string configured with the snmp-server notify commands using custom strings for this destination.

Strings must be supplied in quotation marks. If you supply an empty community string (“”), the global community string specified with the snmp-server notify community <community string> command is used instead.

Also specifies the version of SNMP to use. You can specify either version 2c or 3. The default is version 2c. For example:

(config) # snmp-server host 1.1.1.1 informs

If you specify version 3, you also supply an engine ID, user name, and other settings to be sent with the notification.

 

traps [community] [port <port number>] [version <1 | 2c | 3>]

for version 3 only:

<user <username>> <auth | encrypted auth | prompt auth> <md5 <password> | sha <password> <priv <des <password> | aes-128 <password>>

Specifies whether this destination should be used as a destination for SNMP trap events. You can override the default port and community string configured with the snmp-server notify commands using custom strings for this destination.

Strings must be supplied in quotation marks. If you supply an empty community string (“”), the global community string specified with the snmp-server notify community <community string> command is used instead.

Also specifies the version of SNMP to use. You can specify either version 2c or 3. The default is version 2c. For example:

(config) # snmp-server host 1.1.1.1 traps

If you specify 3, you also supply a user name and other settings to be sent with the notification.

location <string>

Specifies the location of the system (syslocation). For example:

(config) # snmp-server location “2nd Floor”

notify community <community string>

Specifies the default community string to be sent with SNMP notifications. If a destination has its own community string configured with snmp-server host, that string takes precedence over this one. However, if a destination does not have a string configured, this value is used.

For example:

(config) # snmp-server notify community public

notify event

Enables each of the events available for SNMP notifications, as follows.

For example:

(config) # snmp-server notify event all

 

systemreset

Sends an SNMP notification to all configured destinations each time the system starts up, either as a result of cycling the power or a soft reset initiated by the reload command.

 

configsave

Sends an SNMP notification to all configured destinations each time the configuration is saved to local storage (for example, by using the write memory command).

 

modulechange

Sends an SNMP notification to all configured destinations when it detects a change in line card type from the last polling interval. This typically happens when a line card is removed from a slot or inserted in an empty slot.

 

linkspeedstatuschange

Sends an SNMP notification to all configured destinations in the following situations:

Each time a port’s link status changes from up to down or vice-versa.
Each time a port’s speed changes.

Note:  The portlinkchange trap is not sent when the Management port’s link status changes.

Note:  The link state polling interval is 1 second. If a link state change is detected during the poll, an SNMP notification is generated.

 

unexpectedshutdown

Sends an SNMP notification to all configured destinations when the system is shut down unexpectedly (for example, because power was lost and subsequently restored).

 

userauthfail

Sends an SNMP notification to all configured destinations each time a user login fails.

 

firmwarechange

Sends an SNMP notification to all configured destinations when there is a firmware change.

 

packetdrop

Sends an SNMP notification to all configured destinations when it detects packets being dropped on a port for 30 consecutive seconds.

 

gspacketdrop

Sends an SNMP notification to all configured destinations when there are packet drops on a port in the GigaSMART card for 30 consecutive seconds. The notification will include the following information:

Hardware Name—specifies the name of the GigaSMART card in string format
Level—specifies the severity level of the trap
Description—provides the description of the trap
Port Name—specifies the port name of the interface where the packet was dropped
Counter—provides the number of packets dropped during the 30 seconds interval

 

gsisslresourceutilization

Sends a SNMP notification to all configured destinations when there is an Inline SSL resource utilization overload in the GigaSMART.

 

tunnelstatus

Sends an SNMP notification to all configured destinations each time the tunnel gateway status changes, either from Resolved to Not Resolved or from Not Resolved to Resolved. The status might change for example, if there is an ARP failure or if a destination is not reachable.

 

tunneldeststatus

Sends an SNMP notification to all configured destinations each time the tunnel destination or tunnel endpoint status changes, either from Up to Down or from Down to Up.

 

bufferoverusage

Sends an SNMP notification to all configured destinations each time buffer usage has exceeded its configured threshold.

Refer to the “Configure Alarm Buffer Thresholds” section in the GigaVUE Fabric Management Guide.

 

rxtxerror

Sends an SNMP notification to all configured destinations each time there is a packet receive (RX) or transmit (TX) error.

 

powerchange

Sends an SNMP notification to all configured destinations each time the power supply status changes.

Note:  On the GigaVUE-HB1, this trap is not supported. When power is lost on all power module(s), the GigaVUE-HB1 is unpowered.

 

fanchange

Sends an SNMP notification to all configured destinations each time the fan status changes.

 

portutilization

Sends an SNMP notification to all configured trap destinations when the percentage utilization on a port rises above the high threshold configured with the port <port list> alarm high-utilization-threshold <percentage> command.

Utilization alarms are written to syslog and forwarded to all SNMP management stations configured as trap destinations.

Note:  Network ports always use an Rx threshold; tool ports always use Tx.

Refer to the “Working with Port Utilization Measurements” section in the GigaVUE Fabric Management Guide for more information.

 

lowportutilization

Sends an SNMP notification to all configured trap destinations when the percentage utilization on a port falls below the low threshold configured with the port <port list> alarm low-utilization-threshold <percentage> command.

Utilization alarms are written to syslog and forwarded to all SNMP management stations configured as trap destinations.

Refer to the “Working with Port Utilization Measurements” section in the GigaVUE Fabric Management Guide for more information.

 

ibstatechange

Sends an SNMP notification to all configured destinations each time there is an inline bypass forwarding state change.

 

gscpuutilization

Sends an SNMP notification to all configured destinations when CPU utilization on the GigaSMART engine exceeds the configured upper (rising) threshold.

Refer to the “GigaSMART CPU Utilization Statistics” section in the GigaVUE Fabric Management Guide for details.

 

gsportutilz

Sends an SNMP notification to all configured destinations when the GigaSMART engine port utilization reaches the high threshold value configured for the engine port.

 

gsportlowutilz

Sends an SNMP notification to all configured destinations when the GigaSMART engine port utilization reaches the low threshold value configured for the engine port.

 

evallicensereminder

Sends an SNMP notification to all configured destinations when an evaluation license is about to expire. This trap is sent when there are 30, 15, 10, 5, 4, 3, 2, and 1 days remaining on the 45-day license period.

Refer to the GigaSMART Evaluation Licenses” section in the GigaVUE Fabric Management Guide for details.

 

watchdogreset

Sends an SNMP notification to all configured destinations each time the watchdog monitor has to reset a failed process on the system.

 

inlinetoolrecovery

Sends an SNMP notification to all configured destinations each time an inline tool has recovered. The user can then manually put the inline tool back into service.

 

gdpupdate

Sends an SNMP notification to all configured destinations each time a new Gigamon discovery neighbor is discovered or Gigamon discovery information for an existing neighbor is changed or expired.

 

opticstemp

Sends an SNMP notification to all configured destinations each time the temperature of the GigaVUE-TA100, GigaVUE-TA100-CXP, or GigaVUE‑HC3 optics (transceivers) reach warning, alert, and critical thresholds. Refer to the GigaVUE TA Series Hardware Installation Guide or GigaVUE-HC3 Hardware Installation Guide for details.

 

exhausttemp

Sends an SNMP notification to all configured destinations each time the GigaVUE-TA100, GigaVUE-TA100-CXP, GigaVUE‑HC1, or GigaVUE‑HC3 ambient temperature reaches warning, alert, and critical thresholds. Refer to the GigaVUE TA Series Hardware Installation Guide, GigaVUE-HC1 Hardware Installation Guide, or GigaVUE-HC3 Hardware Installation Guide for details.

 

netflowoutofresource

Sends an SNMP notification to all the configured destinations each time when the resource allocation fails in the NetFlow application.

 

switchcputemp

Sends an SNMP notification to all configured destinations each time the temperature of the GigaVUE-TA100, GigaVUE-TA100-CXP, GigaVUE‑HC1, or GigaVUE‑HC3 switch CPU reaches warning, alert, and critical thresholds. Refer to the GigaVUE TA Series Hardware Installation Guide, GigaVUE-HC1 Hardware Installation Guide, or GigaVUE-HC3 Hardware Installation Guide for details.

 

cputemp

Sends an SNMP notification to all configured destinations each time the temperature of the GigaVUE-TA100, GigaVUE-TA100-CXP, GigaVUE‑HC1, or GigaVUE‑HC3 CPU reaches warning, alert, and critical thresholds. Refer to the GigaVUE TA Series Hardware Installation Guide, GigaVUE-HC1 Hardware Installation Guide, or GigaVUE-HC3 Hardware Installation Guide for details.

 

2ndflashboot

Sends an SNMP notification to all configured destinations each time the GigaVUE-TA100, GigaVUE-TA100-CXP, GigaVUE‑HC1, or GigaVUE‑HC3 system boots from the second flash. Refer to the GigaVUE TA Series Hardware Installation Guide, GigaVUE-HC1 Hardware Installation Guide, or GigaVUE-HC3 Hardware Installation Guide for details.

 

operationmode

Sends an SNMP notification to all configured destinations each time a node in a cluster changes from operational mode to safe mode or from operational mode to limited mode. Refer to the “Cluster Safe and Limited Modes” section in the GigaVUE Fabric Management Guide for details.

 

gigasmartcputemp

Sends an SNMP notification to all configured destinations each time the temperature of the GigaVUE‑HC1 GigaSMART engine reaches warning, alert, and critical thresholds. Refer to the GigaVUE-HC1 Hardware Installation Guide for details.

 

eporttemp

Sends an SNMP notification to all configured destinations each time the temperature of the GigaVUE‑HC3 GigaSMART engine ports (e1 and e2) reach warning, alert, and critical thresholds. Refer to the GigaVUE-HC3 Hardware Installation Guide for details.

 

vportstatechange

Sends an SNMP notification to all configured destinations each time a vport State changes.

 

topswitchtemp

Sends an SNMP notification to all configured destinations each time the temperature sensor near the top of the DELL-S4112F-ON's switch board reaches or exceeds the threshold temperature.

 

throttle-report

Sends an SNMP notification to all configured destinations each time a throttle reporting is initiated. A throttle report is generated only when the number of traps exceeds or matches the configured threshold count.

 

FipsTest

Sends an SNMP notification to all configured destinations indicateing status of FIPS test executed.

 

sfpcagetemp

Sends an SNMP notification to all configured destinations each time the sfp cage board sensor's temperature reaches critical thresholds.

 

qsfpcagetemp

Sends an SNMP notification to all configured destinations each time the qsfp cage board sensor's temperature reaches critical thresholds.

 

rearpaneltemp

Sends an SNMP notification to all configured destinations each time the rear panel board sensor's temperature reaches critical thresholds.

 

nearcputemp

Sends an SNMP notification to all configured destinations each time the cpu board sensor's temperature reaches critical thresholds.

 

cpusoctemp

Sends an SNMP notification to all configured destinations each time the temperature of the cpu core that is read from the system files reaches or exceeds the threshold temperature.

 

cluster-role-change

Sends an SNMP notification to all configured destinations each time there is a cluster role change event.

 

cluster-node-leave

Sends an SNMP notification to all configured destinations each time a node leaves a cluster.

 

cluster-node-join

Sends an SNMP notification to all configured destinations each time a node joins a cluster.

 

bottomswitchtemp

Sends an SNMP notification to all configured destinations each time the temperature sensor near the bottom of the DELL-S4112F-ON's switch board reaches or exceeds the threshold temperature.

 

bcmsoctemp

Sends an SNMP notification to all configured destinations each time the temperature sensor of the hardware reaches or exceeds the threshold temperature.

 

Sublicensereminder

Sends an SNMP notification to all configured destinations when a sublicense is about to expire. The notification contains all the details like box, slot, features, and days for the license to expire.

 

licensereminder

Sends an SNMP notification to all configured destinations when a license is about to expire or already has expired. The notification contains all the details like box, slot, features, and days for the license to expire.

 

Ipgwstatusupdate

Sends an SNMP notification to all configured destinations each time IP Gateway status is updated.

 

cluster-join-timeout

Sends an SNMP notification to all configured destinations each time a node tries to join a cluster and fails.

 

policytrigger

Sends an SNMP notification to all configured destinations each time a policy is triggered. Refer to the “Configuring Active Visibility” section in the GigaVUE Fabric Management Guide for details.

 

process-cpu-threshold

Sends an SNMP notification to all configured destinations each time the control card CPU utilization exceeds the pre-configured process threshold values.

 

process-mem-threshold

Sends an SNMP notification to all configured destinations each time the control card memory utilization exceeds the pre-configured process threshold values.

 

system-cpu-threshold

Sends an SNMP notification to all configured destinations each time the control card CPU utilization exceeds the pre-configured system threshold values.

 

system-mem-threshold

Sends an SNMP notification to all configured destinations each time the control card memory utilization exceeds the pre-configured system threshold values.

 

ipgatewaystatus

Sends an SNMP notification to all configured destinations each time the ARP/NDP status change.

 

all

Specifies that all SNMP notification events be sent.

notify port <port number>

Specifies the default port to which SNMP notification events should be sent. The GigaVUE H Series node sends SNMP notification events to this port on all configured destinations without an explicit port override configured with the snmp host arguments.

For example:

(config) # snmp-server notify port 123

port <port number>

Specifies the UDP port to be used for the system’s SNMP server. The default is 161. For example:

(config) # snmp-server port 123

Refer to the “Recommendations for Vulnerabilities” section in the GigaVUE Administration Guide.

event <trap> interval <1 and 86400 > [report-threshold <0 and 2147483647>]

Configures SNMP trap throttling and specifies the trap that has to be throttled as follows:

event—Specifies the events that has to be throttled. Type throttle event ? to see the list of available events.
interval—Configures the throttling time interval.
report-threshold—Configures the threshold count to enable throttle reporting. Sents the report only when the number of traps exceeds or matches the configured threshold count.

user <username | admin> v3

Configures per-user security parameters for SNMP v3 access to the system, as follows.

 

enable

Enables or disables SNMP v3 access for the specified username.

 

<auth | encrypted auth | prompt auth>

Specifies arguments that work together to configure passwords for SNMP v3 access for the specified user, including the hash algorithm. The order of the arguments after the v3 keyword governs how the passwords are entered, as follows:

If auth is the next word after v3, the passwords are specified in plaintext on the command-line.
If encrypted is the next word after v3, the passwords are specified encrypted (hashed) on the command-line.
If prompt is the next word after v3, the passwords are not specified on the command-line. Instead, you are prompted for them while the command is executing.
If the optional priv argument is not included, only the auth password is prompted for.
If the optional priv argument is included, you are prompted for the privacy password. If you supply an empty string at this prompt, the same password as specified for authentication is used.

 

<md5 <password> | sha <password>

 

<priv <des <password> | aes-128 <password>>

Related Commands

The following table summarizes other command related to the snmp-server command:

Task

Command

Displays SNMP configuration information.

# show snmp

Displays the SNMP engine ID for the local system.

# show snmp engineID

Displays the events for which SNMP traps will be sent.

# show snmp events

Displays SNMP host settings.

# show snmp hosts

Displays SNMP throttle

# show snmp throttle

Deletes all SNMP communities and reset to the default community (public).

(config) # no snmp-server community

Deletes a specified SNMP community.

(config) # no snmp-server community secret

Deletes the contact information.

(config) # no snmp-server contact

Disables community-based authentication.

(config) # no snmp-server enable communities

Allows only a single community to be configured.

(config) # no snmp-server enable mult-communities

Disables the sending of SNMP notifications (traps and informs).

(config) # no snmp-server enable notify

Deletes this host by its IPv4 or IPv6 address.

(config) # no snmp-server host 1.1.1.1

Re-enables the sending of all notifications to this host.

(config) # no snmp-server host 1.1.1.1 disable

Resets the target port for informs to the default value.

(config) # no snmp-server host 1.1.1.1 informs port

Resets the target port for traps to the default value.

(config) # no snmp-server host 1.1.1.1 traps port

Deletes the location information.

(config) # no snmp-server location

Resets the default notification community to the default.

(config) # no snmp-server notify community

Specifies that all events are not to be sent as traps.

(config) # no snmp-server notify event all

Disables the sending of a trap for a specified event.

(config) # no snmp-server notify event cputemp

Disables the throttling for a specified event

(config) # no snmp-server throttle event

Disables the SNMP traps notification when the GigaSMART engine port utilization reaches the high threshold value.

(config) # no snmp-server notify event gsportutilz

Disables the SNMP traps notification when the GigaSMART engine port utilization reaches the low threshold value.

(config) # no snmp-server notify event gslowportutilz

Disables throttling for all traps

(config) # no snmp-server throttle event all

Resets the default notifications port number to the default.

(config) # no snmp-server notify port

Resets the SNMP agent port to the default (161).

(config) # no snmp-server port

Deletes the specified SNMP v3 user.

(config) # no snmp-server user user1 v3

Disables all SNMP v3 access for the specified user.

(config) # no snmp-server user user1 v3 enable