CLI Guide

name=value pair 1 name=value pair 2 Description
attribute=setjre jreversion=bundled | value
bundled: Sets the version bundled with
Server Administrator. This is the default
value.
value: Sets the provided version, which is
available on the system. To obtain the
available versions on the system, type
omreport preferences webserver
attribute=getjrelist. For more
details, see omreport preferences webserver.
attribute=exportcsr N/A
Exports a Certificate Signing Request (CSR)
file. The exported .csr file is saved at
<Server Administrator
installation directory>\apache-
tomcat\temp.
attribute=gennewcert cn=<common name> org=<organization
name> ou=<organization unit name>
location=<location name> state=<state
name> country=<country name>
validity=<validity> keysize=<512 | 1024 |
2048> algorithm=<MD5 | SHA1 | SHA256 |
SHA512> webserverrestart=<true | false>
Creates a new self-signed certificate for the
SSL communication between the server
running Server Administrator and the web
server.
NOTE: The country name (country
name) must be of two characters,
and validity (validity) must be in
days. For country names, see the
table, Country names and codes,
provided later in this section. The
validity, keysize, and algorithm
parameters are optional. If you do not
set any value for the optional
parameters, Server Administrator
assigns default values to the optional
parameters. The default values of
validity, keysize, and algorithm
are 1095, 2048, and SHA512
respectively. Restarting Server
Administrator web server is optional,
but the generated certificate comes
to effect only after restarting the
web server.
attribute=uploadcert certfile=<path of the certificate file>
type=<pkcs12> password=<password of
the certificate file> webserverrestart=true
| false
Allows you to import a PKCS#12 keystore
that replaces the private key and certificate
used in Server Administrator web server.
PKCS#12 is public keystore that contains a
private key and the certificate for a web
server. Server Administrator uses the Java
KeyStore (JKS) format to store the SSL
certificates and its private key. Importing a
PKCS#12 keystore to Server Administrator
deletes the keystore entries, and imports a
private key and certificate entries to the
Server Administrator JKS.
NOTE: If you are importing a
PKCS#12 keystore, specify the type
and password of the certificate.
Restarting Server Administrator web
server is optional, but the uploaded
Omconfig Managing Components Using The Instrumentation Service 91