# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
# ident "$Revision: 1.25 $  SMI"
#

#
# This file contains all the message used by script (we mimic java)
# Each entry is a key="<message>"
# Message could be printed with print so it could contain %s etc...
#

# Cacaoadm usage
CACAOADM_USG10="cacaoadm [ undeploy | lock | unlock ] moduleName"
CACAOADM_USG11="cacaoadm deploy moduleFile"
CACAOADM_USG20="cacaoadm start | stop [ -f | --force ] | restart"
CACAOADM_USG30="cacaoadm enable | disable"
CACAOADM_USG31="    - Whether cacao should start at system startup."
CACAOADM_USG40="cacaoadm get-param [ -v | --value ] <param> | set-param <param>=<value>"
CACAOADM_USG41="    - Allows to get/set some parameter. Parameter is one of:"
CACAOADM_USG42="        jmxmp-connector-port"
CACAOADM_USG43="        snmp-adaptor-port"
CACAOADM_USG44="        snmp-adaptor-trap-port"
CACAOADM_USG45="        commandstream-adaptor-port"
CACAOADM_USG46="        java-flags"
CACAOADM_USG47="        retries"
CACAOADM_USG48="cacaoadm list-params [ -d | --description ]"
CACAOADM_USG49="    - With not parameter display all parameter with their value."
CACAOADM_USG491="    - With option display a description of all parameters."
CACAOADM_USG50="cacaoadm list-filters [ -l | --levels ] "
CACAOADM_USG51="    - With no option, display the current filters with their value."
CACAOADM_USG52="    - Otherwise, provide for each filterName a description."
CACAOADM_USG53="cacaoadm get-filter [ -v | --value ] <filterName>"
CACAOADM_USG54="    - With no option, display <filterName>=<filterLevel>."
CACAOADM_USG55="    - With option, display <filterLevel> only."
CACAOADM_USG55="cacaoadm set-filter <filterName>=<filterLevel>"
CACAOADM_USG60="cacaoadm create-keys [ --force | -f ]"
CACAOADM_USG61="    - With no parameter, generates keys if not already existing."
CACAOADM_USG62="    - With -f or --force, it always generates new keys."
CACAOADM_USG70="cacaoadm status [ moduleName ]"
CACAOADM_USG71="    - With no parameter, display all information."
CACAOADM_USG73="    - With moduleName displays information on a module."
CACAOADM_USG74="cacaoadm list-modules"
CACAOADM_USG75="    - Display the current modules."
CACAOADM_USG80="cacaoadm --help | -?"
CACAOADM_USG90="cacaoadm --version | -V"

# Logger level description
LOGGER_LEVEL1="%s indicates that all messages should be logged."
LOGGER_LEVEL2="%s is a message level for static configuration."
LOGGER_LEVEL3="%s is a message level providing tracing information."
LOGGER_LEVEL4="%s indicates a fairly detailed tracing message."
LOGGER_LEVEL5="%s indicates a highly detailed tracing message."
LOGGER_LEVEL6="%s is a message level for informational messages."
LOGGER_LEVEL7="%s is a special level that can be used to turn off logging."
LOGGER_LEVEL8="%s is a message level indicating a serious failure."
LOGGER_LEVEL9="%s is a message level indicating a potential problem."

# Parame description
PARAM_MSG1="%s JMX connector TCP port."
PARAM_MSG2="%s SNMP UDP port number."
PARAM_MSG3="%s SNMP UDP trap and inform port."
PARAM_MSG4="%s command stream TCP port"
PARAM_MSG5="%s number of times that the cacao management daemon tries to start."
PARAM_MSG6="%s sets your preferred Java parameters."

# Keygen usage
KEYGEN_USG1="Usage: %s directory - builds a new set of security keys and "
KEYGEN_USG2="passwords in the given existing directory"

# Keygen errors
INVALID_SECURITY_DIR="Cannot write any files into %s. Permission denied."
MASTER_PWD_FAILED="Generation of the master password failed. \n"
MISSING_JAVA_ENV="Cannot find JAVA and JAVA_HOME in the environment"
RETRY_WO_NSS="Key generation with NSS fails. Retrying without NSS..."
CANNOT_REMOVE_SECFILE="Cannot remove security file [%s]."

