Subscribe

How do you kill this snap from the CLI?

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.

How do you kill this snap from the CLI?

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.

How do you kill this snap from the CLI?

Enclose the snapshot name in quotes.  i.e.

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