Sponsored Content
Special Forums UNIX and Linux Applications Infrastructure Monitoring snmpget not working on AIX shared wpar Post 302327571 by avazeer on Monday 22nd of June 2009 07:02:18 AM
Old 06-22-2009
snmpget not working on AIX shared wpar

Hi,

I have a shared AIX wpar configured.
I have started snmpd process on shared AIX wpar.


But when i tried to query a MIB id using the following command

/opt/OV/bin/snmpget -d -v 1 -c public -p <hostname> .1.3.6.1.2.1.1.7.0

i get the following error message

# /opt/OV/bin/snmpget -d -v 1 -c public -p 161 share_wpar_27 .1.3.6.1.2.1.1.7.0
Transmitted 41 bytes to <hostname> (IP address) port 161:
Initial Timeout: 0.80 seconds
0: 30 27 02 01 00 04 06 70 75 62 6c 69 63 a0 1a 02 0'.....public...
16: 02 62 6d 02 01 00 02 01 00 30 0e 30 0c 06 08 2b .bm......0.0...+
32: 06 01 02 01 01 07 00 05 00 -- -- -- -- -- -- -- ................
0: SNMP MESSAGE (0x30): 39 bytes
2: INTEGER VERSION (0x2) 1 bytes: 0 (SNMPv1)
5: OCTET-STR COMMUNITY (0x4) 6 bytes: "public"
13: GET-REQUEST-PDU (0xa0): 26 bytes
15: INTEGER REQUEST-ID (0x2) 2 bytes: 25197
19: INTEGER ERROR-STATUS (0x2) 1 bytes: noError(0)
22: INTEGER ERROR-INDEX (0x2) 1 bytes: 0
25: SEQUENCE VARBIND-LIST (0x30): 14 bytes
27: SEQUENCE VARBIND (0x30): 12 bytes
29: OBJ-ID (0x6) 8 bytes: .1.3.6.1.2.1.1.7.0
39: NULL (0x5) 0 bytes

Received 41 bytes from <hostname> (IP address) port 161:
0: 30 27 02 01 00 04 06 70 75 62 6c 69 63 a2 1a 02 0'.....public...
16: 02 62 6d 02 01 02 02 01 01 30 0e 30 0c 06 08 2b .bm......0.0...+
32: 06 01 02 01 01 07 00 05 00 -- -- -- -- -- -- -- ................
0: SNMP MESSAGE (0x30): 39 bytes
2: INTEGER VERSION (0x2) 1 bytes: 0 (SNMPv1)
5: OCTET-STR COMMUNITY (0x4) 6 bytes: "public"
13: RESPONSE-PDU (0xa2): 26 bytes
15: INTEGER REQUEST-ID (0x2) 2 bytes: 25197
19: INTEGER ERROR-STATUS (0x2) 1 bytes: noSuchName(2)
22: INTEGER ERROR-INDEX (0x2) 1 bytes: 1
25: SEQUENCE VARBIND-LIST (0x30): 14 bytes
27: SEQUENCE VARBIND (0x30): 12 bytes
29: OBJ-ID (0x6) 8 bytes: .1.3.6.1.2.1.1.7.0
39: NULL (0x5) 0 bytes

snmpget: Agent reported error with variable #1.
.iso.org.dod.internet.mgmt.mib-2.system.sysServices.0: SNMP: Variable does not exist or access is denied.
#


Same thing is workign fine on Host and non shared wpar.


Am i missing any configuration on shared wpar?

Thanks in Advance
avazeer
 

10 More Discussions You Might Find Interesting

1. AIX

How to debug a shared library(.so file) on AIX?

How to debug a shared library(.so file) on AIX? (1 Reply)
Discussion started by: AlbertGao
1 Replies

2. UNIX for Advanced & Expert Users

Issue with shared object in AIX

Hi All, I have a problem with the shared objects setup in AIX. We have a customized shell written by the developers over here. When i issue a MQ Series command (mqsilist) it is giving the error as . All the commands making use of this libImbCmdLib.a.so is failing. But when executed in normal... (1 Reply)
Discussion started by: dhanamurthy
1 Replies

3. UNIX for Advanced & Expert Users

snmpget command not working

HI to all Unix gurus and Lovers, I am having one snmpd problem somewhat strange. When I execute 'snmpget -v2c -c public <local_ip> system.sysDescr.0' initially 4-5 times it executes properly,But after that it gives a message of 'Timeout: No Response from... (0 Replies)
Discussion started by: jagdish.machhi@
0 Replies

4. HP-UX

need help in working with shared libraries on hpux

hi, i am having problem loading multiple shared libraries. if i load, make call to exposed method and then unload them, everything workds fine, but i have to keep the loaded images in memory, i am uploading the prog. as loader.zip, it contains loader - loader.c which loads c++ shared... (2 Replies)
Discussion started by: p.premkumarr
2 Replies

5. UNIX for Advanced & Expert Users

snmpget/snmpwalk for dskPercent not working.

snmpwalk -v1 -c myname {ip address} dskPercent. Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: UCD-SNMP-MIB::dskPercentNode snmpget -v1 -c myname {ip address} dskPercent.1 Error in packet Reason: (noSuchName) There is no such variable... (0 Replies)
Discussion started by: ynilesh
0 Replies

