UNIX tools are so flexible that hunting for a way to login and do checksums is like hunting for a programming language designed to print the letter 'A'. Not likely someone's going to have had the exact same problem as you, but you can use things you know and put them together... like ssh, and loops:
If you know how to verify the checksum on a local server, you know how to do so on a remote server: Just write the code between the <<"EOF" and EOF. No local variables will make it in except ones you put on the commandline, like where "filename" "checksum" "path" is.
If you don't, I'll need more information on what exactly you're trying to do -- what form of checksum for example.
Hi
Can someone help me to figure out
Want to execute few cmds in remote host thru ssh
Tried below cmd
-------------------------------excerpt-------------------
RDIR=/data1/logs ---> variable stores rem. server directory
TODAY="`date '+%b %d'`"
ssh -i $userid@$host "cd... (2 Replies)
Hi all!
I am trying to write a script that will check if a certain directory is available at several different nodes and then do stuff in it .....
On the beginning of the script I give as a variable the directory and the number of the nodes and then I loop like this:
for... (3 Replies)
Hello,
I am running into few issues, please suggest me what I am missing.
I am running this script on a linux host.
Main idea of this script is to, login to each host via ssh and get uid of user, service user that I trying to run this script, has already deployed ssh keys and provide sudo... (8 Replies)
Hello,
I have access to several linux servers (mostly centos based) located in a DC in another country.
from day to day I need to login to each of them to do some work (they dont have gui/window manager installed, I work only from console), or even to just do a check like df -h for disc usage.... (3 Replies)
I am having the 15 servers which need to do the monitoring
Hi I need a shell script, By which i can log in to multiple servers and execute the commands.. I need to specify the username and password in the scripts.
Please help me to write the script so that it can login with username and... (5 Replies)
Hi,
I want to collect info from a no. of servers whether there grub.conf contain "elevator" parameter or not.
What I want is
sudo cat /etc/grub.conf | grep -q "elevator=noop"; echo $?
If output is "0", I want name of that host in a file called "present"
if its not "0", I want that... (4 Replies)
Hi,
The below command is not giving me the count , Can somebody help me in re-writing this pls .
Proc_Exist=`ssh -q -o "BatchMode=yes" -o "PasswordAuthentication=no" $OAUSER@${Primary_Node} ps -ef |
grep -v grep | grep "${ICM_Proc}" |wc -l `
Also the same problem with below... (13 Replies)
Hi
I need to write a script to ssh through several hops (e.g. HostA-HostB-HostC-HostD), where Host A does not have direct assess to HostC ; HostB cannot access HostD directly.
when I ssh 3 hops and run command with arg1, arg2 and redirect the output to a file, e.g.
HostA> ssh -t HostB ssh -t... (3 Replies)
Hello,
We use as bash script to connect to servers listed in an .csv file to issue commands against these servers and retrieve data to be saved in a .csv file. The data we want to collect is saved in variables. We issue an ssh command for each variable we want to capture. I'm thinking this is... (9 Replies)
Discussion started by: greavette
9 Replies
LEARN ABOUT REDHAT
cksum
cksum(n) cksum cksum(n)
NAME
cksum - calculate a cksum(1) compatible checksum
SYNOPSIS
package require Tcl 8.2
package require cksum ?1.0?
::crc::cksum ?-format format? message
::crc::cksum ?-format format? -filename file
DESCRIPTION
This package provides a Tcl-only implementation of the cksum(1) algorithm based upon information provided at in the GNU implementation of
this program as part of the GNU Textutils 2.0 package.
COMMANDS
::crc::cksum ?-format format? message
::crc::cksum ?-format format? -filename file
The command takes string data or a file name and returns a checksum value calculated using the cksum(1) algorithm. The result is
formatted using the format(n) specifier provided or as an unsigned integer (%u) by default.
OPTIONS -filename name
Return a checksum for the file contents instead of for parameter data.
-format string
Return the checksum using an alternative format template.
EXAMPLES
% crc::cksum "Hello, World!"
2609532967
% crc::cksum -format 0x%X "Hello, World!"
0x9B8A5027
% crc::cksum -file cksum.tcl
1828321145
SEE ALSO
sum(n), crc32(n)
AUTHORS
Pat Thoyts
KEYWORDS
cksum, checksum, crc, crc32, cyclic redundancy check, data integrity, security
crc 1.0 cksum(n)