- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: system statistics
Operating System - Tru64 Unix
1752329
Members
5682
Online
108786
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
Go to solution
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
тАО12-12-2003 11:29 PM
тАО12-12-2003 11:29 PM
Solution
You can query the snmp agent with the "snmp_request" tru64 command. example : snmp_request 127.0.0.1 public get 1.3.6.1.2.1.2.2.1.10.2
where :
127.0.0.1 = IP of the host where the snmp agent is running
public = the snmp community you want to query
get = snmp type of method
1.3.6.1.2.1.2.2.1.10.2 = SNMP OID of the metric you're interested in ( you can find OID in the SNMP MIB )
Other OS support SNMP querying :
linux : snmpwalk
windows : getif
good luck.
where :
127.0.0.1 = IP of the host where the snmp agent is running
public = the snmp community you want to query
get = snmp type of method
1.3.6.1.2.1.2.2.1.10.2 = SNMP OID of the metric you're interested in ( you can find OID in the SNMP MIB )
Other OS support SNMP querying :
linux : snmpwalk
windows : getif
good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2003 04:53 PM
тАО12-13-2003 04:53 PM
Re: system statistics
Thanks Arnaud Veron for your reply, now SNMP is clearer to me ... just two questions though:
1. Is there an SNMP system call for snmp_get to read the result from a C program .. or using exec() to invoke snmp_get is the only way.
2. How to query SNMP to view all the groups of a specific branch for example (1.3.6.1.4.1.232.*) .. because MIB files have only a specific branch ie.
--The compaq enterprise (1.3.6.1.4.1.232)
--cpqSystemInfo Group (1.3.6.1.4.1.232.2)
--cpqSiComponent Group (1.3.6.1.4.1.232.2.2)
--cpqSiAsset Group (1.3.6.1.4.1.232.2.2.2)
Thanks again for your help
1. Is there an SNMP system call for snmp_get to read the result from a C program .. or using exec() to invoke snmp_get is the only way.
2. How to query SNMP to view all the groups of a specific branch for example (1.3.6.1.4.1.232.*) .. because MIB files have only a specific branch ie.
--The compaq enterprise (1.3.6.1.4.1.232)
--cpqSystemInfo Group (1.3.6.1.4.1.232.2)
--cpqSiComponent Group (1.3.6.1.4.1.232.2.2)
--cpqSiAsset Group (1.3.6.1.4.1.232.2.2.2)
Thanks again for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2003 07:40 PM
тАО12-14-2003 07:40 PM
Re: system statistics
1 - i don't know. But i'm sure you will find what you want here : http://www.netsnmp.org/
you have all the C source of snmp utilities.
2 - you have to use the "getnext" snmp method instead of the "get" one. You also have to tell snmp_request to run into "tree mode", so as to browse the tree you're interested in.
example : snmp_request localhost public getnext -t 1.3.6.1.4.1.232.2.2.2
you have all the C source of snmp utilities.
2 - you have to use the "getnext" snmp method instead of the "get" one. You also have to tell snmp_request to run into "tree mode", so as to browse the tree you're interested in.
example : snmp_request localhost public getnext -t 1.3.6.1.4.1.232.2.2.2
- « Previous
-
- 1
- 2
- Next »
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