This is a couple of script, dirtily adapted from Cisco's support on rancid 2.3. Rancid 2.3 and 3.7 is supported.
chmod +x /var/lib/rancid/bin/mlnx*
mellanox
hardware type%vendortable
variable, add the entry 'mellanox' => 'mlnxrancid'
:
%vendortable = (
'cat5' => 'cat5rancid',
'cisco' => 'rancid',
'cisco-nx' => 'nxrancid',
'cisco-xr' => 'xrrancid',
'mellanox' => 'mlnxrancid',
'mrtd' => 'mrancid',
);
mellanox;script;mlnxrancid