1. Select Administration > pxGrid Services, the pxGrid client sdk01-sub has subscribed to the Auction topic.

  1. Authorize the subscriber to bid on action items: Modify Generic_Action_properties.

  1. Modify GENERIC_TOPIC_NAME from One to Auction.
  1. Modify GENERIC_ACTION_NAME_SET from acct-001….. to BidOnItems.

  1. Run the following script.

Note: The pxGrid client is now authorized to bid on items.

./generic_client.sh -a 10.10.20.11 -u sdk01-sub -k alpha.jks -p cisco123 -t alpha_root.jks -q cisco123 -c generic_action_client.properties

generic_client.sh

Initialized : GenericClient:

topicName=Auction

clientMode=ACTION

sleepInterval=500

iterations=20

queryNameSet=[]

actionNameSet=[GetCurrentBids]

publishDataSet=[]

requestDataSet=[req-act-001, req-act-002, req-act-003, req-act-004]

responseDataSet=[]

------- properties -------

version=1.0.2.37

hostnames=10.10.20.11

username=sdk01-sub

group=Auction_Action

description=null

keystoreFilename=alpha.jks

keystorePassword=cisco123

truststoreFilename=alpha_root.jks

truststorePassword=cisco123

--------------------------

23:31:07.883 [Thread-1] INFO com.cisco.pxgrid.ReconnectionManager - Started

Connecting...

Connected

23:31:10.514 [Thread-1] INFO com.cisco.pxgrid.ReconnectionManager - Connected

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474670516]req-act-001

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474670566]resp-003 - for request[ACTION[1464474670516]req-act-001]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474671082]req-act-002

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474671124]resp-004 - for request[ACTION[1464474671082]req-act-002]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474671628]req-act-003

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474671669]resp-001 - for request[ACTION[1464474671628]req-act-003]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474672190]req-act-004

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474672227]resp-002 - for request[ACTION[1464474672190]req-act-004]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474672760]req-act-001

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474672812]resp-003 - for request[ACTION[1464474672760]req-act-001]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474673318]req-act-002

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474673356]resp-004 - for request[ACTION[1464474673318]req-act-002]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474673860]req-act-003

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474673900]resp-001 - for request[ACTION[1464474673860]req-act-003]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474674410]req-act-004

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474674451]resp-002 - for request[ACTION[1464474674410]req-act-004]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474674964]req-act-001

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474675002]resp-003 - for request[ACTION[1464474674964]req-act-001]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474675506]req-act-002

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474675540]resp-004 - for request[ACTION[1464474675506]req-act-002]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474676045]req-act-003

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474676078]resp-001 - for request[ACTION[1464474676045]req-act-003]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474676586]req-act-004

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474676614]resp-002 - for request[ACTION[1464474676586]req-act-004]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474677121]req-act-001

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474677153]resp-003 - for request[ACTION[1464474677121]req-act-001]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474677664]req-act-002

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474677698]resp-004 - for request[ACTION[1464474677664]req-act-002]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474678202]req-act-003

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474678259]resp-001 - for request[ACTION[1464474678202]req-act-003]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474678762]req-act-004

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474678794]resp-002 - for request[ACTION[1464474678762]req-act-004]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474679300]req-act-001

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474679329]resp-003 - for request[ACTION[1464474679300]req-act-001]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474679836]req-act-002

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474679872]resp-004 - for request[ACTION[1464474679836]req-act-002]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474680379]req-act-003

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474680413]resp-001 - for request[ACTION[1464474680379]req-act-003]

Sending request: GenericMessage:

messageType=REQUEST

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[ACTION-TAG-301]

contentType=PLAIN_TEXT

value=ACTION[1464474680918]req-act-004

Received response: GenericMessage:

messageType=RESPONSE

capabilityName=Auction

operationName=GetCurrentBids

body:

content:

contentTags=[RESP-TAG-101]

contentType=PLAIN_TEXT

value=RESPONSE[1464474680956]resp-002 - for request[ACTION[1464474680918]req-act-004]

Press <enter> to disconnect...