Re: [Spacewalk-list] spacecmd fails with

2019-08-13 Thread Michael Mraka
Engler, Axel [extern]:
> Any news  about this Error:
> 
> ERROR: Failed to connect to https://localhost/rpc/api

Hello Axel,

You can debug connection to https://localhost/rpc/api e.g.  with

  curl -vv https://localhost/rpc/api

> Freundliche Grüße
> --
> Axel Engler
> externer Mitarbeiter


Regards,

--
Michael Mráka
System Management Engineering, Red Hat

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd

2019-07-30 Thread Michael Mraka
Ananta Chakravartula:
> It doesn't work with out tty.

It works for me:

$ cat >spacecmd-tty-test.sh <<'EOF'
#!/bin/bash
echo connected to $(tty)
spacecmd --user admin --password mypassword system_list
EOF
$ chmod a+x spacecmd-tty-test.sh

$ ./spacecmd-tty-test.sh
connected to /dev/pts/0
INFO: Spacewalk Username: admin
INFO: Connected to https://spacewalk.example.com/rpc/api as admin
server1.example.com : 110016
server2.example.com : 110011
server3.example.com : 110014

$ nohup ./spacecmd-tty-test.sh
nohup: ignoring input and appending output to `nohup.out'
$ cat nohup.out
connected to not a tty
INFO: Spacewalk Username: admin
INFO: Connected to https://spacewalk.example.com/rpc/api as admin
server1.example.com : 110016
server2.example.com : 110011
server3.example.com : 110014
$ rpm -q spacecmd
spacecmd-2.9.9-1.el7.noarch
 
> Ananta

Regards,

--
Michael Mráka
System Management Engineering, Red Hat

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd

2019-07-30 Thread Ananta Chakravartula
It doesn't work with out tty.

Ananta


sent from my phone. Sory fer eny typeos

On Tue, Jul 30, 2019, 5:24 AM Michael Mraka 
wrote:

> Ananta Chakravartula:
> > I got spacewalk setup using chef and I run some spacecmd commands part of
> > the recipe ( using execute resource), but chef-client fails with error
> >
> > ```
> > chef-client[32220]: Spacewalk Password: ERROR:
> > chef-client[32220]: Warning: Password input may be echoed.
> > chef-client[32220]:   passwd = fallback_getpass(prompt, stream)
> > chef-client[32220]: /usr/lib64/python2.7/getpass.py:83:
> GetPassWarning:
> > Can not control echo on the terminal.
> > chef-client[32220]: Spacewalk Password: ERROR:```
> > ```
> >
> > I do have ~/.spacecmd/config , but looks like spacecmd is looking for
> tty.
> > It doesn't error when i run chef-client manually.
>
> Hello Ananta,
>
> You can specify user/password on command line:
>
> $ spacecmd --user satuser --password satpwd ...
>
> >
> >
> > Cheers,
> > Ananta
>
> Regards,
>
> --
> Michael Mráka
> System Management Engineering, Red Hat
>
>
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd

