Skip to main content
ManualsDex
Cisco Original PDF 8 Pages133 KB

CISCO CSR 1000v Using Custom Data User Manual

Models:CSR 1000v
Category:CSR 1000v Using Custom Data
Download PDF (133 KB)

Document viewer

8 Pages · 133 KB · Cisco official PDF

Manual overview & contents

Cisco · 8 Pages

Official 8-page Cisco documentation (133 KB PDF) covering model CSR 1000v. Key sections include Editing the Custom Data, Configuring the IOS Configuration Property, Configuring the Scripts Property, Configuring the Script Credentials Property, Configuring the Python package Property.

When you deploy a Cisco CSR 1000v Virtual Machine instance on Google Cloud Platform, you can optionally choose to use the Startup Script section on the VM creation console to provide custom data. You can also use the CLI to access the custom data to achieve various automation goals. The custom data in GCP allows you to run Cisco IOS XE configuration commands, install Python packages in guestshell on Day0, run scripts in guestshell on Day0, and provide licensing information to boot the CSR 1000v instance with a desired technology package.

Sections inside this manual

Page numbers for quick lookup in the PDF
  1. Editing the Custom Datap. 1
  2. Configuring the IOS Configuration Propertyp. 2
  3. Configuring the Scripts Propertyp. 2
  4. Configuring the Script Credentials Propertyp. 3
  5. Configuring the Python package Propertyp. 4
  6. Configuring the License propertyp. 4
  7. Accessing the Custom Datap. 5
  8. Verifying the Custom Data Configurationp. 6

Extracted manual text

You can deploy a Cisco CSR 1000v VM using a custom data only on Cisco IOS XE Gibraltar 16.12.1 or later releases.

Editing the Custom Data, on page 1
Accessing the Custom Data, on page 5
Verifying the Custom Data Configuration, on page 6 Editing the Custom Data To edit the custom data, configure the following properties:
Licensing You can place the properties in a file in any order. The following property descriptions specify dependencies between the properties, if any. See the example bootstrap files at: https://github.com/csr1000v/ customdata-examples.

After defining the custom data properties, you can access the startup script or the custom data file using the CLI as described in the Accessing the Custom Data section.

Configuring the IOS Configuration Property

If you want to bootstrap the IOS configuration on Day0, configure the IOS Configuration property. See the following IOS configuration example:

GigabitEthernet1

description “static IP address config” ip address 10.0.0.1 255.255.255.0 interface GigabitEthernet2 description “DHCP based IP address config” ip address dhcp After the first line that reads Section: IOS configuration, you can enter a list of Cisco IOS XE configuration commands that you want to execute, on the Cisco CSR 1000v router.

When you run this command, the preceding IOS configuration is applied to the CSR 1000v router running on GCP, on Day0.

Configuring the Scripts Property

Scripts property helps you automate the deployment of your CSR1000v instance. If you want to run a Python or a Bash script on Day0 under the guestshell context, provide the public URL and arguments of the python or the bash script in Scripts property.

A script must include a piece of code that includes the shebang (!) character in the first line of the script. This line tells Cisco IOS-XE which script interpreter (Python or Bash) you must use to parse the script code. For example, the first line of a Python script can contain #!/usr/bin/env python, while the first line of a Bash script can contain #!/bin/bash. This line allows the Python or the Bash script to run as executable code in a Linux environment.

Frequently asked questions

Which models are covered by this Cisco manual?

This manual applies to: CSR 1000v.

What topics are covered in the Cisco CSR 1000v Using Custom Data User Manual?

This 8-page manual covers: Deploying a Cisco CSR 1000v VM Using Custom Data, Editing the Custom Data, Accessing the Custom Data, Verifying the Custom Data Configuration.

More manuals from Cisco

View all →
Download (133 KB)