Using The Poap Script And Poap Script Options - Cisco Nexus 9000 Series Configuration Manual

Nx-os fundamentals configuration guide
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Using PowerOn Auto Provisioning

Using the POAP Script and POAP Script Options

Before using the POAP script, perform the following actions:
1 Edit the options dictionary at the top of the script to ensure that all relevant options for your setup are
included in the script. Do not change the defaults (in the default options function) directly.
2 Update the MD5 checksum of the POAP script as shown using shell commands.
f=poap_nexus_script.py ; cat $f | sed '/^#md5sum/d' > $f.md5 ; sed -i
"s/^#md5sum=.*/#md5sum=\"$(md5sum $f.md5 | sed 's/ .*//')\"/" $f
3 If the device has a startup configuration, perform a write erase and reload the device.
The following POAP script options can be specified to alter the POAP script behavior. When you download
files from a server, the hostname, username, and password options are required. For every mode except
personality, the target_system_image is also required. Required parameters are enforced by the script, and
the script aborts if the required parameters are not present. Every option except hostname, username, and
password has a default option. If you do not specify the option in the options dictionary, the default is used.
• username
• password
• hostname
• mode
The username to use when downloading files from the server.
The password to use when downloading files from the server.
The name or address of the server from which to download files.
The default is serial_number.
Use one of the following options:
◦ personality
A method to restore the switch from a tarball.
◦ serial_number
The serial number of the switch to determine the configuration filename. The format for the serial
number in the configuration file is conf.serialnumber. Example: conf.FOC123456
◦ hostname
The hostname as received in the DHCP options to determine the configuration filename. The format
for the hostname in the configuration file is conf_hostname.cfg. Example: conf_3164-RS.cfg
◦ mac
The interface MAC address to determine the configuration filename. The format for the hostname
in the configuration file is conf_macaddress.cfg. Example: conf_7426CC5C9180.cfg
◦ raw
The configuration filename is used exactly as provided in the options. The filename is not altered
in any way.
Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 7.x
Using the POAP Script and POAP Script Options
25

Advertisement

Table of Contents
loading

Table of Contents