opsi-pkg and swaudit

Antworten
upengan78
Beiträge: 2
Registriert: 10 Jul 2014, 18:12

opsi-pkg and swaudit

Beitrag von upengan78 »

Hello,
It's my first time to the opsi forum. Thank you for the great tool. I am testing the free version for a windows lab.

I am trying to use opsi-pkg as mentioned at wiki/userspace:opsi-pkg , but I am running into a small issue. HEre is the error message.

Code: Alles auswählen

./opsi-pkg -lp
package                         version         available_requests  

Traceback (most recent call last):
  File "./opsi-pkg", line 1260, in <module>
    printPackages()
  File "./opsi-pkg", line 469, in printPackages
    for package in sorted(getPackages()):
  File "./opsi-pkg", line 338, in getPackages
    packages_tmp = callOpsiAdminVar(cmd)
  File "./opsi-pkg", line 163, in callOpsiAdminVar
    exec(defVar + "var=" + out[0])
  File "<string>", line 2
    var=
       ^
SyntaxError: invalid syntax
Additional information:
OS : RHEL 6.2

OPsi RPMS:
opsiconfd-4.0.4.3-1.2.noarch
opsipxeconfd-4.0.4.1-2.1.noarch
opsi-utils-4.0.4.1-2.2.noarch
opsi-configed-4.0.4.1.2-4.2.noarch
opsi-atftp-0.7.dfsg-10.2.x86_64
opsi-linux-bootimage-20140118-1.2.noarch
python-opsi-4.0.4.5-2.2.noarch
opsipxeconfd-4.0.4.1-2.2.noarch
opsi-depotserver-4.0.4.4-1.2.noarch

python -V
Python 2.6.6

Could anyone please help to fix me above issue?

The unrelated doubt I have about swaudit is, I just want to know how to force swaudit on a client. I see outdated information(under software inventory ) even after a package such as adobe flash was installed using 'setup' and correctly shown as installed in "Product Information"

Thank you,
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1412
Registriert: 01 Jul 2008, 12:10

Re: opsi-pkg and swaudit

Beitrag von wolfbardo »

Hello,
upengan78 hat geschrieben: The unrelated doubt I have about swaudit is, I just want to know how to force swaudit on a client. I see outdated information(under software inventory ) even after a package such as adobe flash was installed using 'setup' and correctly shown as installed in "Product Information"

Thank you,
You have to rerun swaudit on a client everytime you installed new software.

You can achieve for example this with

- setting swaudit=always
- or with a productdependency to swaudit
- or using the silent_install feature (http://download.uib.de/opsi4.0/doc/html ... entinstall)

regards,
Bardo Wolf


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


upengan78
Beiträge: 2
Registriert: 10 Jul 2014, 18:12

Re: opsi-pkg and swaudit

Beitrag von upengan78 »

wolfbardo hat geschrieben:Hello,
upengan78 hat geschrieben: The unrelated doubt I have about swaudit is, I just want to know how to force swaudit on a client. I see outdated information(under software inventory ) even after a package such as adobe flash was installed using 'setup' and correctly shown as installed in "Product Information"

Thank you,
You have to rerun swaudit on a client everytime you installed new software.

You can achieve for example this with

- setting swaudit=always
- or with a productdependency to swaudit
- or using the silent_install feature (http://download.uib.de/opsi4.0/doc/html ... entinstall)

regards,
Bardo Wolf


Thank you very much Bardo Wolf.
Antworten