Viewing A Polling Interval; Changing A Polling Interval - HP BL860c Installation Manual

Insight management agents for linux release notes
Hide thumbs Also See for BL860c:
Table of Contents

Advertisement

Obtaining the Community String
You can obtain the rwcommunity string by viewing the /etc/snmp/snmpd.conf on your
system and finding the line similar to the following:
rwcommunity lYABuwPNFgmVCSkH
In this example, the rwcommunity string is set to lYABuwPNFgmVCSkH.

Viewing a Polling Interval

You can view the current polling interval for an agent with the snmpget command as follows:
# snmpget -mALL -v1 -c<community string> localhost <OID>.0
For example, to view the NIC agent polling interval and using the community string in the
previous example, the command is as follows:
# snmpget -mALL -v1 -c lYABuwPNFgmVCSkH localhost cpqNicOsCommonPollFreq.0
CPQNIC-MIB::cpqSeOsCommonPollFreq.0 = INTEGER: 52
The response indicates that a 30 second polling interval is set for the NIC agent.

Changing a Polling Interval

The valid range that you can set polling intervals to is 0 - 65535 seconds. Any value within this
range is valid and values outside the range are rejected. You can change the polling interval
using either of the following methods:
Using the snmpset Command:
You can change the current polling interval for each agent with the snmpget command as
follows:
snmpset -mALL -v1 -c<community string> localhost cpq<OID>CommonPollFreq.0
For example, to change the NIC agent polling interval to 52 seconds and using the community
string in the previous example, the command is as follows:
# snmpset -mALL -v1 -c lYABuwPNFgmVCSkH localhost cpqNicOsCommonPollFreq.0 = 52
CPQNIC-MIB::cpqSeOsCommonPollFreq.0 = INTEGER: 52
The response indicates that your set request to change the NIC agent polling interval to 52
seconds was successful.
Using the Environment Variable:
The environment variable, HPIMA_POLLFREQ, can be set to a global polling interval to operate
all HP Insight Management Agents with the same polling frequency. You can set this
environment variable using the following command format:
# HPIMA_POLLFREQ=<new interval> /etc/init.d/hpima restart
For example, to set all agent polling intervals to 60 seconds the command is as follows:
# HPIMA_POLLFREQ=60 /etc/init.d/hpima restart
All HP Insight Management Agent polling intervals are now set to 60 seconds and each agent
process is restarted by the /etc/init.d/hpima/restart command.
Additionally, you can use the HPIMA_POLLFREQ variable to set the polling frequency for an
individual agent using the following command format:
# HPIMA_POLLFREQ=<new interval> /etc/init.d/hpima restart <agent>
where:
agent
For example, to set all the NIC agent polling interval to 180 seconds the command is as
follows:
# HPIMA_POLLFREQ=180 /etc/init.d/hpima restart nicd
14
Installing and Configuring HP Insight Management Agents
Is an agent string with the 'hpima' prefix removed from the process names as described in
(page
13). For example, the agent for hpimanicd is nicd.
127.0.0.1
= <new interval>
Table 2-1

Advertisement

Table of Contents
loading

Table of Contents