smctl login
Authenticates user against a SAP Service Manager instance.
smctl login [flags]
login, l
|
Required |
Global Flag |
|
|---|---|---|
|
|
Base URL for SAP Service Manager. |
No |
|
|
Use it to add more parameters. Parameters are specified as
|
No |
|
Optional |
Global Flag |
||
|---|---|---|---|
|
|
Help for the |
No |
|
|
|
User password |
No |
|
|
|
Skip verification of the OAuth endpoint. Not recommended. |
No |
|
|
|
User ID |
No |
|
|
|
Set the path for the smctl |
Yes |
|
|
|
Use the verbose mode. |
Yes |
|
|
|
Specify the authorization flow. You have the following two options:
If not specified, |
No |
|
|
|
|
You specify these parameters if you chose the See the example of a binding object created with the default credentials type: Create a SAP Service Manager Instance and Binding. |
No |
|
|
|
You specify these parameters if you chose the Their values are paths to files that contain public and private keys respectively that were generated upon the creation of the binding object with X.509 credentials type. See the example of a binding object created with X.509 credentials type: Create a SAP Service Manager Instance and Binding. |
No |
> smctl login -a https://service-management-url.com
User: user # entering username
Password: # entering password (password visibility is disabled)
Logged in successfully.
> smctl login -a https://service-management-url.com -u user -p pass
Logged in successfully.
> smctl login -a https://service-manager-url.com --auth-flow=client-credentials --client-id=id --client-secret=secret
Logged in successfully.
smctl login -a https://service-manager-url.com --auth-flow=client-credentials --client-id=id --cert=cert.pem --key=key.pem
Logged in successfully.
SAP Service Manager Control (SMCTL) command-line also supports the explicit logout command and session timeout period of 30 minutes to better secure users' data and avoid malicious access.
Related Information