Exclude unused NICs from hp management tools

Your new Server has more NICs than you need? No problem. As long as they are not connected to a vSwitch VMware won’t bother with them. But if you install HP’s management agents and take a look at the System Management Homepage or integrate your ESX into System Insight Manager, you will see a warnings for each NIC that has no link.

I wrote a small script that will disable these unused NICs:
disable_unused_nics.sh
Here’s how to install it:

  1. Save this file as /usr/local/bin/disable_unused_nics.sh
  2. Edit the file an adjust the unused NIC numbers
  3. Make it executeable with “chmod +x /usr/local/bin/disable_unused_nics.sh”
  4. Open /etc/init.d/rc.local and add the line “/usr/local/bin/disable_unused_nics.sh” at the end of the file

Now, when you reboot the host, or manually call /etc/init.d/rc.local you will see the following:

Afteer that, check your SMH:

That’s all.

Schlagworte: , , ,

Kommentieren