system switch ethernet delete
Delete information about an Ethernet switch (cluster or storage).
Availability: This command is available to cluster administrators at the admin privilege level.
Description
The system switch ethernet delete
command is used to delete an Ethernet switch. This command is intended to be used to delete a switch that has been disconnected from the system, instead of waiting for it to be deleted automatically. If you want to stop monitoring the switch, use system switch ethernet modify to set the is-monitoring-enabled-admin
parameter to false
. By default, this command only allows deletion of a switch if the is-discovered
parameter is false
(ONTAP isn't receiving Cisco Discovery Protocol (CDP) or Link Layer Discovery Protocol (LLDP) data for the switch). However, if the force
parameter is used, the switch will be deleted regardless of is-discovered
. If the switch is rediscovered, it will be re-added automatically.
Parameters
-device <text>
- Device Name-
Name of the Ethernet switch that you want to delete.
[-force <true>]
- Force Delete (privilege: advanced)-
This parameter forces the delete operation. This allows deletion of a switch when
is-discovered
istrue
. Note: The switch may be re-added automatically.
Examples
Example 1: Delete a removed switch named SwitchA.
cluster1::> system switch ethernet delete -device SwitchA
Example 2: Forcefully remove a discovered switch named SwitchB.
cluster1::*> system switch ethernet delete -device SwitchB -force