HP B- Accelerators Linux manual Snmp agentX subagent, Configuring the Snmp master agent

Page 28

To install Net-SNMPon Red Hat, use the following command:

yum install net-snmp rsync

Other Linux versions

To install the Net-SNMPpackage on your Linux distribution, use the standard system package manger. The fio-snmp-mibpackage places MIB files in /usr/share/fio/mib directory.

Configuring the SNMP master agent

You can configure the Net-SNMPmaster agent daemon to set the network communications parameters, security, and other options by using the snmpd.conf text file. The location of this file is system-dependent and customarily found in the following directory:

/etc/snmp or /usr/share/snmp.

A simple snmpd configuration file might include the following:

#set standard SNMP variables syslocation "Data room, third rack" syscontact itguy@example.com

#required to enable the AgentX protocol master agentx

agentxsocket tcp:localhost:16101

#set the port that the agent listens on (defaults to 161) agentaddress 161

#simple access control (some form of access control is required) rocommunity public

Running the Master Agent

After you install and configure the master agent, you must start or restart the snmpd daemon for the new parameters to take effect. You can run snmpd from the installed location (customarily located in the /usr/sbin directory. For options, see the snmpd manpage). To run properly, the snmpd daemon typically needs root privileges. You can also use the snmpd startup script in the

/etc/init.d or /etc/rc.d/init.d directory. For additional security, use the advanced SNMPv3 access control instead of the rocommunity and rwcommunity access control directives as outlined in the relevant manpage.

SNMP agentX subagent

CAUTION: The SNMP agent requires the libvsl RPM package. Install this agent as part of the IO Accelerator installation. For more information, contact HP Support (http://www.hp.com/support).

Installing the SNMP subagent

1.The SNMP package is part of the overall software package previously installed. Download the IO Accelerator Linux packages from the HP website (http://www.hp.com/support).

Setting up SNMP for Linux 28

Image 28
Contents HP IO Accelerator Version 3.2.3 Linux User Guide Page Contents Maintenance Resources Contents summary About this guideOverview IntroductionProduct naming Performance attributes IO Accelerator capacity 320GB 640GB Models AJ878B BK836ASupported firmware revisions Required operating environmentSupported hardware Introduction Introduction Software installation Installation overviewInstalling RPM packages on SUSE, RHEL, and OEL $ uname -rRpm -Uvh iomemory-vsl-kernel-version-VSL-version.x8664.rpm Rpm -Uvh fio*.rpmBuilding the IO Accelerator driver from source Building an RPM installation package$ rpmbuild --rebuild iomemory-vsl-VSL-version.src.rpm Upgrading device firmware from VSL 1.x.x or 2.x.x to Fio-bugreport Upgrading procedure$ rpm -qa grep -i iomemory $ rpm -e iomemory-vsl-2.6.18-194.el5-2.2.0.82-1.0 Fio-update-iodrive iodriveversion.fff$ modprobe iomemory-vsl # Provides iomemory-vsl # Required-Start boot.udev Loading the IO Accelerator driverControlling IO Accelerator driver loading Fio-attach /dev/fctUsing the init script $ chkconfig --del iomemory-vsl$ chkconfig --add iomemory-vsl # blacklist iomemory-vslSetting the IO Accelerator driver options Using module parametersMounting filesystems Handling IO Accelerator driver unloadsOne-time configuration Persistent configurationUpgrading the firmware $ modprobe iomemory-vsl auto-attach=0Enabling PCIe power Using the device as swapUsing the Logical Volume Manager Options iomemoryvsl preallocatememory=1072,4997,6710,10345Configuring RAID Device partitionsDevice /dev/fio Etc/mdadm.conf$ mdadm --detail --scan Chkconfig boot.md on Chkconfig mdadmd on$ mdadm --assemble --scan Building a RAID 10 across multiple devices Fio-statusUnderstanding Discard Trim support Discard Trim on LinuxSetting up Snmp for Linux Snmp details for LinuxFiles and directories Snmp master agentConfiguring the Snmp master agent Installing the Snmp subagentYum install net-snmp rsync Snmp agentX subagentManually running the Snmp subagent Running and configuring the Snmp subagentSubagent log file Using the Snmp sample config files Enabling Snmp test modePCI0100.0 Setting up Snmp for Linux Troubleshooting Snmp Supported Snmp MIB fieldsSnmp MIB Maintenance Maintenance toolsDevice LED indicators Command-line utilitiesEnabling PCIe power override Fio-update-iodriveOptions iomemory-vsl externalpoweroverride=value Common maintenance tasksEnabling the override parameter Unloading the IO Accelerator driver Uninstalling the IO Accelerator driver RPM packageDisabling auto attach Unmanaged shutdown issues Disabling the driverEtc/modprobe.d/iomemory-vsl.conf Options iomemoryvsl autoattach=0Utilities Utilities referenceFio-attach Fio-attach device optionsFio-beacon Fio-bugreportFio-beacon device options Tmp/fio-bugreport-20100121.173256-sdv9ko.tar.bz2Fio-detach Fio-detach device options Fio-formatFio-format options device Fio-pci-check Fio-pci-check optionsFio-snmp-agentx Fio-statusFio-snmp-agentx options Fio-status device optionsUtilities Fio-sure-erase Fio-sure-erase options device Fio-update-iodrive Fio-update-iodrive options iodriveversion.fff Domainbusslot.func Nand flash and component failure Monitoring IO Accelerator healthHealth metrics Health monitoring techniques About flashback protection technology Software RAID and health monitoringPerformance and tuning Introduction to performance and tuningDisabling Dvfs Limiting Apci C-statesSetting Numa affinity Setting the interrupt handler affinityNuma configuration Advanced configuration exampleIntroduction to Numa architecture Numa node override parameter13,14,18,19 Resources Subscription serviceFor more information Warranty information Safety and regulatory complianceRegulatory information Support and other resources Before you contact HPHP contact information Customer Self RepairRéparation par le client CSR Riparazione da parte del cliente Reparaciones del propio cliente Reparo feito pelo cliente Support and other resources Support and other resources Support and other resources Acronyms and abbreviations SMH Documentation feedback Index Uninstalling utilities