Sounds fun sign me up... :0)

Ok taking the file check and ftp example given previously it should be
possible to run the following:

Create shell script on the host machine something like this:

#!/bin/bash
ftp -n crmhost-hemel << end
us <username> <password>
cd <directory>
bin
get $1
bye
end

Call it something like ftpbackup and make executable by running
something like "sudo chmod u+x ftpbackup"

I am working upon assumptions now and going by the *nix screenshots the
authentication mechanisms are already in place so when doing something
like the below from a shell prompt:

ssh [EMAIL PROTECTED] "find /home/it/backups -maxdepth 4 -name "*.log" -type f
-execdir ftpbackup {} \;"

You should only need a line asking what remote command to run in this
case:

"find <directory> -maxdepth 4 -name "*.log" -type f -execdir
/home/it/ftpbackup {} \;"

The whole command needs to be enclosed in quotes and the last semicolon
needs to be backslash escaped,  I am using openssh on Ubuntu so don't
know if this is different for anyone else.

This command is using find which to my knowledge exists on all *nix
variants though syntax/options may vary.  My command is simply looking
for *.log files in the current and up to four directories below which
are identified as files (-type f), followed by executing the ftpbackup
script and passing in the filename ({}).  The exec option ensures that
the command is run in the directory in which the file is found.  There
is another version -exec which is less secure and less predictable.
 
Regards

Mark Perry

Systems & Networks Administrator

Telephonetics VIP Ltd

 

"making sound

             business sense"

 

Simply dial +44 (0)1442 242 242 and ask for me by name.

www.telephoneticsVIP.co.uk

Providing innovative hosted and customer premises speech recognition and
voice automation solutions.

 

Disclaimer: available at
http://www.telephoneticsVIP.co.uk/telephonetics/emaildisclaimer.jsp or
by sending email to <mailto:[EMAIL PROTECTED]
applies to this email.

Registered address: 7th Floor, Hamilton House, 111 Marlowes, Hemel
Hempstead, Hertfordshire HP1 1BB

Registered in England No: 2831215


-----Original Message-----
From: Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Dirk Bulinckx
Sent: Thursday, February 14, 2008 2:21 PM
To: Servers Alive Discussion List
Subject: RE: [SA-list] AS/400 checking

I guess something like that is possible.
HOWEVER we would need some coorporation for some users/testers in order
to make this.

A first step would be to try this on our own systems with some
"standard" stuff that should be running on all/most Linux systems (any
tips/hints on commands/outputs we could use for testing?) A 2nd step
would be to test this on "your" systems to see if it can real help/fit.




Dirk Bulinckx. 

-----Original Message-----
From: Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Perry
Sent: Thursday, February 14, 2008 3:10 PM
To: Servers Alive Discussion List
Subject: RE: [SA-list] AS/400 checking

Hi Dirk,

Considering that the current *nix tests use ssh and their return value
could you customize one of them so that a user could enter a customized
command to run with a check for a return value?

I guess the current limitation would be a single value only, but with a
little tweaking I recon you could test against all returned values e.g.

Custom Command:
ssh [EMAIL PROTECTED] "find /home/it/backups -maxdepth 4 -name "*.vmx" -type f
-execdir echo {} \;"

RETURN
Backup-DC1.vmx
Backup-DC2.vmx

TEST FOR
Backup-DC2.vmx

RESULT
Success

This would be very useful to *nix admin as there would be any number of
things you can then look for the shell is your oyster....

Just a thought 

Mark Perry

Systems & Networks Administrator

Telephonetics VIP Ltd

 

"making sound

             business sense"

 

Simply dial +44 (0)1442 242 242 and ask for me by name.

www.telephoneticsVIP.co.uk

Providing innovative hosted and customer premises speech recognition and
voice automation solutions.

 

Disclaimer: available at
http://www.telephoneticsVIP.co.uk/telephonetics/emaildisclaimer.jsp or
by sending email to <mailto:[EMAIL PROTECTED]
applies to this email.

