Retrieving JobID information

Last post 10-06-2020, 9:32 AM by andrew. 1 replies.
Sort Posts: Previous Next
  • Retrieving JobID information
    Posted: 07-10-2020, 12:34 PM

    If I use the webconsole\sandbox and get Job information I get the below output -

    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <JobManager_JobListResponse totalRecordsWithoutPaging="1">

    <jobSummary alertColorLevel="0" appTypeName="Windows File System" backupLevel="UNKNOWN_BKP_LEVEL" backupSetName="defaultBackupSet" commcellId="2" destClientName="tc0pg2xenvw001" errorType="UNDEFINEDERROR" isAged="false" isPreemptable="0" isVisible="true" jobElapsedTime="0" jobEndTime="1594392570" jobId="1141789" jobStartTime="1594392419" jobType="Restore" lastUpdateTime="1594392570" localizedOperationName="Restore" localizedStatus="Killed" opType="Restore" pendingReason="Killed by ideasprod\\brstib. Reason:[].&lt;br>Source: 001, Process: JobManager&lt;br>&lt;br>The job was started in a suspended state. The job can be started by resuming the job.&lt;br>Source: 001, Process: JobManager" pendingReasonErrorCode="19:861" percentComplete="100" percentSavings="0" sizeOfApplication="0" sizeOfMediaOnDisk="0" status="Killed" statusColor="black" totalFailedFiles="0" totalFailedFolders="0" totalNumOfFiles="0" vsaParentJobID="0">
    <storagePolicy storagePolicyId="0"/>
    <userName userId="1" userName="admin"/>
    <subclient appName="Windows File System" applicationId="33" backupsetId="1453" backupsetName="defaultBackupSet" clientId="766" clientName="tc0pg2xenvw001" commCellName="001" instanceId="1" instanceName="DefaultInstanceName" subclientId="0"/>
    <clientGroups _type_="CLIENT_GROUP_ENTITY" clientGroupId="5" clientGroupName="Production"/>
    <clientGroups _type_="CLIENT_GROUP_ENTITY" clientGroupId="9" clientGroupName="All Installed Servers"/>
    <clientGroups _type_="CLIENT_GROUP_ENTITY" clientGroupId="26" clientGroupName="Web Console"/>
    <clientGroups _type_="CLIENT_GROUP_ENTITY" clientGroupId="55" clientGroupName="Tencent_Clients"/>
    <destinationClient clientId="942" clientName="tc0pg2xenvw001" displayName="mn5pg2xdbsw099"/>


    If I try to replicate this with a PowerShell script I get

    PS C:\Users\brstib\OneDrive - SAS\Documents\PowerShell> C:\Users\brstib\OneDrive - SAS\Documents\PowerShell\GetJobID.ps1
    <DM2ContentIndexing_CheckCredentialResp aliasName="47" userGUID="636BA2D8-90D7-4D6B-AE8F-028351E62030" loginAttempts="0" remainingLockTime="0" smtpAddress="tech" userName="PSUser" providerType="1" ccn="0" token="QSDK " capability="1073741824" forcePasswordChange="0" isAccountLocked="0"><ownerOrganization providerId="0" providerDomainName="Commcell" /><providerOrganization providerId=
    "0" providerDomainName="Commcell" /></DM2ContentIndexing_CheckCredentialResp>

    StatusCode : 200
    StatusDescription : OK
    Content : <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <JobManager_JobListResponse totalRecordsWithoutPaging="0"/>

    RawContent : HTTP/1.1 200 OK
    Content-Length: 116
    Cache-Control: private
    Content-Type: application/xml; charset=utf-8
    Server: Microsoft-IIS/8.5,Microsoft-IIS/8.5
    X-Powered-By: ASP.NET,ASP.NET
    Forms :
    Headers : {[Content-Length, 116], [Cache-Control, private], [Content-Type, application/xml; charset=utf-8], [Server,
    Images : {}
    InputFields : {}
    Links : {}
    ParsedHtml :
    RawContentLength : 116


    I don't understand why the PowerShell output is not the same as the sandbox output?

  • Re: Retrieving JobID information
    Posted: 10-06-2020, 9:32 AM

    When you run the script in powershell is the user you are using (userName="PSUser") different than the user you are using when using the sandbox? I think if the PSUser user does not have the correct permissions it will not be able to view job details.

The content of the forums, threads and posts reflects the thoughts and opinions of each author, and does not represent the thoughts, opinions, plans or strategies of Commvault Systems, Inc. ("Commvault") and Commvault undertakes no obligation to update, correct or modify any statements made in this forum. Any and all third party links, statements, comments, or feedback posted to, or otherwise provided by this forum, thread or post are not affiliated with, nor endorsed by, Commvault.
Commvault, Commvault and logo, the “CV” logo, Commvault Systems, Solving Forward, SIM, Singular Information Management, Simpana, Commvault Galaxy, Unified Data Management, QiNetix, Quick Recovery, QR, CommNet, GridStor, Vault Tracker, InnerVault, QuickSnap, QSnap, Recovery Director, CommServe, CommCell, SnapProtect, ROMS, and CommValue, are trademarks or registered trademarks of Commvault Systems, Inc. All other third party brands, products, service names, trademarks, or registered service marks are the property of and used to identify the products or services of their respective owners. All specifications are subject to change without notice.
Copyright © 2020 Commvault | All Rights Reserved. | Legal | Privacy Policy