Highlighted
Not applicable

PyU4V error - No array id specified. Please set array ID using the 'set_array_id(array_id)' function

Jump to solution

I m trying to use this python module on a Unisphere. But it prompts me to set the array id first. I want to pull all arrays from the unisphere first then set an array id. Any idea what I am missing ?

>>> import PyU4V

>>> conn = PyU4V.U4VConn(username='smc', password='smc', server_ip='10.xx.xx.xx', port='8443', verify=True)

No array id specified. Please set array ID using the 'set_array_id(array_id)' function.

Appreciated

Shyam

0 Kudos
1 Solution

Accepted Solutions
Highlighted
2 Bronze

Re: PyU4V error - No array id specified. Please set array ID using the 'set_array_id(array_id)' function

Jump to solution

This message is mostly informational. After setting the conn, you can get a list of arrays by running the following:

>>> conn.common.get_array_list()

["000194900123", "000195900123", "000196900123", "000197900123", "000197900123"]


This step and more information is available at the documentation page. https://pyu4v.readthedocs.io/en/latest/index.html

View solution in original post

2 Replies
Highlighted
2 Bronze

Re: PyU4V error - No array id specified. Please set array ID using the 'set_array_id(array_id)' function

Jump to solution

This message is mostly informational. After setting the conn, you can get a list of arrays by running the following:

>>> conn.common.get_array_list()

["000194900123", "000195900123", "000196900123", "000197900123", "000197900123"]


This step and more information is available at the documentation page. https://pyu4v.readthedocs.io/en/latest/index.html

View solution in original post

Highlighted
Not applicable

Re: PyU4V error - No array id specified. Please set array ID using the 'set_array_id(array_id)' function

Jump to solution

Great, Thank you.

Shyam

0 Kudos