11-05-2022 06:24 AM - edited 11-05-2022 06:24 AM
Hi
Has anything changed with DNAC and maglev commands? I’ve not logged into the cli on our DNAC for some time and we have had several updates since. We are at the latest version currently. Yesterday I had an issue and wanted to run a tcpdump. So I looked at my notes and got the commands
sudo tcpdump ……..
When I tried this it was an unrecognised command. I’m certain I’ve run tcpdump before from the maglev cli.
Thanks, Kev
Solved! Go to Solution.
11-07-2022 12:38 AM - edited 11-07-2022 01:14 AM
This will be caused by the restricted shell feature that is enabled by default in the later versions of DNA Center
When you SSH to maglev, you need to enter command '_shell' to enter the bash shell to be able to run commands such as tcpdump.
You can disable and re-enable the restricted shell feature if required
To disable
_shell -c 'sudo magctl ssh shell bash'
To re-enable
_shell -c 'sudo magctl ssh shell magshell'
11-05-2022 08:41 AM
- If possible search for the command with Linux find , it may not be included in the PATH of the current user.
M.
11-07-2022 12:38 AM - edited 11-07-2022 01:14 AM
This will be caused by the restricted shell feature that is enabled by default in the later versions of DNA Center
When you SSH to maglev, you need to enter command '_shell' to enter the bash shell to be able to run commands such as tcpdump.
You can disable and re-enable the restricted shell feature if required
To disable
_shell -c 'sudo magctl ssh shell bash'
To re-enable
_shell -c 'sudo magctl ssh shell magshell'
07-17-2023 02:51 AM
I was a little fast and typed only:
_shell
Now DNAC want to know the Challenge / Response Token. How can a clear that state?
$ _shell -c 'sudo magctl ssh shell magshell'
A challenge is already in progress with state CT_STATE_RESP_WAIT
VunL3QAAAQUBAAQAAA.....
Please provide the consent token via [_shell -v] command for bash shell-access
Regards,
Martin
07-17-2023 06:54 AM
08-15-2023 08:27 AM
Hey @Martin Grimm , i stumpled about the same issue. Were you able to solve it?
08-21-2023 01:00 AM
Hi Cedric, yes you need a TAC Case, for that.
11-09-2022 07:15 AM
Thank you. That worked.
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