#ERROR
CACAOADM_UPTIME_FAIL="Fail to get uptime."
FAIL_RM="Fail to remove %s."
INVALID_COMMAND="Invalid command."
INVALID_PARAMETER="Invalid parameter name."
INVALID_VALUE="Invalid value %s."
INVALID_INDENTITY="Startup failed: user identity \"%s\" does not exist.\n"
MISSING_PACKAGE="Configuration package should be installed."
MISSING_JAVA="No suitable Java runtime found. Java %s or higher is required."
MISSING_JDMK="No suitable JDMK runtime libraries found. JDMK %s or higher is required."
MISSING_KEYS="You must generate key under etc/<platform>/security with keygen ."
MISSING_LOGGER="Fail to obtain filters."
NO_ROOT="You must be \"root\" to run this command."
ALREADY_RUNNING="%s: daemon already running \n"
ALREADY_RUNNING2="%s: server (pid %s) already running \n"
MISSING_NSS="warning: cannot find NSS certutil\n"
AGENT_KEY_FAILED="Generation of the agent key pair failed:\n%s"
EXPORT_CERTIF_FAILED="Export of the agent certificate failed:\n%s"
CREATION_TRUST_STORE_FAILED="Creation of the agent trustore failed:\n%s"
LOCAL_CA_DB_FAILED="Creation of the local CA db files failed:\n%s"
SEED_GENERATION_FOR_CA_FAILED="Generation of the seed file for local CA failed:\n%s"
GENERATION_CA_FAILED="Generation of the local CA certificate failed:\n%s"
EXPORT_CA_CERTIF_FAILED="Export of the local CA certificate failed:\n%s"
CREATION_CSR_FAILED="Creation of the CSR for the agent failed:\n%s"
SIGNING_CSR_FAILED="Signing of the CSR for the agent failed:\n%s"
IMPORT_CSR_FAILED="Import of the local CA certificate in the agent keystore failed:\n%s"
IMPORT_CERTIF_FAILED="Import of the certificate reply for the agent failed:\n%s"
SEED_GENERATION_FOR_WELLKNOWN_FAILED="Generation of the seed file for well-known clients failed:\n%s"
GENERATION_KEY_WELLKNOWN_FAILED="Generation of the key pair for well-known clients failed:\n%s"
DELETION_SELF_SIGNED_FAILED="Deletion of self-signed certificate for well-known clients failed:\n%s"
GENERATION_CSR_WELLKNOWN_FAILED="Generation of the CSR for well-known clients failed:\n%s"
SIGNING_CSR_WELLKNOWN_FAILED="Signing of the CSR for well-known clients failed:\n%s"
IMPORT_CA_CERTIF_WELLKOWN="Import of local CA certificate into well-known clients store failed:\n%s"
IMPORT_CERTIF_REPLY_WELLKNOWN_FAILED="Import of the certificate reply for well-known clients failed:\n%s"
UNKNOWN_CLIENT="Generation of the unknown clients db files failed:\n%s"
IMPORT_CA_UNKNOWN="Import of local CA certificate into unknown clients store failed:\n%s"
CANNOT_READ_PID="Cannot read %s file"
CANNOT_WHEN_RUNNING="Cannot perform operation while Cacao is started"
CACAO_LOCK="If cacaoadm daemon is running, it is busy executing another command."
CACAO_LOCK2="Otherwise remove lock file  %s."

#snmp config check
CANNOT_SET_R_ACCESS="Cannot set read access right to file %s for user %s"
CANNOT_SET_R_ACCESS="Cannot set read/write rigth access to file %s for user %s"
INVALID_JDMK_SNMP_SECURITY_FILE="Jdmk/snmp configuration problem : Invalid file <%s>"
INVALID_JDMK_SNMP_CONFIG="Jdmk/snmp configuration problem"
JDMK_SNMP_CONFIG_FILE_MISSING="Jdmk/snmp configuration problem, missing file property : %s"


# INFO
CACAOADM_MUST_RUN="Cacao must be running in order to perform this operation."
CACAOADM_NOT_RUNNING="Cacao is not running."
CACAOADM_NOT_CONNECT="Cacao is running but not available. Try again as it might be starting."
CACAO_ENABLE="Cacao is ENABLED at system startup."
CACAO_DISABLE="Cacao is DISABLED at system startup."
CACAO_PROCESSES="Processes for Cacao:"


#preremove script
PRE_REMOVE_MSG1="Do not try to stop cacao you do not use the default root path."
PRE_REMOVE_MSG2="Cannot stop cacao, but continue the removing of the package."
