04-27-2016 07:18 AM
Hi,
First of all: thx a lot for publishing the python pnp server!
I am wondering where to find some parts of the documentation.
Some features are well documented like "device-info", "image-install" but some are missing.
I am trying to do some "cli-config" out of pnp server but I fail. Maybe because I am missing the parameters detail_type and action.
As these features are missing in documentation I only can guess.
Can you please help me
1) with the missing parameters in cli-config
2) adding the missing features to documentation
Thats the best document I found on developer.cisco.com:
https://developer.cisco.com/fileMedia/download/9c751a34-7622-4147-83c5-53ac533646ee
Great Job guys!
Thx a lot
Markus
05-11-2016 04:48 PM
Hi Markus,
Could you please provide us with some more info?
- What is the error displayed?
- Could you add your policy file used with the python server?
We have provided "image-install" and "device-info" as samples.
You could refer to the cli-config schema for more information.
Thanks,
Aashita
10-13-2016 06:28 AM
Hi Aashita,
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-segned certificate for the SSL (HTTPs). 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 input to actually make it working.
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
11-26-2016 11:37 AM
Hi Marcus,
First sorry for my english
i I succeeded to run cli commands using pnp-server.py. If you want i can help you.
The problem i have now is that i cannot make the "config upgrade" and the "cli-config". My routeur only make the config upgrade but don't make the cli config.
Thanks
Niro
07-13-2023 05:31 AM
Could you please share this document again the link are not working .
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide