05-07-2023 09:16 AM - edited 05-07-2023 09:16 AM
Hello,
I'm practicing with the Open NX-OS Programmability Always On sandbox. Within that, we have the Cisco NX-API Sandbox, which I can login to with admin/Admin_1234!
But every command I try running in the NX-API Sandbox I get an error "401 Authorization Required"
I tried looking at the Command References at https://sbx-nxos-mgmt.cisco.com/reference.html but that is blank for some reason.
05-08-2023 01:32 AM
Saw this ages back try disabling and reenabling the nxapi feature via the CLI
no feature nxapi
feature nxapi
05-09-2023 05:32 AM
Thanks @bigevilbeard , it's working now!
05-09-2023 05:42 AM
Beginners luck, what can i say!
05-09-2023 05:44 AM
I wish there was a way to find out if someone disabled/enabled nxapi to fix it. Unfortunately 'show cli history' only shows the history from one's own session....but I guess that's a good thing for protecting sensitive information. I'd be interested to know if it would also show passwords in the history. NX-OS encrypts plain text passwords by default, but I wonder how that would look in the history. I'm not going to play around with the passwords on this sandbox, though.
05-09-2023 05:59 AM
Yes that wont work, you might get that via show accounting log | grep [insert keyword]
sbx-ao# show accounting log | grep TEST_VLAN_32
Sun May 7 11:59:02 2023:type=update:id=10.10.20.28@pts/9:user=admin:cmd=configure terminal ; vlan 32 ; name TEST_VLAN_32 (REDIRECT)
Sun May 7 11:59:02 2023:type=update:id=10.10.20.28@pts/9:user=admin:cmd=configure terminal ; vlan 32 ; name TEST_VLAN_32 (REDIRECT)
Sun May 7 11:59:02 2023:type=update:id=10.10.20.28@pts/9:user=admin:cmd=configure terminal ; vlan 32 ; name TEST_VLAN_32 (SUCCESS)Other than this, its using MDT to log device changes to chatops etc.. Of course, no one should be making CLI changes anymore right? 😉
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