10-05-2017 02:00 AM - edited 03-01-2019 04:41 AM
Hello
I have a script retrieving the running-configuration (iether using the /network-device-config/{id} API or /network-device-poller/cli/read-request).
The problem is, both methods returns some parts of the config hidden, like this for example:
snmp-server xxxxxxxx
snmp-server xxxxxxxx
snmp-server xxxxxxxx
snmp-server xxxxxxxx
snmp-server xxxxxxxx
snmp-server xxxxxxxx
snmp-server xxxxxxxx
snmp ifmib ifindex persist
I can't seem to find any information on whether it can be 'disabled' or not.
Would be happy if anyone either knows either a solution or another method to retrieve to retrieve the configuration.
Regards
Frederik
Solved! Go to Solution.
10-05-2017 02:58 AM
The config has been "sanitised" for security reasons.
All of the "GET" API calls only require basic privilege (OBSERVER) on APIC-EM.
The config gets sanitised no matter how you try to access it. For example, you could also try to use command running to do a "show run" and it also would be sanitised.
Prime Infra has a special privileged API to get access to un-sanitized config and APIC-EM needs to do something similar.
Adam
10-05-2017 02:58 AM
The config has been "sanitised" for security reasons.
All of the "GET" API calls only require basic privilege (OBSERVER) on APIC-EM.
The config gets sanitised no matter how you try to access it. For example, you could also try to use command running to do a "show run" and it also would be sanitised.
Prime Infra has a special privileged API to get access to un-sanitized config and APIC-EM needs to do something similar.
Adam
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