I have situation where I would like to run script from my crontab that is executing script in global shell. In opsware before 7.5 I had to do it this way but in 7.5 I can schedule some jobs from java gui quite easily, but just in case if you have a need to do this from your opsware core via cron this is how I did it:
created script AutomateGlobalShell.sh:
-=-=-START OF SCRIPT-=-=-
#!/bin/sh
Read more…
Starting up opsware on solaris is not a problem and its done quite easily, now doing this on solaris 10 via smf is not that difficult either, I wish opsware did this out of the box, but still not a big deal. There used to be service called: es.opensolarisblog.org/easySMF where you could construct xml file quite easily for this. I cant find this URL to be working any longer so I wanted to make sure that I put all that stuff out what I have
First you need xml file. This is what I have that I was able to create back when that website was available:
$ cat smf_opsware.xml
<?xml version=”1.0″?>
<!DOCTYPE service_bundle SYSTEM “/usr/share/lib/xml/dtd/service_bundle.dtd.1″>
<!–
Read more…
Here is an example what I did to import media to HP Opsware SA:
[root@opsware sunos]# import_media --opsware-username=cw mediasrv/media/opsware/sunos/sol-10-u6-ga1-sparc-dvd
Opsware password:
Server: mediasrv
Path: /media/opsware/sunos/sol-10-u6-ga1-sparc-dvd
Detecting OS Version...
Detected OS Version: SunOS 5.10
OS Version: SunOS 5.10
Will upload to folder "/Package Repository/OS Media/SunOS 5.10" (ID: 1810001)
Created new OS Media: SunOS 5.10
OS Media Path: 'nfs://mediasrv/media/opsware/sunos/sol-10-u6-ga1-sparc-dvd'
OS Media Size: 1999 Mbytes
Linking software packages to OS Media...
Import OS Media success.
A log has been created at /var/log/opsware/mm_wordbot/import_media.log
[root@opsware sunos]#
[root@opsware sunos]# /opt/opsware/mm_wordbot/util/import_media --opsware-username=cw
mediasrv/media/opsware/linux/rhel4.7-x86_64-as-dvd
Opsware password:
Server: mediasrv
Path: /media/opsware/linux/rhel4.7-x86_64-as-dvd
Detecting OS Version...
Detected OS Version: Red Hat Enterprise Linux AS 4 X86_64
OS Version: Red Hat Enterprise Linux AS 4 X86_64
Will upload to folder "/Package Repository/OS Media/Red Hat Enterprise Linux
AS 4 X86_64" (ID: 1520001)
Created new OS Media: Red Hat Enterprise Linux AS 4 X86_64 (mediasrv)
OS Media Path:
'nfs://mediasrv/media/opsware/linux/rhel4.7-x86_64-as-dvd'
OS Media Size: 2353 Mbytes
Linking software packages to OS Media...
Import OS Media success.
A log has been created at /var/log/opsware/mm_wordbot/import_media.log
[root@opsware sunos]#
[root@opsware sunos]# import_media --opsware-username=cw
mediasrv.ny.perfekt.net/media/opsware/linux/rhel-server-5.3-x86_64-dvd
Opsware password:
Server: mediasrv.ny.perfekt.net
Path: /media/opsware/linux/rhel-server-5.3-x86_64-dvd
Detecting OS Version...
Detected OS Version: Red Hat Enterprise Linux Server 5 X86_64
OS Version: Red Hat Enterprise Linux Server 5 X86_64
Will upload to folder "/Package Repository/OS Media/Red Hat Enterprise Linux
Server 5 X86_64" (ID: 2110001)
Created new OS Media: Red Hat Enterprise Linux Server 5 X86_64
OS Media Path:
'nfs://mediasrv.ny.perfekt.net/media/opsware/linux/rhel-server-5.3-x86_64-dvd'
OS Media Size: 3132 Mbytes
Linking software packages to OS Media...
Import OS Media success.
A log has been created at /var/log/opsware/mm_wordbot/import_media.log
Read more...
Opsware Core SA server cannot be re-IP from what I do understand, but in theory there is a way to do it. I did learn that there is few ways how to handle situation where you could change IP or use different IP. From what I do understand you can run such set of commands to attempt such action:
spinwrapper.sh
-=-=-=-=-=-=-=-START-=-=-=-=-=-=-=-
#!/opt/opsware/bin/python
import sys
Read more…
I have all bunch os Sun x86 servers, they have serial and ilom ports, currently with opsware when I do provision servers I do not get output back on my console eithere that is serial or ilom, so I had to modify slightly opsware to be able to accomodate those outputs. Anyway here is what I needed to do:
There are 2 vectors to consider here. First there’s the initial provisioning, then there’s the post-provision activities.
For the initial provisioning, login as root on your OS prov server as root, then:
- cd /opt/opsware/boot/tftpboot/pxelinux.cfg
- cp -p default default.20090310
- vi default
Read more…
In order to reinstall opsware agent on your client server you first need to move agent file from opsware server, location is /var/opt/opsware/agent_installers/.
scp -p user@opsware/var/opt/opsware/agent/installers/opsware-agent-32h.0.0.34-solaris-5.10 /var/tmp/
then you need to uninstall previous agent if that the case:
/opt/opsware/agent/bin/agent_uninstall.sh
Read more…
There are two tools, cbt and cbtgui
both tools are located on primary DVD
opsware_75_primary/packages/cbt-34c_0_0_19.zip
opsware_75_primary/packages/Linux/cbtgui-34c.0.0.1.5-0.i386.rpm
opsware_75_primary/packages/SunOS/cbtgui-34c.0.0.1.4-0.sparc64.rpm
Read more…