| Author | Forum: PowerSNMP for .NET Topic: using human readable int value when setting |
| tgrharris aharris@harris.com From: Palm Bay, FL USA Posts: 25 Member Since: 06/22/09 |
posted November 11, 2009 11:01 AM When I query an OID that is defined as an INTEGER, the Variable object that comes back has a read only field called ValueName. ValueName appears to use the parsed MIB information to map an INTEGER to a human readable name. I would like to set values using this human readable string, rather than do the mapping back to the INTEGER value. There doesn't seem to be anything in the Variable interface that allows me to set the value to the human readable value. Am I missing something? Any other ways to accomplish this? Thanks in advance. |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted November 19, 2009 4:30 PM Hi, You are correct. I have submitted a feature request to make ValueName a writable property (issue #5159). You may be able to parse the variable's Definition.Syntax yourself to figure out what the integer value should be. -ken |
| tgrharris aharris@harris.com From: Palm Bay, FL USA Posts: 25 Member Since: 06/22/09 |
posted November 23, 2009 9:08 AM Thanks for the reply. I'm parsing the Syntax property from the Mibnode class to get the mapping but a writeable ValueName would be nice. Thanks for the feature request. |
| Reply | PowerSNMP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|