- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: SNMP extensibility
Operating System - Linux
1753903
Members
9588
Online
108810
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО06-19-2001 08:30 AM
тАО06-19-2001 08:30 AM
SNMP extensibility
I am working on a LH3000 Netserver. Currently I've installed net-snmp, and I've gotten all the basic functions to work (snmpget, snmptrap) and the daemons set up on the netserver.
What I'm attempting to do is to implement some of the HP mibs so that I will be able to use SNMP to tell when a powersupply goes out, or a RAID drive is full/goes out, things of that nature.
Any pointers in the right direction would be greatly appreciated, Thanks.
What I'm attempting to do is to implement some of the HP mibs so that I will be able to use SNMP to tell when a powersupply goes out, or a RAID drive is full/goes out, things of that nature.
Any pointers in the right direction would be greatly appreciated, Thanks.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2001 03:23 AM
тАО11-24-2001 03:23 AM
Re: SNMP extensibility
Hi,
as far as i know.
You can extend Net Snmp with any Mib Values you want.
you can try this
from /usr/share/snmp/snmpconf/snmpd.conf/extending
token exec
info run a simple command using exec()
info arguments: [oid] name /path/to/executable arguments
question 1 The OID where the results table should be display [default=extTable]
question 2 The "name" to associate with this command when displaying the results
question 3 The path to the program to be run.
question 4 The arguments to pass to $3
# from the conf
exec .1.3.6.1.4.1.2021.50 shelltest /bin/sh /tmp/shtest
# % snmpwalk -v 1 localhost public .1.3.6.1.4.1.2021.50
# enterprises.ucdavis.50.1.1 = 1
# enterprises.ucdavis.50.2.1 = "shelltest"
# enterprises.ucdavis.50.3.1 = "/bin/sh /tmp/shtest"
# enterprises.ucdavis.50.100.1 = 35
# enterprises.ucdavis.50.101.1 = "hello world."
# enterprises.ucdavis.50.101.2 = "hi there."
# enterprises.ucdavis.50.102.1 = 0
for example you get the values from your raid adapter and put the at the deired point in the mib
if you have the mibs and a mib browser you can look up the oid value for the raid sub system for an net server.
Look at:
http://net-snmp.sourceforge.net/tutorial/agent/guide.html
as far as i know.
You can extend Net Snmp with any Mib Values you want.
you can try this
from /usr/share/snmp/snmpconf/snmpd.conf/extending
token exec
info run a simple command using exec()
info arguments: [oid] name /path/to/executable arguments
question 1 The OID where the results table should be display [default=extTable]
question 2 The "name" to associate with this command when displaying the results
question 3 The path to the program to be run.
question 4 The arguments to pass to $3
# from the conf
exec .1.3.6.1.4.1.2021.50 shelltest /bin/sh /tmp/shtest
# % snmpwalk -v 1 localhost public .1.3.6.1.4.1.2021.50
# enterprises.ucdavis.50.1.1 = 1
# enterprises.ucdavis.50.2.1 = "shelltest"
# enterprises.ucdavis.50.3.1 = "/bin/sh /tmp/shtest"
# enterprises.ucdavis.50.100.1 = 35
# enterprises.ucdavis.50.101.1 = "hello world."
# enterprises.ucdavis.50.101.2 = "hi there."
# enterprises.ucdavis.50.102.1 = 0
for example you get the values from your raid adapter and put the at the deired point in the mib
if you have the mibs and a mib browser you can look up the oid value for the raid sub system for an net server.
Look at:
http://net-snmp.sourceforge.net/tutorial/agent/guide.html
Goodbye Douglas! Whereever you are now, keep your towel and don't panic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2001 03:26 AM
тАО11-24-2001 03:26 AM
Re: SNMP extensibility
Hi,
as far as i know.
You can extend Net Snmp with any Mib Values you want.
you can try this
from /usr/share/snmp/snmpconf/snmpd.conf/extending
token exec
info run a simple command using exec()
info arguments: [oid] name /path/to/executable arguments
question 1 The OID where the results table should be display [default=extTable]
question 2 The "name" to associate with this command when displaying the results
question 3 The path to the program to be run.
question 4 The arguments to pass to $3
exec .1.3.6.1.4.1.2021.50 shelltest /bin/sh /tmp/shtest
# % snmpwalk -v 1 localhost public .1.3.6.1.4.1.2021.50
# enterprises.ucdavis.50.1.1 = 1
# enterprises.ucdavis.50.2.1 = "shelltest"
# enterprises.ucdavis.50.3.1 = "/bin/sh /tmp/shtest"
# enterprises.ucdavis.50.100.1 = 35
# enterprises.ucdavis.50.101.1 = "hello world."
# enterprises.ucdavis.50.101.2 = "hi there."
# enterprises.ucdavis.50.102.1 = 0
for example you get the values from your raid adapter and put the at any desired point in the mib.
FOR HP Netserver RAID adapter take a look at the HP Mibs and change the oid Value to this.
exec shelltest /bin/sh cat /proc/sys/myraidvalues
Look at:
http://net-snmp.sourceforge.net/tutorial/agent/guide.html
regards
Patrick
as far as i know.
You can extend Net Snmp with any Mib Values you want.
you can try this
from /usr/share/snmp/snmpconf/snmpd.conf/extending
token exec
info run a simple command using exec()
info arguments: [oid] name /path/to/executable arguments
question 1 The OID where the results table should be display [default=extTable]
question 2 The "name" to associate with this command when displaying the results
question 3 The path to the program to be run.
question 4 The arguments to pass to $3
exec .1.3.6.1.4.1.2021.50 shelltest /bin/sh /tmp/shtest
# % snmpwalk -v 1 localhost public .1.3.6.1.4.1.2021.50
# enterprises.ucdavis.50.1.1 = 1
# enterprises.ucdavis.50.2.1 = "shelltest"
# enterprises.ucdavis.50.3.1 = "/bin/sh /tmp/shtest"
# enterprises.ucdavis.50.100.1 = 35
# enterprises.ucdavis.50.101.1 = "hello world."
# enterprises.ucdavis.50.101.2 = "hi there."
# enterprises.ucdavis.50.102.1 = 0
for example you get the values from your raid adapter and put the at any desired point in the mib.
FOR HP Netserver RAID adapter take a look at the HP Mibs and change the oid Value to this.
exec
Look at:
http://net-snmp.sourceforge.net/tutorial/agent/guide.html
regards
Patrick
Goodbye Douglas! Whereever you are now, keep your towel and don't panic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2001 03:28 AM
тАО11-24-2001 03:28 AM
Re: SNMP extensibility
Sorry for the First posting but my Internet link has been broken:-)
regards
Patrick
regards
Patrick
Goodbye Douglas! Whereever you are now, keep your towel and don't panic.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP