DNAC Device Scan Android App
Description
This project is an Andriod app that scans a device's Serial Number and provides insights into the device. It also has a middleware app that is the interface to a DNA Center instance.
Possible Application Scenarios
- A network operator will be able to quickly identify a device by its inventory information without having to loggging into its terminal or a management station that might manage it.
- The user will know the sync status of the device and the DNA Center.
Install and Setup
-
Install nodejs and npm
-
Install ionic using: https://ccoenraets.github.io/ionic-tutorial/install-ionic.html
-
Add android platform support:
ionic cordova add platform android
-
Compile
cd frontend/devScan/
npm install
ionic cordova build android --debug
-
Create a python virtualenv and activate it
-
Install requirements
pip install -r requirements.txt
-
Setup local environment variables for your DNA Center in the file middleware/dnac_instance.conf. Provide the info for your DNA Center
-
Update host-IP on line #27 of middleware/app.py
-
Start the server
python middleware/app.py
Using The Application
- Open the Android app and provide the middleware host-IP on the onboarding screen
- Scan the serial number of a device