- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- snmp tutorial
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2010 11:40 AM
тАО04-08-2010 11:40 AM
snmp tutorial
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2010 12:22 PM
тАО04-08-2010 12:22 PM
Re: snmp tutorial
are you looking for something more or different than that ?
e.g. pull basic temp and humidity from LiebertAC unit.
TEMP=`./snmpwalk -v 1 -c community_string liebertac1 .1.3.6.1.4.1.476.1.42.3.4.1.2.3.1.3|awk -F: '{print $3}'`
HUM=`./snmpwalk -v 1 -c community_string liebertac1 .1.3.6.1.4.1.476.1.42.3.4.2.2.3.1.3|awk -F: '{print $3}'`
DATE=`date '+%m/%d/%y %T'`
echo "$DATE|$TEMP|$HUM" >> $OUTFILE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2011 01:23 PM
тАО03-14-2011 01:23 PM
Re: snmp tutorial
I can use this command to get drive status information on a HP storage server DL380 :
/usr/bin/snmpwalk -v1 -c public 192.168.200.171 .1.3.6.1.4.1.232.3.2.5.1.1.6.2
This gives drive state information ( 1,ready, 2, failed, 3, online, etc).
But this same oid fails when I run it against a ML350.
I have done much searching on the internet but have not been able to find an equivalent oid to return the drive status information on this ML350.
I have a good bit of experience working with smnp, but this has frustrated me.
Any help would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2011 04:16 AM
тАО03-15-2011 04:16 AM
Re: snmp tutorial
If the ML350 does not have the Proliant-specific SNMP agents installed, that information won't be present.
There are two major types of HP management utilities for Linux: the "old" version and the current one. Both include multiple parts, which all must be present for full functionality.
For the current type, you'll need the following RPMs installed:
- hp-health RPM includes the drivers and command-line tools for querying the basic system health status, and changing some BIOS settings while the system is running
- hp-snmp-agents RPM takes the data provided by the drivers in hp-health RPM and makes them available by SNMP
- hpsmh and hp-smh-templates take the information from the SNMP daemon and provide it to the user with the System Management Homepage web GUI. These will also contain some configuration functions to manage the whole set seamlessly.
The old versions had slightly different RPM names and were split a bit differently:
- the hpasm RPM included both the drivers and the SNMP agents, BUT:
- very old versions of the hpasm RPM required extra packages for NIC and storage agents: the cmanic and cmastor RPMs.
It would have been important to know the generation number of your ML350, and the version numbers of your hardware monitoring RPMs: "dmidecode" can be used to find the full model number, and "rpm -qa | grep -e '^hp' -e '^cma' " should find the version numbers of all the relevant RPMs.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2011 12:48 PM
тАО03-17-2011 12:48 PM
Re: snmp tutorial
Thanks for your quick reply. I learned alot just from your post. I'll let you know how it goes ....