Re: BER

2009-07-22 Thread pch0317
Dave Shield wrote:
> 2009/7/22 pch0317 :
>   
>> I have problem with decoding packet.
>> How to correctly decode this few byte:
>> 43 04 39 D0 DB 06 (Hex)
>> I know that 43 is the type of time ticks, 04 is length, but how to
>> decode the rest.
>> 
>
>   39 d0 db 06 (hex) = 969988870 (decimal)
>
> (
> 3 * 16 )
>+ 9 ) * 16 )
>+ 13 ) * 16 )
>+ 0 ) * 16 )
> + 13 ) * 16)
>+ 11 ) * 16)
>+ 0 ) * 16)
>   +6
>
> Dave
>
>   
Thanks Dave

--
___
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


BER

2009-07-22 Thread pch0317
Hi

I have problem with decoding packet.
How to correctly decode this few byte:
43 04 39 D0 DB 06 (Hex)
I know that 43 is the type of time ticks, 04 is length, but how to
decode the rest.
It should be about 96xxx.

Thanks
pch0317

--
___
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: snmpd - configuration

2009-05-19 Thread pch0317
I haven't got any other snmpd.conf (I use: find / -name snmpd.conf)
In /usr/local/share/snmp I only have:
mib2c.access_functions.conf mib2c.array-user.conf mib2c.check_values.conf
mib2c.check_values_local.conf mib2c.column_defines.conf 
mib2c.column_enums.conf mib2c.column_storage.conf
mib2c.conf mib2c.container.conf mib2c.create-dataset.conf
mib2c-data mib2c.genhtml.conf mib2c.int_watch.conf
mib2c.iterate_access.conf mib2c.iterate.conf mib2c.mfd.conf
mib2c.notify.conf mib2c.old-api.conf mib2c.perl.conf mib2c.scalar.conf
mib2c.table_data.conf mibs snmpconf-data snmp_perl_trapd.pl


I type hostname instead localhost but it make this same result.


Dave Shield wrote:
> 2009/5/18 pch0317 :
>   
>> In /var/net-snmp/snmpd.conf
>> 
>
> No - not that file - that's essentially private to the agent.
> You need another snmpd.conf file - probably in either
> /etc/snmp (if the agent is vendor-supplied) or
> /usr/local/share/snmp  (if you compiled it yourself).
>
> Please see the FAQ entries about access control.
> These discuss exactly the problems you are seeing.
>
> Dave
>
>   


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
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: snmpd - configuration

2009-05-18 Thread pch0317
Yes, I mean "localhost".


In /var/net-snmp/snmpd.conf I have got:


setserialno 167691539
##
#
# snmpNotifyFilterTable persistent data
#
##

##
#
# ifXTable persistent data
#
ifXTable .1 14:0 18:0x $
ifXTable .2 14:0 18:0x $
ifXTable .3 14:0 18:0x $
ifXTable .4 14:0 18:0x $
ifXTable .5 14:0 18:0x $
##

engineBoots 3
oldEngineID 0x80001f88804ce7100dcbdd8a49



2009/5/18 pch0317 :

> > I have install net-snmp but I can't configure snmpd.
> >
> > when I type snmpget -c public localhos system.sysDescr.0
>   

I hope you mean "localhost" not "localhos" !


> > I can see:
> > Timeout: No Response from localhost
> >
> > What I can do?
>   

Telling us what you've got in your snmpd.conf file might
be a good start.

Dave


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
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


snmpd - configuration

2009-05-18 Thread pch0317
Hello

I have install net-snmp but I can't configure snmpd.

when I type snmpget -c public localhos system.sysDescr.0 I can see:
Timeout: No Response from localhost

What I can do?

Thanks
pch0317

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
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


a

2009-05-08 Thread pch0317
a

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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: SNMP v1 trap

2009-05-08 Thread pch0317
Hi
In linux you can use tcpdump to see packet. Then you can see community 
string and snmp version.


Regards
pch0317

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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


snmptrap -v 2c

2009-05-07 Thread pch0317
Hello,
I have problem. I send SNMPv2 Trap message and analyse packet. But I 
don't understand some bytes.
I type:
snmptrap -v 2c -c private 127.0.0.1 5 1.3.6.1.2.1.1.1.0
and I receive:
30 43 02 01 01 04 07 70 72 69 76 61 74 65 A7 35 02 04 64 AF 4E 32 02 01 
00 02 01 00 30 27 30 0D 06 08 2B 06 01 02 01 01 03 00 43 01 05 30 16 06 
0A 2B 06 01 6F FD 02 4A AE 92 08 00 5E 00 00 00 8B 00 00 00 00

