IMC
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a string custom index? Unable to get correct type

baser
Occasional Contributor

How to add a string custom index? Unable to get correct type

Hello,

 

I am trying to add a custom index in IMC 5.1 to get the serial number of the transceivers of a HPN7500 device.

 

I could successfully add a custom index to get the received and sent power of the transceivers with an integer index Type ([index1[0]:hh3cTransceiver:1:0]) but I am unable to get the serial number, which is a string Type index. I am not able to get the correct Type.

 

I try this values, but no data is collected:

 

Name: serial_numbers

Measurement: none

Type: [index1[0]:hh3cTransceiver:2:10]

Instance label (definition OID): 1.3.6.1.4.1.25506.2.70

Formula: 1.3.6.1.4.1.25506.2.70.1.1.1.5

 

I use :2: for string and :10 for the data length (serial number).

 

I am trying to read the following OIDs 1.3.6.1.4.1.25506.2.70.1.1.1.5.3 and .4 but the index test fails. It doesn't even resolve the instances. Please, any help with the correct Type value?

 

Thanks and regards

 

 

4 REPLIES
vincentmunier
Occasional Advisor

Re: How to add a string custom index? Unable to get correct type

Hi,

I have the same problem to retrieve snmp string value. Do you have find a solution?

Thanks a lot.

Vincent

baser
Occasional Contributor

Re: How to add a string custom index? Unable to get correct type

Hello Vincent,

 

No I haven't find a solution.

 

As a workaround, I use a IMC template script with the display command to get the serial numbers. You can run the script on a lot of devices simultaneously. It is not the same but I could not make the string index work.

 

 

Svenskjen
Occasional Contributor

Re: How to add a string custom index? Unable to get correct type

I do not quite understand the last value, where you use 10 for length. I am trying to fetch a string of 8 characters from my firewalls, and I do not get it to resolve if I set the length to any other value than 0.

 

I assume your serialnumbers are a mix of numbers and characters, if it where only numbers you could use "int"

Chris-Empired
Occasional Visitor

Re: How to add a string custom index? Unable to get correct type

 

Hi All,

 

Has there been any resolution here since?

 

Atleast with latest version can edit now without deleting / recreating!

 

Thanks.