Let me quote a passage from Charles Dickens' book David Copperfield.
Annual income twenty pounds, annual expenditure nineteen nineteen and six, result happiness. Annual income twenty pounds, annual expenditure twenty pounds ought and six, result misery
And new I'll put it into context
Configure ACI using the GUI or APIs, result happiness. Configure ACI using the CLI, result misery
The ACI CLI is a great tool for troubleshooting, but it takes shortcuts and at times needs to create HIDDEN OBJECTS that can be almost impossible to remove in the future, leading to the miserythat I mentioned above.
DO NOT USE THE CLI TO CONFIGURE ACI
Now, this is what you should do:
Configure the first static EPG port. Once it is done, right click on it and choose Save as...
Make sure you choose Only Configuration, Subtree, json (or xml if you prefer)
Open the file in a decent editor that will format the JSON (or xml) for you
Now copy/paste/edit as many times as you like until you've got your static mappings. Save the file.
Now, back where you save the file, right-click again and choose Post
Make sure you set the Parent DN: to uni/ and then select your file and post it.
Also, you should upgrade to ACI v5.2(7f) - there is a HUGE change in the way ACI works for Access Policies - the system takes care of many things that used to be a bit of a nightmare (you'll have to navigate to Access Policies > Interface Configuration and accept the invitation to fix up your policies for you to begin)
Oh. I almost forgot:
Does APIC cli save automatically?
Yes it does. But please don't do that
RedNectar aka Chris Welsh. Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.