First of all thanks for your reply.
Please note I am using "cvpysdk 11.13" , "Python version is 2.7.1" and "Commvault is SP12" version .
Let me explain with more details:
I am trying to develop a python code for Commvault restoration process using "CVPYSDK" , to get the details of clients, agaents, instances, backupset, subclient etc. and perform backup an restore via cvpysdk commands.
1. For Virtual Server Agent, we are able to get "Client" and "agent name" using the following command:
client = commcell.clients.get(client_name)
agent = client.agents.get(agent_name),
But we are not able to get instance_name and its giving a "Null" value in return, as mentioned below:
has instance and agent name in self instance dict
"Virtual Server" Agent instance for Client: "dc2_vim1"
>>> print instance
None (Please not that our instance name "openstack" )
S. No. Instance Agent Client
1 openstack virtual server dc2_vim1
2. However, For File server all the above commands are working fine and I am able to get instance details, backupset details and subclient contents as well.
So , My query is why I am not able to get "Instance level detail" for "Virtual Server Agent" while its working fine for "File Server" using "cvpysdk" commands.