- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Loading MIBs in hpux
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
Forums
Discussions
Discussions
Discussions
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
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
10-11-2005 06:45 AM
10-11-2005 06:45 AM
Could I know how I can load the mib /opt/OV/newconfig/AGENT-MAN/snmp_mibs/hp-unix
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2005 07:02 AM
10-11-2005 07:02 AM
Re: Loading MIBs in hpux
LoadMIBs: /opt/OV/newconfig/AGENT-MAN/snmp_mibs/hp-unix
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2005 07:20 AM
10-11-2005 07:20 AM
Re: Loading MIBs in hpux
I have added this line to the top of the .cfg file.
But when I run mrtg, it gives snmp error, unable to poll the OID that I specified.
Thanks,
Sabin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2005 08:23 AM
10-11-2005 08:23 AM
Re: Loading MIBs in hpux
Here's how I do it (though I don't use the OVO mibs - but it may help):
more mrtg.cfg
EnableIPv6: no
LoadMIBs: /usr/local/share/snmp/mibs/UCD-SNMP-MIB.txt
WorkDir: /htdocs/mambo/mrtg/
Options[_]: bits,growright
######################################################################
# System: sha1
# Description: HP-UX sha1 B.11.11 U 9000/785
# Contact:
# Location:
######################################################################
RunAsDaemon: no
Interval: 5
### Global Defaults
# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits
# Email an ...
PageTop[$]:
Questions and references Geoff Wild.
### End of Global Config Options
######################################################################
Target[sha1.mydomain.comcpup]:.1.3.6.1.4.1.11.2.3.1.1.15.0&.1.3.6.1.4.1.11.2.3.1.1.13.0:mysnmpname@sha1.mydomain.com + .1.3.6.1.
4.1.11.2.3.1.1.16.0&.1.3.6.1.4.1.11.2.3.1.1.14.0:mysnmpname@sha1.mydomain.com
Title[sha1.mydomain.comcpup]: CPU Load on sha1.mydomain.com
MaxBytes[sha1.mydomain.comcpup]: 100
Ylegend[sha1.mydomain.comcpup]: CPU Load
ShortLegend[sha1.mydomain.comcpup]: %
PageTop[sha1.mydomain.comcpup]:
CPU Load on sha1.mydomain.com
Options[sha1.mydomain.comcpup]: integer, growright, nopercent
WithPeak[sha1.mydomain.comcpup]: wmy
LegendO[sha1.mydomain.comcpup]: User/System:
LegendI[sha1.mydomain.comcpup]: Idle/Nice:
Legend1[sha1.mydomain.comcpup]: Idle/Nice CPU Time
Legend2[sha1.mydomain.comcpup]: User/System CPU Time
Legend3[sha1.mydomain.comcpup]: Maximal Idle/Nice CPU Time
Legend4[sha1.mydomain.comcpup]: Maximal User/System CPU Time
######################################################################
Target[sha1.mydomain.commem]: .1.3.6.1.4.1.11.2.3.1.1.7.0&.1.3.6.1.4.1.11.2.3.1.1.8.0:mysnmpname@sha1.mydomain.com
Title[sha1.mydomain.commem]: Memory on sha1.mydomain.com
MaxBytes[sha1.mydomain.commem]: 100000000
Ylegend[sha1.mydomain.commem]: Memory Usage
ShortLegend[sha1.mydomain.commem]:
PageTop[sha1.mydomain.commem]:
Memory on sha1.mydomain.com
Options[sha1.mydomain.commem]: integer, gauge, growright, nopercent
kilo[sha1.mydomain.commem]: 1024
WithPeak[sha1.mydomain.commem]: wmy
LegendO[sha1.mydomain.commem]: Total:
LegendI[sha1.mydomain.commem]: Free:
Legend1[sha1.mydomain.commem]: Free System Memory
Legend2[sha1.mydomain.commem]: Total Available System Memory
Legend3[sha1.mydomain.commem]: Maximal Available System Memory
Legend4[sha1.mydomain.commem]: Maximal Free System Memory
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2005 08:42 AM
10-11-2005 08:42 AM
Re: Loading MIBs in hpux
Here, the scenario is, mrtg is installed in a test server and I need to monitor the file system usage of another server in the production environment.
I created a .cfg file using the cfgmaker and it worked well for the network monitoring part.But for the filesystem monitoring, I am stucked up..
I just added the mib in the .cfg file and still its giving snmp error.
Please find below the error messsage.
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.4.1.11.2.3.1.2.2.1.4)
SNMPv1_Session (remote host: "167.6.249.33" [167.6.249.33].161)
community: "public"
request ID: 767096839
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/local/bin/../lib/mrtg2/SNMP_util.pm line 490
SNMPGET Problem for .1.3.6.1.4.1.11.2.3.1.2.2.1.4 .1.3.6.1.4.1.11.2.3.1.2.2.1.5
sysUptime sysName on public@167.6.249.33::::::v4only
at /usr/local/bin/mrtg line 1921
ERROR: Target[167.6.249.33_disk][_IN_] ' $target->[8]{$mode} ' did not eval into
defined data
ERROR: Target[167.6.249.33_disk][_OUT_] ' $target->[8]{$mode} ' did not eval int
o defined data
Thanks,
Sabin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2005 11:35 AM
10-11-2005 11:35 AM
Re: Loading MIBs in hpux
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2005 03:24 AM
10-12-2005 03:24 AM
Re: Loading MIBs in hpux
http://www.admins-tipps.net/management/mrtg_hpux.txt
AT the bottom, it mentions using a tool like getif to get the actual numbers for the disks...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2005 04:29 AM
10-12-2005 04:29 AM
Re: Loading MIBs in hpux
I was just exploring the URL you provided; could see a getif install file.
" Following is a sample for the drive allocations. You must find out
the numbers yourself."
Does this mean, we need to find out the actual disk usage percentages or what? I am confused what does this 'numbers' mean..
Thanks,
Sabin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2005 04:32 AM
10-12-2005 04:32 AM
Re: Loading MIBs in hpux
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2005 05:15 AM
10-12-2005 05:15 AM
Re: Loading MIBs in hpux
Example, found this:
.iso.org.dod.internet.private.enterprises.hp.nm.hpnsa.hpnsaStorageCap.hpnsaSCDrv.hpnsaSCDrvTable.hpnsaSCDrvEntry.hpnsaSCDrvCurrentAvailable
.1.3.6.1.4.1.11.2.23.15.3.2.1.12
But, I get nothing when I connect...tried version 1 and 2c:
# snmpget -v 1 -c mysnmp myserver .1.3.6.1.4.1.11.2.23.15.3.2.1.12
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: iso.3.6.1.4.1.11.2.23.15.3.2.1.12
# snmpget -v 2c -c mysnmp myserver .1.3.6.1.4.1.11.2.23.15.3.2.1.12
iso.3.6.1.4.1.11.2.23.15.3.2.1.12 = No Such Object available on this agent at this OID
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2005 05:45 AM
10-12-2005 05:45 AM
Re: Loading MIBs in hpux
I put the hpunix mib in C:\Program Files\Getif 2.3.1\Mibs as hpunix.MIB and deleted .index
The started getif...
Now I see more from the Mbrowser tab:
.iso.org.dod.internet.private.enterprises.hp.nm.system.general.fileSystem.fileSystemTable.fileSystemEntry.fileSystemBfree
but the lvols are:
.iso.org.dod.internet.private.enterprises.hp.nm.system.general.fileSystem.fileSystemTable.fileSystemEntry.fileSystemDir
Then click on start, and you will see the lvols:
Example, my /home is:
.1.3.6.1.4.1.11.2.3.1.2.2.1.10.1073741829.7
Looking at:
.1.3.6.1.4.1.11.2.3.1.2.2.1.6.1073741829.7
I see I have 139137 availabl3 (same as output from BDF).
To output in mrtg:
Target[sha1_home_disk]: .1.3.6.1.4.1.11.2.3.1.2.2.1.4.1073741829.7&.1.3.6.1.4.1.11.2.3.1.2.2.1.6.
1073741829.7:mysnmp@sha1
Rgds...Geoff
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2005 03:48 PM
10-12-2005 03:48 PM
Re: Loading MIBs in hpux
The community 'mysnmp' exists by default or should need to create it?
Thanks,
Sabin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2005 04:30 PM
10-12-2005 04:30 PM
Re: Loading MIBs in hpux
Did you load the mib hpux in the .cfg file or these OIDs are readily available?
Could you send me the whole .cfg file?
Thanks,
Sabin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2005 12:57 AM
10-13-2005 12:57 AM
Re: Loading MIBs in hpux
And yes - I loaded that MIB - here's the test mrtg.cfg I used:
EnableIPv6: no
LoadMIBs: /usr/local/share/snmp/mibs/hp-unix /usr/local/share/snmp/mibs/UCD-SNMP-MIB.txt
WorkDir: /htdocs/mambo/mrtg/
Options[_]: bits,growright
######################################################################
# System: sha1
# Description: HP-UX sha1 B.11.11 U 9000/785 2012333216
# Contact:
# Location:
######################################################################
RunAsDaemon: no
Interval: 5
### Global Defaults
# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits
# Email an ...
PageTop[$]:
Questions and references Geoff Wilda>.
### End of Global Config Options
######################################################################
#Target[sha1_disk]: .1.3.6.1.4.1.11.2.3.1.2.2.1.6.1073741827.5&.1.3.6.1.4.1.11.2.3.1.2.2.1.4
.1073741827.5:public@sha1
Target[sha1_disk]: .1.3.6.1.4.1.11.2.3.1.2.2.1.4.1073741829.7&.1.3.6.1.4.1.11.2.3.1.2.2.1.6.
1073741829.7:public@sha1
Title[sha1_disk]: Available Disk Space on sha1 on Vo...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2005 01:07 AM
10-13-2005 01:07 AM
Re: Loading MIBs in hpux
When I tried snmpget using these particular OIDs, I am getting integers, but those are not same as I obtained from the bdf output..
Thanks,
Sabin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2005 04:00 AM
10-13-2005 04:00 AM
Re: Loading MIBs in hpux
Have you tried graphing these two values? In my graph, the plot is nil...
Thanks,
Sabin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2005 04:38 AM
10-13-2005 04:38 AM
Re: Loading MIBs in hpux
Target[sha1_disk]: .1.3.6.1.4.1.11.2.3.1.2.2.1.6.1073741829.7&.1.3.6.1.4.1.11.2.3.1.2.2.1.4.1073741829.7:mysnmp@sha1
There is a log file you can see as well:
# more sha1_disk.log
1129221268 139137 524288
1129221268 139137 1 139137 1
1129221017 1 1 1 1
1129221000 1 1 1 1
1129220700 1 1 1 1
1129220400 1 1 1 1
1129220100 1 1 1 1
etc...
Also - I changed
MaxBytes[sha1_disk]: 512000\
as my home is 512MB
Sorry about that..
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2005 04:50 AM
10-13-2005 04:50 AM
Re: Loading MIBs in hpux
My .log file looks like this,
1129221790 50393 51200
1129221790 50393 51200 50393 51200
1129221271 50393 51200 50393 51200
1129221000 40818 41472 50393 51200
1129220700 0 0 0 0
1129220400 0 0 0 0
1129220100 0 0 0 0
1129219800 0 0 0 0
1129219500 0 0 0 0
1129219200 0 0 0 0
1129218900 0 0 0 0
1129218600 0 0 0 0
1129218300 0 0 0 0
1129218000 0 0 0 0
1129217700 0 0 0 0
1129217400 0 0 0 0
1129217100 0 0 0 0
1129216800 0 0 0 0
Your log file has 1s instead of 0s, what does it mean?
Could you clarify the following?
1. While doing snmpget, I got this,
SNMPv2-SMI::enterprises.11.2.3.1.2.2.1.5.1073741828.7 = INTEGER: 50418
What does this integer mean? is this Kb,it doen't match to any of the parameters in the bdf output.
2.Apart from using the OIDs in the .cfg file, do we need to configure something in the target server?
3.I could find that, by changing 1073741828 to ********7..., we can find out other lvs.
Thanks,
Sabin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2005 05:00 AM
10-13-2005 05:00 AM
SolutionIE mine:
snmpget -v 1 -c mysnmp sha1 .1.3.6.1.4.1.11.2.3.1.2.2.1.6.1073741829.7
iso.3.6.1.4.1.11.2.3.1.2.2.1.6.1073741829.7 = INTEGER: 139137
bdf /home
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol5 524288 375902 139137 73% /home
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2005 05:26 AM
10-13-2005 05:26 AM
Re: Loading MIBs in hpux
But in my case, its,
snmpget -v 1 -c public brksvx06 .1.3.6.1.4.1.11.2.3.1.2.2.1.6.10
73741829.7
SNMPv2-SMI::enterprises.11.2.3.1.2.2.1.6.1073741829.7 = INTEGER: 1079
and the bdf output is,
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol5 212992 52712 159288 25% /home
The only difference is you are using a different community name. Is it mandatory to create a community?
Are there any snmp settings at the target side?
Thanks,
Sabin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2005 05:34 AM
10-13-2005 05:34 AM
Re: Loading MIBs in hpux
Thanks,
Sabin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2005 05:44 AM
10-13-2005 05:44 AM
Re: Loading MIBs in hpux
SNMPv2-SMI::enterprises
and mine is:
iso
Are you sure you have the right OID? did you use getif program?
do a full bdf - not just of /home.
In my snmpd.conf file - we only set 2 variables - community name and trap-dest:
get-community-name: mysnmp
trap-dest: 192.162.5.5
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2005 06:33 AM
10-13-2005 06:33 AM
Re: Loading MIBs in hpux
It seems, getif is not functioning in windows..
Thanks,
Sabin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2005 06:40 AM
10-13-2005 06:40 AM
Re: Loading MIBs in hpux
http://www.wtcs.org/snmp4tpc/getif.htm
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2005 08:18 AM
10-13-2005 08:18 AM
Re: Loading MIBs in hpux
Could you please tell me which number should I use in the mrtg cfg file?
I am attaching the screen as a word file.
It seems, getif returns the same OID that your systems has.
Thanks,
Sabin