cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1641
Views
4
Helpful
4
Replies

missing features in documenation

m.rainer
Level 1
Level 1

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

4 Replies 4

aairani
Cisco Employee
Cisco Employee

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

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

    

Niro95300
Level 1
Level 1

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

Tanasis Yankov
Level 1
Level 1

Could you please share this document again the link are not working .

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: