The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to register at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Software Development Kit (SDK) and API Discussions

Model number of disks owned by a 7mode system

nitish

Hi,

 

I am using perl and NMSDK 5.2 to pull the list of disks owned by a system(7mode).

The API "disk-list-info" gives the list of disks owned by partner node also.

 

Is there a way to query the 7mode system to get only disk name and model number owned by it?

The API pulls a lot of data which i don't need.

            <disk-detail-info>
                <name>6c.22.6</name>
                <node>xxxxxxx</node>
                <disk-uid>5000C500:76A679EF:00000000:00000000:00000000:00000000:00000000:00000000:00000000:00000000</disk-uid>
                <bay>6</bay>
                <bytes-per-sector>520</bytes-per-sector>
                <checksum-compatibility>block</checksum-compatibility>
                <disk-type>SAS</disk-type>
                <effective-disk-type>SAS</effective-disk-type>
                <firmware-revision>NA06</firmware-revision>
                <host-adapter>6c</host-adapter>
                <secondary-host-adapter>4c</secondary-host-adapter>
                <id>5767171</id>
                <physical-blocks>1147307688</physical-blocks>
                <physical-space>587421536256</physical-space>
                <pool>Pool0</pool>
                <port>A</port>
                <port-name>SA:A</port-name>
                <raid-state>partner</raid-state>
                <raid-type/>
                <rpm>15000</rpm>
                <secondary-name>4c.22.6</secondary-name>
                <secondary-port>B</secondary-port>
                <serial-number>6SL8SG3C0000N4477LJ8</serial-number>
                <shelf>22</shelf>
                <used-blocks>0</used-blocks>
                <used-space>0</used-space>
                <vendor-id>NETAPP  </vendor-id>
                <blocks-read>0</blocks-read>
                <blocks-written>0</blocks-written>
                <shm-time-interval>0</shm-time-interval>
                <grown-defect-list-count>0</grown-defect-list-count>
                <scrub-last-done>0</scrub-last-done>
                <scrub-count>0</scrub-count>
                <is-dynamically-qualified>0</is-dynamically-qualified>
                <raw-disk-sectors>1147307694</raw-disk-sectors>
                <disk-model>X412_S15K7560A15</disk-model>
            </disk-detail-info>

 

Thanks

1 REPLY 1

ekashpureff

 

NITISH -

 

As far as I can see, no.

 

You'd have to look at the <node> element to determine the ownership.

 

There's also the storage-disk-get-iter API you may wish to look at.

 


I hope this response has been helpful to you.

At your service,

Eugene E. Kashpureff, Sr.
Independent NetApp Consultant http://www.linkedin.com/in/eugenekashpureff
Senior NetApp Instructor, IT Learning Solutions http://sg.itls.asia/netapp
(P.S. I appreciate 'kudos' on any helpful posts.)

 

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public