[SAP HANA] S4HANA XSA 安装常用命令

上周进行了S4HANA 安装遇到很多坑, 现在将有用的command 总结一下

xs command

参考有用的SAP NOTE

2598136 - Installation of SAP HANA Live is spinning and hangs for a long time
2705540 - XSA - Error processing MTA archive: Conflicting process

最有用的

d4cadm@D4C:/hana/shared/d4c/xs> xs apps

Getting apps in org "doufupi" / space "SAP" as XSA_admin...
Found apps:

name                    requested state   instances   memory    disk          alerts     urls
--------------------------------------------------------------------------------------------------------------------------------
auditlog-broker         STARTED           1/1         64.0 MB   <unlimited>   0/0/2383   https://D4C.server.doufupi.com:51003
auditlog-db             STOPPED           0/1         16.0 MB   <unlimited>              <none>
auditlog-server         STARTED           1/1         256 MB    <unlimited>              https://D4C.server.doufupi.com:51002
component-registry-db   STOPPED           0/1         16.0 MB   <unlimited>              <none>
deploy-service          STOPPED           0/1         300 MB    <unlimited>   67/67/67   https://D4C.server.doufupi.com:51004
eadesigner              STARTED           1/1         512 MB    <unlimited>   0/0/5209   https://D4C.server.doufupi.com:51011
eadesigner-db           STOPPED           0/1         256 MB    <unlimited>              <none>
eadesigner-service      STOPPED           0/1         512 MB    <unlimited>              https://D4C.server.doufupi.com:51012
product-installer       STARTED           1/1         256 MB    <unlimited>              https://D4C.server.doufupi.com:51005

TIP: use 'xs app <APP_NAME>' to get details about alerts.


d4cadm@D4C:/hana/shared/d4c/xs> xs display-installation-history

Getting installation history in org "doufupi" / space "SAP" as XSA_admin...
Found processes:

process id   type      content type*   technical name of SCV/PV [instances]   prev-version   version   start timestamp           end timestamp             state**
------------------------------------------------------------------------------------------------------------------------------------------------------------------
12647        install   SCV             XSAC_UI5_FESV5 (sap.com)               1.60.18        1.60.18   2019-11-20 05:36:06.993   2019-11-20 05:36:46.872   E
12571        install   SCV             XSAC_UI5_FESV5 (sap.com)               1.60.18        1.60.18   2019-11-20 04:39:24.648   2019-11-20 04:40:05.856   E
* SCV - Software Component Version, PV - Product Version
** S - success, E - error, R - running

XSA 命令:

XSA restart 

 常用的xs command:

xs help <command>
xs login xs version xs target -s SAP xs delete-app-instances deploy-service --crashed xs delete-app-instances deploy-service --stopped xs start deploy-service xs restart/rs deploy-service xs install <ARCHIVE> [-p <TARGET_PLATFORM>] [-pv | --PRODUCT_VERSION] [-scv | --SOFTWARE_COMPONENT_VERSION] [-t <TIMEOUT>] [-e <EXT_DESCRIPTOR_1>[,<EXT_DESCRIPTOR_2>]] [-o <VERSION_OPTION_1>[,<VERSION_OPTION_2>]] [-i | --INSTANCES <INSTANCE_1[,INSTANCE_2]>] [--delete-services] [--delete-service-brokers][--no-start] [--ignore-lock] xs install /hana/shared/D4C/XSA/DATA_UNITS/XSA_CONTENT_10/XSACXSACOCKPIT01_15.zip -o ALLOW_SC_SAME_VERSION --ignore-lock xs install XSASAMPLEPRODUCT_1.0.3.zip -o ALLOW_PV_DOWNGRADE, ALLOW_SC_DOWNGRADE xs uninstall <NAME> [<VENDOR>] [-pv | --PRODUCT_VERSION] [-scv | --SOFTWARE_COMPONENT_VERSION] [-f] [--ignore-scv-reuse] [--delete-services] [--delete-service-brokers] [--ignore-lock] xs uninstall 'XSA SAMPLE PRODUCT' -pv xs display-installation-logs <log ID> --unins_scv xs display-installation-logs <process ID> --pvxs xs display-installation-logs <process ID> --scv xs list-products xs list-components [--all] xs list-products "XSA Sample Product" xs list-products XSASAMPLEPRODUCT sap.com
xs mta-ops xs deploy -i '20159' -a retry -u https://D4C.server.doufupi.com:39130 xs restage ./hdblcm --component_root=/hana/shared/D4C/XSA/ ./hdblcm --action=unregister_instance --help ./hdblcm --action=unregister_system --help ./hdblcm --action=register_rename_system --help ./hdblcm --action=register_rename_system --help ./hdblcm --action=<LCM action> --dump_configfile_template=<file path> ./hdblcmgui --<parameter key>=<parameter value> ./hdblcm --<parameter key>=<parameter value> --configfile=<file path> ./hdblcm --batch <additional parameters> ./hdblcm -b <additional parameters> ./hdblcm --batch --configfile=/var/tmp/H01_configfile
./hdblcm --action=update_components --component_dirs=/hana/shared/software/AFL/installer --ignore=check_version cat ~/hdb_passwords.xml | ./hdblcm --batch --action=install --components=client,server --sid=DB1 --number=42 --read_password_from_stdin=xml ./hdblcm --configfile=<file path> ./hdblcm --action=update --scope=instance ./hdblcm --action=update_host Delivery unit archive file (*.tgz) /usr/sap/<SID>/SYS/global/hdb/auto_content /usr/sap/<SID>/SYS/global/hdb/content
每天进步一点点,多思考,多总结 版权声明:本文为CNblog博主「zaituzhong」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文地址:https://www.cnblogs.com/tingxin/p/11972073.html