<?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 Unable to get session information correctly through Get-NcCifsSession in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Unable-to-get-session-information-correctly-through-Get-NcCifsSession/m-p/453253#M6905</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am using the Get-NcCifsSession from the Powershell Toolkit to get the number of sessions connected to a Vserver on an AFF with FlexCache configuration. However, most of the time, only a few sessions are displayed (occasionally, a larger number is displayed). When I get the session information using the ONTAP CLI at the same time, a larger number of sessions are displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Number of sessions gotten using ONTAP CLI: 1226&lt;BR /&gt;--------------------&lt;BR /&gt;vserver cifs session show -Vserver vserver_name&lt;BR /&gt;--------------------&lt;/P&gt;&lt;P&gt;- Number of sessions gotten using PowerShell Toolkit: 4&lt;BR /&gt;--------------------&lt;BR /&gt;vserver cifs session show -Vserver vserver_name&lt;BR /&gt;--------------------&lt;/P&gt;&lt;P&gt;Our environment:&lt;BR /&gt;Configuration: FlexCache configuration AFF (cache)--- CVO (origin)&lt;BR /&gt;ONTAP version: 9.14.1 P1&lt;BR /&gt;Toolkit version: 9.14.1P1&lt;/P&gt;&lt;P&gt;Code for getting sessions:&lt;BR /&gt;$cvo_mgmt_param = @{&lt;BR /&gt;'ip_addr' = 'AFF IP Address'&lt;BR /&gt;'username' = 'admin';&lt;BR /&gt;'password' = 'admin password';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;$password = ConvertTo-SecureString $cvo_mgmt_param['password'] -AsPlainText -Force&lt;/P&gt;&lt;P&gt;$cred = New-Object System.Management.Automation.PSCredential $cvo_mgmt_param['username'],$password&lt;/P&gt;&lt;P&gt;Connect-NcController $cvo_mgmt_param['ip_addr'] -credential $cred&lt;/P&gt;&lt;P&gt;Get-NcCifsSession -Vserver &amp;lt;vserver-name&amp;gt;&lt;BR /&gt;(Get-NcCifsSession -Vserver &amp;lt;vserver-name&amp;gt; | Measure-Object).Count&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;Example output:&lt;BR /&gt;LifAddress SessionId ConnectionId ConnectedTime ProtocolVersion Address Vserver&lt;BR /&gt;---------- --------- ------------ ------------- --------------- ------- -------&lt;BR /&gt;XXX.XXX.XXX.XXX ...540379279 2633504152 15h 47m 5s smb3_1 XXX.XXX.XXX.XXX&lt;BR /&gt;XXX.XXX.XXX.XXX ...540379280 2633504153 15h 47m 10s smb3_1 XXX.XXX.XXX.XXX&lt;BR /&gt;XXX.XXX.XXX.XXX ...540379285 2633504161 15h 47m 10s smb3_1 XXX.XXX.XXX.XXX&lt;BR /&gt;XXX.XXX.XXX.XXX ...540379287 2633504163 15h 47m 6s smb3_1 XXX.XXX.XXX.XXX&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 18 Jun 2024 00:22:22 GMT</pubDate>
    <dc:creator>umemoto</dc:creator>
    <dc:date>2024-06-18T00:22:22Z</dc:date>
    <item>
      <title>Unable to get session information correctly through Get-NcCifsSession</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Unable-to-get-session-information-correctly-through-Get-NcCifsSession/m-p/453253#M6905</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am using the Get-NcCifsSession from the Powershell Toolkit to get the number of sessions connected to a Vserver on an AFF with FlexCache configuration. However, most of the time, only a few sessions are displayed (occasionally, a larger number is displayed). When I get the session information using the ONTAP CLI at the same time, a larger number of sessions are displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Number of sessions gotten using ONTAP CLI: 1226&lt;BR /&gt;--------------------&lt;BR /&gt;vserver cifs session show -Vserver vserver_name&lt;BR /&gt;--------------------&lt;/P&gt;&lt;P&gt;- Number of sessions gotten using PowerShell Toolkit: 4&lt;BR /&gt;--------------------&lt;BR /&gt;vserver cifs session show -Vserver vserver_name&lt;BR /&gt;--------------------&lt;/P&gt;&lt;P&gt;Our environment:&lt;BR /&gt;Configuration: FlexCache configuration AFF (cache)--- CVO (origin)&lt;BR /&gt;ONTAP version: 9.14.1 P1&lt;BR /&gt;Toolkit version: 9.14.1P1&lt;/P&gt;&lt;P&gt;Code for getting sessions:&lt;BR /&gt;$cvo_mgmt_param = @{&lt;BR /&gt;'ip_addr' = 'AFF IP Address'&lt;BR /&gt;'username' = 'admin';&lt;BR /&gt;'password' = 'admin password';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;$password = ConvertTo-SecureString $cvo_mgmt_param['password'] -AsPlainText -Force&lt;/P&gt;&lt;P&gt;$cred = New-Object System.Management.Automation.PSCredential $cvo_mgmt_param['username'],$password&lt;/P&gt;&lt;P&gt;Connect-NcController $cvo_mgmt_param['ip_addr'] -credential $cred&lt;/P&gt;&lt;P&gt;Get-NcCifsSession -Vserver &amp;lt;vserver-name&amp;gt;&lt;BR /&gt;(Get-NcCifsSession -Vserver &amp;lt;vserver-name&amp;gt; | Measure-Object).Count&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;Example output:&lt;BR /&gt;LifAddress SessionId ConnectionId ConnectedTime ProtocolVersion Address Vserver&lt;BR /&gt;---------- --------- ------------ ------------- --------------- ------- -------&lt;BR /&gt;XXX.XXX.XXX.XXX ...540379279 2633504152 15h 47m 5s smb3_1 XXX.XXX.XXX.XXX&lt;BR /&gt;XXX.XXX.XXX.XXX ...540379280 2633504153 15h 47m 10s smb3_1 XXX.XXX.XXX.XXX&lt;BR /&gt;XXX.XXX.XXX.XXX ...540379285 2633504161 15h 47m 10s smb3_1 XXX.XXX.XXX.XXX&lt;BR /&gt;XXX.XXX.XXX.XXX ...540379287 2633504163 15h 47m 6s smb3_1 XXX.XXX.XXX.XXX&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jun 2024 00:22:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Unable-to-get-session-information-correctly-through-Get-NcCifsSession/m-p/453253#M6905</guid>
      <dc:creator>umemoto</dc:creator>
      <dc:date>2024-06-18T00:22:22Z</dc:date>
    </item>
  </channel>
</rss>

