Re: pycon italy talk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael DeHaan wrote:
Incidentally I had some discussions with various people yesterday about
cleaning up output and making the command line
more useful for users who are just using the command line as opposed to
Python scripting (which is where I love Func most).
If anyone has any ideas on that, it's a good time to discuss all of that.

--Michael

I suppose I can field at least some of the blame here, so I'll supply a
simple use case scenario that would make it a lot easier on sysadmins
who just want to 'touch' a batch of systems with a known command:

1: updates. Its rather tedious and time consuming to ssh into 20, 40, 60
systems just to run up2date -u or yum update etc etc. Enter func - I can
batch apply updates to systems in stages (pre-defined groups) and reboot
for new kernels etc where needed in rolling fashion much easier.

However currently getting that output from a large number of systems is
painful. In my mind on this front there are two things that could be
done here: first is to output the text as per normal remote ssh command
execution. The second only applies to corner cases, certain 'audit'
scenarios etc and that is to output the text into rss, atom etc that can
be put into a wiki, webpage etc fairly easily.

If you're just using "command", then yes, we do need some form of raw output mode, even if it's just as simple as

system X:
output here

system Y:
output here

And that should probably be the default. The thing is, in the case of yum update, you really only need to know what succeeds or fails, so you need even less than that. So func just gives you return codes. Are you saying you want the full output for each system or better formatted return codes?

We're really not trying to match up the output for SSH against one system because it's not always going to be run against one system,
though I can see in some cases it may be used against just a handful.

There's an interesting line to walk between concentrating on the scripting cases and "for humans" usage. I think the primary focus of Func is clearly on the former, but we need the command line to be workable too for people who are testing things out.

my 0.02

- --
# Paul Lundin
# plundin@xxxxxxxxxx
# GPG key: 2DE452BE
# Senior Systems Administrator
# Red Hat inc     http://www.redhat.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFILbcg6KVQKC3kUr4RAqRuAKC/Pv3R31wPG43NBpiHT8qvmdnVJwCgrtmu
HJ6hrohQFD2n//UQgQls7cs=
=3Eyl
-----END PGP SIGNATURE-----

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux