SDK. About the Cisco SDK. Installing the SDK. Procedure. This chapter contains the following sections:

Similar documents
Nexus Application Development - SDK

Building RPMs for Native Application Hosting

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

GUT. GUT Installation Guide

Ubuntu Manually Mount Cdrom Drive Command Line Vmware

Open Agent Container (OAC)

CompTIA Linux+ Guide to Linux Certification Fourth Edition. Chapter 2 Linux Installation and Usage

Configuring and Building Palacios/Linux

Installing and Upgrading Cisco Network Registrar Virtual Appliance

Linux+ Guide to Linux Certification, Third Edition. Chapter 2 Linux Installation and Usage

GUT. GUT Installation Guide

Reset the Admin Password with the ExtraHop Rescue CD

COUCHDB - INSTALLATION

Zephyr Kernel Installation & Setup Manual

1. Install a Virtual Machine Download Ubuntu Create a New Virtual Machine Seamless Operation between Windows an Linux...

OpenStack Havana All-in-One lab on VMware Workstation

Installing Virtualbox Guest Additions Vboxadditions on CentOS 7, Fedora 19 / 20 and RHEL 6.5 / 5.10 on Windows host

Dandified way to package management in Yocto Project

RocketRAID 2522 SATA Controller Ubuntu Linux Installation Guide

Perform Disaster Recovery

RocketRAID 231x/230x SATA Controller Debian Linux Installation Guide

Acronis Backup Version 11.5 Update 6 INSTALLATION GUIDE. For Linux Server APPLIES TO THE FOLLOWING PRODUCTS

Intel Accelerator Functional Unit (AFU) Simulation Environment (ASE) Quick Start User Guide

Presented By: Gregory M. Kurtzer HPC Systems Architect Lawrence Berkeley National Laboratory CONTAINERS IN HPC WITH SINGULARITY

Installation Guide VMware Option

Installing the Cisco Virtual Network Management Center

QLogic QLA4010/QLA4010C/QLA4050/QLA4050C/ QLA4052C/QMC4052/QLE4060C/QLE4062C iscsi Driver for Linux Kernel 2.6.x.

Getting Started Guide. Installation and Setup Instructions. For version Copyright 2009 Code 42 Software, Inc. All rights reserved

Yocto Project components

Installing Cisco MSE in a VMware Virtual Machine

VMware AirWatch Content Gateway for Linux. VMware Workspace ONE UEM 1811 Unified Access Gateway

TIBCO FTL Message Switch Installation

GIT. A free and open source distributed version control system. User Guide. January, Department of Computer Science and Engineering

ML410 VxWorks Workbench BSP and System Image Creation for the BSB Design Using EDK 8.2i SP2. April

Quick Installation Guide for RHV/Ovirt

ovirt Node June 9, 2012 Mike Burns ovirt Node 1

MRCP. Installation Manual. Developer Guide. Powered by Universal Speech Solutions LLC

Release Note MPI/XMP-Linux Support Package

GMS. 1 Create and configure the virtual machine 2 Configure the virtual GMS server. Quick Start Guide. KVM Hypervisor.

Performing Software Maintenance Upgrades

ML410 VxWorks BSP and System Image Creation for the BSB Design Using EDK 8.2i SP1. April

Getting Started with Cisco UCS Director Open Automation

Installation Manual InfraManage.NET Installation Instructions for Ubuntu

Installing Cisco VTS on a VMware Environment, page 6 Installing the Virtual Topology Forwarder, page 9 Verifying VTS Installation, page 14

University of Colorado at Colorado Springs CS4500/ Fall 2018 Operating Systems Project 1 - System Calls and Processes

Configure Windows VM to CGM-SRV Module on CGR1xxx

PowerVM Lx86 for x86 Linux Applications Administration Guide

INSTALLING INSTALLING INSTALLING

PetaLinux SDK Installation Guide

Introduction to Pintos. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Tizen EFL UTC User Guide

Installing the Operating System or Hypervisor

Unzip command in unix

How to Use This Lab Manual

kernels-in-kernels kernels within kernels by Lee Elston Version 1.0 c CC-BY SA4

VMWare Workstation Installation. Microsoft Windows Server 2008 Enterprise with Service Pack 2

Simulation Manager Configuration Guide

Setting up an SDK for Secondo

Lab #5 Guide: Installing Ubuntu as a Virtual Machine

Performing Maintenance Operations

Intel Software Guard Extensions SDK for Linux* OS. Installation Guide

Communications Library Manual

Note: - the OS on which you will install VirtualBox is called the host OS. - the OS you will install on VirtualBox (later) is called the guest OS.

