ONTAP Discussions

How do you kill this snap from the CLI?

andrew_stack
2,776 Views

I know...I know use the gui.  But for the purists how would you kill a snap like this from the CLI with all these spaces, wierd characters and such?

2010-10-19 21:38:59 hourly_nas-rwc-filer6_CIT.-.2007Budget.Agg_Spend.BAHR.IT.BAHR.ITM.BAHR.PRD.BAHR.TRN.BAHR.VAL.BAHRARC.DEVM..

Yes that literally is the name of the snap...and quoting the entire string does not work.

2 REPLIES 2

spence
2,776 Views

snap delete <FlexVolName> hourly_nas-rwc-filer6_CIT.-.2007Budget.Agg_Spend.BAHR.IT.BAHR.ITM.BAHR.PRD.BAHR.TRN.BAHR.VAL.BAHRARC.DEVM

<FlexVolName> = name of flexvol as a string, no special chars.

brothanb1
2,776 Views

Enclose the snapshot name in quotes.  i.e.

snap delete volname "Long Snapshot name with Spaces and other charaters."

Public