-o output
Specifies the name or path to a new OVA package, if you are creating a new OVA instead of updating the
existing OVA.
-c config-file
Specifies the name of a text file containing IOS XE commands to be added to the OVA.
Example
In this example, a previously created text file, iosxe_config.txt, containing IOS XE config commands is added
to the OVA using the
cot edit-properties
command. Finally the
cot info
command is used to show the modified
OVA.
$
cat iosxe_config.txt
interface GigabitEthernet1
no shutdown
ip address 192.168.100.10 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 GigabitEthernet1 192.168.100.1
$
cot edit-properties csr1000v-universalk9.ova \
-o csr1000v-universalk9-customized.ova \
-c iosxe_config.txt
$
cot info csr1000v-universalk9-customized.ova
...
Properties:
<config-version>
"1.0"
Router Name
""
...
Intercloud Tunnel Interface Gateway IPv4 Address
""
<ios-config-0001>
"interface GigabitEthernet1"
<ios-config-0002>
"no shutdown"
<ios-config-0003>
"ip address 192.168.100.10 255.255.255.0"
<ios-config-0004>
"ip route 0.0.0.0 0.0.0.0 GigabitEthernet1 192.168.100.1"
The table below shows the
cot edit properties
command and arguments used in the example.
Description
Script Step
Edits the custom environment properties of this OVA
(csr1000v-universalk9.ova).
cot edit properties csr1000v-universalk9.ova
New OVA, containing configuration commands from
the text file.
-o "csr1000v-universalk9-customized.ova"
Text file that contains IOS XE configuration
commands. Each line of configuration in this file
results in a entry such as
com.cisco.csr1000v.ios-config-xxxx in the XML of
the OVF.
-c iosxe_config.txt
Cisco CSR 1000v Series Cloud Services Router Software Configuration Guide
87
Installing the Cisco CSR 1000v in VMware ESXi Environments
Deploying the Cisco CSR 1000v to the VM using COT