SNMP getting interfaces from HP-UX machines

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
integr8er
Posts: 18
Joined: Thu Mar 28, 2002 4:43 pm
Location: Menomonee Falls, Wi. USA
Contact:

SNMP getting interfaces from HP-UX machines

Post by integr8er »

Hi,

Using the stock HP-UX V11.0 snmpd. Cannot seem to get the interfaces back automatically when adding them to cacti. Looked at the code and executed the commands manually and seems the problem is in HP. Anyone tried doing this on HP????? It works just fine for AIX and Solaris.
gwynnebaer
Posts: 35
Joined: Sat Apr 13, 2002 5:16 pm
Location: Santa Barbara, CA

Post by gwynnebaer »

Works ok for me using 0.6.7 cacti and default 11.0 HP-UX. Did you get back nothing, or bad data, or what?

I tried snmpwalk to be sure, and that returns the same data.

Here's what I got:

Code: Select all

Interface Number  Description  Speed  Hardware Address  IP Address   
1  lan1 Hewlett-Packard 10/100Base-TX Half-Duplex Hw Rev 0  10 mbit  8:0:9:d5:60:7d
2  lan2 Hewlett-Packard 10/100Base-TX Full-Duplex Manu Hw Rev 0  100 mbit  8:0:9:d5:60:7c  192.168.1.1
3  lan0 Hewlett-Packard LAN Interface Hw Rev 0  10 mbit  0:60:b0:32:9a:67
4  software loopback  100 mbit   127.0.0.1
-gwynnebaer
integr8er
Posts: 18
Joined: Thu Mar 28, 2002 4:43 pm
Location: Menomonee Falls, Wi. USA
Contact:

SNMP getting interfaces from HP-UX machines

Post by integr8er »

Well.... Am getting back info from snmpwalk command inconsistently. Again this is using the HP snmp daemon - which is started (manually) by the following:


# /etc/snmpd
Start SNMP Master Network Management daemon
SNMP Research SNMP Agent Resident Module Version 14.0.1.0
Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996 SNMP Research, Inc.
# Start SNMP HP-UNIX Network Management subAgent
Start SNMP MIB-2 Network Management subAgent
Start SNMP Trap Dest Network Management subAgent


Now the machine has UCD snmp installed to get the utilities, but actually using the stock HP daemon.

Check out the following dialog... Weird....

# netstat -i
Name Mtu Network Address Ipkts Opkts
lan1 1500 10.0.0.0 ignite 810105 717108
lan0* 1500 192.168.180.0 ignite.fsrbank.com 1357655 3136788
lo0 4136 127.0.0.0 localhost 2353 2353
# ifconfig lan0
lan0: flags=842<BROADCAST,RUNNING,MULTICAST>
inet 192.168.180.1 netmask ffffff00 broadcast 192.168.180.255
# ifconfig lan1
lan1: flags=843<UP,BROADCAST,RUNNING,MULTICAST>
inet 10.40.2.77 netmask ff000000 broadcast 10.255.255.255
#
# snmpwalk -c public nboch7 .1.3.6.1.2.1.2.2.1.1
interfaces.ifTable.ifEntry.ifIndex.1 = 1
# snmpwalk -c public nboch7 .1.3.6.1.2.1.2.2.1.1
# snmpwalk -c public nboch7 .1.3.6.1.2.1.2.2.1.1
# snmpwalk -V
UCD-snmp version: 4.2.3
#

The rrd_functions.php code tries to get the line count from an snmpwalk on the interfaces.ifTable.ifEntry.ifIndex and when I do this manually, it seems to give results - sometimes - bizarre. Seems if I restart the daemon, it works (partially) and then stops after a try or two. Notice I have to interfaces, but the best I have been able to get was a single interface. This problem shows up on systems that are also HP V11.0 and do not have any UCD snmp installed... Just stock HP stuff....

Also, I'm also using HPUX V10.20 systems and they seem to work just fine.
gwynnebaer
Posts: 35
Joined: Sat Apr 13, 2002 5:16 pm
Location: Santa Barbara, CA

Post by gwynnebaer »