Registered address: 7th Floor, Hamilton House, 111 Marlowes, Hemel
Hempstead, Hertfordshire HP1 1BB

Registered in England No: 2831215


-----Original Message-----
From: Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Dirk Bulinckx
Sent: Wednesday, February 13, 2008 6:20 AM
To: Servers Alive Discussion List
Subject: RE: [SA-list] AS/400 checking

Did you ever try the *nix process or *nix diskspace checker towards them
and did that "work"?

Dirk Bulinckx. 

-----Original Message-----
From: Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Crump, Mike
Sent: Wednesday, February 13, 2008 5:00 AM
To: Servers Alive Discussion List
Subject: RE: [SA-list] AS/400 checking

Yes.  I5/OS V5R3 and V5R4. It is our primary OS. 

The answer to your question is sort of.  It is not included in the base
operating system however, as of V5R3 you can implement these functions
using 5733-SC1 IBM Portable Utilities for i5/OS. 

http://www-03.ibm.com/servers/enable/site/porting/tools/openssh.html

The number of systems using PASE and Portable utilities is unknown but
should be growing at a decent rate.  PASE is how servers like Zend PHP
are utilized.

Michael Crump
 
Manager, Computing Services
Saint-Gobain Containers, Inc.
1509 S. Macedonia Ave.
Muncie, IN  47302
765.741.7696
765.741.7012 f 

Potential
Not everyone gets to be an astronaut when they grow up.
This email and its attachments may be confidential and are intended
solely for the use of the individual to whom it is addressed. Any views
or opinions expressed are solely those of the author and do not
necessarily represent those of Saint-Gobain.  If it did, it would be
folded, mutilated, watered down, politically corrected, and would show
up a week later if at all.  If you are not the intended recipient of
this email and its attachments, you must take no action based upon them,
nor must you copy or show them to anyone.
Please contact the sender if you believe you have received this email in
error.
 
-----Original Message-----
From: Servers Alive Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Dirk Bulinckx
Sent: Tuesday, February 12, 2008 6:30 PM
To: Servers Alive Discussion List
Subject: [SA-list] AS/400 checking

We would like to know if some of you are "still" using AS/400 systems
and if so what OS is running on them and IF this OS has an SSH server.
You can OR answer via the listserver or directly to us.




Dirk Bulinckx.

To unsubscribe send a message with UNSUBSCRIBE as subject to
[email protected] If you use auto-responders (like out-of-the-office
messages), then make sure that they are not send to the list nor to the
individual members of the list that send a message.  Doing this will get
you removed from the list.

To unsubscribe send a message with UNSUBSCRIBE as subject to
[email protected] If you use auto-responders (like out-of-the-office
messages), then make sure that they are not send to the list nor to the
individual members of the list that send a message.  Doing this will get
you removed from the list.

To unsubscribe send a message with UNSUBSCRIBE as subject to
[email protected] If you use auto-responders (like out-of-the-office
messages), then make sure that they are not send to the list nor to the
individual members of the list that send a message.  Doing this will get
you removed from the list.

To unsubscribe send a message with UNSUBSCRIBE as subject to
[email protected] If you use auto-responders (like out-of-the-office
messages), then make sure that they are not send to the list nor to the
individual members of the list that send a message.  Doing this will get
you removed from the list.

To unsubscribe send a message with UNSUBSCRIBE as subject to
[email protected] If you use auto-responders (like out-of-the-office
messages), then make sure that they are not send to the list nor to the
individual members of the list that send a message.  Doing this will get
you removed from the list.

To unsubscribe send a message with UNSUBSCRIBE as subject to [email protected]
If you use auto-responders (like out-of-the-office messages), then make sure 
that they are not send to the list nor to the individual members of the list 
that send a message.  Doing this will get you removed from the list.

Reply via email to