Cisco Cisco Application Extension Platform for SRE

Page of 134
Cisco Application eXtension Platform 1.1 Developer Guide
  Troubleshooting and Logging
82
  Troubleshooting and Logging
Note
Provided your application (MyTime) is packaged with a dependency on the CLI plug-in package, then 
showtime.jar is the only one to be packaged. This is because the file liblocal_socket.so and other jar files 
are in the guest OS (virtual instance).
[bash]# java -Djava.library.path=lib/ -cp 
lib/cli_distribution_vm.jar:lib/localsocket.jar:lib/showtime.jar MyAppMgr
Output:
Starting VM Thread
Going into wait mode
CLI_PLUGIN:CLIDistributionVM.receiveIPCMessages: server socket opened successfully
Create a build directory
Create a directory to hold prepackaged files to be packaged and installed onto Cisco AXP:
mkdir /source/showtimeapp/build
Prepackaging the CLI Plug-in: Example
The following example of prepackaging a CLI plug-in application follows the steps in the 
.
Step 1
Copy the action file MyTime.class into directory actions/. 
Step 2
Copy CLI plug-in definition file MyTime.xml into directory definitions/. 
Step 3
Edit the configuration file cli_plugin.config.
file=MyTime.xml 
javapath=/usr/bin/java/bin 
vm=showtime
proj_src=/source/showtimeapp/build
You have the option of whether to change the proj_src argument or not. See proj_src in 
.
Step 4
Run the CLI plug-in SDK packaging tool to package the definitions and actions.
python cli-plugin.py
For further information, see step 4 of the 
Next, move the tar file to the source directory, see the 
.
Prepackaging is complete.
Troubleshooting and Logging
This section explains some troubleshooting tips and the main types of logging in the following 
sub-sections: