Feedback
|
Table Of Contents
Cisco Application eXtension Platform 1.0 User Guide
Entering the Command Environment
Exiting the Command Environment
Configuring the Cisco AXP Service Module Interface
Opening and Closing a Service Module Session
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 Subinterface for a Virtual Interface
Configuring a Subinterface for a VLAN Interface
Configuring the NTP Server Source
Verifying NTP Server Configuration
Configuring the Application Domain
Verifying Access Control Lists
Configuring Source Based Routing
Remote Serial Device Configuration
Verifying Remote Serial Devices
Configuring Router IP Traffic Export
Configuring Log File Size Limits
Configuring Resource Utilization Limits
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
Viewing a List of Installed Applications
Resetting the Examples Application Environment
Uninstalling an Application Package
Common Troubleshooting Commands
Verifying and Troubleshooting System Status
Diagnostics and Logging Options
Cisco Application eXtension Platform 1.0 User Guide
Revised: 8/25/08, OL-14815-01
The Cisco Application eXtension Platform (AXP) web page is located at:
This guide describes the commands and tasks for installing and configuring the
Cisco Application eXtension Platform (AXP) on Cisco's Integrated Service Routers.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
–
Diagnostics and Logging Options
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. See the "Supported Hardware" section.
2.
Download the applicable Cisco IOS software image and Cisco AXP files and configure the router. See the "Software Requirements" section.
3.
Review the Cisco AXP command environment. See the "Cisco AXP Command Modes" section.
4.
Configure the Cisco AXP service module interface. See the "Configuring the Cisco AXP Service Module Interface" section.
5.
Install core and add-on packages, upgrade software versions, and use the software helper image, see the "Installing and Upgrading Software" section.
6.
Configure secure shell (SSH) access. See the "Secure Shell Access to the Service Module" section.
7.
Configure the syslog server. See the "Configuring the Syslog Server" section and "Verifying the Syslog Server" section.
Supported Hardware
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 the 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.
Installation
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.
Installing and Upgrading Software
This section contains the following tasks:
•
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.0 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 software application packages.
Upgrade Scenarios
Table 1-1 lists the various 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— package file of 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 consisting of 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 package
AXP 1.0 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 package
To upgrade the Cisco AXP add-on package from 1.0 to 1.0.6 use the software install upgrade command where:
Package file—package consisting of Cisco AXP 1.0.6 add-on package.
orPackage file—bundle containing Cisco AXP 1.0 host OS + Cisco AXP 1.0.6 add-on package + 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.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
Table 1-2 lists the various downgrade scenarios supported on Cisco AXP.
Note
Use the upgrade command software install upgrade 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.0 host OS +
Cisco AXP 1.0.5 add-on package +
App V1Note
App V1 has a dependency onthe Cisco AXP 1.0.5 add-on package.
Cisco AXP 1.0 host OS +
Cisco AXP 1.0 add-on package +
application package App V1Note
App V1 has a dependency onthe Cisco AXP 1.0 add-on package.
Use the software install upgrade command to downgrade the Cisco AXP add-on package from 1.0.5 to 1.0
where:
•
package-filename—package of Cisco AXP 1.0 add-on package
OR
•
package-filename—bundle containing Cisco AXP 1.0 add-on package + application package App V1
Refer to Upgrading Software
Cisco AXP 1.0 host OS +
Cisco AXP 1.0 add-on package +
application package App V1.Note
App V1 has a dependency onthe Cisco AXP 1.0 add-on package.
Cisco AXP 1.0 host OS.
To uninstall Cisco AXP add-on package 1.0 and application package App V1:
•
software uninstall uid1 uid2
where uid1 is the UID of Cisco AXP 1.1 add-on package, and uid2 is the UID of application package App V2.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.0 host OS +
application package App V1.Note
App V1 has a dependency onthe Cisco AXP 1.0 add-on package.
Cisco AXP 1.0 host OS.
To uninstall application package App V1:
•
software uninstall uid1
where uid1 consists of application package App V1.Refer to Uninstalling Software
Cisco AXP 1.0 host OS +
Cisco AXP 1.0 add-on package +
application package App V2 .Note
App V2 has a dependency onthe Cisco AXP 1.0 add-on package.
Cisco AXP 1.0 host OS +
application package App V1.To downgrade application package from App V2 to App V1:
•
software install upgrade
where:
package-filename— bundle containing of the AXP 1.0 host OS + application package App V1.
Refer to Upgrading 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 5.
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.
Configuring Subinterfaces
Virtual and VLAN interfaces can only be created on a configured and nonvirtual interface. An appropriate route must be setup on the Cisco IOS software side to direct traffic to the new network.
Note
Creation of a subinterface on the AIM service module interface is not supported.
In addition to configuring an appropriate route on the Cisco IOS software side to setup traffic to the VLAN interface, you must also configure the Cisco IOS software 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.
This section contains the following tasks:
•
Attaching a Networking Device to the Application Environment
•
Detaching a Networking Device from the Application Environment
•
Configuring a Subinterface for a Virtual Interface
•
Configuring a Subinterface for a VLAN 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 Subinterface for a Virtual Interface
To configure a subinterface for 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 Subinterface for a VLAN Interface
To configure a subinterface for 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 eth slot/port.x
ip address ip-address
DETAILED STEPS
Configuring 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 Release 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.
Perform this step only if you do not have the ISR set to receive synchronization data from an external 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
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
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
reload
DETAILED STEPS
Time Zone Selection
Here is an example of time zone selection on the Cisco AXP service module:
se-Module(config)> clock timezonePlease 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 18) Ecuador 35) Paraguay2) Antigua & Barbuda 19) El Salvador 36) Peru3) Argentina 20) French Guiana 37) Puerto Rico4) Aruba 21) Greenland 38) St Kitts & Nevis5) Bahamas 22) Grenada 39) St Lucia6) Barbados 23) Guadeloupe 40) St Pierre & Miquelon7) Belize 24) Guatemala 41) St Vincent8) Bolivia 25) Guyana 42) Suriname9) Brazil 26) Haiti 43) Trinidad & Tobago10) Canada 27) Honduras 44) Turks & Caicos Is11) Cayman Islands 28) Jamaica 45) United States12) Chile 29) Martinique 46) Uruguay13) Colombia 30) Mexico 47) Venezuela14) Costa Rica 31) Montserrat 48) Virgin Islands (UK)15) Cuba 32) Netherlands Antilles 49) Virgin Islands (US)16) Dominica 33) Nicaragua17) Dominican Republic 34) Panama#? 45Please select one of the following time zone regions.1) Eastern Time2) Eastern Time - Michigan - most locations3) Eastern Time - Kentucky - Louisville area4) Eastern Standard Time - Indiana - most locations5) Central Time6) Central Time - Michigan - Wisconsin border7) Mountain Time8) Mountain Time - south Idaho & east Oregon9) Mountain Time - Navajo10) Mountain Standard Time - Arizona11) Pacific Time12) Alaska Time13) Alaska Time - Alaska panhandle14) Alaska Time - Alaska panhandle neck15) Alaska Time - west Alaska16) Aleutian Islands17) Hawaii#? 11The following information has been given:United StatesPacific TimeTherefore TZ='America/Los_Angeles' will be used.Local time is now: Tue Jul 18 02:02:19 PDT 2006.Universal Time is now: Tue Jul 18 09:02:19 UTC 2006.Is the above information OK?1) Yes2) No#? 1Save the change to startup configuration and reload the module for the new timezone to take effect.se-Module(config)> endse-Module>Verifying 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 Release 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
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.
The Cisco AXP vserial device add-on package is of the type: axp-vserial.<platform>.<version>.pkg
The virtual serial driver package enables an application running on the application service module to access external Cisco IOS serial devices connected to the serial port of a Cisco IOS router. This allows applications to support, for example, 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 sync 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 port-index and the TCP port for various interfaces are pre-defined in Cisco IOS software, and are shown in Table 3.
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.
•
To configure the virtual serial device driver, you must configure:
–
Reverse telnet on the router and the Cisco AXP service module.
Guidelines from RFC 2217 are also used in implementing the virtual serial device driver on the Cisco AXP platform:
Telnet Com Port Control Option document RFC 2217)
SUMMARY STEPS
1.
Configure these commands on the router:
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]
a.
Configure the serial device interface.
interface serial slot/module/port
physical-layer async
no ip address
encapsulation slip
b.
Configure lines for reverse telnet.
line con line-num
exec-timeout 0 0
login local
stopbits 1
line 0/0/0
transport input telnet
line line-num
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120
2.
Configure these commands on the Cisco AXP service module.
username user-name password password
netconf max-sessions session-number
netconf beep initiator router-IP-address port-number
a.
Bind the interface and serial devices.
conf 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
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 -Packet 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.
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 "Notices" 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 a 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.
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
To set CPU and disk limits, use the limit cpu utilization and limit disk utilization commands.
SUMMARY STEPS
1.
config t
2.
app-service application-name
3.
limit disk utilization Megabytes
limit cpu utilization index
4.
exit
5.
write memory
6.
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#
Configuring OSGi
Cisco AXP provides for the flexible management of Java applications through the OSGi framework. The OSGi framework defines a standardized, component-oriented, computing environment for networked services, and enables the remote and secure life cycle management of Java applications.
For more information on the OSGi specification, see the OSGi website at www.osgi.org.
To connect to OSGi, perform the following steps.
SUMMARY STEPS
1.
app-service application-name
2.
connect osgi
3.
exit
DETAILED STEPS
Command or Action PurposeStep 1
app-service application-name
Enters application service mode.
Step 2
connect osgi
Cross-connects to the text console of the ProSyst OSGi framework.
This command allows an administrator to manage the OSGi framework using the ProSyst commands.
This command is only available when the ProSyst OSGi add-on packages are installed.
For information about the latest version of the ProSyst OSGi add-on packages, see the Cisco AXP Developer Guide and the Cisco AXP Release Notes.
Step 3
exit
Exits application service mode.
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
Configuration Mode
Invoke a CLI plug-in using configuration mode as follows:
SUMMARY STEPS
1.
configure terminal
2.
app-service application-name
3.
Enter the CLI plug-in defined by the third party application.
DETAILED STEPS
Cisco IOS Service API Configuration
Cisco AXP provides service APIs to allow third parties to programmatically access, manage and augment existing Cisco IOS software networking features.
Common service APIs (supported in Bash, C, C++, Java, Perl, and Python) are as follows:
•
Generic EXEC commands:
This API allows an application to specify an EXEC command and return a string of output. The third party application must parse the output to retrieve the desired data.
The supported EXEC CLIs are as follows:
–
show commands and/or their output modifiers.
–
write memory to save changes to NVRAM.
–
copy running-config startup-config to save changes to a startup configuration.
•
Generic configuration commands:
The service API allows an application to specify configuration commands consisting of a string of command(s) or a file path that contains commands separated with a delimiter such as a semicolon ;
If a connection attempt fails to access a Cisco IOS NETCONF agent, the timeout value is set to 120 seconds. A FAIL code (1) is returned with an error message:
Fail to connect to IOS
It is the calling program's responsibility to allocate or free up the memory required to accommodate the response from Cisco IOS software for C programs. For Java and other languages, the default size of the response is 2048 bytes. A reply less than 2048 bytes is returned and embedded in the response string.
A reply larger than the size of the buffer allocated, or larger than the default value, the reply is placed in a file. A FILE code (2) is returned, and the file path and name are embedded in the response. The calling program can only retrieve the Cisco IOS software reply from the file.
Note
NETCONF over BEEP must be enabled on the router and the Cisco AXP service module for this feature to work.
SUMMARY STEPS
Configure the following on the router:
1.
configure terminal
2.
sasl profile profile-name
3.
mechanism profile-mechanism
4.
netconf max-sessions session-number
5.
netconf beep listener [port-number] [acl access-list-number] [sasl sasl-profile] [encrypt trustpoint]
Configure the following on the Cisco AXP service module:
1.
netconf beep initiator router-IP-address port-number
2.
netconf max-sessions session-number
DETAILED STEPS
Verifying and Clearing Cisco IOS API Records
Use the show history iosapi and clear history iosapi commands to view EXEC and configuration command activities, and to clear specific records. Use the show log name messages.log command in Cisco AXP EXEC mode to view the audit history.
To enable these commands, first download and install the iosapi package, axp-iosapi.<platform>.<version>.pkg
Note
The show history iosapi command helps to track command changes. You can view up to a hundred records where each record shows a configuration command change or an EXEC command change for a single virtual instance. Each virtual instance records up to seventy configuration command changes and thirty EXEC command changes.
SUMMARY STEPS
1.
app-service application-name
2.
show history iosapi [num ]
3.
show history iosapi [exec | config ] [num ]
4.
clear history iosapi [num ]
5.
clear history iosapi [exec | config ] [num]
6.
exit
7.
show log name messages.log | include "iosapi audit"
DETAILED STEPS
Cisco IOS Event Registration
To register an event using a third party application on Cisco AXP, either register an event using a configuration file or register an event using the CLI on the Cisco AXP service module. Then verify the events are registered. For further information, see the following sections:
•
Registering an Event using the Event Configuration File
•
Registering an Event using the Cisco AXP Service Module
Registering an Event using the Event Configuration File
We recommend this registration method. You (the developer) register an event in an event configuration file in XML format. You then package the configuration file with the application and install the application package on the service module. See "Embedded Event Manager API" in the Cisco AXP Developer Guide.
Registering an Event using the Cisco AXP Service Module
To register an event on the Cisco AXP service module using the CLI, perform the following steps.
SUMMARY STEPS
1.
configure terminal
2.
app-service application-name
3.
event event-name register|unregister event-type
4.
end
5.
copy running-config startup-config
6.
app-service application-name
7.
reset
DETAILED STEPS
Verifying Registered Events
To verify the events registered for your application, perform the following step.
SUMMARY STEPS
1.
show run
DETAILED STEPS
Command or Action PurposeStep 1
show run
Displays running configuration including registered events.
Example:
show runapp-service eemapi_testbind interface eth0event <event name> register <event type> <parameter>Each line beginning with "event" shows an <event name> and <event type> that should correspond to one of the expected registered events for your application. If any events are missing, register the missing events using one of the two methods for "Cisco IOS Event Registration" section.
hostname se-10-1-2-7exit
Cisco IOS Event Notification
The Cisco IOS software Embedded Event Manager (EEM) allows event detection and recovery on a Cisco IOS software device.
To be notified of a Cisco IOS event, you must:
1.
Write and install an application using EEM APIs to receive events. For information on EEM APIs, refer to the "Embedded Event Manager API" section in the Cisco AXP Developer Guide.
2.
Perform the following configuration steps for the router and the Cisco AXP service module.
Note
The configuration is similar to the "Cisco IOS Service API Configuration" section, except for steps to configure the username.
Note
NETCONF over BEEP must be enabled on the router and the Cisco AXP service module for this feature to work.
Configure the following on the router:
1.
configure terminal
2.
username user-name password password privilege 15
3.
sasl profile profile-name
4.
mechanism profile-mechanism
5.
netconf max-sessions session-number
6.
netconf beep listener [port-number] [acl access-list-number] [sasl sasl-profile]
Configure the following on the Cisco AXP service module:
1.
username ios user-name password password
2.
netconf beep initiator router-IP-address port-number
3.
netconf max-sessions session-number
Using CLI to Trigger an EEM API Event
To manually trigger an ios_config event, perform the following steps.
1.
configure terminal
Enters configuration mode.
2.
ip host name ip-address
Configures the hostname and IP address.
3.
end
Exits configuration mode.
Using CLI to Trigger a Syslog Event
To manually trigger a syslog event by logging onto an interface, perform the following steps on the router.
1.
configure terminal
Enters configuration mode.
2.
logging buffered buffer-size
3.
interface interface-name
Selects the type of interface to be recorded in the syslog. This is dependent upon having first set up an event-type of "syslog" with a pattern to be matched. For example, attribute pattern = "gigabitEthernet 0/1".
4.
shutdown
Shuts down the interface. Sends event information to syslog.
5.
no shutdown
Starts the interface. Sends event information to syslog.
6.
exit
Exits configuration mode.
Troubleshooting a Cisco EEM API Configuration Event
To track ios_config events on the router, perform the following step.
•
debug beep session
To track ios_config events on the Cisco AXP service module, perform the following step.
•
trace eemapi all
To check the var/log/messages.log file perform the following step.
•
show log name messages.log
In the following example, the ending of the command "containing EEM paged" causes the output to be filtered.
Example:
show log name messages.log containing EEM paged<197>Nov 30 17:12:46 localhost EEMEventDaemon: INFO EEMAPI DAEMON INFO<197>Nov 30 17:12:46 localhost EEMEventDaemon: IOSConfigListener::receiveNotification ENTER<197>Nov 30 17:12:46 localhost EEMEventDaemon: INFO EEMAPI DAEMON INFO IOSConfigListener::receiveNotification: config change event received<197>Nov 30 17:12:46 localhost EEMEventDaemon: INFO EEMAPI DAEMON EVENT [eemapi_test] event delivered: name=myiosevent, type=ios_config<197>Nov 30 17:12:46 localhost EEMEventDaemon: INFO EEMAPI DAEMON INFO<197>Nov 30 17:12:46 localhost EEMEventDaemon: IOSConfigListener::receiveNotification: finished processIOSConfigEventModifying an Event
Use the event command to enable or disable the parameter of a registered event. Also use the event command to add, delete or modify an event. An event is not updated until a virtual instance reset command is issued.
SUMMARY STEPS
1.
configure terminal
2.
app-service application name
3.
[no] event event-name {register | unregister} event-type parameter
4.
exit
DETAILED STEPS
Application Status Monitor
Cisco AXP allows third party applications to plug-in their status monitoring and allows recovery from a malfunctioned state.
An application must provide one or more watchdog scripts or executable files bundled in their package to use the Cisco AXP application monitoring feature. The number of scripts or executables is dependent on the application, resulting in a unique way of determining the status of the application. For example, it can be based on Process Identifier (PID), or a response to an application ping. Cisco AXP supports Shell scripts and C language executables for application status monitoring.
For more information on watchdog scripts and executables, refer to the Cisco AXP Developer Guide.
The application status monitor has a heartbeat of 5 seconds, which is the minimum interval used for monitoring. For example, if the monitor interval is set at 12, monitoring of each virtual instance takes place every 12 heartbeat intervals, which is every one minute. You can configure the monitoring interval for a virtual instance through the status-monitor monitor interval command.
The scripts or executables return a status code where zero indicates that the application is healthy and alive. A non-zero status code indicates that the application is not functional. When a watchdog script or executable returns a non-zero status code, relevant information such as the name of the watchdog script, return status, and time of failure is logged.
A recovery counter counts the number of times the failure takes place, and acts like a delay mechanism for further action. A recovery count of three means that the application monitor has run for three iterations and is receiving either a non-zero return status, or the watchdog script has been running for over 3 monitoring intervals and is not returning a value.
You can use the status-monitoring monitor interval command for configuring the recovery threshold that decides on the number of recovery counters before taking the next action. When the recovery threshold is reached, the virtual instance restarts and the application monitor continues to run, repeating the monitoring cycle. A virtual instance can restart any number of times.
Third party developers can also provide default configuration parameters through a configuration file packaged together with their party application.
This section contains the following tasks:
•
Configuring the Application Status Monitor Interval and Recovery Threshold
•
Verifying the Application Status Monitor Output
Configuring the Application Status Monitor Interval and Recovery Threshold
To set the monitor interval and recovery threshold, perform the following steps.
SUMMARY STEPS
1.
configure terminal
1.
app-service application-name
2.
status-monitor monitor_interval Interval-Num recovery_threshold Threshold-Num
3.
exit
DETAILED STEPS
Verifying the Application Status Monitor Output
To verify the status monitor output, perform the following step.
SUMMARY STEPS
1.
show-status monitor
DETAILED STEPS
Command or Action PurposeStep 1
show-status monitor
View the status monitor output. See the "Viewing the Application Status Monitor" section.
Verifying and Troubleshooting
This section consists of:
•
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
•
Diagnostics and Logging Options
Viewing Log and Core Files
SUMMARY STEPS
1.
app-service application-name
2.
show cores
3.
show logs
4.
show log name log-name
DETAILED STEPS
Clearing Log and Core Files
Log files can also be cleared in system EXEC mode.
SUMMARY STEPS
1.
app-service application-name
2.
clear cores
3.
clear logs
4.
clear core core-name
5.
clear log log-name
6.
exit
System EXEC mode
7.
clear logs
8.
clear log name log-name
9.
exit
DETAILED STEPS
Copying Files
Core names and log names can contain wildcards *. You can copy log files in application service EXEC sub-mode or in system EXEC mode.
SUMMARY STEPS
1.
app-service application-name
2.
copy core core-name url ftp/http url
3.
copy log log-name url ftp/http url
4.
copy logs bundle destfilename.tar url url
5.
exit
In system EXEC mode:
6.
copy log log-name url ftp/http url
7.
copy logs bundle destfilename.tar url url
8.
exit
DETAILED STEPS
Syslog Server Logs
All commands are in system EXEC mode.
SUMMARY STEPS
1.
show syslog-server logs
2.
show syslog-server log name log-name
3.
clear syslog-server logs
4.
clear syslog-server log name log-name
5.
copy syslog-server logs bundle destination-filename.gz url ftp/http url
6.
copy syslog-server log name log-name url ftp/http url
7.
exit
DETAILED STEPS
Viewing the Application Status Monitor
SUMMARY STEPS
1.
app-service application-name
2.
show status-monitor
3.
exit
DETAILED STEPS
Viewing the Application State
SUMMARY STEPS
1.
app-service application-name
2.
show state
DETAILED STEPS
Viewing Processes
SUMMARY STEPS
1.
app-service application-name
2.
show process
3.
show process running
4.
show process all
5.
show process pid process-id
DETAILED STEPS
SSH Server Status
SUMMARY STEPS
1.
app-service application-name
2.
show ssh-server
DETAILED STEPS
Command or Action PurposeStep 1
app-service application-name
Enters application service mode.
Step 2
show ssh-server
Displays the current status of the SSH server.
Viewing Statistics
SUMMARY STEPS
1.
app-service application-name
2.
show statistics
3.
show statistics app
4.
end
5.
show app-service statistics
DETAILED STEPS
Viewing Application Data
SUMMARY STEPS
1.
app-service application-name
2.
show tech-support
3.
show tech-support details
4.
exit
In System EXEC mode:
5.
show tech-support
DETAILED STEPS
Viewing Running Configuration
SUMMARY STEPS
1.
app-service application-name
2.
show running-configuration
3.
exit
DETAILED STEPS
Verifying Resource Utilization Limits
You can view system resource limits in application service and system Exec mode.
SUMMARY STEPS
1.
app-service application-name
2.
show resource limits
3.
exit
DETAILED STEPS
SUMMARY STEPS (System Exec mode)
1.
show resource limits
2.
exit
DETAILED STEPS
Viewing a List of Installed Applications
SUMMARY STEPS
1.
show app-service state (system EXEC mode)
2.
exit
DETAILED STEPS
Resetting the Examples Application Environment
SUMMARY STEPS
1.
app-service application-name
2.
reset
DETAILED STEPS
Uninstalling an Application Package
To uninstall an application package, perform the following step.
SUMMARY STEPS
1.
software uninstall package name (system EXEC mode)
DETAILED STEPS
Common Troubleshooting Commands
Tables 3 and 4 show some common router and service module commands.
To view a complete list of available commands, type ? at the prompt
Example: Router(config-if)# ?.To view a complete list of command keyword options, type ? at the end of the command
Example: Router# service-module integrated-service-engine?.Table 4 and Table 5 group commands by the configuration mode in which they are available. If the same command is available in more than one mode, it may act differently in each mode.
To shut down or start up the service module or the Cisco AXP software application that runs on the module, use shutdown and startup commands as needed from Table 4.
Note
•
Some shutdown commands can potentially disrupt service. If command output for such a command displays a confirmation prompt, confirm by pressing Enter or cancel by typing n and pressing Enter. Alternatively, prevent the prompt from displaying by using the no-confirm keyword.
•
Some shutdown commands shut the module or application down and then immediately restart it.
Verifying and Troubleshooting System Status
To verify the status of an installation, upgrade, downgrade, or troubleshoot problems, use verification and troubleshooting commands as needed from Table 5.
Note
Keyword options for many show commands include provision to display diagnostic output on your screen or pipe it to a file or a URL.
Diagnostics and Logging Options
To configure logging options for Cisco AXP software, use logging commands from Table 6.
Note
Keyword options for many log and trace commands include provision to display diagnostic output on your screen or to pipe it to a file or a URL.
Diagnostics consist of two types:
•
System log (syslog)—Syslog is an industry standard protocol for capturing the following events:
–
Fatal exceptions that cause an application or system crash, during which normal error-handling paths are typically nonfunctional
–
Application run-time errors that cause unusual conditions and configuration changes
The syslog file size is fixed at (AIM) 1 MB or (NM) 10 MB. Syslog configurations survive a power failure.
•
Traces—Trace logs capture events related to the progress of a request through the system.
Trace logs survive a CPU reset; trace configurations survive a power failure. Log and display these with the trace commands.
To generate and display syslog and trace diagnostics, use trace commands as needed from Table 7.
Configuring the Bootloader
The router must be configured correctly before setting up the bootloader. The service module will not connect to the external network if the router is not configured correctly.
To configure the bootloader, perform the following steps.
Step 1
Enter the following commands from the router CLI:
a.
service-module Service-Engine 1/0 reset (wait about 10 seconds after issuing this command)
b.
service-module Service-Engine 1/0 session (if the first try fails, repeat this command)
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—(Optional) IP address of the TFTP server with the helper image
Gateway—Gateway address as configured in the host router
Default helper-file—(Optional) Filename 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.
Step 4
Default Boot: disk
Step 5
Default bootloader: secondary
Note
Always use the secondary bootloader; primary is only for backup.
Step 6
To enter boot helper type: boot helper
or
To boot normally from the disk type: boot disk
Tip
Use the boot helper to reboot with a helper image if the service module does not boot up with the regular image. See the "Installing Software using a Helper Image" section.
Notices
The following notices pertain to this software license.
OpenSSL/Open SSL Project
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/).
This product includes cryptographic software written by Eric Young (eay@cryptsoft.com).
This product includes software written by Tim Hudson (tjh@cryptsoft.com).
License Issues
The OpenSSL toolkit stays under a dual license, i.e. both the conditions of the OpenSSL License and the original SSLeay license apply to the toolkit. See below for the actual license texts. Actually both licenses are BSD-style Open Source licenses. In case of any license issues related to OpenSSL please contact openssl-core@openssl.org.
OpenSSL License:
Copyright © 1998-2007 The OpenSSL Project. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1.
Redistributions of source code must retain the copyright notice, this list of conditions and the following disclaimer.
2.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution.
3.
All advertising materials mentioning features or use of this software must display the following acknowledgment: "This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/)".
4.
The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact openssl-core@openssl.org.
5.
Products derived from this software may not be called "OpenSSL" nor may "OpenSSL" appear in their names without prior written permission of the OpenSSL Project.
6.
Redistributions of any form whatsoever must retain the following acknowledgment:
"This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/)".
THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT "AS IS"' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This product includes cryptographic software written by Eric Young (eay@cryptsoft.com). This product includes software written by Tim Hudson (tjh@cryptsoft.com).
Original SSLeay License:
Copyright © 1995-1998 Eric Young (eay@cryptsoft.com). All rights reserved.
This package is an SSL implementation written by Eric Young (eay@cryptsoft.com).
The implementation was written so as to conform with Netscapes SSL.
This library is free for commercial and non-commercial use as long as the following conditions are adhered to. The following conditions apply to all code found in this distribution, be it the RC4, RSA, lhash, DES, etc., code; not just the SSL code. The SSL documentation included with this distribution is covered by the same copyright terms except that the holder is Tim Hudson (tjh@cryptsoft.com).
Copyright remains Eric Young's, and as such any Copyright notices in the code are not to be removed. If this package is used in a product, Eric Young should be given attribution as the author of the parts of the library used. This can be in the form of a textual message at program startup or in documentation (online or textual) provided with the package.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1.
Redistributions of source code must retain the copyright notice, this list of conditions and the following disclaimer.
2.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3.
All advertising materials mentioning features or use of this software must display the following acknowledgement:
"This product includes cryptographic software written by Eric Young (eay@cryptsoft.com)".
The word `cryptographic' can be left out if the routines from the library being used are not cryptography-related.
4.
If you include any Windows specific code (or a derivative thereof) from the apps directory (application code) you must include an acknowledgement: "This product includes software written by Tim Hudson (tjh@cryptsoft.com)".
THIS SOFTWARE IS PROVIDED BY ERIC YOUNG "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The license and distribution terms for any publicly available version or derivative of this code cannot be changed. i.e. this code cannot simply be copied and put under another distribution license [including the GNU Public License].
Additional References
•
Virtual LANs/VLAN Trunking Protocols
•
Router IP Traffic Export (RITE)
•
Cisco Network Analysis Module Software
CCDE, CCENT, Cisco Eos, Cisco HealthPresence, the Cisco logo, Cisco Lumin, Cisco Nexus, Cisco StadiumVision, Cisco TelePresence, Cisco WebEx, DCE, and Welcome to the Human Network are trademarks; Changing the Way We Work, Live, Play, and Learn and Cisco Store are service marks; and Access Registrar, Aironet, AsyncOS, Bringing the Meeting To You, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, CCSP, CCVP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Cisco Unity, Collaboration Without Limitation, EtherFast, EtherSwitch, Event Center, Fast Step, Follow Me Browsing, FormShare, GigaDrive, HomeLink, Internet Quotient, IOS, iPhone, iQuick Study, IronPort, the IronPort logo, LightStream, Linksys, MediaTone, MeetingPlace, MeetingPlace Chime Sound, MGX, Networkers, Networking Academy, Network Registrar, PCNow, PIX, PowerPanels, ProConnect, ScriptShare, SenderBase, SMARTnet, Spectrum Expert, StackWise, The Fastest Way to Increase Your Internet Quotient, TransPath, WebEx, and the WebEx logo are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the United States and certain other countries.
All other trademarks mentioned in this document or website are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0812R)
Any Internet Protocol (IP) addresses used in this document are not intended to be actual addresses. Any examples, command display output, and figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses in illustrative content is unintentional and coincidental.
© 2008 Cisco Systems, Inc. All rights reserved.
Feedback


