cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

247
Views
0
Helpful
2
Replies
steven.gauthier
Beginner

JSXAPI

Hello, I am  am a doing quite a lot of macros using the xapi, but I am  confused with what exactly is the jsxapi library

This is stated int the help :

XAPI integration in macros use the jsxapi  library.

How am I supposed to use this library?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
dstaudt
Cisco Employee

There are two main modes for using JSXAPI:

  • From a regular node.js application server, by installing/requiring the jsxapi library in your JS code.
  • From within Cisco device macros, where JSXAPI is installed/available by default - just start using it.

JSXAPI provides abstractions around sending configs/commands and receiving events/notifications from the device - e.g. using SSH or HTTP as the underlying transport.  In scenario 1) above, the device is of course remote to your app/server, in scenario 2) your app is running on the device itself and commands/events are performed on the local device.

View solution in original post

2 REPLIES 2
dstaudt
Cisco Employee

There are two main modes for using JSXAPI:

  • From a regular node.js application server, by installing/requiring the jsxapi library in your JS code.
  • From within Cisco device macros, where JSXAPI is installed/available by default - just start using it.

JSXAPI provides abstractions around sending configs/commands and receiving events/notifications from the device - e.g. using SSH or HTTP as the underlying transport.  In scenario 1) above, the device is of course remote to your app/server, in scenario 2) your app is running on the device itself and commands/events are performed on the local device.

Ok thank you,

Create
Recognize Your Peers
Content for Community-Ad