Re: NO-IP not updating!

2011-01-31 Thread Leslie Jensen

On 2011-01-27 16:39, Orestes Leal R. wrote:

On Wed, Jan 26, 2011 at 10:56:02AM +0100, Leslie Jensen wrote:

Upon installation of noip I ran the command noip2 -C to configure it.

I want noip to run a script every 30 minutes that sends a mail to me
at the end of the updating of the address.

So I choose the settings accordingly when configuring noip.

I've put the following in my /etc/rc.local

--
# Add your local startup actions here.

/usr/local/sbin/noip2 

echo '.'
--

When the machine is booted I get the mail, but I do not get the
updates every 30 minutes as I should.


I don't think the mail gets to you, if you run noip2 without the ''
I think it will work, you put the process in background and
that why the mail can't get delivered for some reason. this happens
to me in other situations.


Top shows the process
6013 _noip 2 0 428K 916K idle select 0:00 0.00% noip2

Everything looks fine, but note that you didn't get noip from ports (so
it may be incompatible with OpenBSD). Try posting your configuration,
running noip in debug mode (if it has one), or switching to
net/ddclient.

Joachim






I tried you suggestion with removing the '' but it had no effect what 
so ever.

I'll try out the suggestion with debug mode.

/Leslie



Re: NO-IP not updating!

2011-01-31 Thread Leslie Jensen

On 2011-01-26 19:05, Jeff Ross wrote:

On 01/26/11 10:44, Leslie Jensen wrote:

Abel Abraham Camarillo Ojeda skrev 2011-01-26 16:39:

On Wed, Jan 26, 2011 at 3:56 AM, Leslie Jensenles...@eskk.nu wrote:

Hello list.

I'm quite new to Openbsd, have used Freebsd for a while.

I have a newly installed Openbsd system.
OpenBSD machine01.no-ip.org 4.8 GENERIC.MP#335 amd64

Upon installation of noip I ran the command noip2 -C to configure it.

I want noip to run a script every 30 minutes that sends a mail to me
at the
end of the updating of the address.

So I choose the settings accordingly when configuring noip.

I've put the following in my /etc/rc.local

--
# Add your local startup actions here.

/usr/local/sbin/noip2

echo '.'
--

When the machine is booted I get the mail, but I do not get the updates
every 30 minutes as I should.

I cannot see if the the daemon starts because the line at the startup

screen

shows only starting local daemons:,

The command:
# ps -aux | grep noip

Gives

_noip B B 6013 B 0.0 B 0.2 B 428 B 916 ?? B Is B B 10:04AM B

B 0:00.01

/usr/local/sb

Top shows the process
6013 _noip B B B 2 B B 0 B 428K B 916K idle B B B select B B 0:00

B 0.00% noip2


If I kill that process and start noip2 from the command line it also
sends
the mail at start up but not after the following 30 minutes.

I'm not sure whether noip is running every 30 minutes I've been tailing
/var/log/messages and I cannot see anything related to noip there.

Can anyone on this list point me in the right direction?

Thanks

/Leslie




cron(8), maybe?


It is supposed to work as a daemon with no need for cron!
/L


!DSPAM:4d405e91283431811913398!



ktrace the process.

man ktrace and pay attention to how to stop the ktrace process

and

man kdump to see how to read the output.

Hope that helps!

Jeff


I tried ktrace and I could see that things happened with the update 
interval on noip2 set to 2 minutes.


Unfortunately I'm no master at interpreting the output ;-)

Here's an output from ktrace:

