Xymon Mailing List Archive search

transfer host data

8 messages in this thread

list Ryan Jay B. Lapuz · Sat, 24 Nov 2007 12:54:46 +0800 ·
 Hii all!

This is regarding to this command: ~/server/bin/bb 127.0.0.1 "rename OLDHOSTNAME NEWHOSTNAME"Description: move your historical data over to the new nameIs this also possible if I will just move only the host data to another host? Like this one,~/server/bin/bb 127.0.0.1 "rename HOSTNAME TARGETHOSTNAME"The target host has no client but is defined in the bb-hosts file.
      RYAN JAY B. LAPUZ       Client-Server Group
      Information System Support       Management Information System       Fujitsu Comp. Prod. Corp. of the Phil.       Email: user-945139049f37@xymon.invalid       +63 2 843 2002 / +63 49 549 1501
      Local No.: 2724/2723
list Josh Luthman · Sat, 24 Nov 2007 00:03:27 -0500 ·
There is no difference in those two commands.  Your question is answered by
the third line you have.

The only thing that takes place when this command is issued is a rename of
the historical information for one host.  This can be used, for example, if
you typo a name.  IE: you have mommie.domain.tld and it should be
mommy.domain.tld and for the past week mommie.domain.tld has been collecting
information and you'd like to keep it.

On 11/23/07, Ryan Jay B. Lapuz <user-945139049f37@xymon.invalid> wrote:
  Hii all!

This is regarding to this command:

~/server/bin/bb 127.0.0.1 "rename OLDHOSTNAME NEWHOSTNAME"

Description: move your historical data over to the new name

Is this also possible if I will just move only the host data to another host? Like this one,

~/server/bin/bb 127.0.0.1 "rename HOSTNAME TARGETHOSTNAME"

The target host has no client but is defined in the bb-hosts file.


*-----------------------------------------------
RYAN JAY B. LAPUZ *
Client-Server Group
Information System Support <http://system.fcpp.fujitsu.com/>;
quoted from Ryan Jay B. Lapuz
Management Information System *
Fujitsu Comp. Prod. Corp. of the Phil. *
Email: user-945139049f37@xymon.invalid <user-945139049f37@xymon.invalid+>
+63 2 843 2002 / +63 49 549 1501
Local No.: 2724/2723
*-----------------------------------------------*
-- 

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Ryan Jay B. Lapuz · Sat, 24 Nov 2007 13:08:55 +0800 ·
Hi Josh!

Thanks for your help. 
Regards,
Ryan
  ----- Original Message -----   From: Josh Luthman   To: user-ae9b8668bcde@xymon.invalid   Sent: Saturday, November 24, 2007 1:03 PM
  Subject: Re: [hobbit] transfer host data
quoted from Josh Luthman


  There is no difference in those two commands.  Your question is answered by the third line you have.

  The only thing that takes place when this command is issued is a rename of the historical information for one host.  This can be used, for example, if you typo a name.  IE: you have mommie.domain.tld and it should be mommy.domain.tld and for the past week mommie.domain.tld has been collecting information and you'd like to keep it.


  On 11/23/07, Ryan Jay B. Lapuz <user-945139049f37@xymon.invalid> wrote:
     Hii all!

    This is regarding to this command: ~/server/bin/bb 127.0.0.1 "rename OLDHOSTNAME NEWHOSTNAME"Description: move your historical data over to the new nameIs this also possible if I will just move only the host data to another host? Like this one,
~/server/bin/bb 127.0.0.1 "rename HOSTNAME TARGETHOSTNAME"
The target host has no client but is defined in the bb-hosts file. 


  --   Josh Luthman
  Office: XXX-XXX-XXXX
  Direct: XXX-XXX-XXXX
  XXXX Wayne St
  Suite XXXX
  Troy, OH XXXXX

  Those who don't understand UNIX are condemned to reinvent it, poorly.   --- Henry Spencer
list Ryan Jay B. Lapuz · Sat, 24 Nov 2007 13:14:01 +0800 ·
I'm sorry, it is not to be moved, I just want copy the host data to another host.
Is this possible?
quoted from Ryan Jay B. Lapuz
  ----- Original Message -----   From: Josh Luthman   To: user-ae9b8668bcde@xymon.invalid   Sent: Saturday, November 24, 2007 1:03 PM
  Subject: Re: [hobbit] transfer host data


  There is no difference in those two commands.  Your question is answered by the third line you have.

  The only thing that takes place when this command is issued is a rename of the historical information for one host.  This can be used, for example, if you typo a name.  IE: you have mommie.domain.tld and it should be mommy.domain.tld and for the past week mommie.domain.tld has been collecting information and you'd like to keep it.


  On 11/23/07, Ryan Jay B. Lapuz <user-945139049f37@xymon.invalid> wrote:
     Hii all!

    This is regarding to this command: ~/server/bin/bb 127.0.0.1 "rename OLDHOSTNAME NEWHOSTNAME"Description: move your historical data over to the new nameIs this also possible if I will just move only the host data to another host? Like this one,
