Python pnp server workings?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2016 02:06 AM - edited 03-01-2019 04:32 AM
Hi,
I want to upload a configuration with the upgrade-config task on a switch in my local network by using the pnpserver.py script.
It's not showing any errors but it doesn't seem to work either.
Changes that I did:
I've placed and compiled the pnpserver.py on a windows 2008 server, changed the policy file just for the upgrade-config part, created a self-signed certificate for HTTPs testing in OpenSSL. Regarding the signal handler request (SIGUSR1 and SIGUSR2) , I've terminated it by putting the SIGTERM instead.
signal.signal(signal.SIGTERM, sig_handler_usr1)
signal.signal(signal.SIGTERM, sig_handler_usr2)
I know signal handlers are a UNIX "thing" so I didn't know what to do else.
Can you give me some inputs to use the script to make it actually work? Is there any documentation for the pnpserver.py
I don't have experiences of using python scripts for network automation and management.
The executing command is
python pnp_server.py --http --port 9443 -f service-template.xml --preconfig policy -i 10.x.x.x where 10.x.x.x is the IP address of the web server where the script is executed
The switch is IE 3000 -8TC, IOS: 15.2(5)E
- Labels:
-
APIC

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2017 03:52 PM
Hi,
I am also interested in PnP for cisco router automation configuration. Would you please share your pnp-server.py script with me. I am so interested in how to build the communication from pnp server with pnp client.
Please drop me a line at nan.zhang@ursys.com.au
Much appreciated! Nanzhang

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2017 02:56 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2017 04:10 PM
Hi Yawchen,
Thanks for your reply. I have not successfully implement the PnP, do you have any idea or suggestions about this issue? Thanks.
Warm regards,
Nan
