SAP HANA XS Advanced: Unterschied zwischen den Versionen
Matt (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Matt (Diskussion | Beiträge) |
||
(12 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 84: | Zeile 84: | ||
xs system-info # Show system infrastructure information | xs system-info # Show system infrastructure information | ||
xs runtimes # List available runtimes | xs runtimes # List available runtimes | ||
xs runtime type=<runtime> # Show information about the selected runtime | |||
== Access Remote XS Advanced == | |||
xs api https://<remote-server> [--skip-ssl-validation] | |||
xs api https://<remote-server> --cacert <path-to-pem-file> | |||
=== XS Services verwalten === | === XS Services verwalten === | ||
Zeile 89: | Zeile 95: | ||
xs start <service> oder xs st <service> | xs start <service> oder xs st <service> | ||
xs start <service> oder xs sp <service> | xs start <service> oder xs sp <service> | ||
xs services # show services | |||
xs create-service <new service name> oder xs cs <new service name> | xs create-service <new service name> oder xs cs <new service name> | ||
xs delete-service <service name> [-f] [--purge] or xs ds <service name> | |||
=== Deploy MTAR === | === Deploy MTAR === | ||
Upload mtar-File to the server. | Upload mtar-File to the server via scp or WinSCP. | ||
xs login # Login to server | xs login # Login to server | ||
xs target - | xs target -s <space> # Switch to target space | ||
xs deploy <file.mtar> --use-namespaces # Deploy mtar (--use-namespaces always necessary?) | xs deploy <file.mtar> --use-namespaces # Deploy mtar (--use-namespaces always necessary?) | ||
Zeile 102: | Zeile 110: | ||
https://help.sap.com/viewer/4505d0bdaf4948449b7f7379d24d0f0d/2.0.03/en-US/308f2041995c41a88bbb197cf2a984f7.html#loio308f2041995c41a88bbb197cf2a984f7__section_irt_3dc_zs | https://help.sap.com/viewer/4505d0bdaf4948449b7f7379d24d0f0d/2.0.03/en-US/308f2041995c41a88bbb197cf2a984f7.html#loio308f2041995c41a88bbb197cf2a984f7__section_irt_3dc_zs | ||
=== | === Undeploy Previously Deployed MTAR === | ||
Find out deployed server name: | |||
xs mtas | |||
Show services: | |||
xs services | |||
Undeploy app with name from list created with previous statement. Don't forget to delete the services and the service brokers: | |||
xs undeploy <appname> --delete-services --delete-service-brokers | |||
If forgotten to delete service: | |||
xs | xs delete-service <service name> [-f] [--purge] or xs ds <service name> | ||
Source: https://help.sap.com/viewer/0f42237afe5045a0bea874d6b0cc6ef5/1.0%20FP3/en-US/6707d6f0bb414e7c806cd0da14c48015.html | |||
=== Show Running Deployments or Abort === | |||
Show running deployments: | |||
xs mta-ops | |||
Retry/Abort active deployment: | |||
xs deploy -i <process number from previous step> -a retry | |||
xs deploy -i <process number from previous step> -a abort | |||
Check services | |||
xs services | |||
Delete orphaned services if necessary: | |||
xs delete-service <service name> [-f] [--purge] or xs ds <service name> | |||
[[Category:SAP]] | [[Category:SAP]] | ||
[[Category:HANA]] | [[Category:HANA]] | ||
[[Category:Terminal]] | [[Category:Terminal]] |
Aktuelle Version vom 3. Februar 2021, 20:56 Uhr
Grundlegende Command-Line-Befehle und Funktionen des SAP HANA XS Advanced Servers.
Verfügbarkeit und Dienststatus überprüfen
XS Advanced Server
Der folgende Link gibt eine Webseite aus, die den Status der SAP HANA XS Advanced Runtime und der UAA-Service anzeigt -> Siehe oben links
Außerdem bietet sie Links auf alle Teile der HANA-Installation:
- SAP HANA Cockpit
- SAP HANA Cockpit Manager
- SAP HANA XS Advanced Cockpit
- SAP Web IDE for SAP HANA
Der folgende Link gibt im JSON-Format aus, auf welchem Port welche Dienste laufen:
Damit kann getestet werden, ob API-Aufrufe gegen den Server klappen.
Erläuterung Portnummern
Die Instanznummer, z.B. Standard-Instanz 90, wird folgendermaßen in der Portnummer kodiert:
https://<hana_hostname>:3<instance_number>30/v2/info
Beispiel für Standard-Instanz:
XSEngine
Die Seite gibt aus, ob die XSEngine läuft:
SAP HANA und XSA Cockpits
URLs und Dienststatus für die relevanten SAP HANA und XSA Cockpits:
xs apps | grep cockpit-web-app # SAP HANA Cockpit xs apps | grep cockpit-admin-web-app # SAP HANA Cockpit Manager xs apps | grep xsa-cockpit # XS Advanced Cockpit
Web IDE for SAP HANA
Standard-Konfiguration in SAP HANA Express Edition:
Standard-URL: https://hxehost:53075
User: XSA_DEV
Pass: Master Passwort
Port herausfinden:
xs apps | grep webide # Web IDE for SAP HANA
Für gleichzeitigen Login als XSA_ADMIN und XSA_DEV, für einen der beiden im Browser den Incognito-Modus verwenden.
XS Command Line Interface
Kann auf zwei Wegen erreicht werden:
- Über CLI des Servers (z.B. per SSH)
- Lokale Installation mit SAP HANA Express Edition Download Manager
Weitere Informationen: SAP Help Portal XS Command Line Interface Reference: https://help.sap.com/viewer/4505d0bdaf4948449b7f7379d24d0f0d/2.0.00/en-US/addd59069e6f444ca6ccc064d131feec.html
Login und Infos
xs login # Anmelden an XSA xs login -s # Anmelden an XSA mit Angabe eines Space xs login -o # Anmelden an XSA mit Angabe einer Organisation xs login --skip-ssl-validation # SSL Zertifikatsfehlermeldung von SAP HANA Express VM unterdrücken xs-admin-login # Als XSA_ADMIN an XSA anmelden (Nur mit SAP HANA Express möglich) xs target -S SAP # Zu SAP Space wechseln, wo sich das Administration # Cockpit und die Web IDE für SAP HANA befindet xs apps oder xs a # Laufende XS Apps inkl. ihrer URLs auflisten xs services # Laufende XS Dienste auflisten xs version # Show server version information xs system-info # Show system infrastructure information xs runtimes # List available runtimes xs runtime type=<runtime> # Show information about the selected runtime
Access Remote XS Advanced
xs api https://<remote-server> [--skip-ssl-validation] xs api https://<remote-server> --cacert <path-to-pem-file>
XS Services verwalten
xs start <service> oder xs st <service> xs start <service> oder xs sp <service> xs services # show services xs create-service <new service name> oder xs cs <new service name> xs delete-service <service name> [-f] [--purge] or xs ds <service name>
Deploy MTAR
Upload mtar-File to the server via scp or WinSCP.
xs login # Login to server xs target -s <space> # Switch to target space xs deploy <file.mtar> --use-namespaces # Deploy mtar (--use-namespaces always necessary?)
Undeploy Previously Deployed MTAR
Find out deployed server name:
xs mtas
Show services:
xs services
Undeploy app with name from list created with previous statement. Don't forget to delete the services and the service brokers:
xs undeploy <appname> --delete-services --delete-service-brokers
If forgotten to delete service:
xs delete-service <service name> [-f] [--purge] or xs ds <service name>
Show Running Deployments or Abort
Show running deployments:
xs mta-ops
Retry/Abort active deployment:
xs deploy -i <process number from previous step> -a retry xs deploy -i <process number from previous step> -a abort
Check services
xs services
Delete orphaned services if necessary:
xs delete-service <service name> [-f] [--purge] or xs ds <service name>