Re: try to remove row in ifTable

2006-08-25 Thread Dominique bastien
Yes this notation also works.

--- Dave Shield <[EMAIL PROTECTED]> wrote:

> On 25/08/06, Dominique bastien <[EMAIL PROTECTED]>
> wrote:
> >
> > The line:
> > view ifRow4 included .1.3.6.1.2.1.2.2.1.0.4 0xffa0
> >
> > The agent only get the 0xa0 with this line
> 
> By Jove, you're right!  Well, I never
> 
> > The line need to be change to:
> > view ifRow4 included .1.3.6.1.2.1.2.2.1.0.4
> 0xff:0xa0
> 
> I think that's probably slightly clearer given as
> 
> view ifRow4 included .1.3.6.1.2.1.2.2.1.0.4  
> ff:a0
> 
> which also works as expected.
> 
> Dave
> 
>
-
> Using Tomcat but need to do more? Need to support
> web services, security?
> Get stuff done quickly with pre-integrated
> technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1
> based on Apache Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or
> change other options:
>
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: try to remove row in ifTable

2006-08-25 Thread Dave Shield
On 25/08/06, Dominique bastien <[EMAIL PROTECTED]> wrote:
>
> The line:
> view ifRow4 included .1.3.6.1.2.1.2.2.1.0.4 0xffa0
>
> The agent only get the 0xa0 with this line

By Jove, you're right!  Well, I never

> The line need to be change to:
> view ifRow4 included .1.3.6.1.2.1.2.2.1.0.4 0xff:0xa0

I think that's probably slightly clearer given as

view ifRow4 included .1.3.6.1.2.1.2.2.1.0.4   ff:a0

which also works as expected.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: try to remove row in ifTable

2006-08-25 Thread Dominique bastien

The line:
view ifRow4 included .1.3.6.1.2.1.2.2.1.0.4 0xffa0

The agent only get the 0xa0 with this line

The line need to be change to:
view ifRow4 included .1.3.6.1.2.1.2.2.1.0.4 0xff:0xa0

In this case everything is fine.

Dominique


--- Dave Shield <[EMAIL PROTECTED]> wrote:

> On 24/08/06, Dominique bastien <[EMAIL PROTECTED]>
> wrote:
> > the explaination of the
> mask is not
> > clear and the padding that you add at the end (the
> > five bit set to 0) to make the thing work is not
> > obvious.
> 
> OK - I follow you know.
> (I can't believe that I didn't spot the obvious
> shift in the two bit patterns.
>  Engage brain before responding, Dave!)
> 
> I've tweaked the man page description to try and
> address this.
> Is the following text any more helpful?
> 
> -
>   MASK  is  a  list  of hex octets (optionally
> separated by '.' or
>   ':') with the set bits indicating which 
> subidentifiers  in  the
>   view  OID  to match against.  If not
> specified, this defaults to
>   matching the OID exactly (all bits set), thus
> defining a  simple
>   OID subtree.  So:
>  view iso1 included .iso 0xf0
>  view iso2 included .iso
>  view iso3 included .iso.org.dod.mgmt
> 0xf0
> 
>   would  all  define  the  same  view,  covering
>  the whole of the
>   'iso(1)' subtree.
> 
>   More usefully, the mask can be used to define
> a view covering  a
>   particular  row  (or  rows)  in a table, by
> matching against the
>   appropriate  table  index  value,  but  
> skipping   the   column
>   subidentifier:
> 
>  view ifRow4 included
> .1.3.6.1.2.1.2.2.1.0.4 0xffa0
> 
> 
> Feel free to suggest any changes or additions.
> 
> Dave
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: try to remove row in ifTable

2006-08-25 Thread Dave Shield
On 24/08/06, Dominique bastien <[EMAIL PROTECTED]> wrote:
> the explaination of the mask is not
> clear and the padding that you add at the end (the
> five bit set to 0) to make the thing work is not
> obvious.

OK - I follow you know.
(I can't believe that I didn't spot the obvious shift in the two bit patterns.
 Engage brain before responding, Dave!)

I've tweaked the man page description to try and address this.
Is the following text any more helpful?

-
  MASK  is  a  list  of hex octets (optionally separated by '.' or
  ':') with the set bits indicating which  subidentifiers  in  the
  view  OID  to match against.  If not specified, this defaults to
  matching the OID exactly (all bits set), thus defining a  simple
  OID subtree.  So:
 view iso1 included .iso 0xf0
 view iso2 included .iso
 view iso3 included .iso.org.dod.mgmt 0xf0

  would  all  define  the  same  view,  covering  the whole of the
  'iso(1)' subtree.

  More usefully, the mask can be used to define a view covering  a
  particular  row  (or  rows)  in a table, by matching against the
  appropriate  table  index  value,  but   skipping   the   column
  subidentifier:

 view ifRow4 included .1.3.6.1.2.1.2.2.1.0.4 0xffa0


Feel free to suggest any changes or additions.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: try to remove row in ifTable

