cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
936
Views
1
Helpful
1
Replies

Example for Provider code

zuber
Level 1
Level 1

Can anyone please give an example code for a Provider/Publisher program preferably in Java? Or is there any reference link where I can check the code? Any help would be greatly appreciated.

Thanks.

1 Reply 1

tlz
Level 1
Level 1

Hi

There is an pxGrid sdk with many examples. To make it run/debug in a IDE it takes some time.

I did it for Netbeans IDE. Check Class "com.cisco.pxgrid.samples.ise.GenericClient"

As an example I started this class with the following Params:

-Dtopic-name="EPS"

-Dclient-mode="publisher"

-DPXGRID_GROUP="EPS"

-DPXGRID_HOSTNAMES="SERVER.DOMAIN.ch"

-DPXGRID_KEYSTORE_FILENAME="C:\samples\ws-31n-client.jks"

-DPXGRID_KEYSTORE_PASSWORD="cisco123"

-DPXGRID_TRUSTSTORE_FILENAME="C:\samples\ws-31n-root.jks"

-DPXGRID_TRUSTSTORE_PASSWORD="cisco123"

-DPXGRID_USERNAME="REST_SessMgr"

-Dlogback.configurationFile="C:\samples\conf"

-Dsmack.debugEnabled=true

-DPXGRID_DESCRIPTION="TEST123"

NOTE:

The param "PXGRID_USERNAME" must be a valid user existing on Cisco ISE with the required Permissions.

For testing purpose assign "Admin" rights..

Hope that helps!

Kind regards,

Thomas