自动化Junos管理:Python与RPC机制

需积分: 10 1 下载量 20 浏览量 更新于2024-07-17 收藏 7.47MB PDF 举报
"《Automating Junos Administration》是由Jonathan Looney和Stacy Smith合著的一本书,主要讨论了如何自动化管理Junos操作系统,以提高网络设备的效率和准确性。书中涵盖了自动化的优势、管理系统的内部机制、RPC(远程过程调用)机制以及配置管理等多个关键主题。" 这本书首先介绍了自动化管理的好处,包括节省时间、防止人为错误、节省内存、避免复制粘贴错误以及启用新服务。接着深入探讨了管理系统的内部结构,如访问管理系统的途径、操作命令流程和配置数据流。对于配置数据库和提交模型,作者详细阐述了配置数据库的运作以及配置提交的过程。 在RPC机制部分,书里讲解了结构化数据模型和格式,以及如何在Python中利用这些结构化数据。读者将学习如何在Junos设备上运行RPC,了解RPC的授权机制。同时,书中也详细讨论了操作RPC,包括其输出格式、发现RPC语法的方法以及回复语法。 配置管理章节中,通过RPC进行配置的表示被以XML形式呈现,书中教授如何发现XML配置语法,并利用操作RPC查看和更改配置。这些内容对于理解Junos系统中的自动化配置管理至关重要。 这本书是针对希望提升Junos设备管理效率、减少人工干预错误的专业人士的理想读物。它不仅提供了理论知识,还包含实际操作的例子,帮助读者掌握自动化管理工具,实现更高效、可靠的网络运维。
2016-09-02 上传
How can you grow and maintain a reliable, flexible, and cost-efficient network in the face of ever-increasing demands? With this practical guide, network engineers will learn how to program Juniper network devices to perform day-to-day tasks, using the automation features of the Junos OS. Junos supports several automation tools that provide powerful solutions to common network automation tasks. Authors Jonathan Looney and Stacy Smith, senior testing engineers at Juniper, will help you determine which tools work best for your particular network requirements. If you have experience with Junos, this book will show you how automation can make a big difference in the operation of your existing network. Manage Junos software with remote procedure calls and a RESTful API Represent devices as Python objects and manage them with Python’s PyEZ package Customize Junos software to detect and block commits that violate your network standards Develop custom CLI commands to present information the way you want Program Junos software to automatically respond to network events Rapidly deploy new Junos devices into your network with ZTP and Netconify tools Learn how to use Ansible or Puppet to manage Junos software Table of Contents Chapter 1. Introduction Chapter 2. RPC Mechanisms Chapter 3. The RESTful API Service Chapter 4. Junos PyEZ Chapter 5. Commit Scripts Chapter 6. Op Scripts Chapter 7. Event Scripts and Event Policies Chapter 8. Initial Provisioning Chapter 9. Puppet Chapter 10. Ansible Chapter 11. Putting Automation into Practice