sarath azad
2014-10-16 15:04:54 UTC
Hello,
Could you please if it is advisable to use a string eg. name of item as a table index?
The table is yet to be defined, need defined and added to a MIB file.
The table will contain info of different items and our requirement is if we can get the info of a particular item by doing snmpget query passing the item name string as index.
I have tested it, it is feasible, but while giving the OID in snmpget, we needed to give the item name string index by dot separated ascii values of each character in the name.
eg. <OID of the table> .1.<column
no.>.5."65.66.67.68.69" where the item name is "ABCDE".
But from usage perspective it is not looking good that we need to manually calculate the ascii values of the characters in the item name and provide them in the snmpget query.
Is there any other way of doing this so that we can directly give the item name and not the ascii values?
Some thing like: <OID of the table> .1.<column
no.>.5."ABCD" or <OID of the table> .1.<column no.>.5."A.B.C.D"
thanks and regards
S Sarath
Could you please if it is advisable to use a string eg. name of item as a table index?
The table is yet to be defined, need defined and added to a MIB file.
The table will contain info of different items and our requirement is if we can get the info of a particular item by doing snmpget query passing the item name string as index.
I have tested it, it is feasible, but while giving the OID in snmpget, we needed to give the item name string index by dot separated ascii values of each character in the name.
eg. <OID of the table> .1.<column
no.>.5."65.66.67.68.69" where the item name is "ABCDE".
But from usage perspective it is not looking good that we need to manually calculate the ascii values of the characters in the item name and provide them in the snmpget query.
Is there any other way of doing this so that we can directly give the item name and not the ascii values?
Some thing like: <OID of the table> .1.<column
no.>.5."ABCD" or <OID of the table> .1.<column no.>.5."A.B.C.D"
thanks and regards
S Sarath