~/server/bin/bb 127.0.0.1 "rename HOSTNAME TARGETHOSTNAME"
The target host has no client but is defined in the bb-hosts file.           -----------------------------------------------
          RYAN JAY B. LAPUZ           Client-Server Group
          Information System Support           Management Information System           Fujitsu Comp. Prod. Corp. of the Phil.           Email: user-945139049f37@xymon.invalid           +63 2 843 2002 / +63 49 549 1501
          Local No.: 2724/2723
         

  --   Josh Luthman
  Office: XXX-XXX-XXXX
  Direct: XXX-XXX-XXXX
  XXXX Wayne St
  Suite XXXX
  Troy, OH XXXXX

  Those who don't understand UNIX are condemned to reinvent it, poorly.   --- Henry Spencer
list Josh Luthman · Sat, 24 Nov 2007 00:34:47 -0500 ·
I believe that if you go into ~hobbituser/data and copy the data in hist,
histlogs, and logs you'll get what you need.
quoted from Ryan Jay B. Lapuz

On 11/24/07, Ryan Jay B. Lapuz <user-945139049f37@xymon.invalid> wrote:
 I'm sorry, it is not to be moved, I just want copy the host data to
another host.
Is this possible?

----- Original Message -----

*From:* Josh Luthman <user-4c45a83f15cb@xymon.invalid>
quoted from Ryan Jay B. Lapuz
*To:* user-ae9b8668bcde@xymon.invalid
*Sent:* Saturday, November 24, 2007 1:03 PM
*Subject:* Re: [hobbit] transfer host data

There is no difference in those two commands.  Your question is answered
by the third line you have.

The only thing that takes place when this command is issued is a rename of
the historical information for one host.  This can be used, for example, if
you typo a name.  IE: you have mommie.domain.tld and it should be
mommy.domain.tld and for the past week mommie.domain.tld has been
collecting information and you'd like to keep it.

On 11/23/07, Ryan Jay B. Lapuz <user-945139049f37@xymon.invalid> wrote:
  Hii all!

This is regarding to this command:

~/server/bin/bb
127.0.0.1 "rename OLDHOSTNAME NEWHOSTNAME"

Description: move your historical data over to the new name

Is this also possible if I will just move only the host data to another host? Like this one,

~/server/bin/bb 127.0.0.1 "rename HOSTNAME TARGETHOSTNAME"

The target host has no client but is defined in the bb-hosts file.


*-----------------------------------------------
RYAN JAY B. LAPUZ *
Client-Server Group
Information System Support <http://system.fcpp.fujitsu.com/>;
Management Information System *
Fujitsu Comp. Prod. Corp. of the Phil. *
Email: user-945139049f37@xymon.invalid <user-945139049f37@xymon.invalid+>
+63 2 843 2002 / +63 49 549 1501
Local No.: 2724/2723
*-----------------------------------------------*
--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer

-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Ryan Jay B. Lapuz · Sat, 24 Nov 2007 14:38:30 +0800 ·
Yeah, but the file names are associated with the current hostname, and I want to copy it to different hostname. Maybe I'll make backup first, then I'll move the host data to another host. Then restore the hostdata to its original host.
Is this correct?
  ----- Original Message -----   From: Josh Luthman   To: user-ae9b8668bcde@xymon.invalid   Sent: Saturday, November 24, 2007 1:34 PM
quoted from Josh Luthman
  Subject: Re: [hobbit] transfer host data


  I believe that if you go into ~hobbituser/data and copy the data in hist, histlogs, and logs you'll get what you need.


  On 11/24/07, Ryan Jay B. Lapuz <user-945139049f37@xymon.invalid> wrote:
    I'm sorry, it is not to be moved, I just want copy the host data to another host.
    Is this possible?
      ----- Original Message -----       From: Josh Luthman       To: user-ae9b8668bcde@xymon.invalid       Sent: Saturday, November 24, 2007 1:03 PM
      Subject: Re: [hobbit] transfer host data


      There is no difference in those two commands.  Your question is answered by the third line you have.

      The only thing that takes place when this command is issued is a rename of the historical information for one host.  This can be used, for example, if you typo a name.  IE: you have mommie.domain.tld and it should be mommy.domain.tld and for the past week mommie.domain.tld has been collecting information and you'd like to keep it.


      On 11/23/07, Ryan Jay B. Lapuz <user-945139049f37@xymon.invalid> wrote:          Hii all!

        This is regarding to this command: ~/server/bin/bb 
