Giter Club home page Giter Club logo

netconf-php's Introduction

netconf-php

NETCONF PHP Toolkit

netconf-php's People

Contributors

ankitjain093 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

juniper

netconf-php's Issues

Script pauses if login fails.

I'm using this to log on to a device to pull the config off in XML format. My issue is that I have a list of IPs that I want to do this for and I'm using a foreach loop to log on to each device and get the candidate configuration. However, if I fail to log in to one of the routers, it leaves me at the password prompt and the rest of the script won't run. I've tried using fclose on the stream under 'case "PASSWORD":' where the exception is thrown, but it doesn't seem to be working. Is there some way to get it to close the connection if the authentication fails?

Requesting for some NETCONF PHP Toolkit sample code.

Hi ankitjain093,
Thank you very much for your great contribution. Your junOS " NETCONF PHP API" (https://github.com/ankitjain093/netconf-php) great help me.

Would you please share sample complete php code like,

  1. Establishes a connection to the NETCONF server on the routing platform.
  2. Opens a NETCONF session, as described in Starting the NETCONF Session.
  3. Locks the candidate configuration
  4. Requests operational or configuration information, or changes configuration information.
  5. Verifies the syntactic correctness of a configuration before attempting to commit it.
  6. Commits changes made to the configuration, as described in Committing a Configuration.
  7. Unlocks the candidate configuration.
  8. Ends the NETCONF session and closes the connection to the device.

I do not found any example source code how call your netconf-php api and how pass argument. I will be very glad to you for sharing a complete demo. My email address [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.