2019-07-30 Thread Michael Mraka
Ananta Chakravartula:
> I got spacewalk setup using chef and I run some spacecmd commands part of
> the recipe ( using execute resource), but chef-client fails with error
> 
> ```
> chef-client[32220]: Spacewalk Password: ERROR:
> chef-client[32220]: Warning: Password input may be echoed.
> chef-client[32220]:   passwd = fallback_getpass(prompt, stream)
> chef-client[32220]: /usr/lib64/python2.7/getpass.py:83: GetPassWarning:
> Can not control echo on the terminal.
> chef-client[32220]: Spacewalk Password: ERROR:```
> ```
> 
> I do have ~/.spacecmd/config , but looks like spacecmd is looking for tty.
> It doesn't error when i run chef-client manually.

Hello Ananta,

You can specify user/password on command line:

$ spacecmd --user satuser --password satpwd ...
 
> 
> 
> Cheers,
> Ananta

Regards,

--
Michael Mráka
System Management Engineering, Red Hat

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd ssm -> UI

2019-01-09 Thread Robert Paschedag
Am 9. Januar 2019 23:02:45 MEZ schrieb Guy Matz :
>Hi!  I'd like to add systems to a System Set using 'spacecmd ssm_add
>HOSTNAME' command, then act on the SSM group using the UI . . .  is
>that
>possible?  I need to use the UI because I need to create an action
>chain
>for the group, which is apparently not possible to done in spacecmd . .
>.
>
>Thanks,
>Guy

Well... If you need to use the UI, then you can also add the systems via the UI 
into SSM.

Or you use the API.
Robert


-- 
sent from my mobile device

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd invalid password issue on spacewalk 2.7

2018-09-20 Thread Bill Howe
Try clearing your spacecmd cache.

spacecmd clear_caches

Bill


On Tue, Aug 28, 2018 at 1:46 AM  wrote:

> HI,
>
>
>
> I facing issue while running spacecmd command it always say invalid
> password . when I restart spacewalk service it working fine 2 or attempts
> after the same issue occurred.  Please help how to fix it I am running with
> spacewalk 2.7 on centos
>
>
>
> WARNING: Cached credentials are invalid
>
> INFO: Spacewalk Username: admin
>
> Spacewalk Password:
>
> ERROR: Invalid credentials
>
>
>
> Best Regards,
>
> *Suhail Siddiqui*
>
> --
> Please note. The information contained in this message is confidential and
> is intended only for the use of the individual named above and others who
> have been specially authorized to receive it. If you are not the intended
> recipient, you are hereby notified that any dissemination, distribution or
> copying of this communication is strictly prohibited. The attachments have
> been scanned for viruses prior to leaving our E-mail system. UPM-Kymmene
> Corporation shall not be liable for any consequences of any virus being
> passed on.
> ___
> Spacewalk-list mailing list
> Spacewalk-list@redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd & action chains?

2018-08-17 Thread Guy Matz
Seems like there's a lot of "wheel reinvention" when it comes to
administering spacewalk . . .  does anyone out there have a script that
sets up an action chain?

On Fri, Aug 17, 2018 at 1:47 AM Tomáš Kašpárek  wrote:

> Hello,
>
> action chain functionality is not implemented in spacecmd. You can however
> use regular Spacewalk XMLRPC API for actionchain (see actionchain
> namespace).
>
> Tomas
>
> On 08/16/2018 11:41 PM, Guy Matz wrote:
>
> Is it possible to set up action chains using the spacecmd CLI?  I'd rather
> not have to click through the UI . . .  on a related note, is it possible
> to store scripts to be used for "remote command"?
>
>
> ___
> Spacewalk-list mailing 
> listSpacewalk-list@redhat.comhttps://www.redhat.com/mailman/listinfo/spacewalk-list
>
>
> ___
> Spacewalk-list mailing list
> Spacewalk-list@redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd & action chains?

2018-08-16 Thread Tomáš Kašpárek

Hello,

action chain functionality is not implemented in spacecmd. You can 
however use regular Spacewalk XMLRPC API for actionchain (see 
actionchain namespace).


Tomas

On 08/16/2018 11:41 PM, Guy Matz wrote:
Is it possible to set up action chains using the spacecmd CLI?  I'd 
rather not have to click through the UI . . .  on a related note, is 
it possible to store scripts to be used for "remote command"?



___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd 2.6.16-1.el6.rpm with SpaceWalk 2.5?

2017-04-20 Thread Michael Mraka
Matthias Gruber:
> Hi!
> 
> I just added my EPEL-channel to my SpaceWalk 2.5  Server and  a yum update 
> told me that there is a new spacecmd-package (2.6.16-1.el6) available.
> 
> Is it okay to use the 2.6 spacecmd with my 2.5 Spacewalk or should I 
> exclude that update till I update my SpaceWalk to Version 2.6, what I dont 
> think will be done in the near future.

Hi Matthias,

you can use spacecmd 2.6 with Spacewalk server 2.5. There's no problem
we are aware of.

> Any clues or hints are welcome.
> 
> cheers
> Matthias

Regards,

--
Michael Mráka
System Management Engineering, Red Hat

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd ports

2015-07-30 Thread Bosch, Fabian (BITBW)
May be a stupid hint but:

Have you entred your proxy in the clients up2date file?
/etc/sysconfig/rhn/up2date
Or even in the rhn.conf (if you ONLY install from spacewalk-server and not from 
www-sources)

Regards,

Fabian Bosch
Referat 34 – Open Source

IT Baden-Württemberg (BITBW)
Krailenshaldenstraße 44
70469 Stuttgart
Telefon: +49 711 8910-94476
Telefax: +49 711 8910-17575
E-Mail: fabian.bo...@bitbw.bwl.demailto:fabian.bo...@bitbw.bwl.de
Internet: www.bitbw.de

Von: spacewalk-list-boun...@redhat.com 
[mailto:spacewalk-list-boun...@redhat.com] Im Auftrag von Matthew Madey
Gesendet: Mittwoch, 29. Juli 2015 22:42
An: spacewalk-list@redhat.com
Betreff: [Spacewalk-list] spacecmd ports

I had assumed spacecmd only used ports 80 and or 443. Is that not the case? I 
need to use an http/s proxy in a script to reach a Spacewalk server via 
spacecmd, but it just times out. After exporting the proxy in my script as a 
variable, I can wget the login page for the Spacewalk server, but spacecmd 
still fails. Is it using another port I'm not aware of? I ran netstat -tunlap | 
grep spacecmd while executing commands and the only port I saw was 443..

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd package_search not working

2015-05-11 Thread Tomas Lestach
Hello,

I've found the root cause of your problem. Feel free to apply the patch [1] 
manually.
As it affects all spacecmd commands, I hope, I didn't break anything else.

Regards,
--
Tomas Lestach
Red Hat Satellite Engineering, Red Hat

[1] 
https://github.com/spacewalkproject/spacewalk/commit/ffd53a926df0ef997eb40d2dd4eae656208a777e


- Original Message -
 From: Les Marstaeller l...@lesm.id.au
 To: spacewalk-list@redhat.com
 Sent: Monday, April 20, 2015 8:29:13 AM
 Subject: [Spacewalk-list] spacecmd package_search not working
 
 Hi,
 
 Has anyone had similar problems with spacecmd?
 
 I am running /usr/bin/spacecmd --username=satadmin --password=x
 package_search kernel but getting no search results back. GUI
 confirms
 there is 112 RPM's that it should hit on!
 
 Have also tried kernel* as well but no results...
 
 Thanks,
 
 Les
 
 
 
 --
 -BEGIN PGP PUBLIC KEY BLOCK-
 Version: GnuPG v1
 
 mQENBFMJ1RwBCADnrXElTCTAyXFcRRhTTwlWoWQgwAgcmP0uWnT+5ctpDSqmBDpC
 PANHdyWa/dZ9Hd5NGvS8E1ZOlSmPIewmTWwO06VeLEwB0LVmP6nqpUOWJtAdcm0T
 dg3tXGa5H/sS01GrfmrL7ZRFWKzclG/5DbC5gLLnpch3HCtm4XCiME0DmXIapXag
 n/xQy7wviqCClMPzPY0HK5AYaiUd9HvUpPEJ5tqwUH8VCfNnNi1KOfaHVNF0MKNV
 cMzdwDYCUtxFnChVcJygxA11BAhjYmaYYifIwWGsG5lH2LMWamH5Uf3th7IoauLE
 whdNKCU1GS4Uix0wfjjhi8q/YTlUWCZDugf9ABEBAAG0IExlcyBNYXJzdGFlbGxl
 ciA8bGVzQGxlc20uaWQuYXU+iQE+BBMBAgAoBQJTCdUcAhsjBQkDwmcABgsJCAcD
 AgYVCAIJCgsEFgIDAQIeAQIXgAAKCRBzzo9wFybTwY2VB/oDe5Bs3E3SLeOeLqto
 W1FkJNHQAl4eCd2I+bffOwB7p5c2ICMvSX2IYtQQRJ+2OszJWtP9Yk8N3CmwFBQF
 rMPCnvhrbWo6Fsaf2X4zBHp1lHXWdQWOPyLzsPaYeaDPyu3TtfvB5nTYSOMYSPBg
 i/iCYIcdM/M49oAvLtTBWHKyjS/R++JkI5H6QCn6gotBS5pupkGydjQ7d3kz6lC5
 Nw6SlNX6pWRJ+xh0/uHeK4ALzjDYN6j3N1zwtN9c9b8UoeKUQ1b5SgOy2FJtBsMR
 TMFqZNgdc+zOkgC7eHBZDKT1Dm5hgUnZoxMzQu3XZiS9CyXpBwMD+Djm8+DVplft
 Q++IuQENBFMJ1RwBCACrXml12RlhiJyMEVKfVbUSKGIVObwBSb2OlGnNqG08NGXH
 BB4hLT58pFqvJxvTDFeR0J2lUTuv83rSeBd0AQjRXVPEfrHea4eJcX7WxdPisjxF
 xszEZAJBuJDJO7z0amLWio2q4ydOl3Hik9t2TFjXLUDc781z22O3Mvm2c7fW9DoP
 DyBHZ7NTvA0QRyE3l9EFaq+WHNH7i0hLhDvQzl3iL4L+7rrjLJvsyytSibjmlzSJ
 IAh6ikW0rfk+lpvnybGpH8O4uDgirtlWRTCtMXJ4HiMtjpD0/FWFlgo7iJiqvP1z
 N5pg1lFgbxeSJJ2pnppnPxhx6+oqavOTlZJcggG7ABEBAAGJASUEGAECAA8FAlMJ
 1RwCGwwFCQPCZwAACgkQc86PcBcm08EVkwgA4zUcNFH3Mdcj+Ezg2NyKx0rHYSTg
 ZrlX6ODXRLcblSOmc2fGodON3fYplBKJMEaJEc4eAC6jLtzg9Ak7Qiwdc3V3feE3
 AqiXQW9o/q/wSTiAJyfJQUojhsoEXAJMY7Mg8en1bcNXk0vIwqpbCApj5mIIXXLa
 fR14PU7Rkwosbhi8d95JovDnNaF8IC7t2cwKhrBYuh/rWOwq4VAQQl97/rRDkitA
 K/SCaZCZ4I6Ug0DaLckdFBmeTCfpxjy7l2t58q5HGRma11pA4GxAVKmHw5wx/hPw
 fIAm2XWIV9wSwh8Q5dwY+lDvOYhHDd4QZ9HKH/VJqJ0kibTMJ+cDzNBAgg==
 =S3x0
 -END PGP PUBLIC KEY BLOCK-
 
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list
 

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd package_search not working

2015-05-11 Thread Les Marstaeller
Thanks Thomas! I'll pull it down during the day or two and let you know.

Thanks again,

Les

Sent from my Samsung Galaxy S3



-Original Message-
From: Tomas Lestach tlest...@redhat.com
To: spacewalk-list@redhat.com
Sent: Mon, 11 May 2015 9:44 PM
Subject: Re: [Spacewalk-list] spacecmd package_search not working

Hello,

I've found the root cause of your problem. Feel free to apply the patch [1] 
manually.
As it affects all spacecmd commands, I hope, I didn't break anything else.

Regards,
--
Tomas Lestach
Red Hat Satellite Engineering, Red Hat

[1] 
https://github.com/spacewalkproject/spacewalk/commit/ffd53a926df0ef997eb40d2dd4eae656208a777e


- Original Message -
 From: Les Marstaeller l...@lesm.id.au
 To: spacewalk-list@redhat.com
 Sent: Monday, April 20, 2015 8:29:13 AM
 Subject: [Spacewalk-list] spacecmd package_search not working
 
 Hi,
 
 Has anyone had similar problems with spacecmd?
 
 I am running /usr/bin/spacecmd --username=satadmin --password=x
 package_search kernel but getting no search results back. GUI
 confirms
 there is 112 RPM's that it should hit on!
 
 Have also tried kernel* as well but no results...
 
 Thanks,
 
 Les
 
 
 
 --
 -BEGIN PGP PUBLIC KEY BLOCK-
 Version: GnuPG v1
 
 mQENBFMJ1RwBCADnrXElTCTAyXFcRRhTTwlWoWQgwAgcmP0uWnT+5ctpDSqmBDpC
 PANHdyWa/dZ9Hd5NGvS8E1ZOlSmPIewmTWwO06VeLEwB0LVmP6nqpUOWJtAdcm0T
 dg3tXGa5H/sS01GrfmrL7ZRFWKzclG/5DbC5gLLnpch3HCtm4XCiME0DmXIapXag
 n/xQy7wviqCClMPzPY0HK5AYaiUd9HvUpPEJ5tqwUH8VCfNnNi1KOfaHVNF0MKNV
 cMzdwDYCUtxFnChVcJygxA11BAhjYmaYYifIwWGsG5lH2LMWamH5Uf3th7IoauLE
 whdNKCU1GS4Uix0wfjjhi8q/YTlUWCZDugf9ABEBAAG0IExlcyBNYXJzdGFlbGxl
 ciA8bGVzQGxlc20uaWQuYXU+iQE+BBMBAgAoBQJTCdUcAhsjBQkDwmcABgsJCAcD
 AgYVCAIJCgsEFgIDAQIeAQIXgAAKCRBzzo9wFybTwY2VB/oDe5Bs3E3SLeOeLqto
 W1FkJNHQAl4eCd2I+bffOwB7p5c2ICMvSX2IYtQQRJ+2OszJWtP9Yk8N3CmwFBQF
 rMPCnvhrbWo6Fsaf2X4zBHp1lHXWdQWOPyLzsPaYeaDPyu3TtfvB5nTYSOMYSPBg
 i/iCYIcdM/M49oAvLtTBWHKyjS/R++JkI5H6QCn6gotBS5pupkGydjQ7d3kz6lC5
 Nw6SlNX6pWRJ+xh0/uHeK4ALzjDYN6j3N1zwtN9c9b8UoeKUQ1b5SgOy2FJtBsMR
 TMFqZNgdc+zOkgC7eHBZDKT1Dm5hgUnZoxMzQu3XZiS9CyXpBwMD+Djm8+DVplft
 Q++IuQENBFMJ1RwBCACrXml12RlhiJyMEVKfVbUSKGIVObwBSb2OlGnNqG08NGXH
 BB4hLT58pFqvJxvTDFeR0J2lUTuv83rSeBd0AQjRXVPEfrHea4eJcX7WxdPisjxF
 xszEZAJBuJDJO7z0amLWio2q4ydOl3Hik9t2TFjXLUDc781z22O3Mvm2c7fW9DoP
 DyBHZ7NTvA0QRyE3l9EFaq+WHNH7i0hLhDvQzl3iL4L+7rrjLJvsyytSibjmlzSJ
 IAh6ikW0rfk+lpvnybGpH8O4uDgirtlWRTCtMXJ4HiMtjpD0/FWFlgo7iJiqvP1z
 N5pg1lFgbxeSJJ2pnppnPxhx6+oqavOTlZJcggG7ABEBAAGJASUEGAECAA8FAlMJ
 1RwCGwwFCQPCZwAACgkQc86PcBcm08EVkwgA4zUcNFH3Mdcj+Ezg2NyKx0rHYSTg
 ZrlX6ODXRLcblSOmc2fGodON3fYplBKJMEaJEc4eAC6jLtzg9Ak7Qiwdc3V3feE3
 AqiXQW9o/q/wSTiAJyfJQUojhsoEXAJMY7Mg8en1bcNXk0vIwqpbCApj5mIIXXLa
 fR14PU7Rkwosbhi8d95JovDnNaF8IC7t2cwKhrBYuh/rWOwq4VAQQl97/rRDkitA
 K/SCaZCZ4I6Ug0DaLckdFBmeTCfpxjy7l2t58q5HGRma11pA4GxAVKmHw5wx/hPw
 fIAm2XWIV9wSwh8Q5dwY+lDvOYhHDd4QZ9HKH/VJqJ0kibTMJ+cDzNBAgg==
 =S3x0
 -END PGP PUBLIC KEY BLOCK-
 
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list
 

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd - cannot change group from client

2014-10-02 Thread Glen Collins
Ok. Well the more desperate I become the more weird things I try. It seems what 
was happening is the cache was somehow effecting the operation. If I clear the 
cache the command works. So my fix was run: 



spacecmd -s $IP -u admin -p password clear_caches 
spacecmd -s $IP -u admin -p password group_addsystems $select $hostname 

And it seems to work every time now. Do I get points for answering my own 
question? lol 

Anyway, thought I would put the fix out there just in case someone else has 
the same issue. 

Regards, 

Glen Collins 

- Original Message -

Hi all. 

Anyone know a reason why the spacecmd has issues doing a group_addsystems 
from the client? It works fine on the spacewalk server itself. But if I do it 
from the client I see the following in the api log: 

Failed: 

[2014-10-02 10:09:29,583] INFO - REQUESTED FROM: 10.xxx.xxx.xx CALL: 
auth.login(admin, ) CALLER: (admin) TIME: 0.099 seconds 


[2014-10-02 10:09:29,673] INFO - REQUESTED FROM: 10.xxx.xxx.xx CALL: 
systemgroup.addOrRemoveSystems(admin, Management-Servers, [] , true) CALLER: 
(admin) TIME: 0.025 seconds 
[2014-10-02 10:10:25,198] INFO - REQUESTED FROM: 10.xxx.xxx.xx CALL: 
api.getVersion() CALLER: (admin) TIME: 0.002 seconds 




Success: 




[2014-10-02 10:10:25,397] INFO - REQUESTED FROM: 10.xxx.xxx.xx CALL: 
auth.login(admin, ) CALLER: (admin) TIME: 0.134 seconds 
[2014-10-02 10:10:25,488] INFO - REQUESTED FROM: 10.xxx.xxx.xx CALL: 
system.listSystems(admin) CALLER: (admin) TIME: 0.019 seconds 
[2014-10-02 10:10:26,129] INFO - REQUESTED FROM: 10.xxx.xxx.xx CALL: 
systemgroup.addOrRemoveSystems(admin, Management-Servers, [110050], true) 
CALLER: (admin) TIME: 0.576 seconds 




Seems to me spacecmd does not send the spacewalk system id or knows how to get 
it so it can send. See the highlighted sections above. Just wondering if this 
is normal. What I'm trying to do is give the installer a script to add the 
server to a specific group during an install. 




If anyone can help or set me straight I would appreciate it. 




Thanks 




Glen Collins 

___ 
Spacewalk-list mailing list 
Spacewalk-list@redhat.com 
https://www.redhat.com/mailman/listinfo/spacewalk-list 

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd kickstart_addoption not working in 2.1 and 2.2

2014-08-19 Thread Bill Gunter
Never mind, I found it. Gotta put a -- in there in just the right place. 
This works:

spacecmd {SSM:0} kickstart_addoption oel-5-64 auth -- --enablenis ...
spacecmd {SSM:0} 

--
Bill Gunter, RHCSA  | Unix Administrator | National Instruments Ireland | 
bill.gun...@ni.com  | Ph:+353 1 247 5935



From:   Bill Gunter bill.gun...@ni.com
To: spacewalk-list@redhat.com, 
Date:   19/08/2014 14:18
Subject:[Spacewalk-list] spacecmd kickstart_addoption not working 
in 2.1  and 2.2
Sent by:spacewalk-list-boun...@redhat.com



Hello, 

Trying to use spacecmd kickstart_addoption ... to change an advanced 
option in a profile and it's giving me an error. For example

spacecmd {SSM:0} kickstart_addoption oel-5-64 auth --enablenis ...
ERROR: no such option: --enablenis
spacecmd {SSM:0} 

This happens for any valid option for any key. It doesn't like the initial 
-- in front of the value, which is required by the kickstart syntax. 
Should I be escaping in some way?

Thanks, 

Bill

--
Bill Gunter, RHCSA  | Unix Administrator | National Instruments Ireland | 
bill.gun...@ni.com  | Ph:+353 1 247 5935
National Instruments Ireland Resources Ltd.
Unit 302 | Omni Business Park | Swords Road | Santry | Dublin 9
Registered Office: 39/40 Upper Mount Street, Dublin 1
Company Registered No.377471
Tel: +353 1 2475900___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


National Instruments Ireland Resources Ltd.
Unit 302 | Omni Business Park | Swords Road | Santry | Dublin 9
Registered Office: 39/40 Upper Mount Street, Dublin 1
Company Registered No.377471
Tel: +353 1 2475900
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd -- system_runscript to single host or SSM --java error

2013-12-20 Thread Milan Zázrivec
On Friday 13 December 2013 11:11:51 Justin Edmands wrote:
 On Fri, Dec 13, 2013 at 4:46 AM, Milan Zázrivec mzazri...@redhat.comwrote:
  On Thursday 12 December 2013 16:12:01 Justin Edmands wrote:
   Hey,
   Using spacecmd to run a script to a single system or based on systems in
   the SSM.
   
   
   SSM attempt:
   
   spacecmd {SSM:6} system_runscript ssm
   User [root]:
   Group [root]:
   Timeout (in seconds) [600]:
   Start Time [now]:
   Script File [create]:
   
   User:   root
   Group:  root
   Timeout:600 seconds
   Start Time: 20131212T16:06:24
   
   Script Contents
   ---
   #!/bin/bash
   echo hello  /tmp/hello.txt
   
   Systems
   ---
   balcouch1.website.com
   balcouch2.website.com
   balcouch3.website.com
   balpercona1.website.com
   balpercona2.website.com
   balpercona3.website.com
   
   Is this ok [y/N]: y
   ERROR: com.redhat.rhn.common.translation.TranslationException: Could not
   find translator for class redstone.xmlrpc.XmlRpcArray to class
   java.lang.Integer
   spacecmd {SSM:6}
   
   
   
   Single Host attempt:
   
   spacecmd {SSM:6} system_runscript justin.website.com
   User [root]:
   Group [root]:
   Timeout (in seconds) [600]:
   Start Time [now]:
   Script File [create]:
   
   User:   root
   Group:  root
   Timeout:600 seconds
   Start Time: 20131212T16:09:44
   
   Script Contents
   ---
   #!/bin/bash
   echo hello  /tmp/hello
   
   Systems
   ---
   justin.website.com
   
   Is this ok [y/N]: y
   ERROR: com.redhat.rhn.common.translation.TranslationException: Could not
   find translator for class redstone.xmlrpc.XmlRpcArray to class
   java.lang.Integer
  
  Which spacecmd version is this?
  
  -MZ
  
  ___
  Spacewalk-list mailing list
  Spacewalk-list@redhat.com
  https://www.redhat.com/mailman/listinfo/spacewalk-list
 
 Running from server side or client in spacecmd, same results.
 
 [root@hqspacewalk1 ~]# yum list spacecmd
 ...
 spacecmd.noarch  2.0.2-1.el6
 @spacewalk
 
 [11:10:33][jedmands@justin:~]# yum list spacecmd
 ...
 spacecmd.noarch   1.9.4-1.fc19
 @fedora

I can confirm that this problem is present in Spacewalk 2.0, but is already
fixed in current Spacewalk nightly (to be released as Spacewalk 2.1).

Also, this is not a problem in spacecmd, but in spacewalk-java (the server
part of Spacewalk).

-MZ

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd -- system_runscript to single host or SSM --java error

2013-12-13 Thread Milan Zázrivec
On Thursday 12 December 2013 16:12:01 Justin Edmands wrote:
 Hey,
 Using spacecmd to run a script to a single system or based on systems in
 the SSM.
 
 
 SSM attempt:
 
 spacecmd {SSM:6} system_runscript ssm
 User [root]:
 Group [root]:
 Timeout (in seconds) [600]:
 Start Time [now]:
 Script File [create]:
 
 User:   root
 Group:  root
 Timeout:600 seconds
 Start Time: 20131212T16:06:24
 
 Script Contents
 ---
 #!/bin/bash
 echo hello  /tmp/hello.txt
 
 Systems
 ---
 balcouch1.website.com
 balcouch2.website.com
 balcouch3.website.com
 balpercona1.website.com
 balpercona2.website.com
 balpercona3.website.com
 
 Is this ok [y/N]: y
 ERROR: com.redhat.rhn.common.translation.TranslationException: Could not
 find translator for class redstone.xmlrpc.XmlRpcArray to class
 java.lang.Integer
 spacecmd {SSM:6}
 
 
 
 Single Host attempt:
 
 spacecmd {SSM:6} system_runscript justin.website.com
 User [root]:
 Group [root]:
 Timeout (in seconds) [600]:
 Start Time [now]:
 Script File [create]:
 
 User:   root
 Group:  root
 Timeout:600 seconds
 Start Time: 20131212T16:09:44
 
 Script Contents
 ---
 #!/bin/bash
 echo hello  /tmp/hello
 
 Systems
 ---
 justin.website.com
 
 Is this ok [y/N]: y
 ERROR: com.redhat.rhn.common.translation.TranslationException: Could not
 find translator for class redstone.xmlrpc.XmlRpcArray to class
 java.lang.Integer

Which spacecmd version is this?

-MZ

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd -- system_runscript to single host or SSM --java error

2013-12-13 Thread Justin Edmands
On Fri, Dec 13, 2013 at 4:46 AM, Milan Zázrivec mzazri...@redhat.comwrote:

 On Thursday 12 December 2013 16:12:01 Justin Edmands wrote:
  Hey,
  Using spacecmd to run a script to a single system or based on systems in
  the SSM.
 
 
  SSM attempt:
 
  spacecmd {SSM:6} system_runscript ssm
  User [root]:
  Group [root]:
  Timeout (in seconds) [600]:
  Start Time [now]:
  Script File [create]:
 
  User:   root
  Group:  root
  Timeout:600 seconds
  Start Time: 20131212T16:06:24
 
  Script Contents
  ---
  #!/bin/bash
  echo hello  /tmp/hello.txt
 
  Systems
  ---
  balcouch1.website.com
  balcouch2.website.com
  balcouch3.website.com
  balpercona1.website.com
  balpercona2.website.com
  balpercona3.website.com
 
  Is this ok [y/N]: y
  ERROR: com.redhat.rhn.common.translation.TranslationException: Could not
  find translator for class redstone.xmlrpc.XmlRpcArray to class
  java.lang.Integer
  spacecmd {SSM:6}
 
 
 
  Single Host attempt:
 
  spacecmd {SSM:6} system_runscript justin.website.com
  User [root]:
  Group [root]:
  Timeout (in seconds) [600]:
  Start Time [now]:
  Script File [create]:
 
  User:   root
  Group:  root
  Timeout:600 seconds
  Start Time: 20131212T16:09:44
 
  Script Contents
  ---
  #!/bin/bash
  echo hello  /tmp/hello
 
  Systems
  ---
  justin.website.com
 
  Is this ok [y/N]: y
  ERROR: com.redhat.rhn.common.translation.TranslationException: Could not
  find translator for class redstone.xmlrpc.XmlRpcArray to class
  java.lang.Integer

 Which spacecmd version is this?

 -MZ

 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list


Running from server side or client in spacecmd, same results.

[root@hqspacewalk1 ~]# yum list spacecmd
...
spacecmd.noarch  2.0.2-1.el6
@spacewalk

[11:10:33][jedmands@justin:~]# yum list spacecmd
...
spacecmd.noarch   1.9.4-1.fc19
@fedora
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd system_listupgrades not working

2013-08-26 Thread Tomas Lestach
 This is fixed in spacecmd-2.1.6-1. system_listupgrades will filter
 out duplicate packages now with the filter_latest_packages()
 function that was already in place.

Thank you, Aron!

Regards,
--
Tomas Lestach
Red Hat Satellite Engineering, Red Hat

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd system_listupgrades not working

2013-08-15 Thread Tomas Lestach
 Is the removal of duplicates the solution?

I believe it would be the easiest and quickest solution.

 Because default on a
 RHEL-derived system, RPM/YUM leaves the 3 latest kernel-packages on
 the system, so you can boot the system with the old kernel of the
 new kernel is not working for you.

Sure.

 Maybe the better solution would be to check if there are older
 packages on the system. If there are older packages and the version
 to which those packages could be upgraded is already present on the
 system, the upgrades aren't listed. This could also comes in handy
 if you have multiple version of a package on your system. For
 instance, the installation or upgrade of JDK7 by RPM doesn't remove
 the old versions.

java-1.5.0-gcj
java-1.7.0-openjdk
java-1.8.0-openjdk
are different packages. java-1.8.0-openjdk isn't really an upgrade of
java-1.7.0-openjdk. Well, it could be considered as upgrade from the
content point of view, but definitely not from the rpm view.

(For java-1.7.0-openjdk-1.7.0.25-2.3.12.3.fc19.x86_64, package name
is 'java-1.7.0-openjdk' (not java) version is 1.7.0.25,
release 2.3.12.3.fc19, ...)

 If you have 3 older versions of the JDK7 on your
 environment and not the latest, the update gets listed 4 times!!

No. You can have only 'kernel' package installed in multiple versions
on one system.


CC'ing Aron, the author of the spacecmd.

Regards,
--
Tomas Lestach
Red Hat Satellite Engineering, Red Hat


 Once for every old version and once because the latest versions is
 not installed yet. So you get 3 false positives, the same as with
 the kernels.
 
 Regards,
 Andreas
 
 
 
 Van: spacewalk-list-boun...@redhat.com
 [spacewalk-list-boun...@redhat.com] namens Tomas Lestach
 [tlest...@redhat.com]
 Verzonden: donderdag 15 augustus 2013 10:36
 Aan: spacewalk-list@redhat.com
 Onderwerp: Re: [Spacewalk-list] spacecmd system_listupgrades not
 working
 
 Right,
 
 spacecmd system_listupgrades actually uses the
 system.listLatestUpgradablePackages API.
 Output of this API you can check on your spacewalk at
 /rhn/apidoc/handlers/SystemHandler.jsp#listLatestUpgradablePackages
 
 basically for every installed server package, that can be upgraded
 following structure is returned:
 
 string name
 string arch
 string from_version
 string from_release
 string from_epoch
 string to_version
 string to_release
 string to_epoch
 string to_package_id
 
 so you see for every upgradable package the latest package to that
 you may upgrade.
 
 What spacecmd system_listupgrades actually does is it returns a
 package list just according to to_package_id.
 So if you have multiple kernel versions installed, for all the older
 ones the latest kernel is offered as an
 update, what causes the kernel package is listed several times.
 
 An option would be just to remove duplicates from the list.
 
 
 Regards,
 --
 Tomas Lestach
 Red Hat Satellite Engineering, Red Hat
 
 
 - Original Message -
  From: Anthony J Coffman tony.coff...@snapon.com
  To: spacewalk-list@redhat.com
  Sent: Wednesday, August 14, 2013 8:43:54 PM
  Subject: Re: [Spacewalk-list] spacecmd system_listupgrades not
  working
 
 
 
 
 
  I can confirm and maybe explain what is going on. I don’t use this
  function very much but I just tried it on my Spacewalk 2.0 install.
 
 
 
  Here is the spacecmd output for a system that the Spacewalk GUI
  said
  was up to date.
 
 
 
  spacecmd {SSM:0} system_listupgrades centos5server
 
  kernel-PAE-2.6.18-348.12.1.el5.i686
 
  kernel-PAE-2.6.18-348.12.1.el5.i686
 
 
 
  But when I checked what kernel-PAE packages were installed, there
  were 3 installed currently on that system.
 
 
 
  [root@centos5server ~]# rpm -q kernel-PAE
 
  kernel-PAE-2.6.18-348.3.1.el5
 
  kernel-PAE-2.6.18-348.4.1.el5
 
  kernel-PAE-2.6.18-348.12.1.el5
 
 
 
  If I remove the two older kernels and then run the listupgrades
  command it shows no updates
 
 
 
  [root@centos5server ~]# rpm -e kernel-PAE-2.6.18-348.3.1.el5
 
  [root@centos5server ~]# rpm -e kernel-PAE-2.6.18-348.4.1.el5
 
  [root@ centos5server ~]# rhn-profile-sync
 
 
 
  spacecmd {SSM:0} system_listupgrades rich-iweb-10-rv
 
  WARNING: No upgrades available for rich-iweb-10-rv
 
 
 
  Does this explain it? it’s listing the update twice – once for each
  of the out of date kernels. The GUI must have some logic that
  covers
  this case that the API doesn’t have.
 
 
 
  Regards,
 
  --Tony
 
 
 
 
 
 
 
  From: spacewalk-list-boun...@redhat.com
  [mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Andreas
  Dijkman
  Sent: Wednesday, August 14, 2013 11:08 AM
  To: spacewalk-list@redhat.com
  Subject: [Spacewalk-list] spacecmd system_listupgrades not working
 
 
 
  Hi,
 
 
 
 
 
  We currently have some systems configured with spacewalk and wanted
  to play around with spacecmd.
 
 
 
 
 
  The problem is the output of spacecmd system_listupgrades. Somehow
  there is a package-cache or something, because

Re: [Spacewalk-list] spacecmd system_listupgrades not working

2013-08-14 Thread Coffman, Anthony J
I can confirm and maybe explain what is going on.  I don't use this function 
very much but I just tried it on my Spacewalk 2.0 install.

Here is the spacecmd output for a system that the Spacewalk GUI said was up to 
date.

spacecmd {SSM:0} system_listupgrades centos5server
kernel-PAE-2.6.18-348.12.1.el5.i686
kernel-PAE-2.6.18-348.12.1.el5.i686

But when I checked what kernel-PAE packages were installed, there were 3 
installed currently on that system.

[root@centos5server ~]# rpm -q kernel-PAE
kernel-PAE-2.6.18-348.3.1.el5
kernel-PAE-2.6.18-348.4.1.el5
kernel-PAE-2.6.18-348.12.1.el5

If I remove the two older kernels and then run the listupgrades command it 
shows no updates

[root@centos5server ~]# rpm -e kernel-PAE-2.6.18-348.3.1.el5
[root@centos5server ~]# rpm -e kernel-PAE-2.6.18-348.4.1.el5
[root@ centos5server ~]# rhn-profile-sync

spacecmd {SSM:0} system_listupgrades rich-iweb-10-rv
WARNING: No upgrades available for rich-iweb-10-rv

Does this explain it? it's listing the update twice - once for each of the out 
of date kernels.  The GUI must have some logic that covers this case that the 
API doesn't have.

Regards,
--Tony


From: spacewalk-list-boun...@redhat.com 
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Andreas Dijkman
Sent: Wednesday, August 14, 2013 11:08 AM
To: spacewalk-list@redhat.com
Subject: [Spacewalk-list] spacecmd system_listupgrades not working

Hi,

We currently have some systems configured with spacewalk and wanted to play 
around with spacecmd.

The problem is the output of spacecmd system_listupgrades. Somehow there is a 
package-cache or something, because the system_listupgrades-command returns the 
list of not installed packages including the latest kernel-packages.

However in the spacewalk-web-GUI these updates aren't listed. Can someone 
explain or confirm this behavior? We are running Spacewalk 2.0 with Oracle as 
backend.

Met vriendelijke groet,

Andreas Dijkman
Oracle Technical Consultant
Phone: +31(0)50-210 0132 | Mobile: +31(0)6-8115 2982
Cygnishttp://www.cygnis.nl | Stationsweg 3B | 9726 AC Groningen

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd not update sid of server

2013-05-01 Thread Issam Harrathi
Thanks for the answer.


2013/4/29 Parsons, Aron parso...@bit-sys.com

 Hi Issam,
 spacecmd keeps a local cache of server-sid mappings as to not have to hit
 the server constantly for lookups.  If you delete a system outside of
 spacecmd, it does not know to update the cache.  You must manually clear
 the caches (clear_caches command) or wait for it to expire (3600 seconds,
 hardcoded in misc.py).

 Enhancements to this behavior could to be look for that specific exception
 and update the cache automatically or to make the TTLs on the caches
 configurable.

 /aron

 -Original Message-
 Date: Mon, 29 Apr 2013 16:20:35 +0200
 From: Issam Harrathi issam...@gmail.com
 To: spacewalk-list@redhat.com
 Subject: [Spacewalk-list] spacecmd not update sid of server
 Message-ID:
 CAL941vuBKZZYHb0utNd4Hy2ZCa-d0uyZ53=L==
 ndyd5odtc...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1

 Hi all,
 I have a strange problem on spacewalk 1.7:
 i Install my server(apache1.local.org) with spacewalk, then using a
 script I add the custom.system.info myserver==search:hostname:apache1
 spacecmd -u login -p pwd -- systemaddcustomvalue $1 $2 $3 $4 $myserver

 everything works OK
 BUT when i delete the system( system== click on apache1==delete system)
 then i re-install apache1 and rerun myscript the script tell me : ERROR:
 redstone.xmlrpc.XmlRpcFault: No such system - sid = 110035 this is the
 old sid now the sid is 110036.
 Why spacewalk still refer to the old value of sid? and how to tell it that
 the new value is 110036

 Thanks
 -- next part --
 An HTML attachment was scrubbed...
 URL: 
 https://www.redhat.com/archives/spacewalk-list/attachments/20130429/6dacc4e6/attachment.html
 

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd not update sid of server

2013-04-29 Thread Parsons, Aron
Hi Issam,
spacecmd keeps a local cache of server-sid mappings as to not have to hit the 
server constantly for lookups.  If you delete a system outside of spacecmd, it 
does not know to update the cache.  You must manually clear the caches 
(clear_caches command) or wait for it to expire (3600 seconds, hardcoded in 
misc.py).

Enhancements to this behavior could to be look for that specific exception and 
update the cache automatically or to make the TTLs on the caches configurable.

/aron

-Original Message-
Date: Mon, 29 Apr 2013 16:20:35 +0200
From: Issam Harrathi issam...@gmail.com
To: spacewalk-list@redhat.com
Subject: [Spacewalk-list] spacecmd not update sid of server
Message-ID:
CAL941vuBKZZYHb0utNd4Hy2ZCa-d0uyZ53=L==ndyd5odtc...@mail.gmail.com
Content-Type: text/plain; charset=iso-8859-1

Hi all,
I have a strange problem on spacewalk 1.7:
i Install my server(apache1.local.org) with spacewalk, then using a script I 
add the custom.system.info myserver==search:hostname:apache1
spacecmd -u login -p pwd -- systemaddcustomvalue $1 $2 $3 $4 $myserver

everything works OK
BUT when i delete the system( system== click on apache1==delete system) then 
i re-install apache1 and rerun myscript the script tell me : ERROR: 
redstone.xmlrpc.XmlRpcFault: No such system - sid = 110035 this is the old 
sid now the sid is 110036.
Why spacewalk still refer to the old value of sid? and how to tell it that the 
new value is 110036

Thanks
-- next part --
An HTML attachment was scrubbed...
URL: 
https://www.redhat.com/archives/spacewalk-list/attachments/20130429/6dacc4e6/attachment.html

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd softwarechannel_clonetree add errata afterwards or not?

2012-11-19 Thread Jan Pazdziora
On Mon, Sep 17, 2012 at 01:11:54PM +0200, Erling Ringen Elvsrud wrote:
 Hi,
 
 I have started to experiment with spacecmd to maintain channels. I have used
 spacecmd softwarechannel_clonetree to clone my dev-channel to a test-channel.
 Softwarechannel_clonetree does not seem to add any errata to the test
 channel even if
 I have not used the option  -o do not clone any errata.

I just verified that it works fine and as expected on Spacewalk
nightly. What Spacewalk and spacecmd version do you use? I assume you
have erratas in the source channel ...

-- 
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] Spacecmd - strangeness on piping

2012-08-29 Thread Michael Mraka
Jonathan Hoser wrote:
% Hi all,
% 
% I'm using spacecmd in a few places and I noticed a strangeness, that I
% wanted to ask you guys about.
% I'm still running spacewalk-1.6 (on postgres) on a Fedora16 box, maybe
% thats the issue, but then it might not:
% 
% running something like
% spacecmd -q softwarechannel_listsystems fedora16-x86_64
% produces a nice-enough list - just as I expect it:
% hias.mydomain.de
% ibis111.mydomain.de
% ibis138.[...]
% 
% however, writing that list into a file
% spacecmd -q softwarechannel_listsystems fedora16-x86_64  /tmp/f16.txt
% 
% results in a few bad characters written in the beginning of the file:
% ^[[?1034hhias.mydomain.de
% ibis111.mydomain.de
% ibis138...[...]
% 
% Where does that strange string ^[[?1034h come from? It's pretty
% consistent across all pipes of spacecmd that I'm using,
% and its quite irritating, since I haven't been able to discover the why,
% where, and hms? about it.

Hi Jonathan,
It's probably readline library leaking terminal escape sequence to stdout.
See https://bugzilla.redhat.com/show_bug.cgi?id=304181.
I'm not sure how to fix / workaround it.

Regards,

--
Michael Mráka
Satellite Engineering, Red Hat

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] Spacecmd - strangeness on piping

2012-08-29 Thread Parsons, Aron
Python allowed a fairly elegant solution.  Fixed in 
90b55fb528bfd7b00556445010dea62a22f58899.

/aron

-Original Message-
Date: Wed, 29 Aug 2012 09:39:50 +0200
From: Michael Mraka michael.mr...@redhat.com
To: spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] Spacecmd - strangeness on piping
Message-ID: 20120829073950.gb3...@magni.redhat.com
Content-Type: text/plain; charset=utf-8

Jonathan Hoser wrote:
% Hi all,
%
% I'm using spacecmd in a few places and I noticed a strangeness, that I % 
wanted to ask you guys about.
% I'm still running spacewalk-1.6 (on postgres) on a Fedora16 box, maybe % 
thats the issue, but then it might not:
%
% running something like
% spacecmd -q softwarechannel_listsystems fedora16-x86_64 % produces a 
nice-enough list - just as I expect it:
% hias.mydomain.de
% ibis111.mydomain.de
% ibis138.[...]
%
% however, writing that list into a file % spacecmd -q 
softwarechannel_listsystems fedora16-x86_64  /tmp/f16.txt % % results in a few 
bad characters written in the beginning of the file:
% ^[[?1034hhias.mydomain.de
% ibis111.mydomain.de
% ibis138...[...]
%
% Where does that strange string ^[[?1034h come from? It's pretty % 
consistent across all pipes of spacecmd that I'm using, % and its quite 
irritating, since I haven't been able to discover the why, % where, and hms? 
about it.

Hi Jonathan,
It's probably readline library leaking terminal escape sequence to stdout.
See https://bugzilla.redhat.com/show_bug.cgi?id=304181.
I'm not sure how to fix / workaround it.

Regards,

--
Michael Mr?ka
Satellite Engineering, Red Hat

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd errata delete - not clean

2012-05-08 Thread Musayev, Ilya
Figure it out, created a dump of spacewalk db, looked everywhere for the string 
in question and could not find it in DB.

Dug deeper and found that spacecmd cached erratas, systems and login info.

It can be cleared either by delete errata file from ~/.spacecmd/ or via 
clear_caches command in spacecmd shell.

Overall, we probably need an enhancement request for spacecmd maintainer to add 
a time out and invalidate the cache or add a message on errors to drop the 
cache.

From: spacewalk-list-boun...@redhat.com 
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Paul Robert Marino
Sent: Monday, May 07, 2012 6:52 PM
To: spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] spacecmd errata delete - not clean


Could you have erratas that could be applied to a channel but are unpublished?

Or were there any tracebacks or other errors in the web api log while you were 
doing the deletes?

On May 7, 2012 5:02 PM, Musayev, Ilya 
imusa...@webmd.netmailto:imusa...@webmd.net wrote:

 Due to some issues with errata's not picking the packages it should have 
 picked up, I deleted all the erratas via spacecmd errata_delete 
 search:rhel-x86_64-server-5



 Eventhough - it claimed it deleted the erratas, I decided to re-run errata 
 import. Figured I should not have used some flags while it was running, I 
 canceled the rhn_clone script half way. Went in to spacecmd again to delete 
 the erratas I recently imported, it appears the remnants of erratas that were 
 deleted on the first errata_delete still exist. For example, when I want to 
 delete all rhel-x86_64-server-5 errata's for the second time, I get



 errata_delete search: rhel-x86_64-server-5

 ERROR: redstone.xmlrpc.XmlRpcFault: The errata 
 RHBA-2007:0098:rhel-x84_64-server-5 cannot be found.



 Looks like the first delete was not clean or complete as it still seems some 
 errata content



 Regards

 ilya


 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.commailto:Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd system search command problem

2012-05-08 Thread Nathan Butcher
Actually it has fixed some of them, but there are some hosts registered in 
spacewalk without a full FQDN, and these ones don't show up.

and interestingly I have this issue:-

system_search hostname:*

will not show the hosts up, but if I were to be a bit more specific with the 
hostname that I'm looking for

system_search hostname:sis

sis-server (for example) shows up, whereas it wouldn't with a wildcard *.

So my question is two pronged:
(1) why is it doing that, and
(2) how can I ensure that servers register to spacewalk with FQDN? I changed 
/etc/sysconfig/network to ensure that it had the hostname as full FQDN, but 
that's still not working right.

Cheers,


Nathan Butcher nbutc...@dtst.com.au wrote :

 Thanks. This seems to have fixed the problem.
 
 
 
 Jason M. Nielsen jniel...@myriad.com wrote :
 
  Does the system show up in the list of systems but simply does not show 
  up when you search (ie: upper right search field)?
  
  If this is the case its probably the rhn-search service and its index 
  is not updating. Bouncing SW or rebuilding the index will probably 
  correct the situation.
  
  ie:
  service rhn-search cleanindex if I recall can potentially correct it.
  
  On 04/29/2012 08:53 PM, Nathan Butcher wrote:
   Hi,
  
   I am trying to use the spacewalk spacecmd CLI program to generate a 
   list of systems registered in spacewalk via a script (so I can have 
   results in a text file for a report).
  
   To test this, I enter spacecmd from the command line and am using 
   system_search * and system_search hostname:*
   However, some systems just don't show up in the list. I have given the 
   user I log into spacecmd with all the permissions I can give it, and yet 
   some systems still don't show up.
  
   In fact, even within the spacewalk webtop, doing a direct search for a 
   particular system from the search box in the top right corner doesn't 
   work, and yet I can find the system I am looking for in the list of 
   systems.
  
   Am I missing something here? Is there a reason why these hosts aren't 
   showing up?
   Is my CLI command wrong? Is this a bug of some sort? I am using spacewalk 
   1.7
  
   Thanks,
  
  
  
   ___
   NOCC, http://nocc.sourceforge.net
  
  
  
   ___
   Spacewalk-list mailing list
   Spacewalk-list@redhat.com
   https://www.redhat.com/mailman/listinfo/spacewalk-list
  
  
  ___
  Spacewalk-list mailing list
  Spacewalk-list@redhat.com
  https://www.redhat.com/mailman/listinfo/spacewalk-list
 
 ___
 NOCC, http://nocc.sourceforge.net
 
 
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list

___
NOCC, http://nocc.sourceforge.net



___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd errata delete - not clean

2012-05-07 Thread Paul Robert Marino
Could you have erratas that could be applied to a channel but are
unpublished?

Or were there any tracebacks or other errors in the web api log while you
were doing the deletes?

On May 7, 2012 5:02 PM, Musayev, Ilya imusa...@webmd.net wrote:

 Due to some issues with errata’s not picking the packages it should have
picked up, I deleted all the erratas via spacecmd errata_delete
search:rhel-x86_64-server-5



 Eventhough – it claimed it deleted the erratas, I decided to re-run
errata import. Figured I should not have used some flags while it was
running, I canceled the rhn_clone script half way. Went in to spacecmd
again to delete the erratas I recently imported, it appears the remnants of
erratas that were deleted on the first errata_delete still exist. For
example, when I want to delete all rhel-x86_64-server-5 errata’s for the
second time, I get



 errata_delete search: rhel-x86_64-server-5

 ERROR: redstone.xmlrpc.XmlRpcFault: The errata
RHBA-2007:0098:rhel-x84_64-server-5 cannot be found.



 Looks like the first delete was not clean or complete as it still seems
some errata content



 Regards

 ilya


 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd system search command problem

2012-05-02 Thread Nathan Butcher
Thanks. This seems to have fixed the problem.



Jason M. Nielsen jniel...@myriad.com wrote :

 Does the system show up in the list of systems but simply does not show 
 up when you search (ie: upper right search field)?
 
 If this is the case its probably the rhn-search service and its index 
 is not updating. Bouncing SW or rebuilding the index will probably 
 correct the situation.
 
 ie:
 service rhn-search cleanindex if I recall can potentially correct it.
 
 On 04/29/2012 08:53 PM, Nathan Butcher wrote:
  Hi,
 
  I am trying to use the spacewalk spacecmd CLI program to generate a list 
  of systems registered in spacewalk via a script (so I can have results in a 
  text file for a report).
 
  To test this, I enter spacecmd from the command line and am using 
  system_search * and system_search hostname:*
  However, some systems just don't show up in the list. I have given the user 
  I log into spacecmd with all the permissions I can give it, and yet some 
  systems still don't show up.
 
  In fact, even within the spacewalk webtop, doing a direct search for a 
  particular system from the search box in the top right corner doesn't work, 
  and yet I can find the system I am looking for in the list of systems.
 
  Am I missing something here? Is there a reason why these hosts aren't 
  showing up?
  Is my CLI command wrong? Is this a bug of some sort? I am using spacewalk 
  1.7
 
  Thanks,
 
 
 
  ___
  NOCC, http://nocc.sourceforge.net
 
 
 
  ___
  Spacewalk-list mailing list
  Spacewalk-list@redhat.com
  https://www.redhat.com/mailman/listinfo/spacewalk-list
 
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list

___
NOCC, http://nocc.sourceforge.net



___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd system search command problem

2012-05-01 Thread Jason M. Nielsen
Does the system show up in the list of systems but simply does not show 
up when you search (ie: upper right search field)?


If this is the case its probably the rhn-search service and its index 
is not updating. Bouncing SW or rebuilding the index will probably 
correct the situation.


ie:
service rhn-search cleanindex if I recall can potentially correct it.

On 04/29/2012 08:53 PM, Nathan Butcher wrote:

Hi,

I am trying to use the spacewalk spacecmd CLI program to generate a list of 
systems registered in spacewalk via a script (so I can have results in a text file for a 
report).

To test this, I enter spacecmd from the command line and am using system_search * and 
system_search hostname:*
However, some systems just don't show up in the list. I have given the user I 
log into spacecmd with all the permissions I can give it, and yet some systems 
still don't show up.

In fact, even within the spacewalk webtop, doing a direct search for a 
particular system from the search box in the top right corner doesn't work, and 
yet I can find the system I am looking for in the list of systems.

Am I missing something here? Is there a reason why these hosts aren't showing 
up?
Is my CLI command wrong? Is this a bug of some sort? I am using spacewalk 1.7

Thanks,



___
NOCC, http://nocc.sourceforge.net



___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list



___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd config channel export error

2012-02-28 Thread Jan Pazdziora
On Thu, Feb 09, 2012 at 05:53:35PM +0100, VAN LIEDEKERKE Franky ATO-TOB 
wrote:
 
 When using the configchannel_export function of spacecmd, I seem to bump 
 into an error with a specific config channel:
 
 spacecmd {SSM:0} configchannel_export TEST
 INFO: Exporting cc TEST to TEST.json
 INFO: Getting config channel details for TEST
 ERROR: xml declaration not at start of external entity: line 1330, column 15
 
 Any hints on how to debug this?

What is the Spacewalk server version?

What is specific about that config channel?

-- 
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd create child channels?

2010-12-09 Thread Trent Johnson
I have used a script from the wiki to create child channels on version 
1.0 before spacecmd was released.  It works well.


https://fedorahosted.org/spacewalk/attachment/wiki/UploadFedoraContent/create_channel_cli.py


On 12/09/2010 03:23 PM, Adam Yates wrote:

Hi all;
I've been perusing the docs for spacecmd (spacecmd help) but have not
been able
to locate the commands to create child software channels. Can this only
be currently
done via the web interface or have I missed something?

Thanks,
Adam

--
Adam Yates
Systems Administrator -- Research Infrastructure
Center for Computation and Technology
232 Johnston Hall,
Baton Rouge, LA 70803
W: 225.578.8235C: 225.663.0218
ya...@cct.lsu.edu



___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd create child channels?

2010-12-09 Thread Aron Parsons
Use softwarechannel_create and provide it a parent channel; that will create
a child channel.  If you're scripting it, the argument is -p to provide the
parent channel.

/aron

- Original Message -
From: Adam Yates ya...@cct.lsu.edu
To: spacewalk-list@redhat.com
Sent: Thursday, December 9, 2010 4:23:06 PM GMT -05:00 US/Canada Eastern
Subject: [Spacewalk-list] spacecmd create child channels?

Hi all;
I've been perusing the docs for spacecmd (spacecmd help) but have not 
been able
to locate the commands to create child software channels.  Can this only 
be currently
done via the web interface or have I missed something?

Thanks,
Adam

-- 
Adam Yates
Systems Administrator -- Research Infrastructure
Center for Computation and Technology
232 Johnston Hall,
Baton Rouge, LA 70803
W: 225.578.8235C: 225.663.0218
ya...@cct.lsu.edu


___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd usage

2010-12-03 Thread aron
The web UI can definitely do what you want regarding syncing packages.  
However, the APIs 
around synchronizing packages between systems seems to be lacking a little bit 
now that I
look at it.  The API calls to create and compare package profiles are good and 
spacecmd already 
implements those.  system.scheduleSyncPackagesWithSystem could probably be used 
to do what you
want, but the fact that you have to pass it a list of package IDs seems a 
little odd; I guess 
you would get the package list from the system you want to sync with and then 
pass that list, 
but that shouldn't really be necessary since you're already passing both system 
IDs.

As for errata, the way you described is probably the only way to do it.  This 
could be implemented
as a function in spacecmd and probably wouldn't be too difficult.

I'll try to take a look at implementing these in spacecmd for you as they do 
seem useful.

/aron

- Original Message -
From: Marco Shaw marco.s...@gmail.com
To: spacewalk-list@redhat.com
Sent: Friday, December 3, 2010 9:57:34 AM GMT -05:00 US/Canada Eastern
Subject: [Spacewalk-list] spacecmd usage

May be sending to rhn-satellite-users also.

I'm in a particular situation where I need to get a list of packages
from system A, and apply the same set of packages on system B.  I'm
thinking if I can manage this from the command-line using spacecmd,
this will be a more efficient and repeatable process.

spacecmd can list what RPMs are on a system, but doesn't seem to be
able to list what errata has been applied to a system (it can only
list *outstanding* errata?), so I can take that errata list, and apply
that against system B.  Which this last part would seem easy enough
with spacecmd...

I can likely dump all the packages on system A, and grep through the
'spacecmd errata_details' output to build my errata list, but I'd like
to know if there's a more efficient way, than this...

I don't think I could even get this applied errata list from the Satellite UI...

Any ideas?

Marco

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd usage

2010-12-03 Thread Marco Shaw
 As for errata, the way you described is probably the only way to do it.  This 
 could be implemented
 as a function in spacecmd and probably wouldn't be too difficult.

 I'll try to take a look at implementing these in spacecmd for you as they do 
 seem useful.

That would be nice of you.  I hacked something together real quick,
but it is too ugly to post here.  Doing API calls on packages going up
to 2005...  on *every* package is obviously not very efficient!

I didn't look into whether ERRATA could be an array, and then it would
sort of look like one call:
spacecmd system_applyerrata SYSTEMS [ERRATA]

Marco

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd system_list

2010-11-30 Thread Aron Parsons
I just tagged 1.3.2-1 which changes the login behavior a bit.  If you pass
a username and password as arguments, it will ignore the cached session key.
This should address the issue you saw.

/aron

- Original Message -
From: Aaron Prayther aprayt...@lce.com
To: spacewalk-list@redhat.com
Sent: Monday, November 29, 2010 12:30:09 PM GMT -05:00 US/Canada Eastern
Subject: Re: [Spacewalk-list] spacecmd system_list

system_list now works as expected only listing hosts available to the
user credentials presented.  After finding the .spacecmd/host/session
file and 0'ing it out.

Aaron Prayther

-Original Message-
From: spacewalk-list-boun...@redhat.com
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Aron Parsons
Sent: Monday, November 29, 2010 12:16 PM
To: prayt...@gmail.com; spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] spacecmd system_list

The behavior you're seeing on your system is not correct.  The
system.listSystems API 
call that spacecmd uses only lists systems that are visible to the
current user, which
should only be the systems in your organization.  This is the behavior I
see on Spacewalk
1.2.

Can you clear your spacecmd caches and see if you can replicate the
issue?

/aron

- Original Message -
From: aaron prayther prayt...@gmail.com
To: spacewalk-list@redhat.com
Sent: Monday, November 29, 2010 10:39:59 AM GMT -05:00 US/Canada Eastern
Subject: [Spacewalk-list]  spacecmd system_list

spacecmd --username='username1' --password='PASSWD' -- system_list

I was hoping that this command would only bring back system host names
that
the users organization had access to.  it appears to bring back the
system
host names from all organizations on the satellite server regardless of
organization.

is this a bug or am i doing something silly?

Regards,

Aaron

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd system_list

2010-11-30 Thread Aaron Prayther
You Rock!

Aaron Prayther

-Original Message-
From: spacewalk-list-boun...@redhat.com
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Aron Parsons
Sent: Tuesday, November 30, 2010 8:09 AM
To: spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] spacecmd system_list

I just tagged 1.3.2-1 which changes the login behavior a bit.  If you
pass
a username and password as arguments, it will ignore the cached session
key.
This should address the issue you saw.

/aron

- Original Message -
From: Aaron Prayther aprayt...@lce.com
To: spacewalk-list@redhat.com
Sent: Monday, November 29, 2010 12:30:09 PM GMT -05:00 US/Canada Eastern
Subject: Re: [Spacewalk-list] spacecmd system_list

system_list now works as expected only listing hosts available to the
user credentials presented.  After finding the .spacecmd/host/session
file and 0'ing it out.

Aaron Prayther

-Original Message-
From: spacewalk-list-boun...@redhat.com
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Aron Parsons
Sent: Monday, November 29, 2010 12:16 PM
To: prayt...@gmail.com; spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] spacecmd system_list

The behavior you're seeing on your system is not correct.  The
system.listSystems API 
call that spacecmd uses only lists systems that are visible to the
current user, which
should only be the systems in your organization.  This is the behavior I
see on Spacewalk
1.2.

Can you clear your spacecmd caches and see if you can replicate the
issue?

/aron

- Original Message -
From: aaron prayther prayt...@gmail.com
To: spacewalk-list@redhat.com
Sent: Monday, November 29, 2010 10:39:59 AM GMT -05:00 US/Canada Eastern
Subject: [Spacewalk-list]  spacecmd system_list

spacecmd --username='username1' --password='PASSWD' -- system_list

I was hoping that this command would only bring back system host names
that
the users organization had access to.  it appears to bring back the
system
host names from all organizations on the satellite server regardless of
organization.

is this a bug or am i doing something silly?

Regards,

Aaron

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd system_list

2010-11-29 Thread Aaron Prayther
It looks like my problem may be because of  credentials being cached
and explicitly putting different credentials on the command line does
not seem to help.  I am also having trouble figuring out how to clear
the username/password cache.  Any pointers?

 

Aaron Prayther

 

From: spacewalk-list-boun...@redhat.com
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of aaron prayther
Sent: Monday, November 29, 2010 10:40 AM
To: spacewalk-list@redhat.com
Subject: [Spacewalk-list] spacecmd system_list

 

spacecmd --username='username1' --password='PASSWD' -- system_list

 

I was hoping that this command would only bring back system host names
that the users organization had access to.  it appears to bring back
the system host names from all organizations on the satellite server
regardless of organization.

 

is this a bug or am i doing something silly?

 

Regards,

 

Aaron


___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd system_list

2010-11-29 Thread Aron Parsons
The behavior you're seeing on your system is not correct.  The 
system.listSystems API 
call that spacecmd uses only lists systems that are visible to the current 
user, which
should only be the systems in your organization.  This is the behavior I see on 
Spacewalk
1.2.

Can you clear your spacecmd caches and see if you can replicate the issue?

/aron

- Original Message -
From: aaron prayther prayt...@gmail.com
To: spacewalk-list@redhat.com
Sent: Monday, November 29, 2010 10:39:59 AM GMT -05:00 US/Canada Eastern
Subject: [Spacewalk-list]  spacecmd system_list

spacecmd --username='username1' --password='PASSWD' -- system_list

I was hoping that this command would only bring back system host names that
the users organization had access to.  it appears to bring back the system
host names from all organizations on the satellite server regardless of
organization.

is this a bug or am i doing something silly?

Regards,

Aaron

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd - list systems and channels

2010-11-29 Thread aron
You'll have to tie the output of two commands together:
system_listbasechannel
system_listchildchannels

/aron

- Original Message -
From: Tom Brown t...@ng23.net
To: spacewalk-list@redhat.com
Sent: Monday, November 29, 2010 11:41:53 AM GMT -05:00 US/Canada Eastern
Subject: Re: [Spacewalk-list] spacecmd - list systems and channels

 spacecmd system_list
 spacecmd softwarechannel_list

 Try 'spacecmd help' to see all of the available functions.

well yes but i was trying to get something like

systemname channel subs

in one command - i could wrap this together but i wondered if spacecmd
was able to do this for me.

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd system_list

2010-11-29 Thread Aaron Prayther
system_list now works as expected only listing hosts available to the
user credentials presented.  After finding the .spacecmd/host/session
file and 0'ing it out.

Aaron Prayther

-Original Message-
From: spacewalk-list-boun...@redhat.com
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Aron Parsons
Sent: Monday, November 29, 2010 12:16 PM
To: prayt...@gmail.com; spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] spacecmd system_list

The behavior you're seeing on your system is not correct.  The
system.listSystems API 
call that spacecmd uses only lists systems that are visible to the
current user, which
should only be the systems in your organization.  This is the behavior I
see on Spacewalk
1.2.

Can you clear your spacecmd caches and see if you can replicate the
issue?

/aron

- Original Message -
From: aaron prayther prayt...@gmail.com
To: spacewalk-list@redhat.com
Sent: Monday, November 29, 2010 10:39:59 AM GMT -05:00 US/Canada Eastern
Subject: [Spacewalk-list]  spacecmd system_list

spacecmd --username='username1' --password='PASSWD' -- system_list

I was hoping that this command would only bring back system host names
that
the users organization had access to.  it appears to bring back the
system
host names from all organizations on the satellite server regardless of
organization.

is this a bug or am i doing something silly?

Regards,

Aaron

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd system_list

2010-11-29 Thread Aron Parsons
'logout' is the only function that clears the credentials cache.  I'll
take a look at it not honoring the username/password from the command line
when there is already a valid session in the cache.

/aron

- Original Message -
From: Aaron Prayther aprayt...@lce.com
To: spacewalk-list@redhat.com
Sent: Monday, November 29, 2010 12:14:42 PM GMT -05:00 US/Canada Eastern
Subject: Re: [Spacewalk-list] spacecmd system_list

It looks like my problem may be because of  credentials being cached
and explicitly putting different credentials on the command line does
not seem to help.  I am also having trouble figuring out how to clear
the username/password cache.  Any pointers?

 

Aaron Prayther

 

From: spacewalk-list-boun...@redhat.com
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of aaron prayther
Sent: Monday, November 29, 2010 10:40 AM
To: spacewalk-list@redhat.com
Subject: [Spacewalk-list] spacecmd system_list

 

spacecmd --username='username1' --password='PASSWD' -- system_list

 

I was hoping that this command would only bring back system host names
that the users organization had access to.  it appears to bring back
the system host names from all organizations on the satellite server
regardless of organization.

 

is this a bug or am i doing something silly?

 

Regards,

 

Aaron



___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd - list systems and channels

2010-11-25 Thread Marco Shaw
You've seen the examples here?
https://fedorahosted.org/spacewalk/wiki/spacecmd

Example:
#
# easily view system information
#
spacecmd system_details www01.example.com
...

On Thu, Nov 25, 2010 at 8:58 AM, Tom Brown t...@ng23.net wrote:
 Anyone know if you can list systems and their channels via spacecmd?

 i cant find anything in the docs about this but i wonder if its
 possible, i presume so

 thanks

 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list




-- 
*Microsoft MVP - Windows PowerShell
https://mvp.support.microsoft.com/profile/Marco.Shaw
*Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
*Blog - http://marcoshaw.blogspot.com

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd compatibility

2010-11-23 Thread aron
Starting from 1.2 the version will match that of Spacewalk. That was the only 
reason for the big jump. 

That being said, the Spacewalk API (existing functions) is stable, so there 
should not be any regressions.  You should be able to use the latest spacecmd 
with Satellite.

/aron

On Nov 23, 2010, at 3:37 PM, Marco Shaw marco.s...@gmail.com wrote:

 Is there a matrix that would outline the most compatible version of
 spacecmd with each major RedHat Satellite version?
 
 I saw a RH Sat engineer recently state that Spacewalk 1.1 was the most
 similar/compatible to the recent Satellite 5.4.
 
 Should one assume that spacecmd packaged with Spacewalk 1.1 would be
 the wisest choice?
 
 http://koji.spacewalkproject.org/spacewalk/whole/spacewalk-5E/spacewalk-5E-1.1/x86_64/os/Packages/spacecmd-0.5.5-1.el5.noarch.rpm
 
 This appears to be the latest and greastest spacecmd RPM:
 http://koji.spacewalkproject.org/spacewalk/whole/spacewalk-5E/spacewalk-5E-1.3/x86_64/os/Packages/spacecmd-1.3.1-1.el5.noarch.rpm
 
 Quite a jump in versions if that means anything...
 
 Marco
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd - cloning channels

2010-10-26 Thread Tom Brown
 Pull the latest RPM from koji.spacewalkproject.org.  The ability to pass
 all arguments to each function was added a little while back.  Read the
 man page on a few gotchas regarding passing arguments.

will take a look

thanks

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd: feed inputs to softwarechannel-create for scripting?

2010-09-29 Thread Aaron Prayther
I will install that latest version this morning.  Thx Aron.

Aaron Prayther

-Original Message-
From: spacewalk-list-boun...@redhat.com
[mailto:spacewalk-list-boun...@redhat.com] On Behalf Of Aron Parsons
Sent: Tuesday, September 28, 2010 5:50 PM
To: spacewalk-list@redhat.com
Subject: Re: [Spacewalk-list] spacecmd: feed inputs to
softwarechannel-create for scripting?

Try 0.7.3-1.  I forgot something :-)

-- 
/aron


On Tue, 2010-09-28 at 17:46 -0400, Aron Parsons wrote:
 I just committed changes that should allow you to script
 configchannel_addfile, including specifying the revision number.  Grab
 spacecmd-0.7.2-1 and let me know how it works out for you.
 

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd: feed inputs to softwarechannel-create for scripting?

2010-09-28 Thread Aron Parsons
I just committed changes that should allow you to script
configchannel_addfile, including specifying the revision number.  Grab
spacecmd-0.7.2-1 and let me know how it works out for you.

-- 
/aron


On Thu, 2010-09-23 at 19:11 +0200, Christoph Sievers wrote:
 Am 23.09.10 17:42, schrieb Aron Parsons:
  I've been meaning to enhance the functions that prompt you so that you
  can script them as well.  I'll see what I can get done in the next
  couple of days while I have some free time.

 
 Hi Aron,
 
 is configchannel_addfile also a candidate? Currently one has to run
 through some kind of a wizard. I hope to get rid of the rhncfg-manager
 stuff as soon as possible. Now with the emerging possibilities of
 setting next revision number and being able to specify a revision number
 with configchannel_filedetails :)
 
 Unfortunately it is not possible to specify next revision number
 through the API, yet.
 
 Being able to do that and also during the file creation seems to be the
 last crucial step for a good and scripted versioning.
 
 OK maybe an optional comment to each revision aka commit log.
 
 thank you for spacecmd!
 
 rgds
 Christoph
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd: feed inputs to softwarechannel-create for scripting?

2010-09-28 Thread Aron Parsons
Try 0.7.3-1.  I forgot something :-)

-- 
/aron


On Tue, 2010-09-28 at 17:46 -0400, Aron Parsons wrote:
 I just committed changes that should allow you to script
 configchannel_addfile, including specifying the revision number.  Grab
 spacecmd-0.7.2-1 and let me know how it works out for you.
 

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd: feed inputs to softwarechannel-create for scripting?

2010-09-27 Thread Aaron Prayther
I am trying to find all the command arugments like the example in the man 
page...

   Example:
   spacecmd -s server1 -- softwarechannel_create -n \âMy Channel\â \
 -l channel1 \
 -a x86_64

Aaron Prayther


___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd: feed inputs to softwarechannel-create for scripting?

2010-09-27 Thread Aron Parsons
spacecmd help softwarechannel_create

-- 
/aron


On Mon, 2010-09-27 at 11:32 -0400, Aaron Prayther wrote:
 I am trying to find all the command arugments like the example in the man 
 page...
 
Example:
spacecmd -s server1 -- softwarechannel_create -n \âMy Channel\â \
  -l channel1 \
  -a x86_64
 
 Aaron Prayther
 
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd: feed inputs to softwarechannel-create for scripting?

2010-09-24 Thread aaron prayther
This is going to be tremendously helpful in our efforts to automate SPAWAR
Linux Installation  Management (SLIM).  We now have the capability to
script most all of Satellite functionality and standardize on a common tool,
spacecmd.  Thanks Aron.  Look forward to getting into this monday morning.

Aaron
___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Re: [Spacewalk-list] spacecmd: feed inputs to softwarechannel-create for scripting?

2010-09-23 Thread Aron Parsons
I've been meaning to enhance the functions that prompt you so that you
can script them as well.  I'll see what I can get done in the next
couple of days while I have some free time.
  
-- 
/aron


On Thu, 2010-09-23 at 10:20 -0400, Aaron Prayther wrote:
 As an example softwarechannel-create, can you feed this answers to the
 questions so that it can be automated in scripts?
 
 Aaron Prayther
 
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd: feed inputs to softwarechannel-create for scripting?

2010-09-23 Thread Christoph Sievers
Am 23.09.10 17:42, schrieb Aron Parsons:
 I've been meaning to enhance the functions that prompt you so that you
 can script them as well.  I'll see what I can get done in the next
 couple of days while I have some free time.
   

Hi Aron,

is configchannel_addfile also a candidate? Currently one has to run
through some kind of a wizard. I hope to get rid of the rhncfg-manager
stuff as soon as possible. Now with the emerging possibilities of
setting next revision number and being able to specify a revision number
with configchannel_filedetails :)

Unfortunately it is not possible to specify next revision number
through the API, yet.

Being able to do that and also during the file creation seems to be the
last crucial step for a good and scripted versioning.

OK maybe an optional comment to each revision aka commit log.

thank you for spacecmd!

rgds
Christoph

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list


Re: [Spacewalk-list] spacecmd: feed inputs to softwarechannel-create for scripting?

2010-09-23 Thread Aron Parsons
configchannel_addfile was the one function I skipped.  I'll take a look
at specifying the revision number when creating/updating files and see
if I can work it in.

-- 
/aron


On Thu, 2010-09-23 at 19:11 +0200, Christoph Sievers wrote:
 Am 23.09.10 17:42, schrieb Aron Parsons:
  I've been meaning to enhance the functions that prompt you so that you
  can script them as well.  I'll see what I can get done in the next
  couple of days while I have some free time.

 
 Hi Aron,
 
 is configchannel_addfile also a candidate? Currently one has to run
 through some kind of a wizard. I hope to get rid of the rhncfg-manager
 stuff as soon as possible. Now with the emerging possibilities of
 setting next revision number and being able to specify a revision number
 with configchannel_filedetails :)
 
 Unfortunately it is not possible to specify next revision number
 through the API, yet.
 
 Being able to do that and also during the file creation seems to be the
 last crucial step for a good and scripted versioning.
 
 OK maybe an optional comment to each revision aka commit log.
 
 thank you for spacecmd!
 
 rgds
 Christoph
 
 ___
 Spacewalk-list mailing list
 Spacewalk-list@redhat.com
 https://www.redhat.com/mailman/listinfo/spacewalk-list

___
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list