cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
812
Views
3
Helpful
1
Replies

APIC-EM - API - Network Poller

frfi
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

aradford
Cisco Employee
Cisco Employee

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

View solution in original post

1 Reply 1

aradford
Cisco Employee
Cisco Employee

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