6. AIX

CD Rom shared for many AIX servers.

Guy's I have more than 20 servers available in different locations and I want to configure CD Rom as NFS between these servers to be sharedCan any one explain the configuration how can NFS or share CD rom between more than 20 servers available in different locationsto be used in one time from all... (5 Replies)
Discussion started by: Mr.AIX
5 Replies

7. AIX

AIX 5.2 C++ shared object issue

Hi all, I am developing an application with two components. One "c" binary and one "C++" shared object. While execution, the shared object crashes out and core dump is created whenever "new" is executed. But if i use malloc this will work perfectly. I tried to use dbx. Below given was... (1 Reply)
Discussion started by: itssujith
1 Replies

8. AIX

Loading a shared library in AIX

Hi, I have an application running on AIX. The app is deployed on Webspshere server. Due to some reason, i have to make use of a third party library (Sigar API's) from my application. This library requires an .so file as well. Is there any location where i can put this *.so file and it will... (1 Reply)
Discussion started by: user_guest
1 Replies

9. AIX

Cannot get shared lock on database for rpm on AIX 6.1

Hello, I was trying to install python on aix and it was taking too long and I closed the terminal. Now when i issue the command rpm -qa instead of getting all the rpms installed I'm getting the following error. root:stud -> $ rpm -qa cannot get shared lock on database rpmQuery: rpmdbOpen()... (2 Replies)
Discussion started by: gaugeta
2 Replies

10. AIX

No iscsi available in newly created AIX wpar

AIX 7.1 New to WPAR, hopefully just missing something simple here. Creating the WPAR like this..... (The box where the WPAR is hosted does have an iscsi protocol device) mkwpar -h wpar08 -l -n wpar08 -N interface=en0 address=xxx.xx.xx.xxx netmask=255.255.255.0 -D devname=/dev/iscsi0 -D... (0 Replies)
Discussion started by: TomR
0 Replies
SNMP_SET_VALUERETRIEVAL(3)						 1						SNMP_SET_VALUERETRIEVAL(3)

snmp_set_valueretrieval - Specify the method how the SNMP values will be returned

SYNOPSIS
bool snmp_set_valueretrieval (int $method = SNMP_VALUE_LIBRARY) DESCRIPTION
PARAMETERS
o $method - types +-------------------+---------------------------------------------------+ |SNMP_VALUE_LIBRARY | | | | | | | The return values will be as returned by the Net- | | | SNMP library. | | | | | SNMP_VALUE_PLAIN | | | | | | | The return values will be the plain value without | | | the SNMP type hint. | | | | |SNMP_VALUE_OBJECT | | | | | | | The return values will be objects with the prop- | | | erties "value" and "type", where the latter is | | | one of the SNMP_OCTET_STR, SNMP_COUNTER etc. con- | | | stants. The way "value" is returned is based on | | | which one of constants SNMP_VALUE_LIBRARY, | | | SNMP_VALUE_PLAIN is set. | | | | +-------------------+---------------------------------------------------+ EXAMPLES
Example #1 Using snmp_set_valueretrieval(3) <?php snmp_set_valueretrieval(SNMP_VALUE_LIBRARY); $ret = snmpget('localhost', 'public', 'IF-MIB::ifName.1'); // $ret = "STRING: lo" snmp_set_valueretrieval(SNMP_VALUE_PLAIN); $ret = snmpget('localhost', 'public', 'IF-MIB::ifName.1'); // $ret = "lo"; snmp_set_valueretrieval(SNMP_VALUE_OBJECT); $ret = snmpget('localhost', 'public', 'IF-MIB::ifName.1'); // stdClass Object // ( // [type] => 4 <-- SNMP_OCTET_STR, see constants // [value] => lo // ) // PHP 5.4+ examples snmp_set_valueretrieval(SNMP_VALUE_OBJECT | SNMP_VALUE_PLAIN); $ret = snmpget('localhost', 'public', 'IF-MIB::ifName.1'); // stdClass Object // ( // [type] => 4 <-- SNMP_OCTET_STR, see constants // [value] => lo // ) snmp_set_valueretrieval(SNMP_VALUE_OBJECT | SNMP_VALUE_LIBRARY); $ret = snmpget('localhost', 'public', 'IF-MIB::ifName.1'); // stdClass Object // ( // [type] => 4 <-- SNMP_OCTET_STR, see constants // [value] => STRING: lo // ) ?> CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.4.0 | | | | | | | Constants SNMP_VALUE_PLAIN or SNMP_VALUE_LIBRARY | | | may be combined with SNMP_VALUE_OBJECT resulting | | | different way of representing contents of $value | | | array element in return value of GET-function. If | | | no SNMP_VALUE_{PLAIN,LIBRARY} constant is accom- | | | panying SNMP_VALUE_OBJECT, SNMP_VALUE_LIBRARY is | | | used. Prior to 5.4.0 SNMP_VALUE_OBJECT effe- | | | cively meant SNMP_VALUE_OBJECT| SNMP_VALUE_PLAIN. | | | | +--------+---------------------------------------------------+ SEE ALSO
snmp_get_valueretrieval(3), "Predefined Constants". PHP Documentation Group SNMP_SET_VALUERETRIEVAL(3)
All times are GMT -4. The time now is 01:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy