BASEDIR change from request script goes unnoticed..

1160 byte By CodeProf.com at 2007-12-24 22:48:00
Hi there,I'm trying to modify the BASEDIR environment within a request script (it couldequally go in the checkinstall script) under Solaris 8. From what Iunderstand BASEDIR can only be modified from within request or checkinstalland only from versions 2.5 and greater.I have tried just setting ...

how to get process status using pid

242 byte By CodeProf.com at 2007-12-24 22:48:00
Hi,<br> How to get the process status (Running/Stopped)<br>using pid, using C in solaris.<p>Thanks in Advance<br>Vijay <br>LAUNCH - Your Yahoo! Music Experience<br><A HREF=" http://launch.yahoo.com/default.htm"> http://launch.yahoo.com</A><br>

How to script labeling of new disks to avoid manually using format?

440 byte By CodeProf.com at 2007-12-24 22:48:00
I have about 60 new disks to add to a system but don'twant to have to go into the format utility to labeleach one. Can this be scripted?NOTE: The disks are going to be imported into VeritasVolume Manager, where the slicing and dicing willhappen but the disks need labels.TIA.Regards,JeffLAUNCH ...

IMPORTANT: Read this before posting to Sun-Managers

5862 byte By CodeProf.com at 2007-12-24 22:48:00
Archive-name: codeprof-before-postingLast Updated: $Id: before.posting,v 1.17 2002/01/10 21:21:23 jdd Exp $NOTE: This message is posted periodically to codeprof on behalf of all members of the Sunmanager's mailing list. Please read it carefully before posting. This document can be retrieved ...

Summary: E250 hanging at boot

3326 byte By CodeProf.com at 2007-12-24 22:48:00
the problem turned out to be a failed HDD. Though there was nothing in thevfstab and it is not a part of the md device, it is causing the solaris towait for a very long time before booting. After removing the faulty disk thesystem boots like charm...I am still confused about how could a failed ...

Running Script owned by root

410 byte By CodeProf.com at 2007-12-24 22:48:00
HI All,I have a requirement where in normal user need to run a script owned by root but when I log in as normal user ( he is not in sysadmin group) and run that script its gives me Permission denied error. I used setfacl which did not work, gave same error.Basically that script kills one of the ...

Sending Alerts to Mobile Phone SMS

204 byte By CodeProf.com at 2007-12-24 22:48:00
Hi guys,<p>I'm looking for ways (or applications) that would<br>enable me to receive alerts from our Sun servers<br>via mobile phone SMS. Will summarize.<p>Thanks in advance.<p>Regards,<br>Edgar> <br>

SunFire V280R CPU issues

1243 byte By CodeProf.com at 2007-12-24 22:48:00
Hello,Has anyone here experienced SunFire V280Rs freezing and rolling messageslike this repeatedly on the console? =>CPU: 0000.0000.0000.0000AFSR: 0008.1000.0000.0000AFAR:0000.07ff.ee00.0040CPU: 0000.0000.0000.0001AFSR: 000a.0000.0000.0000AFAR:0000.0013.9178.f810CPU: 0000.0000.0000.0000AFSR: ...

sunray

1612 byte By CodeProf.com at 2007-12-24 22:48:00
halloi have a 420r with sunray(about 20) with sunray software 1.3. i use thekioskmode. where the default website is www.digitalcraft.org. but on 4sunray it start with a other startpage. www.heise.de. they start. butwhen i press home on the browser it put www.digitalcraft.org. anyone howto ...

Discovery: how to get process status using pid

6312 byte By CodeProf.com at 2007-12-24 22:48:00
Hi Gurus,This question prompted me to try and find the answer myself, purely forcuriosity's sake. I have discovered something very very strange!After scanning through a few man pages trying to look for a systemfunction, I did a truss -aef -o /tmp/ps.truss.out ps -o s -p $$(using ksh, $$ gives ...

Server-free Backup

665 byte By CodeProf.com at 2007-12-24 22:48:00
Hi Managers,We have a switch fabric SAN (Brocade switches, Sun servers and a storagetektape library ).We are looking at ways of doing server-free backup and one of the productswe looked at was Celestra. This works fine with DLM, but will not work (oris not supported with MPxIO).Does anybody ...

macaddress

838 byte By CodeProf.com at 2007-12-24 22:48:00
Hi all,i have a problem with two machines. I configured on both machines two ipadresses. local-mac-address? is set to true. After rebooting, bothip adresses got the same mac address. Why?machine: Netra T1OS: solaris 2.7eeprom: <snip> local-mac-address?=true <snip>ifconfig -a:lo0: ...

