The basic
configurations required on an Cisco NX-OS switch to establish an XMPP session
are the following:
-
Enabling the XMPP
Client (fabric access) feature
-
Network path to
the XMPP server
-
XMPP server
configuration to establish client-server connection
-
XMPP group
subscription
Enabling the
XMPP Client Feature
The XMPP client
feature on an Cisco NX-OS switch is a conditional service which is referred as
fabric access .
This feature can be enabled/disabled using the following configuration command:
[no] feature fabric access
Network Path to
the XMPP server
The address
information for an XMPP server is a Fully Qualified Name (FQN). Therefore, the
switch requires either the static local IP-to-Name mapping or the capabilities
to resolve the FQN via DNS to establish a client-server connection.
The following is an
example for configuration of a locally configured DNS resolution for server
host-65-mgmt.cisco.com with IP address
10.0.0.1.
switch(config)# ip host-65-mgmt.cisco.com 10.0.0.1
Note |
This name must
match with the name of the XMPP server. In case of Cisco Prime DCNM XMPP
server, the name must match with the printout of the
appmgr list_users
xmpp command.
|
XMPP Server
Connection Configuration
XMPP client
connects to a specific XMPP server with configured VRF route and JID
information.
JID is a Jabber
Identifier (JID), which uniquely identify individual entities in the XMPP
(Jabber) network. For example, consider if the Fully Qualified Domain name of
server is xmpp-server.cisco.com and the username is 'admin' (username can be
obtained by issue 'where' cli on the device), JID for this user is
admin@xmpp-server.cisco.com. For a device, by default device hostname is used
as the ID to construct device JID. If device host name is leaf, JID for this
device is leaf@xmpp-server.cisco.com.
Use the following
command:
[no]fabric access server <fqn-name> [vrf <vrf-known-name>] password <password>
switch(config)# fabric access server host-65-mgmt.cisco.com vrf management password
pwd
For more information
on XMPP commands, see
XMPP Client Commands.
XMPP Group
Subscription
XMPP client can join
multiple group chats. The user has to create a group by using the fabric access
create group
group-name
command. Before running the command to create a group, the user has to log into
the XMPP server and get an authentication.
Note |
If a group does
not exist yet, the group subscription command will not be in effect, and the
switch has to retry the group subscription periodically till it is successful.
|
The XMPP client can
join a group using the
[no] fabric access group <group-name> command.
switch(config)# fabric access group leaves