sxp_download and sxp_subscribe Scripts

The sxp_download and sxp_subscribe scripts download the SXP binding information.

  1. Select Work Centers > TrustSec > SXP > Static SXP Mapping and add the network device to trigger the SXP scripts.

sxp_download and sxp_subscribe Scripts

  1. Run the sxp_download and the sxp_subscribe scripts.

./sxp_download.sh -a 192.168.1.23 -u mac -k alpha.jks -p cisco123 -t alpha_root.jks -q cisco123

Run sxp_download script

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

version=1.0.2-30-SNAPSHOT

hostnames=192.168.1.23

username=mac

group=Session

description=null

keystoreFilename=alpha.jks

keystorePassword=cisco123

truststoreFilename=alpha_root.jks

truststorePassword=cisco123

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

12:42:02.433 [Thread-1] INFO com.cisco.pxgrid.ReconnectionManager - Started

Connecting...

Connected

12:42:03.677 [Thread-1] INFO com.cisco.pxgrid.ReconnectionManager - Connected

SXPBinding={ipPrefix=192.168.1.1/32 tag=17 source=192.168.1.24 peerSequence=192.168.1.24}

SXPBinding={ipPrefix=192.168.1.2/32 tag=16 source=192.168.1.24 peerSequence=192.168.1.24}

Binding count=2

Connection closed  

12:42:05.062 [Thread-1] INFO com.cisco.pxgrid.ReconnectionManager - Stopped  

./sxp_subscribe.sh -a 192.168.1.23 -u mac -k alpha.jks -p cisco123 -t alpha_root.jks -q cisco123

Run the sxp_subscribe.sh

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

version=1.0.2-30-SNAPSHOT

hostnames=192.168.1.23

username=mac

group=Session

description=null

keystoreFilename=alpha.jks

keystorePassword=cisco123

truststoreFilename=alpha_root.jks

truststorePassword=cisco123

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

12:43:00.420 [Thread-1] INFO com.cisco.pxgrid.ReconnectionManager - Started

Connecting...

Connected

12:43:01.646 [Thread-1] INFO com.cisco.pxgrid.ReconnectionManager - Connected

press <enter> to disconnect...Binding deleted: SXPBinding={ipPrefix=192.168.1.1/32 tag=17 source=192.168.1.24 peerSequence=192.168.1.24}

Binding added: SXPBinding={ipPrefix=192.168.1.1/32 tag=17 source=192.168.1.24 peerSequence=192.168.1.24}

Binding deleted: SXPBinding={ipPrefix=192.168.1.2/32 tag=16 source=192.168.1.24 peerSequence=192.168.1.24}

Binding added: SXPBinding={ipPrefix=192.168.1.2/32 tag=16 source=192.168.1.24 peerSequence=192.168.1.24}