Skip to content

zowe cics command to create a JVM server #344

@jt-nti

Description

@jt-nti

Is your feature or enhancement request related to a problem or limitation? Please describe

This is a follow on to issue #72. Using zowe cics define bundle means I can use the CICS bundle deployment API to deploy bundles, which is great!

The next hurdle I encountered was that the Liberty web application I wanted to deploy required a Liberty JVM server with specific features configure in server.xml. I was able to create the JVM server I needed through a combination of zowe zftp upload ftu, zowe zos-ssh issue command and curl commands but that approach is somewhat error prone.

Describe your enhancement idea

A zowe cics command to create a JVM server with the desired configuration would be really nice.

Describe alternatives you've considered

I think it would also be possible to create a JVM server using a CICS bundle however I don't know if I would be able to include the required Liberty configuration using this alternative.

Provide any additional context

Example commands without this feature request...

zowe zftp upload ftu --binary --zftp-profile "cicsdev.zftp" {{defdir}}/libertyInclude.xml {{env("CICSDEV_JVMPROFILE_WLP_XML")}}
zowe zos-ssh issue command --ssh-profile "cicsdev.ssh" "chmod 755 {{env("CICSDEV_JVMPROFILE_WLP_XML")}}"

zowe zftp upload ftu --zftp-profile "cicsdev.zftp" {{defdir}}/CICSDEV.jvmprofile {{env("CICSDEV_JVMPROFILE_DIR")}}/CICSDEV.jvmprofile
zowe zos-ssh issue command --ssh-profile "cicsdev.ssh" "chmod 755 CICSDEV.jvmprofile" --cwd {{env("CICSDEV_JVMPROFILE_DIR")}}

echo "user: \"$CICSDEV_USER:$CICSDEV_PASSWORD\"" | {{curl}} --config - \
    --insecure \
    --request POST \
    --url ${CICSDEV_CMCI_URL:?}/CICSSystemManagement/CICSDefinitionJVMServer/{{env("CICSDEV_PLEX", "")}}/{{env("CICSDEV_REGION", "")}} \
    --header 'content-type: application/xml' \
    --data '<request><create><parameter name="CSD"/><attributes name="{{env("CICSDEV_JVM_SERVER")}}" description="" csdgroup="{{env("CICSDEV_CSD_GROUP")}}" jvmprofile="CICSDEV" status="ENABLED"/></create></request>'

echo "user: \"$CICSDEV_USER:$CICSDEV_PASSWORD\"" | {{curl}} --config - \
    --insecure \
    --request PUT \
    --url ${CICSDEV_CMCI_URL:?}/CICSSystemManagement/CICSCSDGroup/{{env("CICSDEV_PLEX", "")}}/{{env("CICSDEV_REGION", "")}}?CRITERIA=NAME%3D%3D{{env("CICSDEV_JVM_SERVER")}} \
    --header 'content-type: application/xml' \
    --data '<request><action name="CSDINSTALL"></action></request>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    New Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions