Validate Service Name Redirection File Format Using Specified Values

Test the redirection process by supplying values for requested_service, user_id, and application_name.

Testing the redirection is subject to these restrictions:

When you supply these values, snrfck displays the sorted entries and the assigned service to which the request is directed.

For example, suppose you use the preceding sample file and enter:
snrfck -itestfile -Sdb2 -Ujane -Aisql
where:
Redirection File with an Entry Match

requested_service

user_id

application_name

assigned_service

1:

<tab>

root

ksh

svc_ksh

2:

db2

joe

isql

svc_db2a

3:

db2

jane

isql

svc_db2b

4:

db2

sonia

Omni

svc_db2c

5:

db2

ramon

Omni

svc_db2d

6:

db2

sven

*

svc_db2gen

7:

other

*

*

svc_other

You see:

assigned service for (db2,jane,isql): svc_db2b

If the service redirection comparison does not find a match, the value returned for assigned_service is simply the requested_service value.

For example, suppose you use the preceding sample file and enter:
snrfck -itestfile -Sdb2 -Uramon -Aisql
where:
Redirection File with Failed Entry Match

requested_service

user_id

application_name

assigned_service

1:

<tab>

root

ksh

svc_ksh

2:

db2

joe

isql

svc_db2a

3:

db2

jane

isql

svc_db2b

4:

db2

sonia

Omni

svc_db2c

5:

db2

ramon

Omni

svc_db2d

6:

db2

sven

*

svc_db2gen

7:

other

*

*

svc_other

assigned service for (db2,ramon,isql): db2

You see:

assigned service for (db2,jane,isql): svc_db2b