Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

README cosmetic issue: cmdargs vs. cmdargs #54

Open
netgab opened this issue Jan 3, 2024 · 0 comments
Open

README cosmetic issue: cmdargs vs. cmdargs #54

netgab opened this issue Jan 3, 2024 · 0 comments

Comments

@netgab
Copy link

netgab commented Jan 3, 2024

Hi there,

The programmatic usage example in the README is not valid for IOS / IOS-XE devices.

The example for command authorization ([b"service=shell", b"cmd=show", b"cmdargs=version"]) is using the key cmdargs.
However, Cisco Devices use the key cmd-arg for command authorization.

So the correct example would be: [b"service=shell", b"cmd=show", b"cmd-arg=version"]

Furthermore an example for a command with more than two words would be helpful.
Example: show interfaces Vlan 20 summary

=> [b"service=shell", b"cmd=show", b"cmd-arg=interfaces", b"cmd-arg=vlan", b"cmd-arg=20", b"cmd-arg=summary"]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant