Operating System - HP-UX
1854686 Members
8298 Online
104102 Solutions
New Discussion

Process SNMPD HP-UX 11.00

 

Process SNMPD HP-UX 11.00

I use snmp MRTG.

I would like to control this server, so it's impossible.
Could you help me.
What do I do?

Interface 1 >> Descr: '' | Name: '' | Ip: '192.168.0.1' | Eth: ''
The following interface is commented out because:
* has a speed of which makes no sense
* got 'Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.2.2.1.10.1)
SNMPv1_Session (remote host: "Server" [192.168.0.1].161)
community: "public"
request ID: 1781710355
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)' from interface when trying to query


I have an Unix Station HP-UX 11.00 which I would like to control.

In what file in Unix Station I must change it ?

Thank you for your help.

Arnaud
Administrator Unix
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor

Re: Process SNMPD HP-UX 11.00

Hi,

There is no OID called 1.3.6.1.2.1.2.2.1.10.1. YOu can find the all the oids and the corresponding MIB in /etc/SnmpAgend/snmpinfo.dat file

Which MIB are you trying to query? Can you post your MRTG configuration file?

-Sri
You may be disappointed if you fail, but you are doomed if you don't try

Re: Process SNMPD HP-UX 11.00

# Created by
# /usr/local/mrtg-2/bin/cfgmaker --global 'WorkDir: /home/httpd/mrtg' --global 'Options[_]:bits,growright' --output /home/mrtg/cfg/mrtg.cfg --global 'XSize[_]: 600' --global 'YSize[_]: 300' --global 'YTics[_]: 20' --global 'YTicsFactor[_]: 0.1' public@uxdwht


### Global Config Options

# for UNIX
# WorkDir: /home/http/mrtg

# or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

WorkDir: /home/httpd/mrtg
Options[_]:bits,growright
XSize[_]: 600
YSize[_]: 300
YTics[_]: 20
YTicsFactor[_]: 0.1

######################################################################
# System: uxdwht.domaine.fr
# Description: HP-UX uxdwht B.11.00 U 9000/800
# Contact:
# Location:
######################################################################


### Interface 1 >> Descr: '' | Name: '' | Ip: '192.168.0.1' | Eth: '' ###
### The following interface is commented out because:
### * has a speed of which makes no sense
### * got 'Received SNMP response with error code
### error status: noSuchName
### index 1 (OID: 1.3.6.1.2.1.2.2.1.10.1)
### SNMPv1_Session (remote host: "uxdwht" [192.168.0.1].161)
### community: "public"
### request ID: 1061891488
### PDU bufsize: 8000 bytes
### timeout: 2s
### retries: 5
### backoff: 1)' from interface when trying to query
#
# Target[uxdwht_1]: 1:public@uxdwht:
# SetEnv[uxdwht_1]: MRTG_INT_IP="192.168.0.1" MRTG_INT_DESCR=""
# MaxBytes[uxdwht_1]: 0
# Title[uxdwht_1]: Traffic Analysis for 1 -- uxdwht.domaine.fr
# PageTop[uxdwht_1]:

Traffic Analysis for 1 -- uxdwht.domaine.fr


#
#
#
#
#
#
#
#
#
System: uxdwht.domaine.fr in
Maintainer:
Description:
ifType: ()
ifName:
Max Speed: 0.0 bits/s
Ip: 192.168.0.1 (uxdwht.domaine.fr)



### Interface 2 >> Descr: '' | Name: '' | Ip: '127.0.0.1' | Eth: '' ###
### The following interface is commented out because:
### * has a speed of which makes no sense
#
# Target[uxdwht_2]: 2:public@uxdwht:
# SetEnv[uxdwht_2]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR=""
# MaxBytes[uxdwht_2]: 0
# Title[uxdwht_2]: Traffic Analysis for 2 -- uxdwht.domaine.fr
# PageTop[uxdwht_2]:

Traffic Analysis for 2 -- uxdwht.domaine.fr


#
#
#
#
#
#
#
#
#
System: uxdwht.domaine.fr in
Maintainer:
Description:
ifType: ()
ifName:
Max Speed: 0.0 bits/s
Ip: 127.0.0.1 (localhost)



Administrator Unix
Sridhar Bhaskarla
Honored Contributor

Re: Process SNMPD HP-UX 11.00

1.3.6.1.2.1.2.2.1.10 is ifInOctets and the last '1' is the instance number. It is complaining that this snmpvariable does not exist.

Do you have snmpget loaded on the box?.

If so, you may want to run like

./snmpget v -c public your_host 1.3.6.1.2.1.2.2.1.10.1

If it says access denied, then you may have to look at the community name you specified in snmpd.conf file.

On the HP server do,

#cd /etc/SnmpAgentd.
#vi snmpdconf

Search for get-community-name

and note the string. If it is not public, then the server will deny requests. You will need to use this string in place of public while you run your cfgmaker.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try

Re: Process SNMPD HP-UX 11.00

############################################################################
#
get-community-name: public
#set-community-name: # enter community name
#contact: # enter contact person for agent
#location: # enter location of agent
#max-trap-dest: # enter max no. of trap-dest entries to be maintained.

So I don't have snmpget in my station

Thank you very much Sridhar for you help in advance
Administrator Unix

Re: Process SNMPD HP-UX 11.00

But this is not enough apparently. That made the same thing :(

Thank you for your answer

Arnaud
Administrator Unix