云服务器内容精选

  • 命令示例 本节以Windows为例介绍eihealth-toolkit的使用过程,Linux和macOS环境使用方法基本相同,可参考。 假设“lmx-test-01”项目引用了来自“lmx-test-02”项目的数据,使用health switch project lmx-test-01命令进入“lmx-test-01”项目,使用health ls命令列举该项目下的对象。 指定“path”参数为根目录,查询根目录下所有对象。 health ls / -r # 返回结果如下 # *表示引用的其他项目中的数据 *lmx-test-02:/test1.txt *lmx-test-02:/test2.txt *lmx-test-02:/src1/ *lmx-test-02:/src1/test1.txt # Folder list为本项目中的数据 Folder list: /src1/ /src2/ File list: key size last_Modified /test1.txt 6.57MB 2020/11/09 10:32:12 /test2.txt 6.57MB 2020/11/09 10:32:12 /test3.txt 6.57MB 2020/11/09 10:32:12 /test4.txt 6.57MB 2020/11/09 10:32:12 /test5.txt 6.57MB 2020/11/09 10:32:12 /test6.txt 6.57MB 2020/11/09 10:32:12 /src1/test7.txt 6.57MB 2020/11/09 10:32:12 /src2/test8.txt 6.57MB 2020/11/09 10:32:12 Total size of current file is: 52.56MB Folder number is: 4 File number is: 8 指定“limit”参数,并只列举项目中的3个对象。 health ls --limit 3 # 返回结果如下 Folder list: /src1/ /src2/ File list: key Size LastModified /test1.txt 6.57MB 2020/11/09 10:32:12 Total size of current file is: 6.57MB Folder number is: 2 File number is: 1 指定“path”参数,列举某指定路径中的对象。 health ls /src2/ # 列举路径中的文件夹对象时,需使用/xxx/格式 # 返回结果如下 Folder list: /src2/ # 路径中无文件夹时,返回为空 File list: key Size LastModified /src2/test8.txt 6.57MB 2020/11/09 10:32:12 Total size of current file is: 6.57MB Folder number is: 1 File number is: 1 指定“simple”参数,以简略格式显示对象。 health ls --simple # 返回结果如下 Folder list: /src1/ /src2/ File list: /test1.txt /test2.txt /test3.txt /test4.txt /test5.txt /test6.txt /src1/test7.txt /src2/test8.txt Total size of current file is: 52.56MB Folder number is: 2 File number is: 8 指定引用项目。 health ls lmx-test-02:/src1/ --simple Start at 2022-08-23 08:28:43.3699574 +0000 UTC Listing objects . Folder list: Object list: /src1/test1.txt
  • 命令示例 本节以Windows为例介绍ai4s-toolkit的使用过程,Linux、macOS和Windows环境使用方法基本相同,可参考此章节。 获取作业列表 ai4s get data-job # 返回结果如下 Name ID Type Status Creator Created Duration job-01 xxxxx BACKUP_DATA Failed LMX-01 2021-02-01 11:11:27 2s job-02 xxxxx BACKUP_DATA_DELETE Succeeded LMX-01 2021-02-01 11:11:27 48m44s 获取作业详情 ai4s get data-job 12345678 # 返回结果如下 { "complete_data": [ "0000000000/" ], "running_data": [], "creator": "ei_eihealth_02", "source_project_name": "drug-screening-demo-01", "id": "xxxx", "name": "abc/abc", "sources": [ "0000000000/" ], "create_time": "2021-06-17T07:57:35Z", "end_time": "2021-06-17T11:46:37Z", "status": "RUNNING", "destinations": [ "xxxx/" ], "type": "CLONE_DATA" } 获取数据作业执行日志 ai4s get data-job 12345678 --log # 返回结果如下 2021-02-01 11:11:27 Complete import file lmx-test-01:/lmx-database/data1.txt 2021-02-01 11:11:27 Import row 2-4 of file lmx-test-01:/lmx-database/data1.txt 下载数据作业执行日志 ai4s get data-job 12345678 --file d:/log.txt # 返回结果如下 download the log file of data job to d:/log.txt successfully!