HP B- Accelerators Linux manual Running and configuring the Snmp subagent, Subagent log file

Page 29

2.Install the package using your operating systems package manager. For example, on Red Hat: rpm -Uvhfio-snmp-*.rpm

The SNMP package places the MIB files in the /usr/share/fio/mib directory.

Running and configuring the SNMP subagent

An RPM to configure the SNMP files is available on the HP website (http://www.hp.com/go/support). The RPM is named hp-ioaccel-snmp-agent1-1.x86_64.rpm.

To manually set up SNMP:

1.Configure the subagent by creating a fio-snmp-agentx.conffile.

2.Store the fio-snmp-agentx.conf file in the /opt/fio/etc/snmp directory.

3.Set the agent network parameters in this file similar to the following:

# required to enable the AgentX protocol

agentxsocket tcp:localhost:16101

This must match the AgentX network parameters in the snmpd.conf file for the master agent. For further AgentX configuration information, consult the manpages or contact HP Support (http://www.hp.com/support).

The fio-snmp-agentxstartup script will launch automatically at boot time after the installation and configuration is complete.

Manually running the SNMP subagent

1.After the SNMP master agent is started, start the subagent:

/usr/bin/fio-snmp-agentx

This command launches the subagent using the Net-SNMP fio-snmp-agentx.confconfiguration file. This file must reside in one of the /opt/fio/etc/snmp directories.

2.View the IO Accelerator management information by using an SNMP MIB browser, HP system management homepage, or by using a network management system accessing cpqIODDrv.mib, located in the /usr/share/fio/mib directory.

Subagent log file

The HP IO Accelerator subagent can maintain a log file regarding its own activities. This file is separate from the MIB because it includes entries on the subagent communications with the master agent including any errors or intermittent issues.

To have the subagent maintain this log file, include the –lparameter and a path to the log file as part of the command in running the subagent.

The default log file is /var/log/fio/fio-snmp-agentx.log.

For example, running the following command keeps the subagent log files as subagent.log in the /usr/snmp directory:

fio-snmp-agentx -l /usr/snmp/subagent.log

The SNMP subagent is now ready to monitor your device.

Setting up SNMP for Linux 29

Image 29
Contents HP IO Accelerator Version 3.2.3 Linux User Guide Page Contents Maintenance Resources About this guide Contents summaryProduct naming IntroductionOverview IO Accelerator capacity 320GB 640GB Models AJ878B BK836A Performance attributesSupported hardware Required operating environmentSupported firmware revisions Introduction Introduction Installation overview Software installationInstalling RPM packages on SUSE, RHEL, and OEL $ uname -rRpm -Uvh fio*.rpm Rpm -Uvh iomemory-vsl-kernel-version-VSL-version.x8664.rpm$ rpmbuild --rebuild iomemory-vsl-VSL-version.src.rpm Building an RPM installation packageBuilding the IO Accelerator driver from source Upgrading device firmware from VSL 1.x.x or 2.x.x to $ rpm -qa grep -i iomemory Upgrading procedureFio-bugreport $ modprobe iomemory-vsl Fio-update-iodrive iodriveversion.fff$ rpm -e iomemory-vsl-2.6.18-194.el5-2.2.0.82-1.0 Loading the IO Accelerator driver # Provides iomemory-vsl # Required-Start boot.udevControlling IO Accelerator driver loading Fio-attach /dev/fct$ chkconfig --del iomemory-vsl Using the init script$ chkconfig --add iomemory-vsl # blacklist iomemory-vslUsing module parameters Setting the IO Accelerator driver optionsMounting filesystems Handling IO Accelerator driver unloadsPersistent configuration One-time configurationUpgrading the firmware $ modprobe iomemory-vsl auto-attach=0Using the device as swap Enabling PCIe powerUsing the Logical Volume Manager Options iomemoryvsl preallocatememory=1072,4997,6710,10345Device partitions Configuring RAIDDevice /dev/fio Etc/mdadm.conf$ mdadm --assemble --scan Chkconfig boot.md on Chkconfig mdadmd on$ mdadm --detail --scan Fio-status Building a RAID 10 across multiple devicesDiscard Trim on Linux Understanding Discard Trim supportSnmp details for Linux Setting up Snmp for LinuxFiles and directories Snmp master agentInstalling the Snmp subagent Configuring the Snmp master agentYum install net-snmp rsync Snmp agentX subagentSubagent log file Running and configuring the Snmp subagentManually running the Snmp subagent Enabling Snmp test mode Using the Snmp sample config filesPCI0100.0 Setting up Snmp for Linux Supported Snmp MIB fields Troubleshooting SnmpSnmp MIB Maintenance tools MaintenanceDevice LED indicators Command-line utilitiesFio-update-iodrive Enabling PCIe power overrideEnabling the override parameter Common maintenance tasksOptions iomemory-vsl externalpoweroverride=value Disabling auto attach Uninstalling the IO Accelerator driver RPM packageUnloading the IO Accelerator driver Disabling the driver Unmanaged shutdown issuesEtc/modprobe.d/iomemory-vsl.conf Options iomemoryvsl autoattach=0Utilities reference UtilitiesFio-attach Fio-attach device optionsFio-bugreport Fio-beaconFio-beacon device options Tmp/fio-bugreport-20100121.173256-sdv9ko.tar.bz2Fio-detach Fio-format options device Fio-formatFio-detach device options Fio-pci-check options Fio-pci-checkFio-status Fio-snmp-agentxFio-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 Health metrics Monitoring IO Accelerator healthNand flash and component failure Health monitoring techniques Software RAID and health monitoring About flashback protection technologyIntroduction to performance and tuning Performance and tuningDisabling Dvfs Limiting Apci C-statesSetting the interrupt handler affinity Setting Numa affinityAdvanced configuration example Numa configurationIntroduction to Numa architecture Numa node override parameter13,14,18,19 For more information Subscription serviceResources Regulatory information Safety and regulatory complianceWarranty information Before you contact HP Support and other resourcesHP 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