


 



<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docwiki.cisco.com/w/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docwiki.cisco.com/w/index.php?title=Application_Extension_Platform_1.x_--_Preparing_the_Cisco_AXP_SDK&amp;feed=atom&amp;action=history</id>
		<title>Application Extension Platform 1.x -- Preparing the Cisco AXP SDK - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docwiki.cisco.com/w/index.php?title=Application_Extension_Platform_1.x_--_Preparing_the_Cisco_AXP_SDK&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Application_Extension_Platform_1.x_--_Preparing_the_Cisco_AXP_SDK&amp;action=history"/>
		<updated>2013-05-25T11:22:42Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Application_Extension_Platform_1.x_--_Preparing_the_Cisco_AXP_SDK&amp;diff=36071&amp;oldid=prev</id>
		<title>Jwithing: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Application_Extension_Platform_1.x_--_Preparing_the_Cisco_AXP_SDK&amp;diff=36071&amp;oldid=prev"/>
				<updated>2010-12-02T20:30:57Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:30, 2 December 2010&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Jwithing</name></author>	</entry>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Application_Extension_Platform_1.x_--_Preparing_the_Cisco_AXP_SDK&amp;diff=36070&amp;oldid=prev</id>
		<title>Jwithing: /* Untar the Cisco AXP SDK file */</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Application_Extension_Platform_1.x_--_Preparing_the_Cisco_AXP_SDK&amp;diff=36070&amp;oldid=prev"/>
				<updated>2010-09-09T21:03:56Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Untar the Cisco AXP SDK file&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;To unpack the Cisco AXP SDK in your development machine, perform the following steps.&lt;br /&gt;
====Untar the Cisco AXP SDK file====&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&lt;br /&gt;
In this example, the files within an SDK tar file are uncompressed and extracted to directory /opt/axp-sdk.1.6.1/ &amp;lt;br /&amp;gt;&lt;br /&gt;
The parameters &amp;quot;-xzf&amp;quot; have the following meanings:&amp;lt;br /&amp;gt;&lt;br /&gt;
x  =&amp;gt; extract files from the tar file&amp;lt;br /&amp;gt;&lt;br /&gt;
z  =&amp;gt; expand compressed files from the tar file&amp;lt;br /&amp;gt;&lt;br /&gt;
f  =&amp;gt; indicates that the next argument (&amp;quot;axp-sdk.1.6.1.tar.gz&amp;quot; in this case) is the name of the archive file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@centos axp_1.6.1]# tar -xzf axp-sdk.1.6.1.tar.gz &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Unpack the SDK file into the /opt/axp-sdk.1.6.1/ directory. &lt;br /&gt;
The SDK file name is axp-sdk.x.y.z.tar.gz, where x.y.z is the version number of Cisco AXP SDK software. (For example, 1.6.1)&lt;br /&gt;
Make sure that the version number of the SDK you are using on your development machine matches the version of Cisco AXP loaded on the Cisco AXP service module. &lt;br /&gt;
The Cisco AXP SDK directories (for Cisco AXP 1.6.1) are created in the /opt/axp-sdk.1.6.1/ directory.&lt;br /&gt;
&lt;br /&gt;
====Check the keys Subdirectory====&lt;br /&gt;
&lt;br /&gt;
Before you begin running the packaging script, required certificates need to be loaded into a directory such as: &lt;br /&gt;
&amp;lt;code&amp;gt; /opt/axp-sdk.1.6.1/keys &amp;lt;/code&amp;gt;.&lt;br /&gt;
During packaging, you will need to enter the location of these certificates. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@centos keys]# ls  &lt;br /&gt;
&lt;br /&gt;
auth_bundle.sig dev_certificate.sig private.key &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The directory needs to be readable.&lt;br /&gt;
&lt;br /&gt;
====Check the output Subdirectory====&lt;br /&gt;
&lt;br /&gt;
Create an output directory in the /opt directory (or directory of your choice) if it does not already exist.&lt;br /&gt;
This directory is used by the packaging tool to store the final packaged files (*.pkg, *.prt1) for the application.&lt;br /&gt;
&lt;br /&gt;
Enter the &amp;lt;code&amp;gt;chmod&amp;lt;/code&amp;gt; command to give the directory the correct privileges. &lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@centos opt]# mkdir output &lt;br /&gt;
&lt;br /&gt;
[root@centos opt]# chmod 755 output &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Invoke the Packaging Tool pkg_build.sh==== &lt;br /&gt;
&lt;br /&gt;
You can run the tool either:&lt;br /&gt;
a) from within the /opt/axp-sdk.1.6.1/tools/ directory or &lt;br /&gt;
b) from outside this directory by preceding &amp;quot;pkg_build.sh&amp;quot; with the directory path name. &lt;br /&gt;
&lt;br /&gt;
'''Example 1''' (Invoke tool from outside the directory.)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@centos /]# /opt/axp-sdk.1.6.1/tools/pkg_build.sh &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''Example 2''' (Invoke tool from within the /opt/axp-sdk.1.6.1/tools/ directory.)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[root@centos tools]# ./pkg_build.sh &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
In this example, the packaging tool executes interactively, creating the package files for installation.&lt;br /&gt;
&lt;br /&gt;
====Create a Script File (optional)====&lt;br /&gt;
At the end of interactive use of the packaging tool, you can copy the text displayed on the screen after the words &amp;quot;Resulting CLI command&amp;quot; and paste the text into a file for future use as a script file.  For example, your &amp;quot;Resulting CLI command&amp;quot; may look like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/axp-sdk.1.6.1/tools/pkg_build.sh --project-dir 'output' --auth-bundle '/opt/axp-sdk.1.6.1/keys/auth_bundle.sig' &lt;br /&gt;
--private-key '/top/axp-sdk1.6.1./keys/private.key' --name 'tcpdump' --version '3.9.4' --description 'tcpdump on AXP 1.6' &lt;br /&gt;
--source-dir '/opt/tcpdump' --disk-limit '5000M' --memory-limit '256M' --cpu-limit '7000' --postinstall 'bin/post-install.sh' &lt;br /&gt;
--tmpfs 'mem,16'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the future, you can use the script file as the basis of a file used to provide arguments to the packaging tool, instead of running the tool interactively.&lt;br /&gt;
&lt;br /&gt;
====Obtain the Configuration File====&lt;br /&gt;
Once the application has been successfully packaged, a configuration file is generated.  This will look similar to the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
Generated files:&lt;br /&gt;
  Output package: /opt/output/pkg/tcpdump.3.9.4.pkg&lt;br /&gt;
  Output payload: /opt/output/pkg/tcpdump.3.9.4.prt1&lt;br /&gt;
  '''Text config file: output/tcpdump.3.9.4.20100614.cfg'''&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the future, you can use this configuration file to generate packages.  To do so, use the command &amp;lt;pre&amp;gt;&amp;lt;axp sdk location&amp;gt;/tools/pkg_build.sh --file &amp;lt;location of tcpdump.3.9.4.cfg&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''Return to: '''[[Application Extension Platform 1.x -- Packaging Applications on Cisco AXP]]&lt;br /&gt;
&lt;br /&gt;
'''Return to start of Getting Started Guide: '''[[Cisco AXP Getting Started Guide]]&lt;br /&gt;
[[Category:AXP Getting Started]]&lt;/div&gt;</summary>
		<author><name>Jwithing</name></author>	</entry>

	</feed>