Commvault / cvpysdk

Developer SDK - Python
https://commvault.github.io/cvpysdk/
Apache License 2.0
54 stars 41 forks source link

No information in Job about clientComputers #146

Closed abadrilov closed 2 years ago

abadrilov commented 2 years ago

Hello. Could you add information about client computers in JobControole.activejobs or alljobs?

spakhare commented 2 years ago

Hi @abadrilov,

Can you please share a few more details about the requirement? Are you looking to get active jobs or all jobs by client computers?

Thanks

abadrilov commented 2 years ago

Hi. I want to get all my jobs that have status pending. After that i want to disable the backup activity by client name that i got before.

jobscontroller: JobController = JobController(connect)
for clients in clients_name:
    jobs: dict = jobscontroller.active_jobs()

There is no any information about ClientComputers in output. 'status': 'app_type': 'job_type': 'percent_complete': 'pending_reason':

kevinjojeejoseph commented 2 years ago

Hi @abadrilov The dev branch has a change that will allow you to get client ID and client name (wherever applicable) from JobController https://github.com/Commvault/cvpysdk/blob/dev/cvpysdk/job.py