<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SNMPv3 with PowerShell Toolkit in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/SNMPv3-with-PowerShell-Toolkit/m-p/138169#M5635</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ONTAP Version 9.1PX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm attempting to create a general config script I can apply to new clusters once they hit the floor. One of these steps is to create a SNMPv3 account. From what I can find the only cmdlet we have right now is "new-ncuser". But it seems to lack all the arguments / variables to create an SNMPv3 account. I've written the below invoke-ncssh command. I know the below invoke command won't work do to multiple things, but I just wanted to throw out the direction I was heading. Does anyone know if new-ncuser has the ability to create SNMPv3 accounts? Or if I'm missing an obvious cmdlet that fills this function? I see when doing a help -full on "new-ncuser" within the -authmethod it states ['usm' and 'community' for 'snmp' application (when creating SNMPv3 users).] but its just not clear how to provide the needed info for AUTH and PRIV.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;PRE&gt;#Get the AUTH and PRIV for the SNMPv3 account
$SNMPAuth = (Get-Credential -Message "Provide the Authentication ( AUTH ) password for OpenNMS. This should be in the password safe.").Password
$SNMPPriv = (Get-Credential -Message "Provide the Privacy ( PRIV ) password for OpenNMS. This should be in the password safe.").password

#Creates the SNMPv3 account using the two provided passwords
Invoke-NcSsh -Command "security login create -user-or-group-name &amp;lt;SNMPAccountName&amp;gt; -application snmp -authentication-method usm -role readonly -is-ns-switch-group no -comment 'Account is for OpenNMS' -vserver $adminSvmString`n `n md5`n $SNMPAuth `n $SNMPAuth `n des `n $SNMPPriv `n $SNMPPriv `n "&lt;/PRE&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 04 Jun 2025 14:01:22 GMT</pubDate>
    <dc:creator>mrblack</dc:creator>
    <dc:date>2025-06-04T14:01:22Z</dc:date>
    <item>
      <title>SNMPv3 with PowerShell Toolkit</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/SNMPv3-with-PowerShell-Toolkit/m-p/138169#M5635</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ONTAP Version 9.1PX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm attempting to create a general config script I can apply to new clusters once they hit the floor. One of these steps is to create a SNMPv3 account. From what I can find the only cmdlet we have right now is "new-ncuser". But it seems to lack all the arguments / variables to create an SNMPv3 account. I've written the below invoke-ncssh command. I know the below invoke command won't work do to multiple things, but I just wanted to throw out the direction I was heading. Does anyone know if new-ncuser has the ability to create SNMPv3 accounts? Or if I'm missing an obvious cmdlet that fills this function? I see when doing a help -full on "new-ncuser" within the -authmethod it states ['usm' and 'community' for 'snmp' application (when creating SNMPv3 users).] but its just not clear how to provide the needed info for AUTH and PRIV.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;PRE&gt;#Get the AUTH and PRIV for the SNMPv3 account
$SNMPAuth = (Get-Credential -Message "Provide the Authentication ( AUTH ) password for OpenNMS. This should be in the password safe.").Password
$SNMPPriv = (Get-Credential -Message "Provide the Privacy ( PRIV ) password for OpenNMS. This should be in the password safe.").password

#Creates the SNMPv3 account using the two provided passwords
Invoke-NcSsh -Command "security login create -user-or-group-name &amp;lt;SNMPAccountName&amp;gt; -application snmp -authentication-method usm -role readonly -is-ns-switch-group no -comment 'Account is for OpenNMS' -vserver $adminSvmString`n `n md5`n $SNMPAuth `n $SNMPAuth `n des `n $SNMPPriv `n $SNMPPriv `n "&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:01:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/SNMPv3-with-PowerShell-Toolkit/m-p/138169#M5635</guid>
      <dc:creator>mrblack</dc:creator>
      <dc:date>2025-06-04T14:01:22Z</dc:date>
    </item>
  </channel>
</rss>

