<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Aaron,<br>
<br>
The goal is not to just run one line command but feed a command-list
file like we typically do on rancid. An example below of my command
list.<br>
<br>
sed -e 's/x.x.x.x/y.y.y.y/g' srcfile1 > tmpfile<br>
mv tmpfile srcfile1<br>
sed -e 's/snmp-community/xyz/g' srcfile2 > tmpfile<br>
mv tmpfile srcfile2<br>
<br>
There are many commands like that. In short, I need to mass change snmp
agent configuration file on all servers with new trap destination, new
snmp string etc. This is just an example but the changes I need takes
roughly 18 commands. If this could be achieved by the ssh syntax you
suggested, I am all up for that.<br>
<br>
Thanks,<br>
sam<br>
<blockquote cite="mid:1200337011.7531.69.camel@preto" type="cite">
<pre wrap="">On Mon, 2008-01-14 at 12:54 -0600, Sam Munzani wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
Did anybody ever explored leveraging rancid frame work for unix login
and mass changes? I have a need to make edit some files on 200+ servers.
I was thinking to take F5 rancid files, hack it a bit(to do sudo instead
of cisco enable) and share with a team. However if somebody already
worked on this aspect, why reinvent the wheel? I can carry forward and
tune(if any required) and share with the team.
</pre>
</blockquote>
<pre wrap=""><!---->
How about "for a in $LIST; do ssh $a $CMD; done"? I think trying to use
rancid might be reinventing the wheel for something SSH might already be
capable of doing.
</pre>
</blockquote>
<br>
</body>
</html>