ONTAP 9.12.1 commands

50←PDF
  • ONTAP 9.12.1 commands(CA08871-263en.pdf)
  • system switch ethernet create

    Add information about an Ethernet switch (cluster, management or storage).

    Availability: This command is available to cluster administrators at the admin privilege level.

    Description

    The system switch ethernet create command adds information about an Ethernet switch (cluster, management or storage). The Ethernet switch health monitor uses this information to monitor the health of the switch.

    Use this command if ONTAP cannot automatically discover a cluster, management or storage switch. ONTAP relies on the Cisco Discovery Protocol (CDP) to discover the switches. CDP is always enabled on all cluster ports of a node by default, disabled on all non-cluster ports of a node. If the CDP is also enabled on your Ethernet switches, they will be automatically discovered.

    If you want ONTAP to discover and monitor management switches, the CDP must be enabled on non-cluster ports. To verify whether the CDP is enabled or disabled, use the command system node run-node`[HTML_REMOVED]node_name[HTML_REMOVED]-command`options cdpd.enable .

    Use the system switch ethernet show command to identify switches that the Ethernet switch health monitor is monitoring.

    Parameters

    -device <text> - Device Name

    Specifies the device name of the switch that you want to monitor. ONTAP uses the device name of the switch to identify the SNMP agent with which it wants to communicate.

    -address <IP Address> - IP Address

    Specifies the IP address of switch’s management interface.

    -snmp-version {SNMPv1|SNMPv2c|SNMPv3} - SNMP Version

    Specifies the SNMP version that ONTAP uses to communicate with the switch. The default is SNMPv2c.

    { -community <text> - DEPRECATED-Community String or SNMPv3 Username
    This parameter is deprecated and may be removed in a future release of ONTAP. Use -community-or-username instead.

    Specifies the community string for SNMPv2 authentication or SNMPv3 user name for SNMPv3 security. The default community string for SNMPv2 authentication is cshm1!.

    | -community-or-username <text> - Community String or SNMPv3 Username }

    Specifies the community string for SNMPv2 authentication or SNMPv3 user name for SNMPv3 security. The default community string for SNMPv2 authentication is cshm1!.

    -model {NX5010|NX5020|CAT2960|OTHER|NX5596|CN1610|CN1601|NX3132|NX5548|NX3132V|OT9332|NX3132XL|NX3232C} - Model Number

    This parameter specifies the model number of the switch. Use "OTHER" model when adding a switch that requires a switch health monitor XML configuration file, for example: BES-53248 and N9K-C92300YC switches. ONTAP also sets the model to OTHER when it automatically discovers a switch that does not support health monitoring.

    -type {cluster-network|management-network|storage-network} - Switch Network

    Specifies the switch type.

    [-is-monitoring-enabled-admin {true|false}] - Enable Switch Monitoring

    Specifies the switch admin monitoring status.

    Examples

    cluster1::> system switch ethernet create -device SwitchA -address 1.2.3.4 -snmp-version SNMPv2c -community-or-username cshm1! -model NX55596 -type cluster-network

    Creates a new switch configuration for a switch named SwitchA.

    cluster2::> system switch ethernet create -device SwitchB -address 5.6.7.8 -snmp-version SNMPv3 -community-or-username snmpv3u1 -model CN1601 -type management-network

    Creates a new switch configuration for a switch named SwitchB.

    Top of Page