127.0.0.1 "rename OLDHOSTNAME NEWHOSTNAME"Description: move your historical data over to the new nameIs this also possible if I will just move only the host data to another host? Like this one,
~/server/bin/bb 127.0.0.1 "rename HOSTNAME TARGETHOSTNAME"

The target host has no client but is defined in the bb-hosts file.               -----------------------------------------------
              RYAN JAY B. LAPUZ               Client-Server Group
              Information System Support               Management Information System               Fujitsu Comp. Prod. Corp. of the Phil.               Email: user-945139049f37@xymon.invalid               +63 2 843 2002 / +63 49 549 1501
              Local No.: 2724/2723
             

      --       Josh Luthman
      Office: XXX-XXX-XXXX
      Direct: XXX-XXX-XXXX
      XXXX Wayne St
      Suite XXXX
      Troy, OH XXXXX

      Those who don't understand UNIX are condemned to reinvent it, poorly.       --- Henry Spencer 


  --   Josh Luthman
  Office: XXX-XXX-XXXX
  Direct: XXX-XXX-XXXX
  XXXX Wayne St
  Suite XXXX
  Troy, OH XXXXX

  Those who don't understand UNIX are condemned to reinvent it, poorly.   --- Henry Spencer
list Josh Luthman · Sat, 24 Nov 2007 10:34:10 -0500 ·
What I mean is something like..

cp ~hobbituser/data/hist/oldhost ~hobbituser/data/hist/new host
cp ~hobbituser/data/histlogs/oldhost ~hobbituser/data/histlogs/new host
cp ~hobbituser/data/logs/oldhost ~hobbituser/data/logs/new host

Notice you're using cp - not mv!
quoted from Ryan Jay B. Lapuz

On 11/24/07, Ryan Jay B. Lapuz <user-945139049f37@xymon.invalid> wrote:
 Yeah, but the file names are associated with the current hostname, and I
want to copy it to different hostname. Maybe I'll make backup first, then
I'll move the host data to another host. Then restore the hostdata to its
original host.
Is this correct?

----- Original Message -----
*From:* Josh Luthman <user-4c45a83f15cb@xymon.invalid>
*To:* user-ae9b8668bcde@xymon.invalid
*Sent:* Saturday, November 24, 2007 1:34 PM
*Subject:* Re: [hobbit] transfer host data

I believe that if you go into ~hobbituser/data and copy the data in hist,
histlogs, and logs you'll get what you need.

On 11/24/07, Ryan Jay B. Lapuz <user-945139049f37@xymon.invalid> wrote:
 I'm sorry, it is not to be moved, I just want copy the host data to
another host.
Is this possible?

----- Original Message -----
*From:* Josh Luthman <user-4c45a83f15cb@xymon.invalid>
*To:* user-ae9b8668bcde@xymon.invalid
*Sent:* Saturday, November 24, 2007 1:03 PM
*Subject:* Re: [hobbit] transfer host data

There is no difference in those two commands.  Your question is answered
by the third line you have.

The only thing that takes place when this command is issued is a rename
of the historical information for one host.  This can be used, for example,
if you typo a name.  IE: you have mommie.domain.tld and it should be
mommy.domain.tld and for the past week mommie.domain.tld has been
collecting information and you'd like to keep it.

On 11/23/07, Ryan Jay B. Lapuz <user-945139049f37@xymon.invalid> wrote:
  Hii all!

This is regarding to this command:

~/server/bin/bb

127.0.0.1 "rename OLDHOSTNAME NEWHOSTNAME"

Description: move your historical data over to the new name

Is this also possible if I will just move only the host data to another host? Like this one,

~/server/bin/bb 127.0.0.1 "rename HOSTNAME TARGETHOSTNAME"

The target host has no client but is defined in the bb-hosts file.


*-----------------------------------------------
RYAN JAY B. LAPUZ *
Client-Server Group
Information System Support <http://system.fcpp.fujitsu.com/>;
Management Information System *
Fujitsu Comp. Prod. Corp. of the Phil. *
Email: user-945139049f37@xymon.invalid <user-945139049f37@xymon.invalid+>
+63 2 843 2002 / +63 49 549 1501
Local No.: 2724/2723
*-----------------------------------------------*
--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer

--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer

-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Henrik Størner · Wed, 12 Dec 2007 22:20:30 +0100 ·
quoted from Josh Luthman
On Sat, Nov 24, 2007 at 10:34:10AM -0500, Josh Luthman wrote:
What I mean is something like..

cp ~hobbituser/data/hist/oldhost ~hobbituser/data/hist/new host
cp ~hobbituser/data/histlogs/oldhost ~hobbituser/data/histlogs/new host
cp ~hobbituser/data/logs/oldhost ~hobbituser/data/logs/new host

Notice you're using cp - not mv!
You can do that, but it will only give you some of the data. It will not
copy the current status (this is stored only in memory, not on disk).


Henrik