How do I install the Sniffer10G rpm and load the driver?
Sniffer10G is currently supported on Redhat Enterprise Linux RHEL5.[123]/x86_64 and later (and RHEL derivatives) as an RPM.
For example, here is the output from installation on CentOS 5.4:
[root@xxx ~]# rpm -ivh myri_snf-<version>.rpm Preparing... ########################################### [100%] 1:myri_snf ########################################### [100%] Building myri_snf.ko for 2.6.18-164.6.1.el5 in /opt/snf/src [root@xxx ~]# lsmod | grep myri myri_snf 309192 0
The RPM runs a post-install script to build the kernel module for the currently running kernel with build output to /tmp/myri_snf.log. Inspect that file for any build errors.
The post-install script is doing the following steps:
prefix=/opt/snf make -C /lib/modules/`uname -r`/build M=$prefix/src/driver/linux/kbuild clean make -C /lib/modules/`uname -r`/build M=$prefix/src/driver/linux/kbuild cp $prefix/src/driver/linux/kbuild/myri_snf.ko $prefix/sbin
By default, the Sniffer10G software will be installed in /opt/snf. Once the rpm is installed, the drivers need to be loaded. This is done with the command:
/opt/snf/sbin/myri_start_stop start
How do I uninstall the Sniffer10G rpm and driver?
The commands to uninstall the Sniffer10G rpm are:
sudo /opt/snf/sbin/myri_start_stop stop sudo rpm -e myri_snf
If you installed from the Sniffer10G tarball (.tgz) in the standard location (/opt/snf), you would uninstall with:
sudo /etc/init.d/myri_start_stop stop sudo rm -rf /opt/snf sudo rm -f /etc/init.d/myri_start_stop