Login to your ogfs (opsware global file system), best by either opening up java gui and then launch global shell or ssh to port 2222.
cd to /opsw/Permissions/UserGroups/
in that directory you will see all bunch of groups defined in your opsware, if you get to any of them, just for example lets go to:
Opsware System Administrators
Read more…
Practically you have to uninstall opsware agent in both Global and all Local zones on your Solaris client box. Steps to completely uninstall your opsware sas agent are as follow, best way to uninstall everything correctly is to run the following:
/opt/opsware/agent/bin/agent_uninstall.sh –delete_opsw_rpm
After that you can rm -rf all of the following directories if you want to make certain that everything is gone:
/opt/opsware
/var/opt/opsware
/etc/opt/opsware
/var/log/opsware
Read more…
Best way to accomplish task of opening getting root xterm displayed back on remote system via opsware is to do the following:
ssh -l your_user_ID -p 2222 opsware_ip
make sure you have exceed or xmanager or other X server running on your PC or linux
then write script like the following:
#!/bin/ksh
export DISPLAY=your_desktop_IP:0.0
/usr/openwin/bin/xterm -bg black -fg green -title `hostname` -sb -sl 32000 &
then execute it:
rosh -l root -n destination_server -s ./xterm
this will push xterm script to destination_server and it will execute it, you should see xterm popping up on your screen any time now.
Read more…
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…