2006-08-24 Thread Dominique bastien
I just said tha the explaination of the mask is not
clear and the padding that you add at the end (the
five bit set to 0) to make the thing work is not
obvious. It's why my not working mask is the same than
you but without the padding.

Thanks,

Dominique

--- Dave Shield <[EMAIL PROTECTED]> wrote:

> On 24/08/06, Dominique bastien <[EMAIL PROTECTED]>
> wrote:
> >
> > Q: I'm not sure where you got the:
> >
> > A: It's one of the syntax that I try. Is the same
> than
> > you but without the padding at the end it's why I
> try
> > 0x3:0xFD where the second bit is set to zero.
> 
> Errr... no.
> I suggested 0xffa0 which equates to    1010
> 
> Your mask of 0x3:0xFD would presumably expand to 
>  0011  1101
> which is something completely different.
>   (unless I've completely misunderstood something
> here).
> 
> Dave
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: try to remove row in ifTable

2006-08-24 Thread Dave Shield
On 24/08/06, Dominique bastien <[EMAIL PROTECTED]> wrote:
>
> Q: I'm not sure where you got the:
>
> A: It's one of the syntax that I try. Is the same than
> you but without the padding at the end it's why I try
> 0x3:0xFD where the second bit is set to zero.

Errr... no.
I suggested 0xffa0 which equates to    1010 
Your mask of 0x3:0xFD would presumably expand to   0011  1101
which is something completely different.
  (unless I've completely misunderstood something here).

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: try to remove row in ifTable

2006-08-24 Thread Dominique bastien

Q: I'm not sure where you got the:

A: It's one of the syntax that I try. Is the same than
you but without the padding at the end it's why I try
0x3:0xFD where the second bit is set to zero.

Maybe this example can be add to the FAQ or to the
snmpd.conf example.

Thanks,

Dominique

--- Dave Shield <[EMAIL PROTECTED]> wrote:

> On 23/08/06, Dominique bastien <[EMAIL PROTECTED]>
> wrote:
> > I try to remove some rows in the ifTable, the
> loopback
> > interface and some interface use for internal
> communication.
> >
> > I program the snmpd.conf with these lines:
> >
> > view vn1 included .1
> > view vn1 excluded ifEntry.1.1 0x3:0xf9
> >
> > But this only remove the index field of the lo
> interface.
> 
> I'm not sure where you got the "0x3:0xf9" syntax
> from, but the
> following line (untested) ought to do what you need:
> 
> view vn1 excluded  ifEntry.0.1  0xffa0
> 
> Or expanded into a fully numeric OID:
> 
> view  vn1  excluded  .1.3.6.1.2.1.2.2.1.0.1 
> 0xffa0
> 
> The '0' subidentifier doesn't actually matter - it
> correspends to the
> cleared bit in the mask:
> 
>   1  3  6  1  2  1  2  2  :  1  0  1
>   1  1  1  1  1  1  1  1  :  1  0  1  = 0xffa0
> 
> so this value will be ignored.
> 
> Dave
> 
>
-
> Using Tomcat but need to do more? Need to support
> web services, security?
> Get stuff done quickly with pre-integrated
> technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1
> based on Apache Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or
> change other options:
>
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: try to remove row in ifTable

2006-08-24 Thread Dave Shield
On 23/08/06, Dominique bastien <[EMAIL PROTECTED]> wrote:
> I try to remove some rows in the ifTable, the loopback
> interface and some interface use for internal communication.
>
> I program the snmpd.conf with these lines:
>
> view vn1 included .1
> view vn1 excluded ifEntry.1.1 0x3:0xf9
>
> But this only remove the index field of the lo interface.

I'm not sure where you got the "0x3:0xf9" syntax from, but the
following line (untested) ought to do what you need:

view vn1 excluded  ifEntry.0.1  0xffa0

Or expanded into a fully numeric OID:

view  vn1  excluded  .1.3.6.1.2.1.2.2.1.0.1  0xffa0

The '0' subidentifier doesn't actually matter - it correspends to the
cleared bit in the mask:

  1  3  6  1  2  1  2  2  :  1  0  1
  1  1  1  1  1  1  1  1  :  1  0  1  = 0xffa0

so this value will be ignored.

Dave

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


try to remove row in ifTable

2006-08-23 Thread Dominique bastien

I try to remove some rows in the ifTable, the loopback
interface and some interface use for internal
communication.

I program the snmpd.conf with these lines:

com2sec sec1 default public
group gp1 v1 sec1
group gp1 v2c sec1
view vn1 included .1
view vn1 excluded ifEntry.1.1 0x3:0xf9

But this only remove the index field of the lo
interface. I found a way by repeating the line with
the second digit incrementing by one:

view vn1 excluded ifEntry.1.1
view vn1 excluded ifEntry.2.1
view vn1 excluded ifEntry.3.1
view vn1 excluded ifEntry.4.1
...

but we have 22 items in each ifEntry and for interface
to remove.

In the help page you talk about setting the mask to
eliminate stuff, what is the recipe to eliminate from
my view the first for interface of the table?

Thanks,

Dominique





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users