Undelete files in Solaris 8

325 byte By CodeProf.com at 2007-12-24 22:48:00
Hi.A simple question: Is there any tool to undelete files in Solaris 8after a rm command?Thanks for your help.RegardsJavier Fernandez__________________________________________________________[demime 0.99c.7 removed an attachment of type application/pgp-signature which had a name of ...

ufs free_inode

1135 byte By CodeProf.com at 2007-12-24 22:48:00
Admins, This problem had re-occcured again inspite of performing fsck andthe strings vmcore.out has the following output. Are there any patcheswhich can solve this issue...strings-vmcore.0.out::::::::::::::SunOSpslnsun2Generic_106541-16sun4uSUNW,Ultra-250free: freeing free block, ...

Question about redirect

644 byte By CodeProf.com at 2007-12-24 22:48:00
AllI am setting up a system to move files from one host to another via a cronscript and scp /ssh . I want it to email me every day with the results of the job.Normally I would just redirect into a file like this/action/to/be/taken > /tmp/file and then mailx "Attention" me at ...

understanding /var/cron/log file

2521 byte By CodeProf.com at 2007-12-24 22:48:00
Hi all, I have been looking for documentation about /var/cron/log and I didn't find anything other than a few lines explaining how to enable the logging. Anybody knows where I can get information about how to read the /var/cron/log file? The content is something like:> CMD: ...

command get serial number of your sun

262 byte By CodeProf.com at 2007-12-24 22:48:00
Hi All,<p>Does a command exists to get the serial number of your sun Solaris machine.<br>We have several suns and would like a script that would gather all the<br>serial number <br>and produce a report.<p>Cheers,<p>Min Oo<p>Panasonic System LSI Design Europe<br>

Christian Buhn/SYNSTAR/DE is out of office

638 byte By CodeProf.com at 2007-12-24 22:48:00
Ich werde ab 20.05.2002 nicht im B|ro sein. Ich kehre zur|ck am02.06.2002.Im o.g. Zeitraum befinde ich mich im Urlaub. In dringenden Fdllen wendenSie sich bitte an meine Kollegin Antje Finger, Telefon: +49 (0)6151-989-132oder per E-Mail:afinger at synstar.de.Ihre Mail werde ich im Anschluss an ...

partitioning for Oracle

1002 byte By CodeProf.com at 2007-12-24 22:48:00
Sorry for off-topic, I'm trying to "fight" DBA regarding partitioning method they propose forour Oracle boxes.Every time they request a few dozen (!) partitions such as data[0-N],arch[0-N], redolog[0-N],trace[0-N] etc etc. In my opinion it does not make sense since the mentioned ...

Sun Cluster 2.2 failover times

1464 byte By CodeProf.com at 2007-12-24 22:48:00
We have a situation whereby we need to reduce our failover times from 6minsto 3mins between nodes, we are using Oracle & VxVM with Sun Cluster 2.2. Any ideas / pointers would be appreciated. RegardsDarren**********************************************************************The information ...

Data Recovery Tools

623 byte By CodeProf.com at 2007-12-24 22:48:00
Oh wise and mighty sun managers. A disgruntled employee has deleted somefiles on a machine that was not backed up. Huge real media files. I needa tool to recover as much of this data as possible, and I need it today(preferably this morning). Both EXT2 and UFS file systems. I am gettinga ...

dns failover problem

1007 byte By CodeProf.com at 2007-12-24 22:48:00
I have 2 dns's, joined by a hub, set up as master and slave. both have eachotherentered as default routers, and both have each other listed in theresolv.conf file asa second nameserver entry, and themselves as the first. The slave finds andupdatesfrom the master as expected.the box at ip ...

swap device truncated message

504 byte By CodeProf.com at 2007-12-24 22:48:00
I am getting this error when rebooting new system just installed withSolaris 7. We are having some strang database issues and I am wondering ifthis error may have something to do with it. Does anyway know what thismeans or if I should be concerned about it?May 22 07:44:15 LaPorte unix: ...

SUMMARY: How to script labeling of new disks to avoid manually using format?

758 byte By CodeProf.com at 2007-12-24 22:48:00
Wow. I did not expect to get bombarded with responses!Thanks to all!In summary, there were many variations of pipingprtvtoc output to fmthard. Some examples are asfollows...##############Example 1##############label one disk, let's say /dev/rdsk/c0t0d0s2, then doprtvtoc /dev/rdsk/c0t0d0s2 | ...

Problem instllin a SUN 280R

219 byte By CodeProf.com at 2007-12-24 22:48:00
Hi Managers,<br>I have a problem installing a SUN 280R Server with Solaris 2/02.<br>After the network configuration the popup window reads "Just a<br>moment" and then can you wait forever, nothing happens.<br>

-------------------------snip-------------------------in.rdisc: No interface upAssertion failed:

378 byte By CodeProf.com at 2007-12-24 22:48:00
-------------------------snip-------------------------in.rdisc: No interface upAssertion failed: have_ext_net_info(rc)==True, \file main.c, line 931Abort - core dumpedStarting remote procedure call (RPC) services: \sysidns done-------------------------snap-------------------------Seems that the ...

Problem with package creation......

1432 byte By CodeProf.com at 2007-12-24 22:48:00
Greetings!We've poured over the "Applications Packaging Developers Guide" and followed the instructions to the letter, but we're still having a problem.In changing the "CLASSES" variable to a particular class name within the "checkinstall" script, we have found ...

SUMMARY: command get serial number of your sun

1394 byte By CodeProf.com at 2007-12-24 22:48:00
Hi,thanks for so many replies.Simple answer is no!some suggest it hostid which I know is used by lmgrd and is not S/Nand eeprom | grep serialGood suggestion I have is to read the s/n from the back of the machine andwrite it down on and save it in /etc/systemserialnumber and one funny reply ...

SUMMARY: swap device truncated message

833 byte By CodeProf.com at 2007-12-24 22:48:00
This message is just stating that my swap space is over 2gig in size andthat it will only be using 2gig and not the rest. It is harmless.Thanks so much for all the responded to my questions.---------------------------------------------------------Original question:I am getting this error when ...

/etc/mail/access file

327 byte By CodeProf.com at 2007-12-24 22:48:00
Is it possible to put /dev/null in your /etc/mail/access file?Just been to sendmail.org and I know you can use DISCARD to accept anddiscard incoming mail but is /dev/null works faster/allowable in access?domain.com DISCARD (know it's possible)domain.com /dev/null (equivalent to above or ...

SUMMARY: partitioning for Oracle

4335 byte By CodeProf.com at 2007-12-24 22:48:00
Heflin Hogan wrote:> > There is no real reason to allocate a large number of partitions for an> oracle instance anymore, and even Oracle doesn't recommend doing things taht> way anymore. The idea was to spread IO out over several drives and channels> to improve performance, but ...

SUMMARY:SZ and RSS column in ucb/ps

1256 byte By CodeProf.com at 2007-12-24 22:48:00
Well, I have received may replies from admins and they all mentioned that my statement is not necessarily true, although I see this happens ONLY on our home-grown application. I have not not received any explanation as to why some of our applications have larger RSS that SZ or in general why is ...

SUMMARY: Problem with package creation......

1657 byte By CodeProf.com at 2007-12-24 22:48:00
Thanks to:Todd UrieSerge BorkovANSWER:Problem solved by including "cat > $1 <<EOM" within the 'checkinstall' script. This is what we were missing and once it was added, our problem was solved.(ORIGINAL PROBLEM)We've poured over the "Applications Packaging Developers ...

SUMMARY: /etc/mail/access file

2043 byte By CodeProf.com at 2007-12-24 22:48:00
Thanks to Dave and Lars...from /usr/lib/mail/README (which I didn't have)DISCARD was the option I was looking for, low system resources used.- MikeThe value part of the map can contain: OK Accept mail even if other rules in the running ruleset would reject it, for ...

Summary: SunOS 4.1.4 Restore

2242 byte By CodeProf.com at 2007-12-24 22:48:00
Thanks to those who provided adviceYou cannot simply mount the drive on a solaris machine and run ufsrestore because SunOS does not use ufs filesystems it uses 4.2 and uses the commands dump and restore instead of ufsdump and ufsrestore..I had already tried and ufsrestore couldn't read the ...

More data about Redirect problem

1283 byte By CodeProf.com at 2007-12-24 22:48:00
AllThanks for all the suggestions. It still doesnt work.I put some samples below. I ran these from the command line in a sh shell.I have these two machine doing hostbased auth. (no password required) First try/usr/local/bin/scp file.tar user at server:/tmp 2>&1 1>/tmp/outputempty ...

slow password changes

1380 byte By CodeProf.com at 2007-12-24 22:48:00
We have an E6000 running Solaris 7 11/99.There are approximately 30,000 entries in /etc/passwd.Password entry in nsswitch.conf is:passwd: filesIt takes about 9 seconds to change a password when answering the promptautomatically, say with Expect. In fact, when root tries to change ...

Using 2.5.1 as a printe server for NT 4.0

587 byte By CodeProf.com at 2007-12-24 22:48:00
I have a group of Splaris 2.5.1 boxes, one of which hosts a HP InkJetprinter. All of the Sun's can print to this printer. I tried to get an NT4.0 box (in the smae subnet) to print to this printer using one of theSplaris boxes asa print server, and it did not work. I see that the NT boxis ...

release/renew IP address

68 byte By CodeProf.com at 2007-12-24 22:48:00
To release and renew an ip address do you use ifconfig?<p>Thanks<br>

Package troubles...

1760 byte By CodeProf.com at 2007-12-24 22:48:00
Hi Guys!!!I have the next question.In have a server Enterprise 250 Sparc, with Solaris 8 core installation.As you now it doesn't have man pages utility. So i Decide to installed,because this application is useful for us.When I tried to install package, it tell'me that the package SUNWcsrwas ...

Solaris 8, Exceed and Wordperfect

1714 byte By CodeProf.com at 2007-12-24 22:48:00
Hi,I have wordperfect running on Solaris 8. I'm trying to get the shift/ctrl keys to work with exceed.I'm using a wrapper script to start an xterm. The problem with the script is that only the 2nd xterm's shift/ctrl keys work. Not the first initial one. This is kinda anoying.Abyone have any ...

Something is screwing my X1's clock!

1637 byte By CodeProf.com at 2007-12-24 22:48:00
I have a bunch of X1's.Some of them had BSM installed/uninstalled and we also fixed the sys_tick_freq in /etc/system so the time does not drift2 minutes/day, as it is the case when they get shipped from SUN.The one's with BSM installed/uninstalled are experiencingstrange behavior. Basically ...

reading iso image files

514 byte By CodeProf.com at 2007-12-24 22:48:00
Hello!I have some iso images on a disk that I would like to read directly withoutfirst burning a CD of those images. I have heard that there is a way to mount the iso image (via the lookbackfile system?) and read it directly, but I cannot find anything inthe manpages to explain how such a ...

Benefits of compiling qmail as 64 bit app on solaris 8 in 64 bit

649 byte By CodeProf.com at 2007-12-24 22:48:00
Hello codeprof, Will there be any benefits of of compiling qmail as 64 bit app on solaris 8 in 64 bit pls? Some people say 64 bit code is larger than 32 bit so the cache memory will be used more and total system performance will go down on high volume of messages. Other people say that system ...

Timeout waiting for ARP/RARP packet

1364 byte By CodeProf.com at 2007-12-24 22:48:00
Dear SUN Managers :I really appreciate all the responses I got from so many great people on this list. Most of you got it right. The problem was that the "diag-device" was set to "net". When I changed it to "disk" (setenv diag-device = disk), the timeout problem ...

Summary: how to get process status using pid

19878 byte By CodeProf.com at 2007-12-24 22:48:00
My question:How to get the process status (Running/Stopped)using pid, using C in solaris.Solution:Process's info is stored into psinfo of /proc/<pid>/and its structure isdefined in /usr/include/sys/procfs.h (typedefedpsinfo_t)If you want to know process's status (ie. R,S,Wetc...) you ...

Host id information.

659 byte By CodeProf.com at 2007-12-24 22:48:00
Dear Sun Guru's We have a SUN Ultra IIi 333Mhz system. Wealso have some commercial softwares running in thissystem. We have proper license to access thissoftware, for which we have registered our machineHost ID with the vendor. Can anyone tell me, how this Host ID isgenerated ...

Watchdog Reset

929 byte By CodeProf.com at 2007-12-24 22:48:00
I've got something that puzzled me in the last 24 hours..The system in question is a Sparc 10, Solaris 8..fairly current on all thefree patches...normally very stable system.Yesterday morning, the power flicked off for less than a second. When Iwent to check on my computers, I noticed this one ...

admintool Solaris 8 2/02 User failure

407 byte By CodeProf.com at 2007-12-24 22:48:00
I just did a Solaris 8 2/02 install on the U2, and admintool isnt addingusers correctly!!! proper dot files NOT being installed in home filder..is this weird? If I do (cp skel files & addtl dot files) it by hand, usercan log in and get desktop fine..no hand work, X/CDE fails and back to ...

Solari 8/Veritas File System error

623 byte By CodeProf.com at 2007-12-24 22:48:00
HelloI'm going to be hard pressed to find anyone online this weekend, but I thoughtI'd give it a chance..I am getting errors trying to remount a filesystem. The only change is that Iadded Veritas 3.4, patch 03 to the system 2 days ago. Has anybody seen theseerrors?bash-2.03# mount ...