Skip to main content
A newer release of this product is available.

storage switch add

Contributors
Suggest changes

Add a back-end switch for monitoring

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

Description

The storage switch add command enables you to add FC switches for SNMP monitoring in a MetroCluster configuration. Front end switches should not be added for monitoring and will result in a Monitor Status Error condition.

Parameters

-address <IP Address> - FC Switch Management IP Address

This parameter specifies the IP address of the back-end switch that is added for monitoring.

[-snmp-version {SNMPv1|SNMPv2c|SNMPv3}] - Supported SNMP Version

This parameter specifies the SNMP version that Data ONTAP uses to communicate with the back-end switch that is added for monitoring. The default SNMP version is SNMPv2c.

{ [-snmp-community <text>] - (DEPRECATED)-SNMPv2c Community or SNMPv3 Username
Note This parameter is deprecated and may be removed in a future release of Data ONTAP. Use -snmp-community-or-username instead.

This parameter specifies the SNMPv2c community set or SNMPv3 username on the switch that is added for monitoring.

| [-snmp-community-or-username <text>] - SNMPv2c Community or SNMPv3 Username }

This parameter specifies the SNMPv2c community set or SNMPv3 username on the switch that is added for monitoring.

[-veto-backend-fabric-check {true|false}] - Veto Back-end Fabric Check? (privilege: advanced)

If specified, the storage switch add command will not check if the switch is present in the MetroCluster's back-end fabric. By default, it does not let you add switches that are not present.

[-blades <integer>,…​] - Cisco Director Class Switch Blades to Monitor

This parameter specifies the blades to monitor on the back-end switch that is added for monitoring. It is only applicable to director-class switches.

Examples

The following command adds a back-end switch with IP Address 10.226.197.34 for monitoring:

cluster1::> storage switch add -address 10.226.197.34 -snmp-community-or-username public
cluster1::> storage switch show
                Symbolic                                     Is        Monitor
    Switch      Name     Vendor  Model      Switch WWN       Monitored Status
    ----------- -------- ------- ---------- ---------------- --------- -------
    Cisco_10.226.197.34
                mcc-cisco-8Gb-fab-4
                         Cisco   DS-C9148-16P-K9
                                            2000547fee78f088 true      ok
    mcc-cisco-8Gb-fab-1
                mcc-cisco-8Gb-fab-1
                         Cisco   -          -                false     -
    mcc-cisco-8Gb-fab-2
                mcc-cisco-8Gb-fab-2
                         Cisco   -          -                false     -
    mcc-cisco-8Gb-fab-3
                mcc-cisco-8Gb-fab-3
                         Cisco   -          -                false     -
    4 entries were displayed.
cluster1::>

The following command adds a Cisco Director Class switch for monitoring. Data ONTAP uses SNMPv3 and 'snmpuser1' username to communicate with this switch.

cluster1::> storage switch add -address 10.228.56.208 -snmp-version SNMPv3 -snmp-community-or-username snmpuser1 -blades 3,4