Hi Suresh, SNMPGET is working with ASCII value. Many thanks for the information.
Regards, Somenath -----Original Message----- From: Pamidipati Suresh-G20238 [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 6:09 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 snmpget by specifying ascii values of each character in display string index..? If you do so, and if display string index object in your MIB is not fixed length octet string, then you need to specify length before specifying the ascii values in the OID. For eg, If the index of the table is variable length string and has the value "abcd" for a row, then OID in snmp request can be specified as objName.4.97.98.99.100 Regards, Suresh. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 5:06 PM To: Pamidipati Suresh-G20238; net-snmp-users@lists.sourceforge.net Subject: RE: SNMP get querry for table with display string as index 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 The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ------------------------------------------------------------------------- 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