Discussion:
Q: How do i set a BITS oid using snmpset?
r***@philips.com
2001-11-15 11:53:02 UTC
Permalink
Hi all,

I've been spending some hours trying to figure this out. Its likely very simple, and i'm most likely looking right over it.

So far i've figured out that i get:

snmpset -m all 10.0.4.203 private docsDevEvReporting.warning b <OCTETSTR>

Questions:
- how to specify the value BITS? Can someone give me examples?
- Is there someplace a page describing this syntax?

met groet / Regards


Rudy Zijlstra
PIA Hasselt PCS BC Communications
Industriezone Noord 1000-1920 DOCSIS Test lead
Kempische Steenweg 293 Tel: +32 11 306759
B-3500 Hasselt Fax: +32 11 305958
Belgium
Wes Hardaker
2001-11-15 14:43:02 UTC
Permalink
rudy> snmpset -m all 10.0.4.203 private docsDevEvReporting.warning b <OCTETSTR>

rudy> - how to specify the value BITS? Can someone give me examples?

Actually, you can do it by using text values separated by ','s. IE,
"OID b bit1,bit3,bit4"
--
Wes Hardaker
NAI Labs
Network Associates
r***@philips.com
2001-11-19 08:09:03 UTC
Permalink
Wes,

thank you, yet I would stil like to know how to specify an octet string

met groet / Regards


Rudy Zijlstra
PIA Hasselt PCS BC Communications
Industriezone Noord 1000-1920 DOCSIS Test lead
Kempische Steenweg 293 Tel: +32 11 306759
B-3500 Hasselt Fax: +32 11 305958
Belgium



Wes Hardaker
<***@users.source To: Rudy Zijlstra/HAS/BE/***@EMEA1
forge.net> cc: net-snmp-***@lists.sourceforge.net
Subject: Re: Q: How do i set a BITS oid using snmpset?
11/15/01 05:37 PM
rudy> snmpset -m all 10.0.4.203 private docsDevEvReporting.warning b <OCTETSTR>

rudy> - how to specify the value BITS? Can someone give me examples?

Actually, you can do it by using text values separated by ','s. IE,
"OID b bit1,bit3,bit4"

--
Wes Hardaker
NAI Labs
Network Associates
Dave Shield
2001-11-19 08:28:05 UTC
Permalink
Post by r***@philips.com
I would stil like to know how to specify an octet string
For a SET?

snmpset -m all 10.0.4.203 private sysLocation.0 s "not here"

Dave
Niels Baggesen
2001-11-19 19:53:03 UTC
Permalink
Post by Dave Shield
Post by r***@philips.com
I would stil like to know how to specify an octet string
For a SET?
snmpset -m all 10.0.4.203 private sysLocation.0 s "not here"
or snmpset 10.0.4.203 private sysLocation.0 x 6e6f742068657165
or snmpset 10.0.4.203 private sysLocation.0 d "110 110 116 32 104 101 114 101"

which should both be equivalent to Daves exmaple.

/Niels
--
Niels Baggesen - @home - Ã…rhus - Denmark - ***@baggesen.com
-- All people smile in the same language --
r***@philips.com
2001-11-19 08:40:02 UTC
Permalink
Wes,

example for a BITS? i KNOW how to do it for normal string. Problem is doing it for a BITS definition. What is an octet string?

snmpset -m all 10.0.4.203 private docsDevEvReporting.warning b 1,1,1

seems to work, but I am trying to figure out what an octetstring is. This in order to use in scripting.

met groet / Regards


Rudy Zijlstra
PIA Hasselt PCS BC Communications
Industriezone Noord 1000-1920 DOCSIS Test lead
Kempische Steenweg 293 Tel: +32 11 306759
B-3500 Hasselt Fax: +32 11 305958
Belgium



Dave Shield
<***@csc. To: Rudy Zijlstra/HAS/BE/***@EMEA1
liv.ac.uk> cc: net-snmp-***@lists.sourceforge.net
Subject: Re: Q: How do i set a BITS oid using snmpset?
11/19/01 11:27
Post by r***@philips.com
I would stil like to know how to specify an octet string
For a SET?

snmpset -m all 10.0.4.203 private sysLocation.0 s "not here"

Dave
Dave Shield
2001-11-19 09:49:03 UTC
Permalink
Post by r***@philips.com
example for a BITS? i KNOW how to do it for normal string.
Problem is doing it for a BITS definition.
Post by Wes Hardaker
Actually, you can do it by using text values separated by ','s.
IE, "OID b bit1,bit3,bit4"
snmpset -m all 10.0.4.203 private docsDevEvReporting.warning b 1,1,1
seems to work,
but I am trying to figure out what an octetstring is.
An octet string is a string - hence my response.
This was obviously not what you were asking - sorry.

You know how to set a string value, and you know how to set a BITS value.
I'm a little confused as to what your question is?

Dave
Loading...