My next thought would be to check HP's site for any Network-related patches that might fix something with 11.00 HP-UX and snmpd.

Here's what I have installed on a K460 running 11.00:

PHNE_13546 1.0 remshd(1M) and rexecd(1M) cumulative patch
PHNE_13947 1.0 sendmail(1m) 8.8.6 patch
PHNE_14279 1.0 cumulative ARPA Transport patch
PHNE_14370 1.0 LAN product cumulative patch
PHNE_14706 1.0 Cumulative streams patch
PHNE_14746 1.0 ONC/NFS Patch
PHNE_14800 1.0 NFS Kernel Performance Patch
PHNE_14820 1.0 telnet(1) patch
PHNE_15537 1.0 Fibre Channel cumulative patch
PHNE_16295 1.0 vacation patch.
PHNE_16390 1.0 mailx(1) patch
PHNE_16520 1.0 arp general patch
PHNE_16546 1.0 telnet kernel patch
PHNE_17028 1.0 r-commands cumulative mega-patch
PHNE_17190 1.0 sendmail(1m) 8.8.6 patch
PHNE_17434 1.0 netstat general patch
PHNE_17586 1.0 NFS Kernel General Release/Performance Patch
PHNE_17829 1.0 bootpd(1M)/DHCP cumulative patch
PHNE_18218 1.0 nettl(1M) & nettladm cumulative patch
PHNE_18221 1.0 ONC cumulative patch
PHNE_18272 1.0 Cumulative Mux and Pty Patch
PHNE_18354 1.0 ftpd(1M) and ftp(1) patch
PHNE_18527 1.0 telnetd(1M) patch
PHNE_18574 1.0 Built-in PCI 100BASE-T patch
PHNE_18639 1.0 HP-PB 100Base-T cumulative patch. PHNE_13546 1.0 remshd(1M) and rexecd(1M) cumulative patch
PHNE_13947 1.0 sendmail(1m) 8.8.6 patch
PHNE_14279 1.0 cumulative ARPA Transport patch
PHNE_14370 1.0 LAN product cumulative patch
PHNE_14706 1.0 Cumulative streams patch
PHNE_14746 1.0 ONC/NFS Patch
PHNE_14800 1.0 NFS Kernel Performance Patch
PHNE_14820 1.0 telnet(1) patch
PHNE_15537 1.0 Fibre Channel cumulative patch
PHNE_16295 1.0 vacation patch.
PHNE_16390 1.0 mailx(1) patch
PHNE_16520 1.0 arp general patch
PHNE_16546 1.0 telnet kernel patch
PHNE_17028 1.0 r-commands cumulative mega-patch
PHNE_17190 1.0 sendmail(1m) 8.8.6 patch
PHNE_17434 1.0 netstat general patch
PHNE_17586 1.0 NFS Kernel General Release/Performance Patch
PHNE_17829 1.0 bootpd(1M)/DHCP cumulative patch
PHNE_18218 1.0 nettl(1M) & nettladm cumulative patch
PHNE_18221 1.0 ONC cumulative patch
PHNE_18272 1.0 Cumulative Mux and Pty Patch
PHNE_18354 1.0 ftpd(1M) and ftp(1) patch
PHNE_18527 1.0 telnetd(1M) patch
PHNE_18574 1.0 Built-in PCI 100BASE-T patch
PHNE_18639 1.0 HP-PB 100Base-T cumulative patch.
PHNE_18878 1.0 Fix for Streams Pty MP race condition
PHNE_18972 1.0 Cumulative STREAMS Patch
PHNE_19020 1.0 Built-in PCI 100BASE-T patch
PHNE_19081 1.0 LAN product cumulative patch
PHNE_19298 1.0 telnetd(1M) patch
PHNE_19375 1.0 cumulative ARPA T
PHNE_18878 1.0 Fix for Streams Pty MP race condition
PHNE_18972 1.0 Cumulative STREAMS Patch
PHNE_19020 1.0 Built-in PCI 100BASE-T patch
PHNE_19081 1.0 LAN product cumulative patch
PHNE_19298 1.0 telnetd(1M) patch
PHNE_19375 1.0 cumulative ARPA Transport patch
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest