ONTAP Discussions

Get-NaShelf Does Not Return Output for AT/AT-FCX

wmorlett
6,120 Views

Get-NaShelf does not return output for AT/AT-FCX loops, output is only returned for ESH4/ESH2 loops.  Is this a bug?  I'm running Data ONTAP PowerShell Toolkit 3.2.   ONTAP 7-Mode 7.3.3P5

 

PS C:\Windows\SysWOW64> get-nashelf

Name                 Status          Channel    ID  Bays Type
----                 ------          -------    --  ---- ----
1a.shelf1            online             1a      1    14  ESH4
1a.shelf2            online             1a      2    14  ESH4
1a.shelf3            online             1a      3    14  ESH4
1b.shelf1            online             1b      1    14  ESH4
1b.shelf2            online             1b      2    14  ESH4
1b.shelf3            online             1b      3    14  ESH4
1b.shelf4            online             1b      4    14  ESH4
2a.shelf1            online             2a      1    14  ESH4
2a.shelf2            online             2a      2    14  ESH4
2a.shelf3            online             2a      3    14  ESH4
2b.shelf1            online             2b      1    14  ESH4
2b.shelf2            online             2b      2    14  ESH4
2b.shelf3            online             2b      3    14  ESH4
2b.shelf4            online             2b      4    14  ESH4

 

controller> sysconfig

slot 1: FC Host Adapter 1a
                42 Disks:            11424.0GB
                3 shelves with ESH4
        slot 1: FC Host Adapter 1b
                56 Disks:            17276.0GB
                4 shelves with ESH4
        slot 1: FC Host Adapter 1c
                84 Disks:            71194.6GB
                6 shelves with AT-FCX
        slot 1: FC Host Adapter 1d
                84 Disks:            71194.6GB
                6 shelves with AT-FCX
        slot 2: FC Host Adapter 2a
                42 Disks:            11424.0GB
                3 shelves with ESH4
        slot 2: FC Host Adapter 2b
                56 Disks:            17276.0GB
                4 shelves with ESH4
        slot 2: FC Host Adapter 2c
                14 Disks:            11865.7GB
                1 shelf with AT-FCX
        slot 2: FC Host Adapter 2d
                42 Disks:            35597.3GB
                3 shelves with AT-FCX
        slot 3: FC Host Adapter 3a
                14 Disks:            11865.7GB
                1 shelf with AT-FCX
        slot 3: FC Host Adapter 3b
                42 Disks:            35597.3GB
                3 shelves with AT-FCX
        slot 3: FC Host Adapter 3c
                84 Disks:            71194.6GB
                6 shelves with AT-FCX
        slot 3: FC Host Adapter 3d
                84 Disks:            71194.6GB
                6 shelves with AT-FCX

8 REPLIES 8

JGPSHNTAP
6,006 Views

I see no issue

 

PS C:\powershell> get-nashelf | select -first 1 | select *


Name : 0a.shelf1
Status : no_status
Channel : 0a
ID : 1
Bays :
Type : AT-FCX
BayCount :
BayList :
ChannelName : 0a
FirmwareRevA : 38
FirmwareRevB : 38
Module : b
ModuleState :
PhyExpanderList :
PortHubList :
ShelfBayInfo : DataONTAP.Types.Ses.ShelfBayInfo
ShelfId : 1
ShelfName : 0a.shelf1
ShelfState : no_status
ShelfType : AT-FCX
ShelfUid :xxx- removed
TerminationSwitch :

 

PS C:\powershell> $host.version

Major Minor Build Revision
----- ----- ----- --------
3 0 -1 -1


PS C:\powershell> get-natoolkitversion

Major Minor Build Revision
----- ----- ----- --------
3 1 1 181

 

I have not upgraded to 3.2

 

Filimonov
5,752 Views

Get-NaShelf does not seem to work in version 3.2.1

 

It only returns the ESH2/4 shelves.

 

 

JGPSHNTAP
5,746 Views

I see no issue

 

PS C:\powershell> get-nashelf | select -first 1 | select *


Name : 0a.shelf1
Status : no_status
Channel : 0a
ID : 1
Bays :
Type : AT-FCX
BayCount :
BayList :
ChannelName : 0a
FirmwareRevA : 38
FirmwareRevB : 38
Module : a
ModuleState :
PhyExpanderList :
PortHubList :
ShelfBayInfo : DataONTAP.Types.Ses.ShelfBayInfo
ShelfId : 1
ShelfName : 0a.shelf1
ShelfState : no_status
ShelfType : AT-FCX
ShelfUid : 50:05:0c:c0:02:1c:df:60
TerminationSwitch :

PS C:\powershell> get-natoolkitversion

Major Minor Build Revision
----- ----- ----- --------
3 2 1 68

Filimonov
5,720 Views

What does Get-NaShelf return just on its own?

 

Are other shelf types connected to the system?

 

I do have one system in particular that only has AT-FCX shelves attached and Get-NaShelf returns both of them.

 

However on another system, that has both ESH2/4 and AT-FCX shelves attached it only returns the ESH shelves.

 

 

JGPSHNTAP
5,653 Views

This system only has AT-FCX.. But the reality is we are using a newer PS release with really old ontap version and code.. What version are you on?

Filimonov
5,612 Views

The system that does not show the AT-FCX shelves is running 8.0.1

aborzenkov
5,602 Views

I vaguelly remember some general issues with FCX shelves management in earlier 8.0 releases. May be what you see is not specific to PS toolkit at all. You really should update, this is just too old.

Filimonov
5,597 Views

Yeah it could be a problem with the API itself rather than the PS scripts.

 

I agree its a bit old however given that this system has ESH2 modules, unfortunately we cant take it past the 8.0.x release family. (I believe 8.0.5 was the last release to support ESH2 modules)

 

It's cool, i was just devloping this script as a means to learn the netapp powershell commands and write some simple scripts to document an enviroment.

Public