diff --git a/geode-core/src/main/java/org/apache/geode/management/internal/i18n/CliStrings.java b/geode-core/src/main/java/org/apache/geode/management/internal/i18n/CliStrings.java index 36afa1274805..bb669ddca17d 100644 --- a/geode-core/src/main/java/org/apache/geode/management/internal/i18n/CliStrings.java +++ b/geode-core/src/main/java/org/apache/geode/management/internal/i18n/CliStrings.java @@ -548,13 +548,8 @@ public class CliStrings { public static final String CONNECT__LOCATOR__HELP = "Network address of the Locator in the form: host[port]."; public static final String CONNECT__URL = "url"; - public static final String CONNECT__DEFAULT_BASE_URL = - "http://localhost:" + DistributionConfig.DEFAULT_HTTP_SERVICE_PORT + "/geode-mgmt/v1"; - public static final String CONNECT__DEFAULT_SSL_BASE_URL = - "https://localhost:" + DistributionConfig.DEFAULT_HTTP_SERVICE_PORT + "/geode-mgmt/v1"; public static final String CONNECT__URL__HELP = - "Indicates the base URL to the Manager's HTTP service. For example: 'http://:/gemfire/v1' Default is '" - + CONNECT__DEFAULT_BASE_URL + "'"; + "Indicates the base URL to the Manager's HTTP service. For example: 'http://:/geode-mgmt/v1'"; public static final String CONNECT__USE_HTTP = "use-http"; public static final String CONNECT__USE_HTTP__HELP = "[Deprecated: inferred by the presence of --url]. Connects to Manager by sending HTTP requests to HTTP service hosting the Management REST API. You must first 'disconnect' in order to reconnect to the Manager via locator or jmx-manager using JMX."; diff --git a/geode-docs/tools_modules/gfsh/command-pages/connect.html.md.erb b/geode-docs/tools_modules/gfsh/command-pages/connect.html.md.erb index 34e678c7776d..60f7b5e86e1d 100644 --- a/geode-docs/tools_modules/gfsh/command-pages/connect.html.md.erb +++ b/geode-docs/tools_modules/gfsh/command-pages/connect.html.md.erb @@ -72,16 +72,13 @@ connect [--locator=value] [--jmx-manager=value] [--use-http(=value)?] [--url=val \-\-use-http -Connects to a JMX manager HTTP service using the HTTP protocol. -
    -
  • If the parameter is not specified: false
  • -
  • If the parameter is specified without a value: true
  • -
+Deprecated: inferred by the presence of --url. Connects to a JMX manager HTTP service using the HTTP protocol. + \-\-url -URL used to connect to a JMX manager's HTTP service -http://localhost:8080/gemfire/v1 +URL used to connect to a JMX manager's HTTP service. + \-\-user @@ -178,16 +175,16 @@ gfsh>connect ``` pre gfsh>connect Connecting to Locator at [host=localhost, port=10334] .. -Connecting to Manager at [host=GemFireStymon, port=1099] .. -Successfully connected to: [host=GemFireStymon, port=1099] +Connecting to Manager at [host=GeodeStymon, port=1099] .. +Successfully connected to: [host=GeodeStymon, port=1099] ``` **Example of connecting to a remote locator over HTTP:** ``` pre -gfsh>connect --use-http=true --url="http://myLocatorHost.example.com:8080/gemfire/v1" -Successfully connected to: GemFire Manager's HTTP service @ -http://myLocatorHost.example.com:8080/gemfire/v1 +gfsh>connect --url="http://myLocatorHost.example.com:8080/geode-mgmt/v1" +Successfully connected to: Geode Manager's HTTP service @ +http://myLocatorHost.example.com:8080/geode-mgmt/v1 ``` **Error Messages:** @@ -196,8 +193,8 @@ http://myLocatorHost.example.com:8080/gemfire/v1 "Locator could not find a JMX Manager"; "jmx password must be specified."; "Could not connect to : {0}. {1}"; -"Could not find a GemFire jmx-manager service running at {0}."; +"Could not find a Geode jmx-manager service running at {0}."; "--token requires a value, for example --token=foo"; "--token cannot be combined with --user or --password"; -"Could not connect to GemFire Locator service at {0}." +"Could not connect to Geode Locator service at {0}." ```