CLI Commands : service-director

Configure service-director parameters. Entity = city, continent, country, isp, state, or zip value. See “Configure Service Director” on page 83 for implementation details.
domain <string>
xml-response <name>
query-url-host {<hostname> | <IP_address>}
cache-response age <seconds>
hash-verify share-secret <string> time-interval deviation <seconds>
match {city | continent | country | isp | state | zip | default}
host-response {<hostname>|<IP_address>} [<hostname>|<IP_address>]...
xml-response {<hostname> | <IP_address>]
xml-response <name> <http-url>
crossdomain—Configure the crossdomain.xml file that has to be returned to flash players. There are two configuration options:
domain—Enter up to four domain names to be used to auto generate the crossdomain.xml in the document root directory.
xml-response—Give the name configured under xml-response name (below).
query-url-host—This defines the hostname of the incoming query. For example, if a query issued by a player is, the query-url-host is Once the query is matched with the right hostname, the IP address is matched to one (and only one of) country, state, city, zip, or ISP specified by the match "entity" value and a response (either configured host-response or xml-response) is sent. More than one query-url-host can be configured to allow different types of response-to-IP address depending on which Geo-Load Balancing server in the system is being hit. Note! Under query-url-host, mapping is done in the order in which the hosts are added; as soon as Service Director finds a matching entity, it takes it, so you want to enter the most specific entities first. For example if you configure "Country USA" as the first entry followed by "City Santa Clara" then all the IP addresses from USA are mapped *only* to the entry "Country USA" and Service Director never sees any entities entered after.
activate—Make this host active.
cache-response age—Allows the Service Director to set a maximum age in the HTTP response it sends, to allow the browser to cache. The default value is 1 day (86400 seconds). A value of 0 indicates that the response should be made non-cacheable.
hash-verify—Hash verification of incoming URL is optional. If enabled you must configure a share-secret, and, optionally, a time-interval deviation.
shared-secret {append | prefix}—Enter a secret key that is then appended or prefixed (as specified) to the URI, to calculate the hash which is then "matched" with the match query-string-parm hash value.
time-interval deviation—Enter a value in seconds after which requests are not accepted. Used to avoid denial-of-service hijacks repeatedly sending the same request over and over. Default is 10 seconds.
match—Enter location option (isp, zip, city, state, country, continent) or default and a response value.
host-response—Enter up to three domain names or IP addresses to be used to auto generate the crossdomain.xml in the document root directory.
xml-response—Give the name configured under xml-response name (below).
xml-response <name> <http-url>—A configured XML file (format given below) located at an external server; the configured file <name> and <http-url> allow the file to be extracted from a server, this file should be installed in the document root directory.
service-director xml-response UK-response
service-director query-url-host
match isp Comcast response
match zip 95054 response
match city “Los Angeles” response
match state CA response
match country USA response
match country GBR response UK-response
match continent Asia response
match default response
Response XML format example:
<?xml version="1.0" encoding="UTF-8" ?>
<geoiplookup name="GeoIP Service" service="Host Lookup">
<city_code>Los Angeles</city_code>
show service-director <service_name>
Display status of the specified service.

Report an Error
Media Flow Manager Administrator's Guide and CLI Command Reference
Copyright © Juniper Networks, Inc.