--
# kdump
 11273 noip2EMUL  native
 11273 noip2RET   select 0
 11273 noip2CALL  gettimeofday(0x7f7c1960,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  gettimeofday(0x7f7c1960,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  stat(0x20fbe0076,0x7f7c1a00)
 11273 noip2NAMI  /etc/resolv.conf
 11273 noip2RET   stat 0
 11273 noip2CALL  gettimeofday(0x7f7c1910,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  open(0x20fbdd713,0,0x1b6)
 11273 noip2NAMI  /etc/hosts
 11273 noip2RET   open 1
 11273 noip2CALL  fstat(0x1,0x7f7c1d50)
 11273 noip2RET   fstat 0
 11273 noip2CALL  mprotect(0x205729000,0x1000,0x3)
 11273 noip2RET   mprotect 0
 11273 noip2CALL  mprotect(0x205729000,0x1000,0x1)
 11273 noip2RET   mprotect 0
 11273 noip2CALL  read(0x1,0x208422000,0x4000)
 11273 noip2GIO   fd 1 read 310 bytes
   #   $OpenBSD: hosts,v 1.12 2009/03/10 00:42:13 deraadt Exp $
#
# Host Database
#
# RFC 1918 specifies that these networks are internal.
# 10.0.0.0  10.255.255.255
# 172.16.0.0172.31.255.255
# 192.168.0.0   192.168.255.255
#
127.0.0.1   localhost
::1 localhost
172.18.0.1  machine01.no-ip.org machine01
   
 11273 noip2RET   read 310/0x136
 11273 noip2CALL  read(0x1,0x208422000,0x4000)
 11273 noip2RET   read 0
 11273 noip2CALL  close(0x1)
 11273 noip2RET   close 0
 11273 noip2CALL  gettimeofday(0x7f7c18c0,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  gettimeofday(0x7f7c1050,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  gettimeofday(0x7f7c0bd0,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  gettimeofday(0x7f7c0ac0,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  gettimeofday(0x7f7c1090,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  getpid()
 11273 noip2RET   getpid 11273/0x2c09
 11273 noip2CALL  getpid()
 11273 noip2RET   getpid 11273/0x2c09
 11273 noip2CALL  getpid()
 11273 noip2RET   getpid 11273/0x2c09
 11273 noip2CALL  getpid()
 11273 noip2RET   getpid 11273/0x2c09
 11273 noip2CALL  getpid()
 11273 noip2RET   getpid 11273/0x2c09
 11273 noip2CALL  gettimeofday(0x7f7c1080,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  gettimeofday(0x7f7c08b0,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  socket(0x2,0x2,0)
 11273 noip2RET   socket 1
 11273 noip2CALL  connect(0x1,0x20ff1c918,0x10)
 11273 noip2RET   connect 0
 11273 noip2CALL  sendto(0x1,0x7f7c11f0,0x25,0,0,0)
 11273 noip2GIO   fd 1 wrote 37 bytes
   \M^N\M^B\^A\0\0\^A\0\0\0\0\0\0 
dynupdate\^Eno-ip\^Ccom\0\0\^A\0\^A

 

Re: NO-IP not updating!

2011-01-27 Thread Joachim Schipper
On Wed, Jan 26, 2011 at 10:56:02AM +0100, Leslie Jensen wrote:
 Upon installation of noip I ran the command noip2 -C to configure it.
 
 I want noip to run a script every 30 minutes that sends a mail to me
 at the end of the updating of the address.
 
 So I choose the settings accordingly when configuring noip.
 
 I've put the following in my /etc/rc.local
 
 --
 # Add your local startup actions here.
 
 /usr/local/sbin/noip2 
 
 echo '.'
 --
 
 When the machine is booted I get the mail, but I do not get the
 updates every 30 minutes as I should.

 Top shows the process
 6013 _noip  20  428K  916K idle  select0:00  0.00% noip2
 
Everything looks fine, but note that you didn't get noip from ports (so
it may be incompatible with OpenBSD). Try posting your configuration,
running noip in debug mode (if it has one), or switching to
net/ddclient.

Joachim

-- 
TFMotD: div (3) - return quotient and remainder from division
http://www.joachimschipper.nl/



Re: NO-IP not updating!

2011-01-27 Thread Orestes Leal R.

On Wed, Jan 26, 2011 at 10:56:02AM +0100, Leslie Jensen wrote:

Upon installation of noip I ran the command noip2 -C to configure it.

I want noip to run a script every 30 minutes that sends a mail to me
at the end of the updating of the address.

So I choose the settings accordingly when configuring noip.

I've put the following in my /etc/rc.local

--
# Add your local startup actions here.

/usr/local/sbin/noip2 

echo '.'
--

When the machine is booted I get the mail, but I do not get the
updates every 30 minutes as I should.


I don't think the mail gets to you, if you run noip2 without the ''
I think it will work, you put the process in background and
that why the mail can't get delivered for some reason. this happens
to me in other situations.


Top shows the process
6013 _noip  20  428K  916K idle  select0:00  0.00% noip2

Everything looks fine, but note that you didn't get noip from ports (so
it may be incompatible with OpenBSD). Try posting your configuration,
running noip in debug mode (if it has one), or switching to
net/ddclient.

Joachim




--
Using Opera's revolutionary email client: http://www.opera.com/mail/



Re: NO-IP not updating!

2011-01-27 Thread Leslie Jensen

On 2011-01-27 14:41, Joachim Schipper wrote:

On Wed, Jan 26, 2011 at 10:56:02AM +0100, Leslie Jensen wrote:

Upon installation of noip I ran the command noip2 -C to configure it.

I want noip to run a script every 30 minutes that sends a mail to me
at the end of the updating of the address.

So I choose the settings accordingly when configuring noip.

I've put the following in my /etc/rc.local

--
# Add your local startup actions here.

/usr/local/sbin/noip2

echo '.'
--

When the machine is booted I get the mail, but I do not get the
updates every 30 minutes as I should.



Top shows the process
6013 _noip  20  428K  916K idle  select0:00  0.00% noip2


Everything looks fine, but note that you didn't get noip from ports (so
it may be incompatible with OpenBSD). Try posting your configuration,
running noip in debug mode (if it has one), or switching to
net/ddclient.

Joachim



I did get NO-IP from ports! I check out your suggestion.
Thanks :-)



NO-IP not updating!

2011-01-26 Thread Leslie Jensen

Hello list.

I'm quite new to Openbsd, have used Freebsd for a while.

I have a newly installed Openbsd system.
OpenBSD machine01.no-ip.org 4.8 GENERIC.MP#335 amd64

Upon installation of noip I ran the command noip2 -C to configure it.

I want noip to run a script every 30 minutes that sends a mail to me at 
the end of the updating of the address.


So I choose the settings accordingly when configuring noip.

I've put the following in my /etc/rc.local

--
# Add your local startup actions here.

/usr/local/sbin/noip2 

echo '.'
--

When the machine is booted I get the mail, but I do not get the updates 
every 30 minutes as I should.


I cannot see if the the daemon starts because the line at the startup 
screen shows only starting local daemons:,


The command:
# ps -aux | grep noip

Gives

_noip 6013  0.0  0.2   428   916 ??  Is10:04AM0:00.01 
/usr/local/sb


Top shows the process
6013 _noip  20  428K  916K idle  select0:00  0.00% noip2

If I kill that process and start noip2 from the command line it also 
sends the mail at start up but not after the following 30 minutes.


I'm not sure whether noip is running every 30 minutes I've been tailing 
/var/log/messages and I cannot see anything related to noip there.


Can anyone on this list point me in the right direction?

Thanks

/Leslie



Re: NO-IP not updating!

2011-01-26 Thread Abel Abraham Camarillo Ojeda
On Wed, Jan 26, 2011 at 3:56 AM, Leslie Jensen les...@eskk.nu wrote:
 Hello list.

 I'm quite new to Openbsd, have used Freebsd for a while.

 I have a newly installed Openbsd system.
 OpenBSD machine01.no-ip.org 4.8 GENERIC.MP#335 amd64

 Upon installation of noip I ran the command noip2 -C to configure it.

 I want noip to run a script every 30 minutes that sends a mail to me at the
 end of the updating of the address.

 So I choose the settings accordingly when configuring noip.

 I've put the following in my /etc/rc.local

 --
 # Add your local startup actions here.

 /usr/local/sbin/noip2 

 echo '.'
 --

 When the machine is booted I get the mail, but I do not get the updates
 every 30 minutes as I should.

 I cannot see if the the daemon starts because the line at the startup
screen
 shows only starting local daemons:,

 The command:
 # ps -aux | grep noip

 Gives

 _noip B  B  6013 B 0.0 B 0.2 B  428 B  916 ?? B Is B  B 10:04AM B 
B 0:00.01
 /usr/local/sb

 Top shows the process
 6013 _noip B  B  B 2 B  B 0 B 428K B 916K idle B  B  B select B  B 0:00
B 0.00% noip2

 If I kill that process and start noip2 from the command line it also sends
 the mail at start up but not after the following 30 minutes.

 I'm not sure whether noip is running every 30 minutes I've been tailing
 /var/log/messages and I cannot see anything related to noip there.

 Can anyone on this list point me in the right direction?

 Thanks

 /Leslie



cron(8), maybe?



Re: NO-IP not updating!

2011-01-26 Thread Leslie Jensen

Abel Abraham Camarillo Ojeda skrev 2011-01-26 16:39:

On Wed, Jan 26, 2011 at 3:56 AM, Leslie Jensenles...@eskk.nu  wrote:

Hello list.

I'm quite new to Openbsd, have used Freebsd for a while.

I have a newly installed Openbsd system.
OpenBSD machine01.no-ip.org 4.8 GENERIC.MP#335 amd64

Upon installation of noip I ran the command noip2 -C to configure it.

I want noip to run a script every 30 minutes that sends a mail to me at the
end of the updating of the address.

So I choose the settings accordingly when configuring noip.

I've put the following in my /etc/rc.local

--
# Add your local startup actions here.

/usr/local/sbin/noip2

echo '.'
--

When the machine is booted I get the mail, but I do not get the updates
every 30 minutes as I should.

I cannot see if the the daemon starts because the line at the startup

screen

shows only starting local daemons:,

The command:
# ps -aux | grep noip

Gives

_noip B  B  6013 B 0.0 B 0.2 B  428 B  916 ?? B Is B  B 10:04AM B

B 0:00.01

/usr/local/sb

Top shows the process
6013 _noip B  B  B 2 B  B 0 B 428K B 916K idle B  B  B select B  B 0:00

B 0.00% noip2


If I kill that process and start noip2 from the command line it also sends
the mail at start up but not after the following 30 minutes.

I'm not sure whether noip is running every 30 minutes I've been tailing
/var/log/messages and I cannot see anything related to noip there.

Can anyone on this list point me in the right direction?

Thanks

/Leslie




cron(8), maybe?


It is supposed to work as a daemon with no need for cron!
/L



Re: NO-IP not updating!

2011-01-26 Thread Jeff Ross

On 01/26/11 10:44, Leslie Jensen wrote:

Abel Abraham Camarillo Ojeda skrev 2011-01-26 16:39:

On Wed, Jan 26, 2011 at 3:56 AM, Leslie Jensenles...@eskk.nu wrote:

Hello list.

I'm quite new to Openbsd, have used Freebsd for a while.

I have a newly installed Openbsd system.
OpenBSD machine01.no-ip.org 4.8 GENERIC.MP#335 amd64

Upon installation of noip I ran the command noip2 -C to configure it.

I want noip to run a script every 30 minutes that sends a mail to me
at the
end of the updating of the address.

So I choose the settings accordingly when configuring noip.

I've put the following in my /etc/rc.local

--
# Add your local startup actions here.

/usr/local/sbin/noip2

echo '.'
--

When the machine is booted I get the mail, but I do not get the updates
every 30 minutes as I should.

I cannot see if the the daemon starts because the line at the startup

screen

shows only starting local daemons:,

The command:
# ps -aux | grep noip

Gives

_noip B B 6013 B 0.0 B 0.2 B 428 B 916 ?? B Is B B 10:04AM B

B 0:00.01

/usr/local/sb

Top shows the process
6013 _noip B B B 2 B B 0 B 428K B 916K idle B B B select B B 0:00

B 0.00% noip2


If I kill that process and start noip2 from the command line it also
sends
the mail at start up but not after the following 30 minutes.

I'm not sure whether noip is running every 30 minutes I've been tailing
/var/log/messages and I cannot see anything related to noip there.

Can anyone on this list point me in the right direction?

Thanks

/Leslie




cron(8), maybe?


It is supposed to work as a daemon with no need for cron!
/L


!DSPAM:4d405e91283431811913398!



ktrace the process.

man ktrace and pay attention to how to stop the ktrace process

and

man kdump to see how to read the output.

Hope that helps!

Jeff