Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Integer32 attribute type code for snmpset

Status
Not open for further replies.

amaheshwari

Technical User
Aug 30, 2012
2
Hi,

I am trying to use "snmpset" for my networking protocols. There are lots of OIDs in the mib which require values in "Integer32" data type. Can someone help me to select the right attribute code for the same?

We use 'i' for Integer, but that does not work for Integer32. I tried using other options available for Unsigned Integer, Integer64 etc but none of them worked. can you please suggest me the code to be used for "Integer32" data type

Thanks a lot in advance for your help
Anjana
 
snmpset -v 2c -c PUBLIC <hostid> <oid> <datatype-- i for integer> <value>
 


linux# snmpset -v2c -c public localhost 1.3.6.1.4.1.X.X.19.1.1.2.1.1.0 i 30
iso.3.6.1.4.1.X.X.19.1.1.2.1.1.0 = INTEGER: 30

"i" works with Integer or Integer32 they are the same over the wire.

Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top