- The pxGrid client sdk01 should be the publisher and assigned to the Auction_Publish Client Group.
- Determine the publisher who publishes the event by editing the publisher.conf file in the ../samples/conf folder.
- Change GENERIC_TOPIC_NAME from One to Auction and ensure GENERIC_CLIENT_MODE = “publisher”.
- Run the generic_client script to publish the Auction topic.
Note: In the published metadata below, the topic name is Auction, the clientMode is set for PUBLISHER, and the published capability is Auction.
[root@pxgridcent2 bi]# ./generic_client.sh -a 10.10.20.11 -u sdk01 -k alpha.jks -p cisco123 -t alpha_root.jks -q cisco123 -c generic_publisher.properties
Run the generic_client script to publish the Auction topic
Initialized : GenericClient:
topicName=Auction
clientMode=PUBLISHER
sleepInterval=500
iterations=20
queryNameSet=[]
actionNameSet=[]
publishDataSet=[pub-notif-001, pub-notif-002, pub-notif-003]
requestDataSet=[]
responseDataSet=[resp-001, resp-002, resp-003, resp-004]
------- properties -------
version=1.0.2.37
hostnames=10.10.20.11
username=sdk01
group=Auction_Publish
description=null
keystoreFilename=alpha.jks
keystorePassword=cisco123
truststoreFilename=alpha_root.jks
truststorePassword=cisco123
--------------------------
03:23:53.057 [Thread-1] INFO com.cisco.pxgrid.ReconnectionManager - Started
Connecting...
Connected
03:23:55.833 [Thread-1] INFO com.cisco.pxgrid.ReconnectionManager - Connected
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402236046]pub-notif-001
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402236606]pub-notif-002
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402237106]pub-notif-003
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402237607]pub-notif-001
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402238107]pub-notif-002
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402238608]pub-notif-003
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402239108]pub-notif-001
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402239608]pub-notif-002
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402240109]pub-notif-003
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402240609]pub-notif-001
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402241110]pub-notif-002
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402241610]pub-notif-003
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402242111]pub-notif-001
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402242612]pub-notif-002
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402243112]pub-notif-003
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402243613]pub-notif-001
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402244113]pub-notif-002
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402244614]pub-notif-003
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402245114]pub-notif-001
Publishing notification: GenericMessage:
messageType=NOTIFICATION
capabilityName=Auction
operationName=sampleNotification
body:
content:
contentTags=[NOTIF-TAG-201]
contentType=PLAIN_TEXT
value=NOTIFICATION[1464402245615]pub-notif-002
Press <enter> to disconnect...
- The pxGrid client sdk01 is now publishing the Auction topic.
