Pre-Built Sample Cisco IOx Application

This section shows you how to use Cisco IOx Local Manager to load a sample app and how to run the app. This sample app is a “hello, world” that uses a nodejs server.

To load and run the pre-built sample application, follow these steps:

  1. Use the following link to download the docker_nodejs.tar sample application:

    Sample Docker application

  2. In the Cisco IOx Local Manage Applications tab, click Add New.

    The Deploy application dialog box appear.

  3. In the Deploy Application dialog box, take these actions:

    a. In the Application ID field, enter nodejs.

    b. In the Select Application Archive field, click Choose File and navigate to and select the sample application file that you downloaded in step 1.

    c. Click OK.

    The application file uploads to Cisco IOx.

  4. When you see the pop-up message “Successfully Deployed,” click OK.

    The Cisco IOx Local Manage Applications tab updates to show the nodejs area.

  5. In the nodejs area, click the Activate button.

    The Applications > Resources tab displays.

  6. In the Network Configuration area of the Applications > Resources tab, take these actions:

    a. Choose iox-nat0 – nat from the eth0 drop-down list.

    b. Click the Port Mapping link that appears to the right of the drop-down list.

    c. In the Port Mapping dialog box, click the Custom radio button and then click OK. (8000 appears in this box for the external port by default.)

  7. In the Applications > Resources tab, click the Activate button to activate the application.

  8. Click the Applications tab.

  9. In the nodejs area, click the Start button.

  10. Take these actions to test the sample application:

a.  Open a new browser tab.

b.  In the address field for this tab, enter **http://169.254.128.2:8000** and press **Enter**.

c.  Make sure that “Hello World!” appears in the page.