I wonder how to get trought CLI Serial numbers of inserted SFPs 10Gbit port of DNAC. I hace tried:
sudo cat /sys/devices/virtual/dmi/id/chassis_serial
But i cant get the info. any suggestion ? Thanks!
Interesting, I'm not a linux person but have dabbled a little when needed, and more importantly enjoy a good Google challenge to distract me from building out the OSPF config I'm supposed to be finishing, so onto DNAC I went..
I'm sure you don't need to commentary as you're probably for more proficient than I but this might help somebody else with the same thing.
First off I identified the interface device names with a little ifconfig action, from that output
After that I used ethtool along with the device name to get a little more info about the tin!
sudo ethtool -m enp94s0f0 | grep SN
I can't say I'm smart that I grepped with SN on first run of the command, the full output is:
Hope this helps?
I steve ur reply is much aprettiated, but not works for me when i push the command and error appears as shown in the image.
Any other idea?
Looks like you forgot to elevate the command privileges 😉
In the screen shot below I've just used the command without and then with elevation
Although interestingly there's a subtle difference in error as when you run without sudo the end of the message is "operation not supported" interesting.
but i not forgot privilege , if you see again i did "sudo su" before and i push de command with root privileges ... And did not work. Thanks anyway for your help. i keep searching a solution.