When containers are deployed into a fabric, they are all connected to each other. You can easily connect to any container's command console from any of its peers. When connecting using fabric, you do not need to know any of the location details for the container you want to connect to. The fabric's runtime registry stores all of the location details needed to establish the remote connection.
In the context of a fabric, you should connect to a remote runtime's console using the fabric:container-connect command.
Example 9. fabric:container-connect Command Syntax
fabric:container-connect {-u username} {-p password} {containerName}
-
-uusername The username used to connect to the remote console. The default value is
admin.-
-ppassword The password used to connect to the remote console. The default value is
admin.containerNameThe name of the container.
![]() | Warning |
|---|---|
We recommend that you change the default administrator username and password. See Configuring JAAS Security for details. |
Example 10. Connecting to a Remote Container
karaf@root>fabric:container-connect -u admin -p admin containerNameTo confirm that you have connected to the correct container, type
shell:info at the prompt. Information about
the currently connected instance is returned, as shown in Example 11.
Example 11. Output of the shell:info Command
Karaf
Karaf version 2.3.0.fuse-71-044
Karaf home /Volumes/SAMSUNG/Programs/ESB/fuse-esb-7.1.0.fuse-044
Karaf base /Volumes/SAMSUNG/Programs/ESB/fuse-esb-7.1.0.fuse-044/instances/child1
OSGi Framework org.apache.felix.framework - 4.0.3.fuse-71-044
JVM
Java Virtual Machine Java HotSpot(TM) 64-Bit Server VM version 20.8-b03-424
Version 1.6.0_33
Vendor Apple Inc.
Uptime 7 minutes
Total compile time 5.336 seconds
Threads
Live threads 42
Daemon threads 31
Peak 96
Total started 123
Memory
Current heap size 32,832 kbytes
Maximum heap size 466,048 kbytes
Committed heap size 104,960 kbytes
Pending objects 0
Garbage collector Name = 'PS Scavenge', Collections = 7, Time = 0.063 seconds
Garbage collector Name = 'PS MarkSweep', Collections = 1, Time = 0.060 seconds
Classes
Current classes loaded 4,019
Total classes loaded 4,019
Total classes unloaded 0
Operating system
Name Mac OS X version 10.7.4
Architecture x86_64
Processors 2





![[Warning]](imagesdb/warning.gif)


