PurposeCommand or Action
•
port—Port within the web server address that the external world
uses to reach the API.
Configures the username and password for the service resolution API
user authentication. Only one username and password pair can be
service-resolution web-service username username
password password
Step 2
configured. If you do not configure a username and password, user
authentication is disabled.
Example:
SR(config)# service-resolution web-service
username foo password 1234
•
username—Service resolution API username to be added.
•
password—Password associated with this username.
Configures data center (DC)/PE pairs. Data centers entered in this
command are used for the DC candidate list as well as being associated
with a PE connected to the DC.
service-resolution dc id pe-address address
Example:
SR(config)# service-resolution dc att-west
Step 3
•
id—Unique data center identifier.
pe-address 5.5.5.5
•
address—IP address of the PE used to access the DC. This
address is used as an end-point in the various types of rankings
(performance, proximity, etc.).
SR(config)# service-resolution dc DC1
pe-address 2.2.2.2
SR(config)# service-resolution dc DC1
pe-address 3.3.3.3
SR(config)# service-resolution dc DC2
pe-address 4.4.4.4
SR(config)# service-resolution dc DC2
pe-address 1.1.1.1
Adds data centers to a global exclusion list, in other words a list of
data centers to be excluded from the service placement
service-resolution exclude dc id
Example:
switch(config)# service-resolution exclude
dc att_west
Step 4
recommendation operation. A common use for exclusion is when
data centers are down for maintenance.
•
id—Identifier of the data center to be excluded.
Specifies the service request timeout interval in seconds. Values can
range from 1 to 3600. The default is 30 seconds.
service-resolution service-request timeout
timeout-interval
Example:
switch(config)# service-resolution
service-request timeout 90
Step 5
Service Resolution Configuration Examples
show service-resolution dc command: example
SR-1# show service-resolution dc
Cisco Network Positioning System Configuration Guide for the Cisco ASR 1000 Router, Release 1.0
OL-25794-01 7
Configuring Service Placement
Service Resolution Configuration Examples