{"id":2879,"date":"2015-05-20T08:30:53","date_gmt":"2015-05-19T22:30:53","guid":{"rendered":"https:\/\/www.penguinpunk.net\/blog\/?p=2879"},"modified":"2015-06-01T14:28:29","modified_gmt":"2015-06-01T04:28:29","slug":"emc-using-naviseccli-to-create-a-vnx-snapshot","status":"publish","type":"post","link":"https:\/\/www.penguinpunk.net\/blog\/emc-using-naviseccli-to-create-a-vnx-snapshot\/","title":{"rendered":"EMC \u2013 Using naviseccli to create a VNX Snapshot"},"content":{"rendered":"<p>If you&#8217;re a VNX customer you&#8217;ve probably heard someone bang on about how easy to use VNX Snapshots are, particularly if they&#8217;ve used SnapView in the past. If you&#8217;re after the good word on VNX Snapshots, check out this whitepaper from EMC <a href=\"https:\/\/www.emc.com\/collateral\/software\/white-papers\/h10858-vnx-snapshots-wp.pdf\" target=\"_blank\">here<\/a>. Tomek has a reasonable write-up <a href=\"http:\/\/www.storagefreak.net\/2014\/07\/emc-vnx-snapshots\" target=\"_blank\">here<\/a> as well.<\/p>\n<p>In any case I&#8217;ve been working with a customer on some migration scripts and they wanted to take VNX Snapshots as well as VM snapshots while they update their OS and apps. I wrote about <a href=\"https:\/\/www.penguinpunk.net\/blog\/emc-creating-snapview-clones-with-naviseccli\/\" target=\"_blank\">creating SnapView Clones with naviseccli <\/a>some time ago, but\u00a0I find VNX Snapshots a shedload easier to work with. This is will, as always, be dictated by your own set of requirements, circumstances and religious beliefs.<\/p>\n<p>So here&#8217;s what you need to do to get from start to finish. Note that I haven&#8217;t covered creating Snapshot Mount Points (SMPs) in this, nor do I talk about using host-based tools such as SnapCLI. I&#8217;ll follow up in the future with some words around this.<\/p>\n<p>[Update] I forgot to mention <a href=\"https:\/\/twitter.com\/dynamoxxx\" target=\"_blank\">@Dynamoxxx<\/a> \/ <a href=\"https:\/\/storagemonkey.wordpress.com\/\" target=\"_blank\">Storage Monkey<\/a>&#8216;s\u00a0excellent posts on this subject too &#8211; have a look <a href=\"https:\/\/storagemonkey.wordpress.com\/2013\/08\/05\/using-vnx-snapshots-on-linux\/\" target=\"_blank\">here for Linux<\/a> and <a href=\"https:\/\/storagemonkey.wordpress.com\/2013\/08\/05\/using-vnx-snapshots-on-linux\/\" target=\"_blank\">here for Windows<\/a>.<\/p>\n<pre><strong>Microsoft Windows [Version 6.3.9600]<\/strong>\r\n<strong>(c) 2013 Microsoft Corporation. All rights reserved.\r\n\r\n<\/strong><strong>C:\\Program Files (x86)\\EMC\\Navisphere CLI&gt;NaviSECCli.exe<\/strong>\r\n<strong>Not enough arguments<\/strong>\r\n<strong>\u00a0 Usage:<\/strong>\r\n<strong>\u00a0\u00a0\u00a0 [-User &lt;username&gt;] [-Password &lt;password&gt;]<\/strong>\r\n<strong>\u00a0\u00a0\u00a0 [-Scope &lt;0 - global; 1 - local; 2 - LDAP&gt;]<\/strong>\r\n<strong>\u00a0\u00a0\u00a0 [-Address &lt;IPAddress | NetworkName&gt; | -h &lt;IPAddress | NetworkName&gt;]<\/strong>\r\n<strong>\u00a0\u00a0\u00a0 [-Port &lt;portnumber&gt;] [-Timeout &lt;timeout&gt; | -t &lt;timeout&gt;]<\/strong>\r\n<strong>\u00a0\u00a0\u00a0 [-AddUserSecurity | -RemoveUserSecurity | -DeleteSecurityEntry]<\/strong>\r\n<strong>\u00a0\u00a0\u00a0 [-Parse | -p] [-NoPoll | -np] [-cmdtime]<\/strong>\r\n<strong>\u00a0\u00a0\u00a0 [-Xml] [-f &lt;filename&gt;] [-Help] CMD &lt;Optional Arguments&gt;<\/strong>\r\n<strong>\u00a0\u00a0\u00a0 [security -certificate]<\/strong><\/pre>\n<p>You&#8217;ll need to set yourself up if you&#8217;re using a fresh installation.<\/p>\n<pre><strong>C:\\Program Files (x86)\\EMC\\Navisphere CLI&gt;NaviSECCli.exe -addusersecurity -scope 0 -user sysadmin<\/strong><\/pre>\n<p>You can then create a snapshot of LUN 7 called &#8220;testsnap1&#8221; which is read\/write and will be kept for 4 hours.<\/p>\n<pre><strong>C:\\Program Files (x86)\\EMC\\Navisphere CLI&gt;NaviSECCli.exe -address 192.168.0.100 snap -create -res 7 -resType LUN -name \"testsnap1\" -descr \"snap via CLI\" -keepFor 4h -allowreadwrite yes\r\nUnable to validate the identity of the server.\u00a0 There are issues with the certificate presented.\r\nOnly import this certificate if you have reason to believe it was sent by a trusted source.\r\nCertificate details:\r\nSubject:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CN=192.168.0.100,CN=SPA,OU=CLARiiON\r\nIssuer: CN=192.168.0.100,CN=SPA,OU=CLARiiON\r\nSerial#:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fcd99068\r\nValid From:\u00a0\u00a0\u00a0\u00a0 2015:01:15:02:55:01\r\nValid To:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2020:01:14:02:55:01\r\nWould you like to [1]Accept the certificate for this session, [2] Accept and store, [3] Reject the certificate?\r\nPlease input your selection(The default selection is [1]):\r\n2\r\n\r\n<\/strong><\/pre>\n<p>Note that there&#8217;s no output from this command. If you want to check out the snapshots you have, you can list them.<\/p>\n<pre><strong>C:\\Program Files (x86)\\EMC\\Navisphere CLI&gt;naviseccli -address 192.168.0.100 snap -list\r\n\r\n<\/strong><strong>Name:\u00a0 testsnap1\r\nDescription:\u00a0 snap via CLI\r\nCreation time:\u00a0 05\/19\/15 10:22:37\r\nSource LUN(s):\u00a0 7\r\nSource CG:\u00a0 N\/A\r\nState:\u00a0 Ready\r\nAllow Read\/Write:\u00a0 Yes\r\nModified:\u00a0 No\r\nAllow auto delete:\u00a0 No\r\nExpiration date:\u00a0 05\/19\/15 14:22:37<\/strong><\/pre>\n<p>Want to change the ID of the snapshot or change the autodelete setting?<\/p>\n<pre><strong>C:\\Program Files (x86)\\EMC\\Navisphere CLI&gt;naviseccli -address 192.168.0.100 snap -modify -id \"testsnap1\" -name \"testsnap2\" -allowautodelete yes\r\nSetting auto-delete on this Snapshot will clear expiration date on it. Are you sure you want to perform this operation?(y\/n): n\r\n<\/strong><strong>C:\\Program Files (x86)\\EMC\\Navisphere CLI&gt;naviseccli -address 192.168.0.100 snap -modify -id \"testsnap1\" -name \"testsnap2\"<\/strong><\/pre>\n<p>Great, now let&#8217;s get rid of it.<\/p>\n<pre><strong>C:\\Program Files (x86)\\EMC\\Navisphere CLI&gt;naviseccli -address 192.168.0.100 snap -destroy -id \"testsnap2\"\r\nAre you sure you want to perform this operation?(y\/n): y<\/strong><\/pre>\n<p>And that&#8217;s about it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re a VNX customer you&#8217;ve probably heard someone bang on about how easy to use VNX Snapshots are, particularly if they&#8217;ve used SnapView in the past. If you&#8217;re after the good word on VNX Snapshots, check out this whitepaper from EMC here. Tomek has a reasonable write-up here as well. In any case I&#8217;ve [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60,408],"tags":[21,110,158,452,787,807,759],"class_list":["post-2879","post","type-post","status-publish","format-standard","hentry","category-emc-storage","category-vnx","tag-emc","tag-howto","tag-naviseccli","tag-snapview-2","tag-storage","tag-vnx","tag-vnx-snapshots"],"_links":{"self":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/2879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/comments?post=2879"}],"version-history":[{"count":8,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/2879\/revisions"}],"predecessor-version":[{"id":2911,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/2879\/revisions\/2911"}],"wp:attachment":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/media?parent=2879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/categories?post=2879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/tags?post=2879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}