hit counter script

Downloading And Using User Data, Agents, And Scripts As Part Of Poap; Poap Process - Cisco Nexus 9000 Series Configuration Manual

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

Advertisement

Downloading and Using User Data, Agents, and Scripts as part of POAP

To use the tftp-server-address option, specify the following at the start of your dhcpd.conf file.
option tftp-server-address code 150 = ip-address;
For example:
host MyDevice {
}
Downloading and Using User Data, Agents, and Scripts as part of POAP
Under the options dictionary, you can find the download_scripts_and_agents function. If you choose to
download user scripts and data, uncomment the first poap_log line and then use a series of download_user_app
function calls to download each application. Since older Cisco NX-OS versions do not support recursive copy
of directories, such directories must be put into a tarball (TAR archive) and then unpacked once on the switch.
The parameters for the download_scripts_and_agents function are as follows:
• source_path - The path to where the file or tarball is located. This is a required parameter. Example:
• source_file - The name of the file to download. This is a required parameter. Example: agents.tar,
• dest_path - The location to download the file on the switch. Any directories that do not exist earlier
• dest_file - The name to give the downloaded file. This is an optional parameter. The default is unchanged
• unpack - Indicates whether a tarball exists for unpacking. Unpacking is done with tar -xf tarfile -C
• delete_after_unpack - Indicates whether to delete the downloaded tarball after unpack is successful.
Using the download functionality, you can download all the agents and files needed to run POAP. To start
the agents, you should have the configuration present in the running configuration downloaded by POAP.
Then the agents, scheduler, and cron entry, along with EEM, can be used.

POAP Process

The POAP process has the following phases:
1 Power up
2 DHCP discovery
3 Script execution
4 Post-installation reload
Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 7.x
28
option dhcp-client-identifier "\000SAL12345678";
fixed-address 2.1.1.10;
option routers 2.1.1.1;
option host-name "MyDevice";
option bootfile-name "poap_nexus_script.py";
option tftp-server-address 2.1.1.1;
/var/lib/tftpboot.
script.py, and so on.
will be created. This is an optional parameter. The default is /bootflash.
source_file.
/bootflash. This is an optional parameter. The default is False.
There is no effect if unpack is False. The default is False.
Using PowerOn Auto Provisioning

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents

Save PDF