cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
465
Views
1
Helpful
5
Replies

Open NX-OS Programmability Sandbox: Am I Missing Something?

Alex Stevenson
Cisco Employee
Cisco Employee

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"

AlexStevenson_0-1683475890607.png

I tried looking at the Command References at https://sbx-nxos-mgmt.cisco.com/reference.html but that is blank for some reason.

AlexStevenson_1-1683476120288.png

 

 

5 Replies 5

Saw this ages back try disabling and reenabling the nxapi feature via the CLI

no feature nxapi

feature nxapi
Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Alex Stevenson
Cisco Employee
Cisco Employee

Thanks @bigevilbeard , it's working now!

Beginners luck, what can i say!

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

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.

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?

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io