The server application will take a simple command-line argument to refer it to a configuration file, which will define a series of JUNOS OS devices that will be polled. The configuration file will include the necessary SSH credentials for access to the devices to be polled:
- Make a directory on the management server in order to store all of the resources associated with this project and start by downloading all of the necessary pre-requisite Node.js packages:
$ npm install socket.io └─┬ firstname.lastname@example.org ├─┬ email@example.com │ └── firstname.lastname@example.org [...] $ npm install xml2js └─┬ email@example.com ├── firstname.lastname@example.org └── email@example.com $ npm install argparse └─┬ firstname.lastname@example.org └── email@example.com
- Create collector.js in your preferred ...