Problems - problem files
Use this command to work with the problem files that belong to a reported problem.
Problems - list problem files
To list all problem files that belong to a problem:
admin.problem_files
Output:
[
{
"created_time": "Apr 7, 2014 3:07:36 PM",
"file_name": "Management_14-04-07.20.07.38.tgz",
"file_size": 31867335,
"packaged_log_url": "/ipas/systemlogs/Management_14-04-07.20.07.38.tgz",
"problems_url": "/admin/resources/problems/27ad1125-62ab-442c-9a7e-d184f365091f",
"retry": 0,
"status": "Available",
"updated_time": "Apr 7, 2014 3:11:01 PM",
"uploaded_time": None,
"url": "/admin/resources/problem_files/5e03d4a2-0662-4839-9643-4592355c8de7"
}
]
Problems - list single problem file
To list a single problem file from a problem:
admin.problem_files[#]
The supported properties are listed in the following table:
Property | Description | Usage |
---|---|---|
created_time | Created time of the problem file. | admin.problem_files[0].created_time |
file_name | The name of the file. | admin.problem_files[0].file_name |
file_size | File size of the problem file, in bytes. | admin.problem_files[0].file_size |
packaged_log_url | The URL of the packaged log for the problem file. | admin.problem_files[0].packaged_log_url |
retry | The number of attempts to upload the file. | admin.problem_files[0].retry |
status | The status of the problem file. | admin.problem_files[0].status |
updated_time | Updated time of the problem file. | admin.problem_files[0].updated_time |
uploaded_time | The date when this file was uploaded. | admin.problem_files[0].uploaded_time |
url | The URL of the problem file. | admin.problem_files[0].url |
Output:
{
"created_time": "Apr 7, 2014 3:07:36 PM",
"file_name": "Management_14-04-07.20.07.38.tgz",
"file_size": 31867335,
"packaged_log_url": "/ipas/systemlogs/Management_14-04-07.20.07.38.tgz",
"problems_url": "/admin/resources/problems/27ad1125-62ab-442c-9a7e-d184f365091f",
"retry": 0,
"status": "Available",
"updated_time": "Apr 7, 2014 3:11:01 PM",
"uploaded_time": None,
"url": "/admin/resources/problem_files/5e03d4a2-0662-4839-9643-4592355c8de7"
}
Problems - download problem file
To download a problem file:
admin.problem_files[#].download(<path>, <user>, <password>)
Where:
path
is the directory to download the problem file. If not specified, the current directory is used.user
is the user ID. If not specified, you are prompted for this information.password
is the user password. If not specified, you are prompted for this information.
Example:
admin.problem_files[0].download('C:\downloads','userid','password')
Output:
File downloaded to C:\downloads\Management_14-04-07.20.07.38.tgz
Problems - upload problem file
To upload a problem file to IBM Support:
admin.problem_files[#].upload()
If the Service and Support Manager feature is enabled and the problem file has a valid status, the file is uploaded. Valid statuses are "Available" and "Upload Failed". After a file is uploaded, it is removed from IBM® Cloud Pak System W4600.
Output:
{
"created_time": "Apr 7, 2014 3:07:36 PM",
"file_name": "Management_14-04-07.20.07.38.tgz",
"file_size": 31867335,
"packaged_log_url": "/ipas/systemlogs/Management_14-04-07.20.07.38.tgz",
"problems_url": "/admin/resources/problems/27ad1125-62ab-442c-9a7e-d184f365091f",
"retry": 0,
"status": "Upload Complete",
"updated_time": "Apr 7, 2014 3:11:01 PM",
"uploaded_time": None,
"url": "/admin/resources/problem_files/5e03d4a2-0662-4839-9643-4592355c8de7"
}
Problems - delete problem file
To delete a problem file from a problem:
admin.problem_files[#].delete()
Output: None