This post is more than 5 years old
2 Posts
0
1494
August 18th, 2018 18:00
PyU4V error - No array id specified. Please set array ID using the 'set_array_id(array_id)' function
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
No Events found!
mtaormina
6 Posts
1
August 21st, 2018 07:00
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
hazarideas
2 Posts
0
August 22nd, 2018 09:00
Great, Thank you.
Shyam