Hi Suresh,
I  have tried snmpwalk it is fine. 

snmpwalk  -r 0 -t 1000  -v2c -c AdminAdmin 192.168.221.176
maxAlarmDefReportMode

MAX-ALARM-MIB::maxAlarmDefReportMode."LOSS OF
SIGNAL".1.3.6.1.4.1.637.74.1.1.5.1
.1.1.4 = INTEGER: enabled(1).

We don't require to sent length of OID because it is defined as IMPLIED
in MIB.

Regards,
Somanath 



-----Original Message-----
From: Pamidipati Suresh-G20238 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 4:16 PM
To: Somenath Pal (WT01 - TES-Access Networks);
net-snmp-users@lists.sourceforge.net
Subject: RE: SNMP get querry for table with display string as index 

Hi Somanath,

Did you try snmpwalk command on maxAlarmDefReportMode..? Was it
successful.? 

As one of the index is object identifier, try by specifying length of
OID preceding the actual OID index.

For the OID that you mentioned, length is 15, so specify that before the
actual OID as below.

snmpget -r 0 -t 1000  -v2c -c AdminAdmin 192.168.221.176
maxAlarmDefReportMode.\"LOSS OF
SIGNAL\".15.1.3.6.1.4.1.637.74.1.1.5.1.1.1.4

For index of type display string, you can also give ascii values of each
character of the index (display string) instead of the display string
inside \" and \", while sending snmpget/set request. 

Regards,
Suresh.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, July 25, 2007 3:48 PM
To: net-snmp-users@lists.sourceforge.net
Subject: SNMP get querry for table with display string as index 


Hi ALL,

I need to quarry a MIB table .In that table index is display string and
OID.  In the string space can be there. (For example LOSS OF SIGNAL) My
doubt how can I query on that table. I tried the bellow request

snmpget -r 0 -t 1000  -v2c -c AdminAdmin 192.168.221.176
maxAlarmDefReportMode.\"LOSS OF
SIGNAL\".1.3.6.1.4.1.637.74.1.1.5.1.1.1.4

But it is failing.

maxAlarmDefReportMode."LOSS:  (Index out of range: "LOSS
(maxAlarmDefAlarmText))

SIGNAL".1.3.6.1.4.1.637.74.1.1.5.1.1.1.4:  (Sub-id not found: (top) ->
SIGNAL")

So could any body give me some information for queering such kind of
table?

Regards,
Somanath 



------------------------------------------------------------------------
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to