{"id":870,"date":"2011-06-23T23:25:07","date_gmt":"2011-06-23T13:25:07","guid":{"rendered":"https:\/\/www.penguinpunk.net\/blog\/?p=870"},"modified":"2011-06-23T13:43:39","modified_gmt":"2011-06-23T03:43:39","slug":"emc-naviseccli-basics-part-1","status":"publish","type":"post","link":"https:\/\/www.penguinpunk.net\/blog\/emc-naviseccli-basics-part-1\/","title":{"rendered":"EMC &#8211; naviseccli &#8211; Basics &#8211; Part 1"},"content":{"rendered":"<p>For those of you unfamiliar with the EMC tool <em><strong>naviseccli<\/strong><\/em>, I thought I&#8217;d do a few posts on some useful commands that can be run to save you some time if you&#8217;ve been doing a lot of repetitive tasks. The <em><strong>naviseccli<\/strong><\/em> tool is very powerful and can be unforgiving, so as always I recommend you read the manual and be sure that you know what you&#8217;re doing before you do it. The tool is ostensibly used to send status or configuration requests to a storage system (specifically the VNX or CX4)\u00a0via the command line and can be installed on a Windows, Linux, Solaris or whatever platform.<\/p>\n<p>Typing naviseccli at the prompt will provide the following:<\/p>\n<p><strong>[-address IPAddress|NetworkName|-h IPAddress|NetworkName]<\/strong><br \/>\n<strong>[-AddUserSecurity]<\/strong><br \/>\n<strong>[-f filename]<\/strong><br \/>\n<strong>[-m]<\/strong><br \/>\n<strong>[-nopoll|-np]<\/strong><br \/>\n<strong>[-parse|-p]<\/strong><br \/>\n<strong>[-password password]<\/strong><br \/>\n<strong>[-port port]<\/strong><br \/>\n<strong>[-q]<\/strong><br \/>\n<strong>[-RemoveUserSecurity]<\/strong><br \/>\n<strong>[-scope 0|1|2]<\/strong><br \/>\n<strong>[-timeout |-t timeout]<\/strong><br \/>\n<strong>[-user username]<\/strong><br \/>\n<strong>[-v]<\/strong><br \/>\n<strong>[-xml]<\/strong><br \/>\n<strong>CMD [optional_command_switches]<\/strong><\/p>\n<p>There&#8217;s a (metric) tonne of other stuff it can do via the <strong>CMD<\/strong> switch, but I thought for an introduction we&#8217;ll start with the basics. I&#8217;m going to try and avoid regurgitating the user manual, and instead focus on real world examples where it&#8217;s come in useful for me.\u00a0 Okay, so maybe I&#8217;ll regurgitate a portion of the manual. So let&#8217;s get down to it.<\/p>\n<p><strong>-f filename<\/strong>. This switch specifies to store data in a file. If you&#8217;re working inside a script you may find this is a more useful option than other output options you have available.<br \/>\n<strong>-m<\/strong>. Suppresses output except for values. This option is most useful when used as part of a script. Note that this is only supported for commands that originated in Classic CLI.<br \/>\n<strong>-nopoll|-np<\/strong>. Directs the feature provider not to issue a poll request. This switch significantly increases performance when dealing with large or multiple storage systems. The feature provider automatically polls unless this switch is specified. Note that when the <strong>-nopoll<\/strong> switch is set, get commands may return stale data and set commands may erase previously changed settings. Use caution when the <strong>-nopoll<\/strong> switch is set.<\/p>\n<p><strong>-user<\/strong>. If you don&#8217;t want to create a security file on the machine you&#8217;re working on (I&#8217;ll cover this in a future post), you&#8217;ll need to specify a username that works on the system you&#8217;re addressing. At this point you should also provide the <strong>scope (0|1|2)<\/strong>, with 0 being global, 1 being local to the SP you&#8217;re addressing, and 2 being LDAP credentials.<\/p>\n<p><strong>-port portnumber<\/strong>. Sets the port number (type) of the storage system. The default is 443. If you choose to change the default port number, management port 2163 will be supported; however, you will need to specify the -port switch and number 2163 in every subsequent command you issue. That doesn&#8217;t sound like fun does it?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For those of you unfamiliar with the EMC tool naviseccli, I thought I&#8217;d do a few posts on some useful commands that can be run to save you some time if you&#8217;ve been doing a lot of repetitive tasks. The naviseccli tool is very powerful and can be unforgiving, so as always I recommend you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[125,60,122,5,307],"tags":[24,170,200,228,21,113,110,158,40,787],"class_list":["post-870","post","type-post","status-publish","format-standard","hentry","category-clariion-emc-storage-storage","category-emc-storage","category-mirrorview-emc-storage-storage","category-storage","category-unisphere","tag-clariion","tag-cx4","tag-cx4-960","tag-cx700","tag-emc","tag-flare","tag-howto","tag-naviseccli","tag-san","tag-storage"],"_links":{"self":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/870","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=870"}],"version-history":[{"count":4,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/870\/revisions"}],"predecessor-version":[{"id":884,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/870\/revisions\/884"}],"wp:attachment":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/media?parent=870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/categories?post=870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/tags?post=870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}