Table Of Contents
Cisco Application eXtension Platform 1.1 User Guide
Entering the Command Environment
Exiting the Command Environment
Configuring the Cisco AXP Service Module Interface
Opening and Closing a Service Module Session
Swap Space and Memory Allocation
Installing and Upgrading Software
Types of Cisco AXP Installation and Upgrade Commands
Cisco AXP Upgrade and Downgrade Scenarios
Clean Software Installation including FTP Server Configuration
Installing Software using a Helper Image
Secure Shell Access to the Service Module
Configuring Password Protection
Configuring the Application Service Environment
Starting or Stopping the Application Service
Configuring External Network Interfaces
Attaching a Networking Device to the Application Environment
Detaching a Networking Device from the Application Environment
Configuring a Virtual Interface
Configuring the NTP Server Source
Time Zone Selection on the Cisco AXP Service Module
Verifying NTP Server Configuration
Configuring the Application Domain
Verifying Access Control Lists
Configuring Source Based Routing
Remote Serial Device Configuration
Verifying Remote Serial Devices
Remote Serial Device Configuration Example
Configuring Router IP Traffic Export
Configuring Log File Size Limits
Configuring Resource Utilization Limits
Resource Limits Exceeded after Downgrade
Reloading the Service Module and Virtual Instance
Verifying Resource Utilization Limits
SSH Access to a Virtual Instance
Configuring Shell Access in a Virtual Instance
Cisco IOS Service API Configuration
Verifying and Clearing Cisco IOS API Records
Registering an Event using the Event Configuration File
Registering an Event using the Cisco AXP Service Module
Using CLI to Trigger an EEM API Event
Using CLI to Trigger a Syslog Event
Troubleshooting a Cisco EEM API Configuration Event
Configuring the Application Status Monitor Interval and Recovery Threshold
Verifying the Application Status Monitor Output
Viewing the Application Status Monitor
Verifying Resource Utilization Limits
show resource limits (Cisco AXP EXEC Mode)
show resource limits (Cisco AXP application service EXEC mode)
Viewing a List of Installed Applications
Resetting the Examples Application Environment
Uninstalling an Application Package
Common Troubleshooting Commands
Verifying and Troubleshooting System Status
Cisco AXP Open Source Licenses
Cisco Application eXtension Platform 1.1 User Guide
Revised: 8/25/08, OL-14815-01
This guide describes the commands and tasks for installing and configuring the
Cisco Application eXtension Platform (AXP) on Cisco's Integrated Service Routers. For more information on Cisco AXP, go to www.cisco.com/go/axpFor a list of features added in the latest Cisco AXP release, refer to the following document:
Cisco AXP Feature and Release History.
To create third party applications for Cisco AXP, see the Cisco AXP Developer Guide.
Use this guide to:
•
Set up the router and the service module.
•
Configure the service module interface.
•
Configure the application environment on the service module.
•
Troubleshoot the application environment.
Contents
This guide consists of the following sections:
–
Configuring the Cisco AXP Service Module Interface
–
Installing and Upgrading Software
–
Secure Shell Access to the Service Module
–
Configuring the Syslog Server
•
Configuring the Application Service Environment
–
Starting or Stopping the Application Service
–
Configuring External Network Interfaces
–
Configuring the NTP Server Source
–
Configuring the Application Domain
–
Remote Serial Device Configuration
–
Configuring Resource Utilization Limits
–
SSH Access to a Virtual Instance
–
Cisco IOS Service API Configuration
•
Verifying and Troubleshooting
–
Viewing the Application Status Monitor
–
Viewing the Application State
–
Viewing Running Configuration
–
Verifying Resource Utilization Limits
–
Viewing a List of Installed Applications
–
Resetting the Examples Application Environment
–
Uninstalling an Application Package
–
Common Troubleshooting Commands
–
Verifying and Troubleshooting System Status
Overview
The Cisco Integrated Services Router (Cisco ISR) is an integrated system within a single chassis. The Cisco ISR ties together and runs multiple value-added services such as voice, layer 2 switching, security and application acceleration. In addition, integrated services can be hosted within Cisco OS software or decoupled and hosted on modular application service modules.
The Cisco ISR allows for blade hardware plug-in network modules. These application service modules enhance the functionality, intelligence and flexibility of the router. The Cisco Application eXtension Platform (Cisco AXP) provides the tools required by third party developers to integrate their applications on Cisco ISRs.
Cisco AXP allows third parties such as system integrators, managed service providers, and large enterprise customers to extend the functionality of Cisco ISRs by providing their own value-added integrated services. On the application service module, Cisco AXP hosts applications in a separate runtime environment with dedicated resources. In addition, Cisco AXP provides Application Programming Interfaces (APIs) so that functions such as packet analysis, event notification, and network management can be utilized by hosted applications.
Cisco AXP consists of the facilities and frameworks to host applications, and service APIs for integrating applications into the network.
Cisco AXP provides the following features:
•
Ability to modify the Cisco IOS software configuration and obtain the status of Cisco IOS software features via the provided API.
•
Embedded Linux environment supporting the execution of applications written in the following programming languages: Java, C (native), Perl (interpreted), Python (interpreted), and Bash (interpreted). Native and interpreted applications written in other programming languages can be integrated by the application vendor if the vendor uses additional support libraries and interpreters.
•
Integration of virtual devices.
The Cisco IOS auxiliary serial port can be virtualized, appearing as a local device in the Cisco AXP OS. The application controls external peripherals attached to the auxiliary serial port of the router without special knowledge of where the device is located.
•
Predictable and constant set of application resources.
These resources (including CPU, memory, and disk) are segmented, which ensures that the application and router features work independently, and without interference.
•
Protection of the router and applications from rogue applications.
If an application crashes, this incident does not affect the router or other applications, because of the installed application being placed in its own virtual instance.
•
Protection against running unauthorized software.
Only Cisco certified parties can install software on Cisco AXP.
•
Robust debugging and troubleshooting facilities.
•
Support of event notification.
An application can receive the status of the Cisco ISR and take appropriate action.
Note
For a more detailed overview of Cisco AXP, see the Cisco AXP Developer Guide.
Initial System Setup
To set up your router and Cisco AXP service module:
1.
Verify that the service module SKU matches the Cisco ISR and install the router and service module. Refer to the "Supported Hardware" section.
2.
Download the applicable Cisco IOS software image and Cisco AXP files and configure the router. Refer to the "Software Requirements" section.
3.
Review the Cisco AXP command environment. Refer to the "Cisco AXP Command Modes" section.
4.
Configure the Cisco AXP service module interface. Refer to the "Configuring the Cisco AXP Service Module Interface" section.
5.
Install and upgrade Cisco AXP software. Refer to the "Installing and Upgrading Software" section.
6.
Check resource limits. Refer to the "Setting Resource Limits" section
7.
Configure secure shell (SSH) access. Refer to the "Secure Shell Access to the Service Module" section.
8.
Configure the syslog server. Refer to the "Configuring the Syslog Server" section and "Verifying the Syslog Server" section.
Supported Hardware
For information on router and service module installation, refer to the hardware documentation under the support section at www.cisco.com/go/axp
Software Requirements
Download the applicable Cisco IOS software image and Cisco AXP package files. Refer to Installing and Upgrading Software for downloading and installing Cisco AXP software.
Cisco IOS Software Release
The following Cisco IOS releases are applicable to the routers used with Cisco AXP.
•
12.4(15)T3: IP-based crypto image including the following image packs:
–
IP-Base
–
IP-Voice
–
Adv-Security
–
Adv-Enterprise
For the event trigger API the following image packs are supported:
–
IP-Voice
–
Adv-Security
–
Adv-Enterprise
Download the image from:
http://www.cisco.com/public/sw-center/
Cisco AXP Software
For information on the latest Cisco AXP release files, refer to the Cisco AXP Release Notes listed under the support section at www.cisco.com/go/axp.
Refer to the "Installing and Upgrading Software" section for installing and upgrading Cisco AXP software.
Prerequisites
•
IP address or name of the FTP server that will store the Cisco AXP package file.
•
Verify that the FTP server is accessible
SUMMARY STEPS
1.
Download the Cisco AXP files.
Note
If you choose to use a file extractor tool designed for Windows, such as WinZip, you must disable CR/LF conversion of tar files. (For example, in WinZip 9.0 select Configuration > Miscellaneous and uncheck "TAR file smart CR/LF conversion".)
2.
Copy the files to the FTP server. All files to be installed must reside in the same directory.
To install the Cisco AXP files, see the "Installing and Upgrading Software" section.
Application Software Versions
Each application has a version number, which is used by the Installer when resolving dependencies between subsystems. The system only considers the first two digits of the version number for checking dependencies.
The first digit is treated as a major version number and the second is treated as a minor version number. For example:
Version 1.2.3.4 has a major number of 1 and minor number of 2.
Version 5.6 has a major number of 5 and minor number of 6.
Version 1.2.3 is considered the same as Version 1.2 or Version 1.2.3.4 because both the major and minor numbers match.
Cisco AXP Command Modes
This section includes the procedures listed below for entering and exiting the command environment, where Cisco AXP software configuration commands are executed.
•
Entering the Command Environment
•
Exiting the Command Environment
EXEC and Configuration Modes
The Cisco AXP software command modes, EXEC and configuration, operate similarly to the EXEC and configuration modes for Cisco IOS software CLI commands.
Entering the Command Environment
To enter the command environment after the Cisco AXP software is installed and active, perform the following steps.
Prerequisites
The following information is required to enter the command environment:
•
IP address of the Cisco ISR router that contains the Cisco AXP service module
•
Username and password to log in to the router
•
Slot number of the module
SUMMARY STEPS
1.
Open a Telnet session.
2.
telnet ip-address
3.
Enter the user ID and password of the router.
4.
service-module service-engine slot/port session
5.
(Optional) enable
DETAILED STEPS
Exiting the Command Environment
To exit the Cisco AXP software command environment and return to the router command environment, perform the following steps.
SUMMARY STEPS
Return to the Cisco AXP software EXEC mode.
1.
exit.
DETAILED STEPS
Command or Action PurposeReturn to the Cisco AXP software EXEC mode.
Step 5
exitExample:se-10-0-0-0# exitse-10-0-0-0> exitrouter-prompt#Returns to the router command environment.
Configuring the Cisco AXP Service Module Interface
The host router and service module use two main interfaces for internal and external communication (see Figure 1).
•
Internal Interface (eth0)
–
This interface is internal, between the router and the service module. Use this connection to exchange traffic between the network interface and the router.
–
For example, the console connection to the service module is connected through this interface.
–
On the router side, this interface is described as service interface engine x/0 (where x is the service module slot in which the service module is inserted).
–
On the service module side (Linux), this internal interface is designated as eth0.
•
External Interface (eth1)
–
This an external interface, and it varies between a Fast (100 Mb/s) or Gigabit (1000 Mb/s) ethernet and is available through an RJ-45 connector.
–
On the service module side, this external interface is designated as eth1.
Note
The external interface is not visible from the router side and can only be configured and used from the service module.
Figure 1 Router and Service Module Interfaces
Configuration Tasks
Steps 1 to 3 open the host-router CLI and access the router's interface to the module.
Steps 4 to 9 configure the interface.SUMMARY STEPS
From the Router CLI
1.
enable
2.
configure terminal
3.
interface integrated-service-engine slot/0
4.
ip address router-side-ip-address subnet-mask
or
ip unnumbered type number
5.
service-module ip address module-side-ip-address subnet-mask
6.
service-module ip default-gateway gateway-ip-address
7.
end
8.
copy running-config startup-config
9.
show running-config
DETAILED STEPS
Opening and Closing a Service Module Session
To open and close a session on the service module, perform the following steps.
Note
•
Before you install your application software, opening a session brings up the bootloader. After you install the software, opening a session brings up the application.
•
You can conduct only one session at a time.
•
Steps 1 to 3: open the host-router CLI and access the module. Steps 4 to 5: configure the module. Step 6: return to the host-router CLI.
SUMMARY STEPS
From the Host-Router CLI
1.
enable
2.
service-module integrated-service-engine slot/0 status
3.
service-module integrated-service-engine slot/0 session
From the Service-Module Interface
4.
Enter configuration commands
5.
Control-Shift-6 x
From the Host-Router CLI
6.
service-module integrated-service-engine slot/0 session clear
DETAILED STEPS
Command or Action Purpose From the Host-Router CLIStep 1
enable
Example:Router> enable
Enters privileged EXEC mode on the host router. Enter your password if prompted.
Step 2
service-module integrated-service-engine slot/0 status
Example:Router# service-module integrated-service-engine 1/0 status
Displays the status of the specified module, so that you can ensure that the module is running (that is, in the steady state).
Step 3
service-module integrated-service-engine slot/0 session
Example:Router# service-module integrated-service-engine 1/0 session
Trying 10.10.10.1, 2065 ... Open
Begins a service-module session on the specified module. Do one of the following:
•
To interrupt the autoboot sequence and access the bootloader, quickly type ***.
•
To start a configuration session, press Enter.
From the Service-Module InterfaceStep 4
.Example (Software installation):
SE-Module> software install add url UrlEnter configuration commands on the module as needed.
•
Bootloader command choices include boot, config, exit, help, ping, reboot, show, and verify.
–
To configure the bootloader after setting up the router, see the "Configuring the Bootloader" section.
•
To install the application software:
Use the software install add url command. See the "Installing and Upgrading Software" section for details.
•
Configuration command choices are similar to those that are available on the router. Access global configuration mode by using the configure terminal command.
•
Enter configuration commands.
•
Exit global configuration mode with the exit command and save your new configuration with the copy running-config startup-config command. Notice that you do not use the enable command and the prompt does not change from >.
Step 5
Press Control-Shift-6 x.
Suspends the service-module session and returns to the router CLI. Alternatively, type the exit command to return to the router CLI.
Note
The service-module session stays up until you clear it in the next step. While it remains up, you can return to it from the router CLI by pressing Enter.
From the Host-Router CLIStep 6
service-module integrated-service-engine slot/0 session clear
Example:Router# service-module integrated-service-engine 1/0 session clear
Clears the service-module session for the specified module. When prompted to confirm this command, press Enter.
Setting Resource Limits
Cisco AXP provides a predictable and constant set of resources such as CPU, memory, and disk space, which are segmented to allow an application to run on the Cisco AXP service module without affecting the performance of other router features. You can specify CPU, memory, and disk space limit (specified in MB), using the CLI with administrator privileges.
For information on the CPU index for Cisco AXP service modules, refer to the following section in the Cisco AXP Developer Guide:
Dedicated Application Resources
To configure resource limits, refer to the "Configuring Resource Utilization Limits" section in this guide.
Swap Space and Memory Allocation
Swap space support allows processes or portions of processes to move between physical memory and disk. This frees up space in physical memory and allows more processes to run simultaneously.
Swap space is available for applications developed using Cisco AXP version 1.1 or later versions.
Swap space support is available on all NME based modules: NME-APPRE-302-K9, NME-APPRE-502-K9, and NME-APPRE-522-K9. Swap space is not available on modules with the AIM form factor: AIM-APPRE-102-K9.
For information on enabling swap space and memory allocation for developing applications, refer to the Swap Space and Memory Allocation section in the Cisco AXP Developer Guide.
Verifying Swap Space Support
Refer to the "Verifying Swap Space Support" section.
Installing and Upgrading Software
Download the gzipped tar file for the appropriate platform to ensure all platform and package files required for installation are availalble.
During a clean or upgrade installation of the platform files, the following three installation files must exist in the same directory:
•
axp-k9.<platform>.<version>.pkg
•
axp-k9.<platform>.<version>.prt1
•
axp-installer-k9.<platform>.<version>.prt1
This section consists of:
•
Types of Cisco AXP Installation and Upgrade Commands
•
Cisco AXP Upgrade and Downgrade Scenarios
•
Clean Software Installation including FTP Server Configuration
•
Installing Software using a Helper Image
Types of Cisco AXP Installation and Upgrade Commands
This section provides a summary of the Cisco AXP 1.1 installation and upgrade commands.
Using the software install clean command clears the startup configuration to the factory default setting. All previous configuration settings are erased.
The Cisco AXP AIM or NME host OS software must be downloaded to an FTP server before installation.
Use the software install clean command to install:
•
Cisco host OS
•
An application package + Cisco AXP host OS , or
•
An application package + Cisco AXP add-on packages + Cisco AXP host OS.
Use the software install add command to install :
•
An application package , or
•
An application package + Cisco AXP add-on packages, or
•
Cisco AXP add-on packages
Use the software install upgrade command to upgrade:
•
An application package + Cisco AXP host OS , or
•
An application package + Cisco AXP add-on packages + Cisco AXP host OS, or
•
An application package, or
•
Cisco AXP add-on packages, or
•
Cisco AXP host OS
Use the software install upgrade command to downgrade to a lower release.
Note
The software install downgrade command is not supported.
Installing Software using a Helper Image
Use the axp-helper-k9.<aim/nme>.<release-number> rescue helper image file to aid software installation of the Cisco AXP host OS files on an AIM or NME service module when necessary. Installing software using the helper image overwrites all previously existing data on the service module.
Cisco AXP Upgrade and Downgrade Scenarios
This section describes the various types of upgrades and downgrades that are supported on Cisco AXP.
Cisco AXP software files described in these scenarios are:
•
Cisco AXP host OS—Cisco AXP AIM or NME platform files.
•
Cisco AXP add-on packages—Cisco AXP infrastructure add-on packages.
•
App V1—application package version 1
App V2—application package version 2
These are third party application packages.
Upgrade Scenarios
Table 1-1 lists the upgrade scenarios supported on Cisco AXP.
Table 1-1 Cisco AXP upgrade scenarios
Current Software Versions on Service Module New Software Versions on Service Module DescriptionCisco AXP 1.0 host OS
Cisco AXP 1.0 host OS + App V1
Use the software install add command to add App V1 where:
Package file — App V1.
Refer to Add-on Software Installation.
Cisco AXP 1.0 host OS
Cisco AXP 1.1 host OS
Use the software install upgrade command to upgrade the Cisco AXP 1.0 host OS to Cisco AXP 1.1 where:
Package file— Cisco AXP 1.1 host OS.
Refer to Upgrading Software
Cisco AXP 1.0 host OS
Cisco AXP 1.0 host OS + Cisco AXP 1.0 add-on package + App V1
Note
App V1 has a dependency on Cisco AXP 1.0 add-on packages.
Use the software install add command where:
Package file— bundle containing Cisco AXP add-on 1.0 package + App V1.Refer to Add-on Software Installation.
Cisco AXP 1.0 host OS + App V1
Cisco AXP 1.0 host OS + Cisco AXP add-on 1.0 package + App V2
Note
App V2 has a dependency on Cisco AXP 1.0 add-on packages.
Use the software install upgrade command where:
•
Package file— bundle containing Cisco AXP 1.0 host OS + Cisco AXP add-on 1.0+App V2
or
•
Package file— bundle containing Cisco AXP add-on package 1.0 + App V2.
Refer to Upgrading Software.
Cisco AXP 1.0 host OS + App V1
Cisco AXP 1.1 host OS + App V2
Use the software install upgrade command where:
Package file— bundle containing Cisco AXP 1.1 host OS + App V2.
Refer to Upgrading Software
Cisco AXP 1.0 host OS + App V1
Cisco AXP 1.1 host OS + App V1
1.
Use the software install upgrade command , where:
Package file— Cisco AXP 1.1 host OS.
or
Package file— bundle containing Cisco AXP 1.1 host OS + App V1.
Refer to Upgrading Software
AXP 1.0 host OS +
Cisco AXP 1.0 add-on package + App V1Note
App V1 has a dependency on Cisco AXP 1.0 add-on packages .
AXP 1.1 host OS + Cisco AXP 1.0 add-on package +App V1
Use the software install upgrade command to upgrade the Cisco AXP host OS from 1.0 to 1.1, where:
Package file— Cisco AXP 1.1 host OS.
Refer to Upgrading Software.
AXP 1.0 host OS +
Cisco AXP 1.0 add-on package + App V1Note
App V1 has a dependency on Cisco AXP 1.0 add-on packages .
AXP 1.1 host OS + Cisco AXP 1.1 add-on package + App V1
Note
App V1 has a dependency on Cisco AXP 1.1 add-on packages.
Use the software install upgrade command to:
•
Upgrade Cisco AXP host OS from 1.0 to 1.1, and
•
Upgrade the Cisco AXP add-on package from 1.0 to 1.1
where:
Package file—bundle containing Cisco AXP 1.1 host OS + Cisco AXP 1.1 add-on package + App V1.
Refer to Upgrading SoftwareAXP 1.0 host OS +
Cisco AXP 1.0 add-on package +App V1Note
App V1 has a dependency on Cisco AXP 1.0 add-on packages
AXP 1.0.6 host OS + Cisco AXP 1.0.6 add-on package +App V1
Note
App V1 has a dependency on Cisco AXP 1.0.6 add-on packages
Use the software install upgrade command:
Package file—bundle containing Cisco AXP 1.0.6 host OS + Cisco AXP1.0.6 addon package +App V1.
Refer to Upgrading SoftwareAXP 1.0 host OS +
Cisco AXP 1.0 add-on package +App V1Note
App V1 has a dependency on Cisco AXP 1.0 add-on packages.
AXP 1.1 host OS + Cisco AXP 1.1 add-on package +App V2
Note
App V2 has a dependency on Cisco AXP 1.1 add-on packages.
To upgrade
i) Cisco AXP host OS from 1.0 to 1.1, and
ii) Cisco AXP add-on package from 1.0 to 1.1, and
iii) App V1 to App V2:•
software install upgrade command where:
Package file—bundle containing Cisco AXP 1.1 host OS + Cisco AXP 1.1 add-on package + App V2.
Refer to Upgrading Software
Downgrade Scenarios
Resource Limits Exceeded after Downgrade
The following scenario may occur after downgrading an application on Cisco AXP.
If the current software on the service module is App V2 with Cisco AXP host OS 1.1.1, and a downgrade is performed to a lower version of Cisco AXP host OS (for example, 1.0.6) using App V1, the files for App V2 may still be present on the application service module.
The presence of two versions of the application may cause resource limits to be exceeded. Error messages may be displayed when trying to run App V1 (referenced as APP1 in the error message) on Cisco AXP host OS (1.0.6):
localhost err_handler: invalid parameters: 'space_used' is larger than 'space_total'.localhost err_handler: Failed to start vserver 'APP1'.Table 1-2 lists the downgrade scenarios supported on Cisco AXP.
Note
Use the software install upgrade command for downgrading software.
Table 1-2 Cisco AXP downgrade scenarios
Current Software Versions on Service Module New Software Versions on Service Module DescriptionCisco AXP 1.1 host OS +
Cisco AXP 1.1 add-on package +App V2Note
App V2 has a dependency on Cisco AXP 1.1 add-on packages
Cisco AXP 1.0 host OS +
Cisco AXP 1.0 add-on package +App V1Note
App V1 has a dependency on e Cisco AXP 1.0 add-on packages.
Use the software install upgrade command to downgrade:
•
Cisco AXP host OS from 1.1 to 1.0
•
Cisco AXP add-on package from 1.1 to 1.0, and
•
App V2 to App V1
where:
Package file— bundle containing of Cisco AXP 1.0 host OS + Cisco AXP 1.0 add-on package + App V1.
All application packages must have the same UUID.
Refer to Upgrading Software
Cisco AXP 1.0 host OS +
Cisco AXP 1.0.5 add-on package + App V1Note
App V1 has a dependency on Cisco AXP 1.0.5 add-on packages.
Cisco AXP 1.0 host OS +
Cisco AXP 1.0 add-on package + App V1Note
App V1 has a dependency on Cisco AXP 1.0 add-on packages.
Use the software install upgrade command to downgrade the Cisco AXP add-on package from 1.0.5 to 1.0
where:
•
Package file— Cisco AXP 1.0 add-on package
or
•
Package file—bundle containing Cisco AXP 1.0 add-on package + App V1
All application packages must have the same UUID.
Refer to Upgrading Software
Cisco AXP 1.1 host OS +
Cisco AXP 1.1 add-on package + App V1.Note
App V1 has a dependency on Cisco AXP 1.1 add-on packages.
Cisco AXP 1.0 host OS +
Cisco AXP 1.0 add-on package + App V1Note
App V1 has a dependency onthe Cisco AXP 1.0 add-on packages.
Use the software install upgrade command to downgrade:
•
Cisco AXP host OS 1.1 to 1.0 and
•
Cisco AXP add-on package from 1.1 to 1.0:
where:
Package file—bundle containing Cisco AXP 1.0 host OS + Cisco AXP 1.0 add-on package + App V1.
Refer to Upgrading Software.
Cisco AXP 1.1 host OS +
Cisco AXP 1.0 add-on package + App V1.Note
App V1 has a dependency on Cisco AXP 1.0 add-on packages.
Cisco AXP 1.0 host OS +
Cisco AXP 1.0 add-on package + App V1.Note
App V1 has a dependency on Cisco AXP 1.0 add-on packages.
Use the software install upgrade command to downgrade Cisco AXP host OS from 1.1 to 1.0 :
where:
•
Package file— Cisco AXP 1.0 host OS.
or
•
Package file—bundle containing Cisco AXP 1.0 host OS + Cisco AXP 1.0 add-on package + App V1.
Refer to Upgrading Software
Cisco AXP 1.1 host OS +
Cisco AXP 1.1 add-on package + App V2Note
App V2 has a dependency on Cisco AXP 1.1 add-on packages.
Cisco AXP 1.0 host OS.
To downgrade from Cisco AXP host OS 1.1 to 1.0, and uninstall Cisco AXP add-on package 1.1 and application package App V2:
1.
software uninstall uid1 uid2
where uid1 is the UID of Cisco AXP 1.1 add-on package, and uid2 is the UID of App V2.Refer to Uninstalling Software
2.
software install upgrade
where:
Package file— Cisco AXP 1.0 host OS.
Refer to Upgrading Software
Cisco AXP 1.1 host OS +
Cisco AXP 1.0 add-on package + App V1.Note
App V1 has a dependency on Cisco AXP 1.0 add-on packages.
Cisco AXP 1.0 host OS.
To uninstall Cisco AXP add-on package 1.0 and App V1:
•
software uninstall uid1 uid2
where uid1 is the UID of Cisco AXP 1.0 add-on package, and uid2 is the UID of App V1.Refer to Uninstalling Software
Cisco AXP 1.0 host OS +
Cisco AXP 1.0 add-on package.Cisco AXP 1.0 host OS.
To uninstall Cisco AXP add-on package 1.0:
•
software uninstall uid1
where uid1 is the UID of Cisco AXP 1.0 add-on package.Refer to Uninstalling Software
Cisco AXP 1.1 host OS + App V2.
Cisco AXP 1.0 host OS.
To uninstall App V2:
1.
Use the software uninstall uid1 command where uid1 is the UID of App V2.
2.
Use the software install upgrade command to downgrade Cisco AXP host OS from 1.1 to 1.0
Refer to Uninstalling Software and Upgrading Software.
Cisco AXP 1.0 host OS +
App V1.Cisco AXP 1.0 host OS.
To uninstall App V1:
•
software uninstall uid1
where uid1 consists of App V1.Refer to Uninstalling Software
Cisco AXP 1.1 host OS +
App V2Cisco AXP 1.0 host OS +
App V1.To downgrade Cisco AXP host OS from 1.1 to 1.0 and replaceApp V2 with App V1:
•
software install upgrade
where
Package file—bundle containing Cisco AXP 1.0 host OS + App V1.
Refer to Upgrading Software
Cisco AXP 1.1 host OS +
App V1.Cisco AXP 1.0 host OS +
App V1.Use the software install upgrade command to downgrade the Cisco AXP host OS from 1.1 to 1.0:
where:
•
Package file— Cisco AXP 1.0 host OS.
or
•
Package file—bundle containing Cisco AXP 1.0 host OS + App V1.
Refer to Upgrading Software
Cisco AXP 1.0 host OS +
Cisco AXP 1.0 add-on package + App V2 .Note
App V2 has a dependency on Cisco AXP 1.0 add-on packages.
Cisco AXP 1.0 host OS +
App V1.To downgrade from App V2 to App V1:
1.
software install upgrade
where:
Package file— bundle containing Cisco AXP 1.0 host OS + App V1.
Refer to Upgrading Software
2.
Use the software uninstall command to uninstall the Cisco AXP add-on package.
Refer to Uninstalling Software
Clean Software Installation
The Cisco AXP AIM or NME software must be downloaded to an FTP server before installation. If you need to configure the FTP server, refer to the "Clean Software Installation including FTP Server Configuration" section.
Note
Using the software install clean command clears the startup configuration to the factory default setting. All previous configuration settings are erased.
Prerequisites
Before you install the package, you need:
•
FTP server user ID/username
•
FTP server password
SUMMARY STEPS
1.
software install clean {package-filename.pkg | url ftp://ftp-server-ip-address/package-filename.pkg}[username username password password]
2.
exit
DETAILED STEPS
Command or Action PurposeStep 1
software install clean {package-filename.pkg | url ftp://ftp-server-ip-address/package-filename.pk g}[username username password password]
Example:
SE-module> software install clean url ftp://10.10.1.5/.../.../packagename.pkg username johndoe password johndoe123Installs the Cisco AXP host OS (platform) file that was downloaded on the FTP server.
package-filename— A single file or a bundle of files.
ftp-server-ip-address— FTP server address where the package is located.
package-filename— Cisco AXP package file name
username—FTP server ID/username
password—FTP server password
Note:
If an error displaying a mismatched sum occurs during installation, use the software remove all command to remove all residual files, and reinstall the files using the software install clean command. Refer to Removing Software.
Step 2
exit
Exits EXEC mode.
Clean Software Installation including FTP Server Configuration
To configure the FTP server and install software, perform the following steps.
Prerequisites
Before you install the package, you need:
•
FTP server user username
•
FTP server password
SUMMARY STEPS
1.
configure terminal
2.
software download server url ftp-url[/ dir] username username password password
3.
end
4.
copy running-config startup-config
5.
software install clean package-filename
DETAILED STEPS
Add-on Software Installation
SUMMARY STEPS
1.
Open a Service Module Session. See the "Opening and Closing a Service Module Session" section.
2.
From the Service Module Interface: software install add {package-filename.pkg | url ftp://ftp-server-ip-address/package-filename.pkg}[username username password password]
3.
exit
DETAILED STEPS
Upgrading Software
Before upgrading Cisco AXP software:
•
The upgrade package must have the same name as the package being upgraded.
•
The upgrade package must have the same uuid as the package being upgraded
•
The upgrade package must have a different version than the package being upgraded.
After upgrading, during system startup, the saved startup configuration is restored.
SUMMARY STEPS
1.
Copy the installer payload file to the same FTP directory as the Cisco AXP file.
2.
software install upgrade { package-filename.pkg | url ftp://ftp-server-ip-address/package-filename.pkg}[username username password password]
3.
exit
DETAILED STEPS
Downgrading Software
The software install downgrade command is not supported.
To downgrade Cisco AXP software to a lower release, use the same command for upgrading software:
software install upgrade.
Installing Software using a Helper Image
If the service module does not boot up with the regular image you can install software using a helper image. To use the boot helper to reboot with a helper image, perform the following steps.
Note
•
Configure the router before setting up the bootloader. The service module will not connect to the external network if the router is not configured correctly. If you have not configured the bootloader, see the "Configuring the Bootloader" section.
•
Using the helper image for installation clears the startup configuration to the factory default settings. All previous configuration settings are erased.
Step 1
Enter the following commands from the router CLI:
a.
service-module Service-Engine 1/0 reset (wait about 10 seconds after using this command).
b.
service-module Service-Engine 1/0 session (repeat this command if the first try fails).
Step 2
Wait for the following prompt: Please enter *** to change boot configuration.
a.
Enter "***" to drop the service module into the bootloader.
Step 3
Enter the config command to configure the bootloader:
SE- boot-loader> config
a.
Enter these parameters:
IP address—Service module IP address as configured on the host router
Subnet mask—Service module subnet mask as configured on the host router
TFTP server—IP address of the TFTP server with the helper image
Gateway—Gateway address as configured in the host router
Note
For the Default Helper-file name, if you are pasting in the name, do not paste any extra whitespaces (newline, tabs) into the name. If whitespaces are included, they will also be present in the image name that is requested from the TFTP server.
Default Helper-file—name of the helper image.
Ethernet interface—internal
Note
The internal interface is facing the router. The external interface may or may not be present on the service module.
External interface media—copper
Default Boot—disk
Default bootloader—secondary
Note
Always use the secondary bootloader; the primary bootloader is only for backup.
Step 4
Enter the show config command from the bootloader to verify that there are no empty values. (Check for any null/empty values as these may cause problems with the network boot sequence.)
SE- boot-loader> show config
Note
Before entering the boot helper (in step 5), do the following:
•
Check that the IP address you entered in step 3 is the IP address of the service module as configured on the host router.
•
Check that the TFTP server you entered in step 3 has connectivity to the service module. For example:
SE- boot-loader> ping TFTP-server-address
Step 5
To enter the boot helper, type: boot helper
The helper image starts and the following text appears:
Welcome to Cisco Systems Service Engine Helper SoftwarePlease select from the following1 Install software2 Reload module3 Disk cleanup(Type '?' at any time for help)Select 1 Install software:Step 6
Enter the following parameters:
Package Name—Cisco AXP package name
Server URL—FTP server location for the Cisco AXP package
Username—FTP username
Password—FTP password
Step 7
Enter y (yes) to clear disk contents.
After installation, the blade reboots with the new image.
Troubleshooting the Boot Helper File
Use a workstation to download the boot helper file from the TFTP server. This verifies that the TFTP server is running, the requested helper file exists, and there are no file access errors. File access errors are not displayed in boot helper.
Removing Software
To remove software, use the software uninstall command in Cisco AXP EXEC mode.
SUMMARY STEPS
1.
software remove
2.
exit
DETAILED STEPS
Uninstalling Software
To uninstall software, use the software uninstall command in Cisco AXP EXEC mode.
SUMMARY STEPS
1.
software uninstall
2.
exit
DETAILED STEPS
Secure Shell Access to the Service Module
For direct secure shell (SSH) access to the Cisco AXP CLI, a user must first session into the service module and configure it.
This initial configuration gives users direct SSH access to the Cisco AXP CLI and also allows them to perform remote configurations without constantly accessing the router and sessioning into the service module.
Cisco AXP provides secure shell (SSH) access to the CLI through a default user that acts like a system administrator. The password for the default system administrator must be configured by the user through the CLI, before SSH access to the Cisco AXP CLI. This password must be at least five characters.
If service password encryption is enabled, the system encrypts the clear text password that is entered and saves it in the encrypted format in the configuration file. If the user prefers a clear text password, service password-encryption is disabled by entering the no form of the command.
This command directs the system to encrypt the password using a system provided two-character salt string. With this service enabled, a clear text password string is encrypted and displayed as a level 7 password string.
Cisco AXP also provides commands for SSH tunneling. These commands are documented in the "SSH Access to a Virtual Instance" section.
This section contains the following tasks:
•
Configuring Password Protection
Configuring Password Protection
To session into the service module for direct SSH access to the Cisco AXP CLI and to configure the password, perform the following steps.
1.
Session into the service module and configure the password.
2.
service password-encryption password encrypts the clear text password that is entered and saves it in the encrypted format in the configuration file.
SUMMARY STEPS
1.
configure terminal
2.
service password-encryption
or,
no service password-encryption
3.
username sysadmin password clear-password-string
or,
username sysadmin password 0 clear-password-string
or,
username sysadmin password 7 hashed-password-string
4.
exit
DETAILED STEPS
Configuring the SSH Server
To configure SSH access to the CLI server allowing remote access to the Cisco AXP service module, perform the following steps.
SUMMARY STEPS
1.
configure terminal
2.
ip ssh server
3.
ip ssh interface interface
4.
exit
DETAILED STEPS
Verifying the SSH Server
To verify the SSH service is running, perform the following steps.
SUMMARY STEPS
1.
show processes
2.
show processes memory
DETAILED STEPS
Command or Action PurposeStep 1
show processes
View the state of the SSHD process. For this command and other diagnostic commands see Table 9.
Step 2
show processes memory
In EXEC mode, display the information of the sshd process when it is running.
Configuring the Syslog Server
Configuration of a syslog server allows the Cisco AXP service module to collect log messages from other physical and virtual devices on the network. The syslog server binds to an interface to accept log messages from any source on the network.
A user can enable or disable the syslog server on the Cisco AXP service module, and can specify the maximum log file size limits that can occupy the local file system space.
Because the syslog server cannot be configured to filter logs based on facility or priority, all log messages must be filtered before they are sent to the syslog server.
Log files generated by the syslog server reside in the /var/remote_log directory, and the log file is named remote_messages.log. Rotated log files are appended with a number, such as remote_messages.log.1, with the higher numbers designating older files. The oldest log file is deleted during a file rotation.
SUMMARY STEPS
1.
configure terminal
2.
syslog-server
3.
syslog-server limit file-rotation size [file-size num]
4.
syslog-server limit file-size size [ file-rotation num ]
5.
exit
DETAILED STEPS
Verifying the Syslog Server
To verify the Syslog server status, perform the following step.
SUMMARY STEPS
1.
show syslog-server
DETAILED STEPS
Command or Action PurposeStep 1
show syslog-server
Verify the server status. See the "Syslog Server Logs" section in Verifying and Troubleshooting.
Configuring the Application Service Environment
The core and add-on packages must be installed before proceeding with the configuration tasks in this section.
This section consists of the following tasks:
•
Starting or Stopping the Application Service
•
Configuring External Network Interfaces
•
Configuring the NTP Server Source
•
Configuring the Application Domain
•
Remote Serial Device Configuration
•
Configuring Resource Utilization Limits
•
SSH Access to a Virtual Instance
•
Cisco IOS Service API Configuration
Starting or Stopping the Application Service
SUMMARY STEPS
1.
configure terminal
2.
app-service application-name
3.
no shutdown
4.
end
5.
show state (Optional)
6.
exit
DETAILED STEPS
Configuring External Network Interfaces
Each application service environment is configured by default with access to the eth0 network interface, and the loopback interface which automatically binds into the application environment.
Use the bind interface command to bind one or more active network interfaces to the application service environment. A network interface may be shared between application service environments.
Ensure that your configuration settings do not allow more than one application service environment to compete for the same port on the same networking device.
You can configure physical ethernet interfaces on the Cisco AXP service module through the CLI.
Derived network interfaces (such as subinterfaces and VLAN interfaces) must be activated before they are added to the list of available network interfaces.
Activation depends on the type of derived network interface. All physical and derived network interfaces have associated configuration commands to adjust IP and firewall settings.
Note
The configuration of an IP address cannot be changed for an RBCP controlled physical device—these settings are configured on the Cisco ISR.
VLAN and Virtual Interfaces
Virtual and VLAN interfaces can only be created on configured and nonvirtual interfaces. An appropriate route must be setup on the Cisco IOS software side to direct traffic to the new network.
Table 3 shows an example of VLAN and virtual interface naming differences between Cisco IOS and Cisco AXP( Linux).
This section contains the following tasks:
•
Attaching a Networking Device to the Application Environment
•
Detaching a Networking Device from the Application Environment
•
Configuring a Virtual Interface
Attaching a Networking Device to the Application Environment
To attach a networking device to/from the application environment, perform the following steps.
SUMMARY STEPS
1.
configure terminal
2.
interface device-name
3.
ip address ip address network-mask
4.
end
5.
app-service application-name
6.
bind interface network-interface-name
7.
end
8.
app-service application-name
DETAILED STEPS
Detaching a Networking Device from the Application Environment
To remove a networking device to/from the application environment, perform the following steps.
SUMMARY STEPS
1.
configure terminal
2.
app-service application-name
3.
no bind interface network-interface-name
4.
end
5.
app-service application-name
6.
reset
DETAILED STEPS
Configuring a Virtual Interface
To configure a virtual interface, perform the following steps.
SUMMARY STEPS
1.
configure terminal
2.
interface eth0:x
3.
ip address ip-address
DETAILED STEPS
Configuring a VLAN Interface
VLAN needs to be configured on the router and Cisco AXP sides. In the configuration for the router configuration in step 3 below, the dot "." in "port.x" indicates a sub interface. Refer to Table 3 for virtual and VLAN naming differences.
Note
Configuring a VLAN interface is not supported on Cisco AXP AIM service modules.
To configure an appropriate route for the Cisco IOS software to set up traffic to the VLAN interface, it is necessary to configure the interface to DOT1Q mode.
DOT1Q mode only affects traffic that flows through this interface; it does not inject the VLAN tag for end-to-end traffic. If no native VLAN is configured on an interface, Cisco IOS by default makes encapsulation 1 DOT 1Q the default native VLAN.
On the Cisco AXP service module, VLAN ID 1 is always the native interface.
Note
It is not possible to ping the Cisco AXP service module from the router when using encapsulation 1 on the router, with a subinterface on the service module that has a matching native VLAN ID of 1 (eth0.1).
Recommendation
Try using a VLAN ID greater than 1 if it is not necessary to use VLAN ID 1 in your network. If you must use VLAN ID 1, add a native command to another DOT1Q interface and then use VLAN ID 1 as shown in the "VLAN Configuration Example" section.
To configure a VLAN interface, perform the following steps.
SUMMARY STEPS
1.
On the router side:
configure terminal
ip routing
interface Integrated-Service-Engine slot/port.x
encapsulation dot1q vlanid
ip address ip-address
2.
On the Cisco AXP Service Module:
configure terminal
interface ethport.x
ip address ip-address
DETAILED STEPS
VLAN Configuration Example
On the router:
interface Integrated-Service-Engine 1/0.1 <----- 1/0.1 for VLAN interfaceencapsulation dot1Q 10 <----------------------dot1Q encap for VLANip address 209.165.201.1 255.255.255.224interface Integrated-Service-Engine 1/0.2encapsulation dot1Q 20ip address 209.165.202.1 255.255.255.224On the Cisco AXP Module:
Interface eth0.10 <-------------------eth0.10 is VLAN interface syntax. 10 is the VLAN ID.ip address 209.165.201.2 255.255.255.224Interface eth0.20ip address 209.165.202.2 255.255.255.224Configuring the NTP Server Source
To have a consistent set of time stamps required for logs and development authorization between the router and the AXP service module, an administrator must configure the Cisco AXP service module to receive its NTP clock source from the router.
For Cisco AXP 1.0.5 and higher releases, the service module can immediately synchronize with the router. For this synchronization, the router must be set as the master NTP server using the ntp master command.
The ntp master command sets the router as the master source for providing clock synchronization, using its own system clock as the source for itself and the Cisco AXP service module.
However, in many cases, the router can also use another trusted NTP server as its source. Use the ntp server command to set an external server as the source for clock synchronization.
Note
The time zone setting is not automatically passed from the NTP master to the client, if they are set in different time zones.
For additional documentation on NTP, refer to the following link on Cisco.com:
SUMMARY STEPS
Step 1
On the router:
a.
Configure the ISR as an NTP master server.
configure terminal
ntp master
b.
(Optional) ntp server {hostname|ip-address}[prefer]
This step is optional, but recommended. Use this command to set an external server as the source for providing clock synchronization.
c.
Configure the correct time zone on the router.
clock timezone zone
copy running-config startup-config
exit
Step 2
On the Cisco AXP service module:
a.
Configure the Cisco AXP service module's NTP server to point to the source router providing the clock synchronization.
configure terminal
ntp server router-ip address
end
write memory or copy running-config startup-config
b.
Configure the time zone on the Cisco AXP service module to be the same as the source router time zone. Reload the module for the new time zone to take effect.
configure terminal
clock timezone
end
write memory or copy running-config startup-config
reload
DETAILED STEPS
Time Zone Selection on the Cisco AXP Service Module
Here is an example of time zone selection on the Cisco AXP service module using the interactive menu. Press ctrl-c at any time to exit this menu:
se-10-0-0-0> config tEnter configuration commands, one per line. End with CNTL/Z.se-10-0-0-0(config)> clock timezonePress ctrl-c at any time to exit this menuPlease identify a location so that time zone rules can be set correctly.Please select a continent or ocean.1) Africa 4) Arctic Ocean 7) Australia 10) Pacific Ocean2) Americas 5) Asia 8) Europe3) Antarctica 6) Atlantic Ocean 9) Indian Ocean#? 2Please select a country.1) Anguilla 27) Honduras2) Antigua & Barbuda 28) Jamaica3) Argentina 29) Martinique4) Aruba 30) Mexico5) Bahamas 31) Montserrat6) Barbados 32) Netherlands Antilles7) Belize 33) Nicaragua8) Bolivia 34) Panama9) Brazil 35) Paraguay10) Canada 36) Peru11) Cayman Islands 37) Puerto Rico12) Chile 38) St Barthelemy13) Colombia 39) St Kitts & Nevis14) Costa Rica 40) St Lucia15) Cuba 41) St Martin (French part)16) Dominica 42) St Pierre & Miquelon17) Dominican Republic 43) St Vincent18) Ecuador 44) Suriname19) El Salvador 45) Trinidad & Tobago20) French Guiana 46) Turks & Caicos Is21) Greenland 47) United States22) Grenada 48) Uruguay23) Guadeloupe 49) Venezuela24) Guatemala 50) Virgin Islands (UK)25) Guyana 51) Virgin Islands (US)26) Haiti#? 47Please select one of the following time zone regions.1) Eastern Time2) Eastern Time - Michigan - most locations3) Eastern Time - Kentucky - Louisville area4) Eastern Time - Kentucky - Wayne County5) Eastern Time - Indiana - most locations6) Eastern Time - Indiana - Daviess, Dubois, Knox & Martin Counties7) Eastern Time - Indiana - Starke County8) Eastern Time - Indiana - Pulaski County9) Eastern Time - Indiana - Crawford County10) Eastern Time - Indiana - Switzerland County11) Central Time12) Central Time - Indiana - Perry County13) Central Time - Indiana - Pike County14) Central Time - Michigan - Dickinson, Gogebic, Iron & Menominee Counties15) Central Time - North Dakota - Oliver County16) Central Time - North Dakota - Morton County (except Mandan area)17) Mountain Time18) Mountain Time - south Idaho & east Oregon19) Mountain Time - Navajo20) Mountain Standard Time - Arizona21) Pacific Time22) Alaska Time23) Alaska Time - Alaska panhandle24) Alaska Time - Alaska panhandle neck25) Alaska Time - west Alaska26) Aleutian Islands27) Hawaii#? 21The following information has been given:United StatesPacific TimeTherefore TZ='America/Los_Angeles' will be used.Is the above information OK?1) Yes2) No#? 1Verifying NTP Server Configuration
Use the show clock detail command to verify the clock settings on the router and the AXP service module.
SUMMARY STEPS
1.
On the router:
show clock detail
2.
On the AXP service module:
show clock detail
DETAILED STEPS
Configuring the Hostname
Configure the hostname for the application using the commands shown below.
SUMMARY STEPS
1.
configure terminal
2.
app-service application-name
3.
hostname hostname
DETAILED STEPS
Configuring the Application Domain
Using the ip name-server and ip domain-name commands in the host populates the /etc/resolv.conf file in each installed virtual instance. Using these commands to change the configuration in the host results in the /etc/resolv.conf file being updated.
When these commands are used to configure a new name-server and domain-name for a virtual instance (in app-service mode), the /etc/resolv.conf file in that virtual instance is overridden with the new server name and domain name.
The /etc/resolv.conf file in that virtual instance reverts back to the host configuration whenever the virtual instance does not have a name-server or domain-name configured.
Configuring the name-server and domain-server in a virtual instance always takes precedence over configuration in the host.
DNS Address
To configure the address of the domain name server (DNS) for the application, perform the following steps.
SUMMARY STEPS
1.
configure terminal
2.
app-service application-name
3.
ip name-server ip-address
DETAILED STEPS
Domain Name
To configure the domain name for the application, perform the following steps.
SUMMARY STEPS
1.
configure terminal
2.
app-service application-name
3.
ip domain-name domain name
DETAILED STEPS
Configuring Console Access
Use the connect console command to access the guest OS shell. To enable the connect console command, first obtain console access using the postinstall script. Refer to the section, Obtaining Console Access for the Application in the Cisco Application eXtension Platform Developer Guide.
To configure console access, perform the following steps.
SUMMARY STEPS
1.
app-service application-name
2.
connect console
DETAILED STEPS
Configuring IP Static Routes
Cisco AXP uses statically configured routes to route traffic to a specific interface. The destination network prefix, network prefix mask and the gateway address are in IPV4 dotted notation (xx.xx.xx.xx).
You can specify multiple route lines in a configuration and use the show ip route command to display the configured routes saved in the database. Some routes are added by default when configuring the interface. The default route for eth0 is configured through the Cisco IOS software CLI.
SUMMARY STEPS
1.
configure terminal
2.
interface device-name
3.
ip route destination-network-prefix network-prefix-mask gateway
DETAILED STEPS
Source-based IP Routing
Source-based IP routing, also known as static route configuration, is necessary for application initiated data transfer, such as client applications, and is used to determine an outbound interface when multiple interfaces are bound to an application instance.
Source-based routing is implemented for server applications to route response packets back through the incoming interface, and it is independent of the destination address.
Consider traffic entering the Cisco AXP service module through an ethernet interface, for example eth0.20, from an external IP address X. When the Cisco AXP application generates a reply, the system now contains a packet with source IP address, which is the address for eth0.20, and the destination IP address X.
If source-based routing is not applied, this packet is sent to a default route through eth0. Source based routing routes traffic based on the source IP address and sends it through the originating interface, which in our example above, is eth0.20.
Note
For the Cisco AXP network configuration, the destination interface to which you send the response packet is the same as the incoming interface.
If an application specifies the source IP address when a socket is opened, it will use source-based routing to select the interface to send traffic.
Access Control List
Configuring an access control list (ACL) on the Cisco AXP platform is similar to configuring an ACL on Cisco IOS software.
Packet filtering helps control packet movement through the network by helping to limit network traffic and restrict network use by certain users or devices. Use ACLs to permit or deny packets from crossing specified interfaces.
Using the ip access-list standard command enables standard ACL configuration mode (config-std-nacl). You can then configure the permit command in ACL sub-mode (config-std-nacl) to set up the standard IP access list.
Note
In Cisco AXP 1.0.1, you can specify only one IP address in the access control list.
SUMMARY STEPS
1.
configure terminal
2.
ip access-list standard {acl-name | acl-num}
3.
[line-num] permit {source-ip [wildcard]| host source-ip | any}[log]
DETAILED STEPS
Verifying Access Control Lists
To use the show ip access-list command in Cisco AXP EXEC mode to view the access control lists configured on the platform, perform the following step.
SUMMARY STEPS
1.
show ip access-list [<1-99> | <name> ][ interface intf ] [details]
DETAILED STEPS
Configuring Source Based Routing
Route Map Policy
Configure only one route-map set because only one set is applied under the ip local policy command. Do not apply the second set to the CLI even if the second set is not used.
Example:set 1:route-map APPCUSX 10match ip address 10set route table 10exitroute-map APPCUSX 20match ip address 20set route table 20exitset 2:<-------Do not applyroute-map APPCUSY 10match ip address 10set route table 10exitroute-map APPCUSY 20match ip address 20set route table 20exit
Note
In the steps below, the command interface Integrated-Service-Engine 1/0.1 is not permitted if the AIM service module is being used. Creation of a subinterface on the AIM service module interface is not supported.
SUMMARY STEPS
1.
Configure the following Cisco IOS commands on the router. Configuration steps here include configuring the routing/forwarding (VRF) tables. For more information on VRF-Lite, refer to Configuring VRF-Lite.
configure terminal
ip vrf vrf-name
rd ip-address
route-target export ip-address
route-target import ip-address
interface GigabitEthernet0/1
ip address ip-address network-mask
duplex auto
speed auto
ip vrf forwarding vrf-name
interface Integrated-Service-Engine 1/0
ip unnumbered GigabitEthernet0/0
service-module ip address ip-address network-mask
service-module ip default-gateway ip-address
no keepalive
interface Integrated-Service-Engine 1/0.1
encapsulation dot 1q vlan-id
ip address ip-address network-mask
ip vrf forwarding vrf-name
exit
2.
Configure the following AXP commands on the service module:
a.
Create a connected route for the route table:
configure terminal
interface device-name
ip address ip-address network-mask
ip route table table-num
exit
b.
Set up an access list to match the source address of eth0.x (Standard access list permit statement matches default source address)
ip access-list standard {acl-name | acl-num}
[line-num] permit {source-ip [wildcard]| host source-ip|any}[log]
exit
c.
Create a route map policy to associate source address matching.
route-map name number
match ip address {acl-num | acl-name }
set route table table-num
exit
ip local policy route-map map-tag
ip route table num dest-prefix net-mask default-gw
ip route table num dest-prefix net-mask blackhole
exit
DETAILED STEPS
Source Based Routing Example
Source Based IP Routing
interface eth0.100ip route table 10 <-- sets up the connected route for table 10ip address 209.165.201.1 255.255.255.224exitInterface eth0.200ip route table 20ip address 11.11.10.2 255.255.255.0exitip access-list standard 100permit 10.7.8.9 <-- Source address that will be used for source based routingexitip access-list standard 200permit 11.11.10.2exitip route table 10 0.0.0.0 0.0.0.0 10.7.8.10 <--- defines the default route in table 10ip route table 20 0.0.0.0 0.0.0.0 11.11.10.3route-map CLASSIFY 10match ip addr 100 <--- defines source based routing address and routing table.set route table 10exitroute-map CLASSIFY 20match ip addr 200set route table 20exitip local policy route-map CLASSIFYVRF Configuration
In this example, the VRF is named red, and dot1Q encapsulation is used with ID tag 10 to relay VRF traffic from the router to the service module.
ip vrf redrd 192.0.2.0:10route-target export 192.0.2.0:10route-target import 192.0.2.0:10interface GigabitEthernet0/1ip address 10.7.7.7 255.255.255.0duplex autospeed autoip vrf forwarding redinterface Integrated-Service-Engine1/0ip unnumbered GigabitEthernet0/0service-module ip address 209.165.201.1 255.255.255.224service-module ip default-gateway 209.165.201.2no keepaliveinterface Integrated-Service-Engine1/0.1encapsulation dot1Q 10ip address 10.7.8.8 255.255.255.0ip vrf forwarding redRemote Serial Device Configuration
Cisco AXP supports external device connections through Cisco IOS software host serial ports. The virtual serial device on the local Cisco AXP platform interacts with external Cisco IOS software serial devices.
Remote serial device configuration on the Cisco AXP service module is dependent on the Cisco AXP vserial device add-on package which is of the type: axp-vserial.<platform>.<version>.pkg.
This add-on package enables an application running on the service module to access external Cisco IOS serial devices connected to the serial port of a Cisco IOS router. For example, applications can support peripherals that connect to serial ports such as GPS locators.
Note
A maximum of 16 serial devices, including the AUX line, are supported by the virtual serial device package.
Cisco AXP currently supports the following asynchronous interfaces:
•
HWIC-4T
•
HWIC-4A/S
•
HWIC-8A/S-232
•
HWIC-8A
•
HWIC-16A
The Cisco IOS router's auxiliary serial ports are virtualized and appear in the Cisco AXP OS as local devices. External devices connected to the Cisco IOS router appear as standard local devices such as "/dev/tty1" or "/dev/tty2" to Linux applications hosted on application service modules.
Third party applications can therefore control external peripherals attached to the router's auxiliary serial port without special knowledge of the location of the devices. Applications can open/close/read/write to the peripherals using standard Linux System calls such as: open("/dev/vtty1"), and read( ).
When the virtual serial device opens, a reverse telnet session is established, connecting to the Cisco IOS software host line interfaces. All serial data transfer is carried through this reverse telnet session.
Note
Reverse telnet works only with line interfaces, and with serial interfaces that are configured in async mode. Reverse telnet does not work if serial interfaces are configured in synchronous mode.
Linux applications use the virtual device driver to control and receive signal state notifications on all async RS232 leads. A fixed TCP port is assigned to each of the TTY and AUX lines, and to the serial interfaces in ASYNC mode, when reverse telnet is implemented in Cisco IOS software.
The following are the vserial APIs available on AXP side:
•
show device serial —Lists all the serial devices accessible from AXP
•
bind serial name —Available inside the application's context and is used to bind a particular serial device to an application.
In Cisco AXP 1.1 release, vserial supports only the following subset of the twelve options specified in RFC 2217 protocol:
•
SET-BAUDRATE
•
SET-DATASIZE
•
SET-PARITY
•
SET-STOPSIZE
•
SET-CONTROL
•
NOTIFY-LINESTATE
•
NOTIFY-MODEMSTATE
For more information on RFC 2217, refer to:
Telnet Com Port Control Option document RFC 2217)
The port-index and the TCP port for various interfaces are pre-defined in Cisco IOS software, and are shown in Table 5.
PREREQUISITE TASKS
•
The vserial add-on package (for example, axp-vserial.aim.1.0.5.pkg and axp-vserial.aim.1.0.5.prt1) must be first installed, followed by an installation of the third party application before commencing with the following configuration. For a list of software packages for the latest Cisco AXP 1.0.x release, refer to the Cisco AXP Release Notes.
SUMMARY STEPS
1.
On the router:
a.
Configure NETCONF over BEEP:
configure terminal
sasl profile profile-name
mechanism profile-mechanism
exit
netconf max-sessions session-number
netconf beep listener [port-number] [acl access-list-number] [sasl sasl-profile]
b.
Configure the serial interface in async mode.
interface serial slot/module/port
physical-layer async
no ip address
line line-num
no exec
transport input telnet
speed baud-rate
c.
Configure lines for reverse telnet and aysnchronous interface with stop bits and parity.
interface async slot/module/port
no ip address
encapsulation slip
line line-number
no exec
transport preferred none
transport input all
transport output all
stopbits number
parity value
speed baud-rate
2.
On the Cisco AXP service module:
a.
Configure NETCONF over BEEP
netconf max-sessions session-number
netconf beep initiator router-IP-address port-number
b.
Bind the interface and serial devices.
config t
app-service serialapp
bind interface
bind serial
end
app-service serialapp
reset
end
DETAILED STEPS
Verifying Remote Serial Devices
Use the show line command on the router to obtain the IOS serial device configuration, and then use the show device serial command on the Cisco AXP service module to view all the remote serial devices.
SUMMARY STEPS
1.
On the router
show line
2.
On the service module
show device serial
3.
(Optional) show processes | include beep
DETAILED STEPS
Verifying Remote Serial Device: Example
router# show lineTty Line Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns Int* 0 0 CTY - - - - - 2 0 0/0 -1 1 AUX 9600/9600 - - - - - 2 0 0/0 -0/0/0 2 TTY 9600/9600 - - - - - 0 0 0/0 Se0/0/00/0/1 3 TTY 9600/9600 - - - - - 0 0 0/0 Se0/0/1* 66 66 TTY 9600/9600 - - - - - 2 0 0/0 -514 514 VTY - - - - 23 0 0 0/0 -515 515 VTY - - - - 23 0 0 0/0 -516 516 VTY - - - - 23 0 0 0/0 -In the show device serial command output shown below, the Line Type, Line No. and Interface Name fields are mapped to the output of the show line command. The Assigned To field is set by the bind command and shows the specific application to which the remote serial device is attached.
Note
show device serial lists a maximum of 16 serial devices (including the AUX line).
se-Module> show device serialDevice Name TTY No. Line No. Line Type Intf Name Assigned Tovaux1 1 1 AUX - -vtty000 0/0/0 2 TTY Se0/0/0 serialappvtty001 0/0/1 3 TTY Se0/0/1 -Remote Serial Device Configuration Example
On the router:
interface Serial0/0/0 <-- If the physical device is connected to serial 0/0/0 interfacephysical-layer async <-- AXP only supports async communicationno ip addressline 0/0/0no exectransport input telnetspeed 4800For start-stop synchronous communication, low level asynchronous configuration is under the line sub-mode.router(config)#line 0/0/0 0/0/7router(config-line)#? <--------------- Enters line sub-mode.On the router, Cisco IOS asynchronous serial configuration with stopbits and parity:interface Async0/0/2no ip addressencapsulation slip!interface Async0/0/3no ip addressencapsulation slipline 0/0/0 0/0/7no exectransport preferred nonetransport input alltransport output allstopbits 1.5speed 230400interface Async0/0/2no ip addressencapsulation slip!interface Async0/0/3no ip addressencapsulation slipline 0/0/0 0/0/7no exectransport preferred nonetransport input alltransport output allparity evenspeed 230400Configure NETCONF over BEEPnetconf beep listener 1000 sasl profile1netconf max-sessions 16sasl profile profile1mechanism anonymousOn the Cisco AXP service module:
app-service <app_name>bind serial vtty000 modem <-- bind vtty000 serial device to application with a user-defined name "modem"If the bind command is successful a device node /dev/modem is created in the application's virtual instance and the user can access the device as any other regular deviceConfigure NETCONF over BEEPnetconf beep initiator 1.100.40.221 1000netconf max-sessions 16Packet Analysis
You can use either network analysis monitoring, or router IP traffic (RITE) features for monitoring packets on the Cisco AXP platform. Both features are very similar to the features available on Cisco IOS software platforms.
Use packet monitoring when there is only one application service module installed in the router.
Depending on your application, and the traffic analysis required for that application, these suggestions may help you choose appropriate features for your application:
•
If your application requires monitoring router-generated packets, (unsupported for RITE) or for a quick start, see the "Enabling Interface Monitoring" section.
•
Otherwise, if you need more granular control on your exported traffic see the "Configuring Router IP Traffic Export" section.
Note
Both features can be configured at the same time, however, we do not recommend simultaneous feature configuration. Each feature performs its own duplication, resulting in receipt of duplicated packets if both features are configured at the same time.
For more information on these features, see Cisco Branch Routers Series Network Analysis Module and RITE documents on cisco.com. Also see the "Additional References" section.
Configuring Router IP Traffic Export
The advantages of using RITE include:
•
Lightweight export
•
Can capture incoming or bidirectional traffic
•
Allows user to configure access control lists (ACLs)
•
Allows user to configure sampling rate
To configure RITE, perform the following configuration steps on the router side.
SUMMARY STEPS
1.
Create an RITE capture profile on the ISR:
configure terminal
ip traffic-export profile profile-name
interface Integrated-Service-Engine slot/0
bidirectional
mac-address H.H.H
2.
Configure RITE export parameters on the ISR:
incoming {access-list {standard | extended | named} | sample one-in-every packet-number}
outgoing {access-list {standard | extended | named} | sample one-in-every packet-number}
exit
3.
Apply the profile to an interface:
interface GigabitEthernet
description string
ip traffic-export apply profile-name
duplex auto
speed auto
no keepalive
end
DETAILED STEPS
Enabling Interface Monitoring
Interface monitoring on the Cisco AXP platform is very similar to packet monitoring in a Cisco IOS software environment.
To enable the Interface Monitoring Feature on a Cisco AXP service module interface, use the analysis-module monitoring command in interface configuration mode.
Note
Interface monitoring is not available for applications running on an AIM service module.
To enable interface monitoring, perform the following steps on the router side.
SUMMARY STEPS
1.
configure terminal
2.
interface type number
3.
description string
4.
ip address ip-address network-mask
5.
duplex auto
6.
speed auto
7.
analysis-module monitoring
8.
no keepalive
9.
end
DETAILED STEPS
Logging
This section consists of:
•
Configuring Log File Size Limits
•
Configuring System Log Levels
Configuring Log File Size Limits
To configure the log file size, perform the following steps.
SUMMARY STEPS
1.
configure terminal
2.
app-service application-name
3.
limit log-file size megabytes
DETAILED STEPS
Command or Action PurposeStep 1
configure terminal
Enters global configuration mode.
Step 2
app-service application-name
Enters application service mode.
Step 3
limit log-file size megabytes
•
Sets the size of the log file /var/log/messages.log. Each virtual instance writes a syslog to its own file /var/log/messages.log.
•
Once this file reaches the limit specified by this command, its contents are moved to a backup log file messages.log.prev and a new messages.log file is started.
The range is 0-40 MB with a default size of 5 MB for two files.
•
When the log file size reaches its limit, messages are moved to an alternate file messages.log.prev.
•
megabytes—The range of the log file size from
0-40 MB.•
When the value is out of range, the following message appears:
%Invalid input detected at `^' marker•
If the log file size limits are not set (no limit log-file size), the size reverts to the default value of 5 MB.
•
If the log file size is set to 0 MB, a minimum file size of 10 KB is set.
To view log files under the /var/log directory, use the show log name command in the "Viewing Log and Core Files" section.
Configuring Remote Logging
To configure remote logging, perform the following steps.
SUMMARY STEPS
1.
configure terminal
2.
interface device-name
3.
no shutdown
4.
ip address ip address network-mask
5.
end
6.
app-service application-name
7.
log server address hostname
DETAILED STEPS
Configuring System Log Levels
SUMMARY STEPS
1.
configure terminal
2.
app-service application-name
3.
log level levels
DETAILED STEPS
Configuring Resource Utilization Limits
Cisco AXP 1.1 provides the flexible resource allocation feature as part of the resource management system. It provides developers the flexibility to package an application without completely determining the hardware's capability to support that application.
Use the limit memory utilization command to set memory limits. To set CPU and disk limits, use the limit cpu utilization and limit disk utilization commands.
Flexible Resource Allocation
Flexible resource allocation grants extra CPU, memory and disk resources to an application if these resources are available, and allows these non-allocated resources to be shared between all virtual instances.
Flexible resource allocation is disabled by default. If it is not enabled, an application is installed only if resource limits are set before packaging the application.
Users can manually override any resource limits on a given application by using the resource limits CLI. If you override resource limits for an application, then flexible resource allocation cannot be applied to that application.
Flexible resource allocation occurs after these events:
•
Installing an add-on package
•
Upgrading an existing package
•
Uninstalling an installed package
•
Changing resource limits using the CLI
Resource Limits Exceeded after Downgrade
The following scenario may occur after downgrading an application on Cisco AXP.
If the current software on the service module is App V2 with Cisco AXP host OS 1.1.1, and a downgrade is performed to a lower version of Cisco AXP host OS (for example, 1.0.6) using App V1, the files for App V2 may still be present on the application service module.
The presence of two versions of the application may cause resource limits to be exceeded. Error messages may be displayed when trying to run App V1 (referenced as APP1 in the error message) on Cisco AXP host OS (1.0.6):
localhost err_handler: invalid parameters: 'space_used' is larger than 'space_total'.localhost err_handler: Failed to start vserver 'APP1'.Reloading the Service Module and Virtual Instance
The new resource limits become effective only after executing the reload or reload apps command.
•
The reload command applies the new resource limits and reboots the Cisco AXP service module.
•
The reload apps command can reload the virtual instance and apply the new resource limits without rebooting the service module.
SUMMARY STEPS
1.
config t
2.
app-service application-name
3.
limit disk utilization Megabytes
limit cpu utilization index
limit memory utilization Megabytes
4.
end
5.
write memory
6.
reload
or
reload apps
7.
exit
DETAILED STEPS
Verifying Resource Utilization Limits
Refer to the "Verifying Resource Utilization Limits" section.
SSH Access to a Virtual Instance
Secure Shell (SSH) Protocol tunneling is a secure and effective solution for network users and administrators. SSH tunneling, also known as SSH port forwarding, is the process of forwarding selected TCP ports through an authenticated and encrypted tunnel.
The tunnel_root SSH user allows full access to the guest OS shell; the tunnel_user SSH user allows only controlled access.
SSH access may be selected through tunnel_root and tunnel_user if an application depends on an axp-app-dev package, such as axp-app-dev.aim.1.0.5.pkg.
Only tunnel_user can be selected if an application depends on an axp-app-ssh package, such as axp-ssh-4.6p1-k9.nme.1.0.5.pkg.
This section consists of the following tasks:
•
Configuring Shell Access in a Virtual Instance
For direct access to the Cisco AXP CLI, see the "Secure Shell Access to the Service Module" section.
SSH Controlled Access
To allow controlled access to your guest OS thorugh tunnel_user, perform these tasks:
1.
You must include a script in your package with this name and directory: /usr/ssh/home/tunnel_user_startup.sh
2.
This script is invoked when tunnel_user logs in.
If you do not include a script, the original script allows the tunnel_user to first log in, and then automatically logs the user out after displaying the welcome message.
Configuring SSH Tunneling
To configure SSH tunneling, perform the following steps.
SUMMARY STEPS
1.
configure terminal
2.
ip ssh server [ port-num ]
3.
ip ssh username [tunnel_root | tunnel_user] password clear-password-string
4.
ip ssh username [tunnel_root | tunnel_user] password0 clear-password-string
5.
ip ssh username [tunnel_root | tunnel_user] password7 hashed-password-string
DETAILED STEPS
Configuring Shell Access in a Virtual Instance
To configure the SSH server for shell access in a virtual instance, perform the following steps.
Step 1
Install app_debug.pkg and bind the interface to ensure SSH connection.
SE-Module# configure terminalconfig# app-service app-nameconfig-app-name# bind interface eth0(config-app-name)# endStep 2
Activate tunnel_root in the ip ssh username [tunnel_root | tunnel_user] password command by setting a password.
SE-Module# configure terminalconfig# app-service app-nameconfig-myapp# ip ssh username tunnel_root password clear-password-stringconfig-myapp# endStep 3
Enable the SSH server.
SE-Module# configure terminalconfig# app-service app-nameconfig-app-name# ip ssh serverconfig-app-name# endStep 4
Verify status of the SSH server.
SE-Module# app-service app-nameapp-name# show ssh-serverExample:
Application SSH ServerStatus: RUNNINGStep 5
You can now connect to the SSH server inside the virtual instance. By default, the SSH server port is 2022.
a.
If you connect using tunnel_root as the SSH user, you have direct shell access after you log in with your password.
Note
Use tunnel_root only in the development environment, for example when debugging.
Example:workstation-shell# ssh tunnel_root@myblade -p 2022tunnel_root@myblade's password:vserver-shell#b.
If you connect using tunnel_user as the SSH user, the startup script in the third party application determines the type of access for a tunnel user.
Note
Use tunnel_user only in the production environment.
In the example below, the startup script /usr/ssh/home/tunnel_user_app_startup.sh does not allow a tunnel user to access the shell inside the virtual instance.
An interactive message appears after you log in with your password.
Example:workstation-shell# ssh tunnel_user@myblade -p 2022tunnel_user@myblade's password:=====Start of message from the Cisco AXP Application SSH Support=====Tunnel User (tunnel_user) has logged in successfullyApplication specific Tunnel User startup script will be invoked (if exists)=====End of message from the Cisco AXP Application SSH Support=======Welcome Tunnel User!Please enter 1 to do a 'pwd', or 2 to do a 'ls'2tunnel_user_app_startup.sh tunnel_user_startup.shtunnel_user_app_startup.sh.sampleConnection to myblade closed.Workstation-shell#
Synchronizing Files
Cisco AXP provides developers with a data synchronization feature that allows them to synchronize files from a virtual instance to their workstation. The sync file url command synchronizes data from the virtual instance to the workstation using the rsync utility. The synchronization feature uses the rsync utility to exclude hard-linked files from the synchronization process.
Hard-linked files from the Guest-OS and other add-on files are excluded from synchronization since they are not packaged in an application. If an application requires a hard-linked file on the Cisco AXP service module to be overwritten with a file from a developer's workstation, it is necessary to first log into the Linux session in the virtual instance and remove the hard-linked file's protection.
If a file (or its directory) is deleted from one location and is used as the source of a synchronization operation, the file (or its directory) on the other location will not be automatically deleted. It must be manually deleted.
For example, if /work/helloworld-app-content/etc/mtab is deleted from the workstation repository and sync file url command is invoked with the in keyword, the file on the Cisco AXP service module will not be automatically deleted.
Files that are not protected (not hard-linked from the Guest-OS or add-on files), will be synchronized out of the Cisco AXP service module for that virtual instance. These files include:
•
All files added by the developer
•
Temporary files used by run-time Linux
•
Basic directory structures
The synchronization feature depends on:
•
Guest-OS and add-on files hard-linked (UNIX file system link) in the virtual instance.
•
rsync utility
Prerequisites
The following tasks must be performed before synchronizing files.
Workstation
On the workstation, the rsync utility is installed by default with the recommended Redhat platform. Cisco AXP invokes rsync remotely using SSH.
For the rsync utility to be initiated from the service module, the following tasks must be performed:
1.
sshd must be running on the workstation
2.
The workstation must be connected through the network from the router.
3.
The developer must have a valid account on the workstation.
4.
A directory must be available to contain the synchronization process content.
5.
The ~/.ssh folder must have read, write and executable permissions for the owner.
Application
The application (empty application for starting developing) must be dependent on the application debug package to provide access to the Linux shell and rsync utility.
Since rsync requires network connectivity, the application must be configured to bind an interface.
Service Module
On the service module:
•
Configure the bind interface command to connect the installed application to the workstation. Refer to the "Configuring External Network Interfaces" section.
•
Configure SSH authentication keys to allow rsync session initiations without having to provide a password for each session. This configuration is required only once.
SUMMARY STEPS
1.
app-service application-name
2.
sync file url rsync:host_url direction [in|out] username username
3.
exit
DETAILED STEPS
Synchronization Example
This example assumes that the prerequisite tasks have been performed and the application is installed and configured on the Cisco AXP service module.
Setup
•
Workstation (rsync repository) address: 192.168.1.4
•
Username used by the developer on the workstation: john
•
Empty application name: helloworld
•
Cisco ISR prompt:
Router>•
Cisco AXP service module prompt:
appre>•
Workstation's folder to be used as a repository: /work/helloworld-app-content
Configuring SSH Authentication Keys
Configure the SSH authentication keys to establish trust between the service module and the workstation before using the sync file url command.
SUMMARY STEPS
1.
Access a Linux shell session on the service module's application
2.
Generate a key for the service module
3.
Load the service module's public key to the workstation
4.
Verify setup
Step 1
Setup a Linux session on the service module. Use the linux shell and connect console commands to access the guest OS shell. You can obtain console access for your application by using a debug package as a dependency, or by using a postinstall script.
a.
To enable the linux shell command, first obtain console access using a debug package as a dependency. Refer to the section, Obtaining Console Access for the Application in the Cisco Application eXtension Platform Developer Guide.
b.
To enable the connect console command, first obtain console access using the postinstall script. Refer to the section, Obtaining Console Access for the Application in the Cisco Application eXtension Platform Developer Guide.
appre> app-service helloworldappre>(exec-helloworld)>appre>(exec-helloworld)> linux shellbash-2.05b#Step 2
Generate keys.
Use ssh-keygen to generate keys for the network-module.
Do not provide a passphrase. Save the generated keys under /root/.ssh/id_rsa since ssh will be looking for it.
bash-2.05b# ssh-keygen -t rsaa.
Generate the public/private RSA key pair. You will enter information in interactive mode.
Enter the file in which you want to save the key (/root/.ssh/id_rsa):Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in id_rsa.Your public key has been saved in id_rsa.pub.The key fingerprint is:
d:31:68:8a:54:94:ee:9c:ba:14:79:41:53:ef:ac:ec root@appreStep 3
Upload the service module's public key to the workstation to ensure that the service module's public key is known by the workstation. A simple way to upload the public key is to use the scp utility.
bash-2.05b# scp /root/.ssh/id_rsa.pub john@192.168.1.4:.ssh/authorized_keys2
Note
john is the username or account on the workstation. We will use the same username to invoke the rsync command.
Step 4
Verify setup.
We can verify the setup of the authentication key by launching a simple SSH session from the service module to the workstation.
bash-2.05b# ssh john@192.168.1.4You should not be prompted for a password for this command and should get a SSH session right away. If you do not initiate a SSH session immediately verify that:
•
The right key has been uploaded. The key must be uploaded on the same machine to which you are initiating ssh during the verification step.
•
The username is the same.
•
The scp operation destination does not contain any typographical errors.
Step 5
Use the sync file url command
Perform data synchronization between the service module application files and the workstation repository. The first time you synchronize, it is recommended that you synchronize out (service module to the workstation) so that the base directory layout is exported.
Synchronizing out for the first time also makes it easier to add files to the structure.
In this example, we invoke the rsync command from the application context from the CLI prompt:
appre> app-service helloworldappre(exec-helloworld)> sync file url rsync://192.168.1.4/work/helloworld-app-content direction out username johnUsing this command exports the data to the workstation 192.168.1.4 and places all the data of the application, which resides on the service module, under the workstation's directory /work/helloworld-app-content.
The username john is used as credential for the connection.
The exported data must contain the following:
•
Basic directory structure
•
Temp files that were used in the virtual instance such has /tmp/*, /var/log/*, /var/lock/*
•
Original files that were originally packaged in the application
At this point, files can be added and modified in the workstation repository and be synchronized back in, using the same command but using in instead of out as direction.
CLI Plug-in Invocation
The Cisco AXP CLI plug-in distribution service supports CLI plug-in actions in C, Java, and shell scripts.
Developers must implement APIs using the signatures provided in of the Cisco AXP Developer Guide and compile the APIs into application C libraries or Java classes. The CLI plug-in distribution service invokes these APIs when a user enters a command referring to one of these action classes.
EXEC Mode
Invoke an EXEC CLI plug-in as follows:
SUMMARY STEPS
1.
app-service application-name
2.
Enter the CLI plug-in as defined by the third party application.
3.
exit
DETAILED STEPS


