{"id":853,"date":"2011-06-24T22:23:04","date_gmt":"2011-06-24T12:23:04","guid":{"rendered":"https:\/\/www.penguinpunk.net\/blog\/?p=853"},"modified":"2011-06-24T08:28:18","modified_gmt":"2011-06-23T22:28:18","slug":"emc-naviseccli-addusersecurity","status":"publish","type":"post","link":"https:\/\/www.penguinpunk.net\/blog\/emc-naviseccli-addusersecurity\/","title":{"rendered":"EMC &#8211; naviseccli -AddUserSecurity"},"content":{"rendered":"<p>There are any number of reasons why you mightn&#8217;t want to store your CLARiiON credentials in an encrypted file in your home directory. I can&#8217;t think of any. This post will cover the basics of setting yourself up with a security file that means you won&#8217;t have to keep entering your username, scope and password every time you want to use <em><strong>naviseccli<\/strong><\/em>.<\/p>\n<p><strong>-AddUserSecurity<\/strong><br \/>\nThis is the command to\u00a0add user security information to the security file on this host. You need to use the <strong>-scope <\/strong>switch to add scope information to the security file. You can also use the <strong>-password <\/strong>switch or enter your password into the password prompt, to supply the required password information to the security file. If you don&#8217;t specify the <strong>-user <\/strong>switch, naviseccli assumes that the currently logged in user is the username you wish to use.\u00a0The <strong>-secfilepath <\/strong>switch\u00a0is also\u00a0optional with this command. Note that if you use the <strong>-secfilepath <\/strong>switch, you can specify an alternative location to your default home directory, for the security file on this host. Keep in mind that you will then need to\u00a0use the <strong>-secfilepath <\/strong>switch in each subsequent command you issue. You might find this tiresome.<\/p>\n<p><strong>-RemoveUserSecurity<\/strong><br \/>\nThis blats any user security information about the current user from the security file on this host.<\/p>\n<p><strong>-scope 0|1|2<\/strong><br \/>\nSpecifies whether the user account on the storage system you want to log in to is global (0), local (1), or LDAP (2). A global account is, as the name implies, global for the Navisphere \/ Unisphere domain you&#8217;re working in.\u00a0A local account is effective on only the storage systems for which the administrator creates the account. LDAP maps the username\/password entries to an external LDAP or active directory server for authentication.<\/p>\n<p><strong>-secfilepath filepath<\/strong><br \/>\nStores the security file in a specified location. This is useful if for some reason you don&#8217;t want the security file stored in your default home directory.<\/p>\n<p>Enough talk. Here&#8217;s an example of how to setup the security file.<\/p>\n<p><strong>c:\\&gt;naviseccli -AddUserSecurity -Scope 0 -user san_admin<\/strong><\/p>\n<p><strong>Enter password:<\/strong><\/p>\n<p>Assuming that the user <strong><em>san_admin<\/em><\/strong> is valid for the domain, and assuming that I&#8217;ve entered the password correctly,\u00a0I can now run commands against any array in the domain without entering the username, password or scope. When you have a long password this can lead to some real time savings :)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are any number of reasons why you mightn&#8217;t want to store your CLARiiON credentials in an encrypted file in your home directory. I can&#8217;t think of any. This post will cover the basics of setting yourself up with a security file that means you won&#8217;t have to keep entering your username, scope and password [&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,5],"tags":[24,396,170,200,21,110,158,202,40,787,308],"class_list":["post-853","post","type-post","status-publish","format-standard","hentry","category-clariion-emc-storage-storage","category-emc-storage","category-storage","tag-clariion","tag-cli","tag-cx4","tag-cx4-960","tag-emc","tag-howto","tag-naviseccli","tag-navisphere","tag-san","tag-storage","tag-unisphere-2"],"_links":{"self":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/853","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=853"}],"version-history":[{"count":6,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/853\/revisions"}],"predecessor-version":[{"id":895,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/posts\/853\/revisions\/895"}],"wp:attachment":[{"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/media?parent=853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/categories?post=853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.penguinpunk.net\/blog\/wp-json\/wp\/v2\/tags?post=853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}