Kardia / Centrallix VM Appliance Quick Reference

Acronis Backup & Recovery 11 Server for Linux

Molecular Forecaster Inc. Forecaster 1.2 Server Installation Guide

Guideline for the installation of C-MOR Video Surveillance Virtual Machine on VMware ESX Server

Hosting Applications Using Configuration Management Tools

NVIDIA Licensing Information

Release Notes for Cisco Network Registrar 7.2.3

bitcurator-access-webtools Quick Start Guide Last updated: May 8th, 2018 Release(s): and later

Open CASCADE Technology. Building OCCT with WOK CONTENTS

Building a 64-bit CentOS 7 Workstation using Oracle Virtual Box

Plexxi HCN Plexxi Connect Installation, Upgrade and Administration Guide Release 3.0.0

~]# uname -a Linux app el6.x86_64 #1 SMP Tue Mar 25 19:59:55 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Installing the Server Operating System or Hypervisor

Building an Android* command-line application using the NDK build tools

OS10 Virtualization Guide. Enterprise Edition

This section describes the backup procedure for the RMS provisioning solution. Two types of backups are defined:

Package Manager. Package Manager Overview

TrinityCore Documentation

Building Applications with IOx

Lab 6: OS Security for the Internet of Things

Lab 6: OS Security for the Internet of Things

Cisco Modeling Labs OVA Installation

Lab Working with Linux Command Line

TEMPO INSTALLATION I O A. Platform Independent Notes 1. Installing Tempo 3. Installing Tools for the Plugins 5. v0.2.

Configure Windows Server 2003 Release 2 Server Network File Share (NFS) as an authenticated storage repository for XenServer

Guest Shell. Finding Feature Information. Information About Guest Shell. Guest Shell Overview

DXi6900-S Software Installation and Upgrade Guide

Aware IM Version 8.1 Installation Guide

Deploying Cisco Nexus Data Broker Embedded for OpenFlow

Configuring Virtual Blades

1. Open VirtualBox and start your linux VM. Boot the machine and log in with the user account you created in Lab #1. Open the Terminal application.

Intel VTune Amplifier Installation Guide - Windows* OS (2018 Beta)

Downloading and installing Db2 Developer Community Edition on Red Hat Enterprise Linux Roger E. Sanders Yujing Ke Published on October 24, 2018

Sysinstall main menu. Move the cursor down by using the DOWN-ARROW and select Standard.

Please choose the best answer. More than one answer might be true, but choose the one that is best.

CS197U: A Hands on Introduction to Unix

CDNetworks Software Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Transcription:

This chapter contains the following sections: About the Cisco, page 1 Installing the, page 1 Using the to Build Applications, page 2 About ISO, page 3 Installing the ISO, page 3 Using the ISO to Build Applications, page 4 Moving the Build Application to the Target Switch, page 5 About the Cisco The Cisco is a development kit based on Yocto 1.2. It contains all of the tools needed to build applications for execution on a Cisco Nexus switch running the NX-OS Release 7.0(3)I2(1). The basic components are the C compiler, linker, libraries, and header files that are commonly used in many applications. The list is not exhaustive, and it might be required that the you download and build any dependencies needed for any particular application. Note that some applications are ready to be downloaded and used from the Cisco devhub website and do not require building. Installing the Download the. The is available for download at: http://devhub.cisco.com/artifactory/simple/open-nxos/7.0-3-i2-1/x86_ 64. This file is a self-extracting archive that copies the contents of the into a directory of your choice. You are prompted for a path to an installation directory. The binaries included in the are built for 32-bit 1

Using the to Build Applications architecture, so it needs to be run on a platform that supports a 32-bit architecture. To get support in 64-bit Centos 7, you can enter the following command: sudo yum install glibc.i686 Using the to Build Applications Before You Begin The must be installed. Step 1 Step 2 Browse to the installation directory. Enter the following command from the Bash prompt: bash$ source environment-setup-x86_64-wrs-linux The source environment-setup-x86_64-wrs-linux command adds the specific paths to your shell environment. This must be done for each shell you intend to use with the. This is the key to setting up the in order to use the correct versions of the build tools and libraries. Many of the common Linux build processes work for this and you should the techniques that are best suited for your situation. Below are examples of some of the most common cases. The source code or a package can be retrieved in various ways, for example either in tar file form or by downloading from a git repository where the package resides. In any case, the package should contain the meta data for use with autoconf and RPM packaging tools. Assuming all of the dependencies are met, we can enter the standard RPM build procedure: bash$ mkdir rpm; cd rpm bash$ mkdir BUILD RPMS SOURCES SPECS SRPMS bash$ cp../example-app-1.0.tgz SOURCES bash$ cp../example-app.spec SPECS bash$ rpmbuild -v bb SPECS/example-app.spec The result a binary RPM in RPMS/ that can be copied to the switch and installed. Installation and configuration of applications can vary. Refer to the application documents for those instructions. This rpmbuild and installation on the switch is required for every software package needed to support the application. If a software dependency is required that is not already included in the, the source code must be obtained and the dependencies built. On the build machine, the package can be built manually for verification of dependencies. The following example is the most common procedure: bash$ tar xvzf example-lib.tgz bash$ mkdir example-lib-install bash$ cd example-lib/ bash$./configure prefix=<path_to_example-lib-install> bash$ make bash$ make install These commands place the build files (binaries, headers, libraries, etc.) into the installation directory. From here you can use standard compiler and linker flags to pick up the location to these new dependencies. Any 2