I know that:
30 43 - is a type and length of message
02 01 01 - is a type, length and snmp version (SNMPv2 here)
04 07 70 72 69 76 61 74 65 - type, length and string "private"
A7 35 - is it a type of message (Trap v2) and length of it
02 04 64 AF 4E 32 - is a type length and ??? Is it a number of message? 
Why its length is 4 bytes?
02 01 00 02 01 00 - is a type, length and value of error status and 
error index
30 27 - type and length
30 0D - type and length
06 08 2B 06 01 02 01 01 03 00 43 01 05 - ??? It is similar to 
1.3.6.1.2.1.1.1.0
30 16 - type and length
06 0A 2B 06 01 6F FD 02 4A AE 92 08 00 5E 00 00 00 8B 00 00 00 00 - ???

Please, help me where is "???" sign. Do I write correctly the snmptrap 
command?
Thanks
pch0317

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
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


snmptrap

2009-05-07 Thread pch0317

Hello,
I have problem. I send SNMPv2 Trap message and analyse packet. But I 
don't understand some bytes.

I type:
snmptrap -v 2c -c private 127.0.0.1 5 1.3.6.1.2.1.1.1.0
and I receive:
30 43 02 01 01 04 07 70 72 69 76 61 74 65 A7 35 02 04 64 AF 4E 32 02 01 
00 02 01 00 30 27 30 0D 06 08 2B 06 01 02 01 01 03 00 43 01 05 30 16 06 
0A 2B 06 01 6F FD 02 4A AE 92 08 00 5E 00 00 00 8B 00 00 00 00


I know that:
30 43 - is a type and length of message
02 01 01 - is a type, length and snmp version (SNMPv2 here)
04 07 70 72 69 76 61 74 65 - type, length and string "private"
A7 35 - is it a type of message (Trap v2) and length of it
02 04 64 AF 4E 32 - is a type length and ??? Is it a number of message? 
Why its length is 4 bytes?
02 01 00 02 01 00 - is a type, length and value of error status and 
error index

30 27 - type and length
30 0D - type and length
06 08 2B 06 01 02 01 01 03 00 43 01 05 - ??? It is similar to 
1.3.6.1.2.1.1.1.0

30 16 - type and length
06 0A 2B 06 01 6F FD 02 4A AE 92 08 00 5E 00 00 00 8B 00 00 00 00 - ???

Please, help me where is "???" sign. Do I write correctly the snmptrap 
command?

Thanks
pch0317
--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com___
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: snmptrap

2009-03-02 Thread pch0317
Thanks You very much :)

Thanks again
pch0317

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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: snmptrap

2009-03-01 Thread pch0317
ok, I read this document but i don't understand it very well.
I write:
snmptrap -v 1 -c public 127.0.0.1 "a" "10.0.0.1" "c" "d"
I only know that I:
(-v 1)   use SNMPv1,
(-c public)   use password,
but I'm not sure this fields:
(127.0.0.1)   Send I trap to this host?
(a)   I don't know what is it
(10.0.0.1)   In this place must be adress. Hmmm???
(c)   ???
(d)   ???

I don't know ASN.1 so please explain me this fields.
Thanks


Alexander Bubnov wrote:
> i think this helps
>
> http://www.net-snmp.org/tutorial/tutorial-5/commands/snmptrap.html
>
> 2009/2/20 pch0317 
>
> Hello,
> I want to sent trap from my localhost to my localhost with snmptrap
> command, but I don't know how.
> I write:
> snmptrap -v 1 -c public .. and don't know what next.
>
> Help me.
>
> 
> --
> Open Source Business Conference (OSBC), March 24-25, 2009, San
> Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source
> code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> <mailto: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
>
>
>
>
> -- 
> /BR, Alexander

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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


snmptrap

2009-02-20 Thread pch0317
Hello,
I want to sent trap from my localhost to my localhost with snmptrap 
command, but I don't know why.
I write:
snmptrap -v 1 -c public .. and don't know what next.

Help me.

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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