Ibdiagnet output from MQM9700

When I run the ibdiagnet utility expecting to dump some port counters, the output seems to be going to a file. Can someone please point me to the details on how to retrieve this output file?

Also, is there a way to run this command only for a given port, as I am interested only in a specific module plugged into a specific port?

switch-## [standalone: master] (config) # ibdiagnet -P all

ibdiagnet output files were archived into ibdiagnet_output.tgz

Thanks in advance.

Hello,

Thank you for reaching out, the file location for the generated ibdiagnet file is located at /var/tmp/ibdiagnet2/

ibdiagnet output files were archived into ibdiagnet_output.tgz

To grab the ibdiagnet from the switch, you may consider options like SFTP from a remote server

remote server$ sftp user@a.b.c.d
sftp> pwd
sftp> cd /var/tmp/
sftp> get -r ibdiagnet2 localfolder
sftp> exit

The -P option is not to specify the port but rather
-P | --counter <cntr=threshold,… | all=threshold>

“If any of the provided counter is greater than its provided value, then print it. If ‘all’ used - all counters get same threshold (0 by default).”

For more information regarding ibdiagnet and all its available options please visit the manual below
https://docs.nvidia.com/networking/display/ibdiagnetusermanualv211

If you require further assistance, please feel free to open a case with us through the support portal and we’ll be more than happy to assist you further in detail.

Have a Great Day Ahead!

I was able to FTP into the switch but encountered a permission issue, even though I am supposed to have admin permissions. After login, the default working directory is /var/home/root, and I can’t access the desired directory.

image

I also tried to direct the ibdiagnet output to a directory that I can access, but it did not allow me to do so.

switch-## [standalone: master] (config) # ibdiagnet --output_path /var/home/root
% ibdiagnet -o flag is not allowed
switch-## [standalone: master] (config) #

Any thoughts on how to solve this permission issue or get around it? Appreciate any help.