About ISO runtime code such as libraries are required to be installed on the switch as well, so packaging this into an RPM is also needed. Note There are many support libraries already in RPM form on the Cisco devhub website. Step 3 Build the source code. a) tar xvzf example-lib.tgz b) mkdir example-lib-install c) cd example-lib/ d)./configure prefix=path_to_example-lib-install e) make f) make install The steps are normal Linux. Example: The following example shows how to build the source code: bash$ tar xvzf example-lib.tgz bash$ mkdir example-lib-install bash$ cd example-lib/ bash$./configure prefix=<path_to_example-lib-install> bash$ make bach$ make install This places the build files (binaries, headers, libraries, etc.) into the installation directory. From here you can use standard compiler and linker flags to pick up the location to these new dependencies. Any runtime code such as libraries are required to be installed on the switch as well. Packaging this into an RPM is also needed. Note There are many support libraries already in RPM form on the Cisco devhub website. About ISO The ISO image is a bootable Wind River 5 environment that includes the necessary tools, libraries, and headers to build and RPM-package third-party applications to run natively on a Cisco Nexus switch. The content is not exhaustive, and it might be required that the user download and build any dependencies needed for any particular application. Note Some applications are ready to be downloaded and used from the Cisco devhub website and do not require building. Installing the ISO The ISO image is available for download at: http://devhub.cisco.com/artifactory/simple/open-nxos/7.0-3-i2-1/ x86_64. 3

Using the ISO to Build Applications The ISO is intended to be installed as a virtual machine. Use instructions from your virtualization vendor to install the ISO. Before You Begin Step 1 Step 2 (Optional) VMware-based installation. The ISO image installation requires a SATA disk and will not work on a SCSI drive. (Optional) QEMU-based installation. Enter the following commands: bash$ qemu-img create satori.img 10G bash$ qemu-system-x86_64 -cdrom./satori-vm-intel-xeon-core.iso -hda./satori.img -m 8192 Once the ISO starts to boot, a menu is displayed. Choose the Graphics Console Install option. This installs to the virtual HD. Once the install is complete, the virtual machine must be rebooted. What to Do Next To login to the system, enter root as the login and root as the password. Using the ISO to Build Applications Most of the build procedures that work with the, and Linux in general, also apply to the ISO environment. However, there is no shell environment script to run. The default paths should be fine to use the tools installed. The source code for applications needs to be obtained through the usual mechanisms such as a source tar file or git repository. Build the source code. a) tar xvzf example-lib.tgz b) mkdir example-lib-install c) cd example-lib/ d)./configure prefix=path_to_example-lib-install e) make f) make install The steps are normal Linux. Example: The following example shows how to build the source code: bash$ tar xvzf example-lib.tgz bash$ mkdir example-lib-install bash$ cd example-lib/ bash$./configure prefix=<path_to_example-lib-install> 4

Moving the Build Application to the Target Switch bash$ make bach$ make install Moving the Build Application to the Target Switch The recommended procedure is to build an RPM package and copy to the switch for installation. Move the build application. a) mkdir rpm; cd rpm b) mkdir BUILD RPMS SOURCES SPECS SRPMS c) cp../example-app-1.0.tgz SOURCES d) cp../example-app.spec SPECS e) rpmbuild -v bb SPECS/example-app.spec Example: The following example shows how to build move the build application: bash$ mkdir rpm; cd rpm bash$ mkdir BUILD RPMS SOURCES SPECS SRPMS bash$ cp../example-app-1.0.tgz SOURCES bash$ cp../example-app.spec SPECS bash$ rpmbuild -v bb SPECS/example-app.spec 5

Moving the Build Application to the Target Switch 6