Cisco ASR1002 Network Positioning Guide - Page 13

Service Resolution Configuration Examples, show service-resolution dc command: example, Purpose

Page 13 highlights

Configuring Service Placement Service Resolution Configuration Examples Command or Action Purpose • port-Port within the web server address that the external world uses to reach the API. Step 2 service-resolution web-service username username Configures the username and password for the service resolution API password password user authentication. Only one username and password pair can be configured. If you do not configure a username and password, user Example: authentication is disabled. SR(config)# service-resolution web-service username foo password 1234 • username-Service resolution API username to be added. • password-Password associated with this username. Step 3 service-resolution dc id pe-address address Example: 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. SR(config)# service-resolution dc att-west pe-address 5.5.5.5 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 • id-Unique data center identifier. • 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.). Step 4 service-resolution exclude dc id Adds data centers to a global exclusion list, in other words a list of data centers to be excluded from the service placement Example: recommendation operation. A common use for exclusion is when data centers are down for maintenance. switch(config)# service-resolution exclude dc att_west • id-Identifier of the data center to be excluded. Step 5 service-resolution service-request timeout timeout-interval Specifies the service request timeout interval in seconds. Values can range from 1 to 3600. The default is 30 seconds. Example: switch(config)# service-resolution service-request timeout 90 Service Resolution Configuration Examples show service-resolution dc command: example SR-1# show service-resolution dc OL-25794-01 Cisco Network Positioning System Configuration Guide for the Cisco ASR 1000 Router, Release 1.0 7

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34

Purpose
Command 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