Java Demo Application
The ERS Java Demo Application is a simple ERS client code that uses ISE ERS APIs to configure Internal Users and Endpoints. The main ISE dependency of this Java client code is the ers-schema jar (available for download in the download section). The Demo Application Consists of A Generic HTTP Client based on Apache DefaultHttpClient and two main classes that execute some REST calls sequentially to ISE. The source code and the required libraries are available for your reference in the demo application zip file. All required information for starting up can be found in the readme.txt file:
The ERS Demo App readme.txt file:
#**************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc.
# All rights reserved.
#**************************************************
Disclaimer
---------------------------
The ERS Demo Application is distributed on AS IS basis and is meant for demo purpose only.
Additional modifications and testing are required before using it in production.
About ERS Demo App
---------------------------
The ERS Demo App is a Java ERS client demonstrating common use of the REST API.
This zip file contains all Java source files under /src folder, and all required
java libraries under /lib folder.
The demo consists of three executables, the first demonstrates 'internal user'
operations, the second 'endpoint' and the third 'network device'.
The operations perform sequentially, and log results to the screen.
Internal-User Demo include:
1. Get all users
2. Create new users
3. Get user by name (filter by name)
4. Get user by Id
5. Update user
6. Delete user by object Id
7. Delete User by name
8. Delete all users
Endpoint Demo include:
1. Get all endpoints
2. Create 3 endpoints
3. Register endpoint
4. Get endpoint by ID (the registered endpoint)
5. Deregister endpoint
6. Get endpoint by ID (the registered endpoint)
7. Deregister endpoint
8. Get endpoint by ID (the de-registered endpoint)
9. Delete by ID the 3 endpoints
Network-Device Demo include:
1. Get all Network-Device
2. Create new Network-Device
3. Get Network-Device by Id
4. Get Network-Device by name (filter by name)
5. Update Network-Device
6. Delete Network-Device by object Id
7. Delete Network-Device by name
8. Delete all Network-Device
Bulk Demo include:
1. sending bulk create request to create 500 endpoints
2. monitoring this request
3. updating some endpoints
4. monitoring this request
5. performing register endpoints costume operation
6. monitoring this request
7. collecting all created IDs and deleting it
Linux System Requirements
---------------------------
Linux Requirements:
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) 64-Bit Server VM (build 11.2-b01, mixed mode)
Required ISE Configurations
---------------------------
1) Enable ERS from ISE GUI.
2) Create ERS admin user from ISE GUI.
Run Interanl-User Demo
---------------------------
1) Unzip ers-demo-app.zip
2) from the demo root folder run for Linux:
./run-ers-user-demo.sh 'your ise primary node ip' 'ers admin user name' 'password'
Run Endpoint Demo
---------------------------
Same as Internal-User Demo just with the run-ers-endpoint-demo.sh
Run Network-Device Demo
---------------------------
Same as Internal-User Demo just with the run-ers-networkdevice-demo.sh
Run Bulk Demo
---------------------------
Same as Internal-User Demo just with the run-ers-bulk-demo.sh