Tag Archives: SUNW

SWAP command not working on Linux machine

By Basant Mishra

Hi
I am working on linux machine and swap command is not working Linux Machine
On Solaris machine it is working fine:
uname -a
SunOS rgsm01 5.9 Generic_118558-03 sun4u sparc SUNW,Sun-Fire-V440
swap -s
total: 6596320k bytes allocated + 1035968k reserved = 7632288k used, 38893408k available

But on linux machine it is giving following errors:
uname -a:
Linux GURKES060 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

swap -s
-ksh: swap: not found [No such file or directory]

Can anybody help me out?

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

Different VMSTAT output on Linux and Solaris machines

By Basant Mishra

Hi,
I am porting a piece of code from Solaris to Linux. Code uses VMSTAT command.
On Solaris machine VMSTAT output is following:
uname -a:
SunOS rgsm01 5.9 Generic_118558-03 sun4u sparc SUNW,Sun-Fire-V440

vmstat:
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr m1 m2 m4 m5 in sy cs us sy id
0 0 0 29021296 3922400 177 335 27 568 380 0 3 0 0 0 0 182 293 221 32 11 57

On Linux machine VMSTAT output is following:
uname -a:
Linux GURKES060 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
vmstat
procs ———–memory———- —swap– —–io—- –system– —–cpu—–
r b swpd free buff cache si so bi bo in cs us sy id wa st
1 0 0 299732 802180 24825992 0 0 6 32 2 1 2 0 98 0 0

I want the paging information on linux.How can I get it?

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

Locked out of server due to utmp growing out of control

By gjackson123

🙁Dear Solaris Experts,

The file /var/adm/utmpx is steadily growing on our standbye Sun Sparc T5220 Solaris 10 server. I have tried everything such as the following steps without success:

Code:


root@rainbow # uname -a
SunOS rainbow 5.10 Generic_141444-09 sun4v sparc SUNW,SPARC-Enterprise-T5220
root@rainbow # cd /var/adm
root@rainbow # cp /dev/null utmpx # but size stays the same and growing
root@rainbow # cp /dev/null wtmpx # file size briefly came back to zero # before recovering
root@rainbow # ls -lt /var/adm | more
-rw-r--r-- 1 root root 24180 Apr 12 15:23 wtmpx
-rw-r--r-- 1 root root 364035476 Apr 12 15:23 utmpx
root@rainbow # /cat /etc/default/utmp
SCAN_PERIOD=300
root@rainbow # svcs utmp
STATE STIME FMRI
online 15:22:20 svc:/system/utmp:default
root@rainbow # svcadm disable utmpd
root@rainbow # svcs utmp
STATE STIME FMRI
disabled 15:59:44 svc:/system/utmp:default


In short, I am not able to turn off, or reduce the amount of auditing / login data
it is rapidly collecting. In fact, I can no longer log back on to it with the
following message after successful login using a non-root user from a general
multi-user mode telnet session:
login: george
Password:
No utmpx entry. You must exec “login” from the lowest level “shell”.

Fortunately, it was possible to get back into this server in single-user maintenance mode as root on the Console. The only way to re-instate multi-user mode access is by rebooting this server but still not reduce the amount of auditing / login which will eventually fill up /var.

The strange thing is that our production (equivalent hardware) accessed extensive with the same SCAN_PERIOD is not experiencing this issue. I am not sure whether the standbye rainbow server has been split up to multiple zones has anything to do with it. ie rainbow being the global zone.
Your assistance would be much appreciated.
Thanks in advance,
George

From: http://www.unix.com/solaris/220941-locked-out-server-due-utmp-growing-out-control.html

Command garbled when using sed

By fenocean

Hi everyone,

Can anyone help me in question below?
I want to cron a job to add partition every month but get the error sed: command garbled: s/YYYYMM/ .

Code:

> echo $YYYYMON_NEW
201304
> echo $YYYYMON_OLD
201208
> echo $YYYY_MM_NEW
2013-05


This is my base script:

Code:

ALTER TABLE STS.ADMIN ADD PARTITION ADMIN_TABLE_YYYYMM VALUES LESS THAN (TO_DATE('XXYYYY_MMXX-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS')) TABLESPACE ADMIN_TBSP;


Command that I use to replace the substitude the variable and the error that i get:

Code:

> sed "s/YYYYMM/$YYYYMON_NEW/g;s/XXYYYY-MMXX/$YYYY_MM_NEW/g" crt_partition_base.sql > $SQL_FILE
sed: command garbled: s/YYYYMM/


This is my os version:-

Code:

SunOS portal-db-1a 5.10 Generic_142909-17 sun4u sparc SUNW,Sun-Fire-V440


…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Need to split a string

By adshocker

Hi,

We have a SunOS 5.10 Generic_142900-13 sun4v sparc SUNW,T5240.

I’m trying to find a way to split a string into 2 variables.

Ex:
parm1=”192.168.1.101/parent/child”

What I need to do is split the string above into:

host=”192.168.1.101″
location=”parent/child”

I saw the solution provided here http://www.unix.com/shell-programmin…tion-file.html but somehow we don’t have the -o option for grep as I keep getting illegal option –o.

The purpose of this is for a shell script already created to do an FTP function. Originally it was intended for accepting HOST, USER, PASS and FILE parameters only. Basically file goes to whatever the main directory on FTP connect. Now users are passing HOST/folder as value for HOST parameter which gives out an error now since 192.168.1.101/parent/child is not a valid HOST. And it would be a lot of work to add another parameter for LOCATION because a lot of other programs are already using this script so I’m trying to avoid this solution for now.

I’d appreciate any suggestions.

Thanks.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Interface e1000g0 not showing in running state

By rajjat2

Hello all,
I have a sun server SunOS PNR1RAD01 5.10 Generic_144488-09 sun4v sparc SUNW,Netra-T5220 where i have an interface e100g0.
This was earlier in running state but now this doesnt show running state. I tried to reset the interface, checked the cable but it did not help.
Can nyone pls help me on this.

e1000g0: flags=1000803 mtu 1500 index 2
inet 10.200.2.73 netmask fffffff8 broadcast 10.200.2.79
ether 0:21:28:bd:55:3e

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Configure ce0 as ce4000 in Solaris 9 ?

By judi

can we configure the ce0 and ce1 interface as ce4000 and ce5000 in solaris 9

I have a server configured similar way.. I need to setup another two server in such configuration find the sample output from working server.

Please help

root@judi:[15:26:19]:/dev# ifconfig -a
lo0: flags=1000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
ce4000: flags=201000843 mtu 1500 index 2
inet 172.20.49.144 netmask ffffff80 broadcast 172.20.49.255
ether 0:3:ba:7a:e2:d0
ce5000: flags=201000843 mtu 1500 index 3
inet 172.20.37.67 netmask ffffff00 broadcast 172.20.37.255
ether 0:3:ba:7a:e2:d0
root@judi:[15:26:21]:/dev# grep -i net /etc/path_to_inst
“/pci@1f,0/network@a” 0 “ce”
“/pci@1f,0/network@b” 1 “ce”
root@judi:[15:26:43]:/dev# uname -a
SunOS judi 5.9 Generic_118558-02 sun4u sparc SUNW,Serverblade1
root@judi:[15:26:47]:/dev#

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

/usr/lib/vhost.so missing Solaris 5.10

By Jcpratap

Hi,

i have a solaris 5.10 machine on which i am getting below error while
executing cat command

Code:

ld.so.1: cat: fatal: vhost.so: open failed: No such file or directory
Killed


it is related to file vhost.so missing

Also when i did

Code:

ldd cat


result is as below

Code:


libc.so.1 => /lib/libc.so.1
libm.so.2 => /lib/libm.so.2
/lib/libm/libm_hwcap1.so.2
/platform/SUNW,SPARC-Enterprise/lib/libc_psr.so.1


In a old system where its working

Code:

ldd cat


o/p is

Code:

vhost.so => /usr/lib/vhost.so
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
/usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1


here the issue is /usr/lib/vhost.so missing , anyone has any idea how to install this file, is there any package i have to install , please help

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Using egrep to output expressions which are not found

By 02JayJay02

Hi,

Im using the below command to search a file for multiple expressions if the 4th expression doesnt exist the command simply lists what it can find and ignores what it cant. Is there any way to get the command to output an error or a message if it cant find the 4th expression to a file?

Any help will be much appreciated 🙂

Code:

egrep -is 'Schema Area|stock|route_drop|test123' /apps/Main_structure.txt 1>/apps/grep_error.txt


Code:

SunOS sants 5.10 Generic_118822-30 sun4u sparc SUNW,Sun-Fire-V490


…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Blade 1500 Silver

By MadeInGermany

CPU/Speed: UltraSPARC-IIIi/1.5Ghz
Ram: 1GB
Motherboard: Sparc
Bus: PCI
Cache:
Controller:
Disk: ATA
Load: 1 user
Kernel: SunOS 5.10 Generic_137111-02
Kernel ELF?: yes
pgms: gcc 2.95.3 compiled

BYTE UNIX Benchmarks (Version 3.11)
System — SunOS aachen95 5.10 Generic_137111-02 sun4u sparc SUNW,Sun-Blade-1500
Start Benchmark Run: Tue Feb 12 18:36:33 MET 2013
10 interactive users.
Dhrystone 2 without register variables 2368680.4 lps (10 secs, 6 samples)
Dhrystone 2 using register variables 2138532.7 lps (10 secs, 6 samples)
Arithmetic Test (type = arithoh) 3047742.0 lps (10 secs, 6 samples)
Arithmetic Test (type = register) 145400.3 lps (10 secs, 6 samples)
Arithmetic Test (type = short) 126624.1 lps (10 secs, 6 samples)
Arithmetic Test (type = int) 143236.6 lps (10 secs, 6 samples)
Arithmetic Test (type = long) 157815.3 lps (10 secs, 6 samples)
Arithmetic Test (type = float) 444529.1 lps (10 secs, 6 samples)
Arithmetic Test (type = double) 407111.3 lps (10 secs, 6 samples)
System Call Overhead Test 247231.5 lps (10 secs, 6 samples)
Pipe Throughput Test 350931.2 lps (10 secs, 6 samples)
Pipe-based Context Switching Test 82263.6 lps (10 secs, 6 samples)
Process Creation Test 934.4 lps (10 secs, 6 samples)
Execl Throughput Test 273.1 lps (9 secs, 6 samples)
File Read (10 seconds) 711424.0 KBps (10 secs, 6 samples)
File Write (10 seconds) 1000.0 KBps (10 secs, 6 samples)
File Copy (10 seconds) 1004.0 KBps …read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Install apache 2.2.22 on Solaris 10

By manalisharmabe

Hi all,
I received this error
on Server,

Code:

-bash-3.00$ /usr/local/apache2/bin/httpd -v
ld.so.1: httpd: fatal: libaprutil-1.so.0: open failed: No such file or directory
Killed
-bash-3.00$


How to resolve this dependencies which are not resolved?

Code:

user4@server01:bin> ldd httpd
libm.so.1 => /usr/lib/libm.so.1
libaprutil-1.so.0 => (file not found)
libgdbm.so.3 => (file not found)
libdb-4.2.so => (file not found)
libexpat.so.0 => (file not found)
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libapr-1.so.0 => (file not found)
libsendfile.so.1 => /usr/lib/libsendfile.so.1
librt.so.1 => /usr/lib/librt.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libpthread.so.1 => /usr/lib/libpthread.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libc.so.1 => /usr/lib/libc.so.1
libaio.so.1 => /lib/libaio.so.1
libmd.so.1 => /lib/libmd.so.1
libmp.so.2 => /lib/libmp.so.2
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-V440/lib/libmd_psr.so.1


Other info:-

Code:

-bash-3.00$ ps -ef | httpd
-bash: httpd: command not found
-bash-3.00$ ps -ef | grep httpd
user1 19499 18459 0 14:26:38 pts/8 0:00 grep httpd


…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Check log file size every 10 minute. Alert if log not update

By ooilinlove

How to check log size every 10min. by script (can use crontab)
if log size not change with alert “Log not update”

Code:

Base run on SunOS 5.8 Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise


Code:

logFiles="log1.log log2.log"
logLocation="/usr/home/test/log/"


Out put.

Code:

Tue Jan 31 16:24:03 ICT 2013
log1.log :: Log not running :: Pls Check Service 1 minute.
log2.log :: Log not running :: Pls Check Service 2 minute.

Tue Jan 31 16:25:03 ICT 2013
log1.log :: Log not running :: Pls Check Service 3 minute.
log2.log :: OK

Tue Jan 31 16:26:04 ICT 2013
log1.log :: Log not running :: Pls Check Service 1 minute.
log2.log :: Log not running :: Pls Check Service 2 minute.

Tue Jan 31 16:27:04 ICT 2013
log1.log :: Log not running :: Pls Check Service 3 minute.
log2.log :: Log not running :: Pls Check Service 4 minute.


Source: FULL ARTICLE at The UNIX and Linux Forums

Reuse old/configured server for new purpose problems.

By RedSpyder

Greetings.

First of all I consider myself a newbe in Linux, that’s why I’m seeking your help so please be patient!

I was given an old server (Solaris) that has Oracle (10.2.0) installed with a few databases. I’m supposed to reuse this server for this new application which will process data and create reports with a web interface (so Ill have to install tomcat,glassfish etc..)

My problems:

1. The server has been previously configured for something else, so I have no password for Oracle.
2. I thought of reinstalling Oracle but I have no idea how because of the way things have been partitioned


Filesystem size used avail capacity Mounted on
/dev/md/dsk/d10 15G 13G 1.2G 93% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 6.7G 1.7M 6.7G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/platform/SUNW,T5240/lib/libc_psr/libc_psr_hwcap2.so.1
15G 13G 1.2G 93% /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,T5240/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
15G 13G 1.2G 93% /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd 0K 0K 0K 0% /dev/fd
swap 6.7G 64K 6.7G 1% /tmp
swap 6.7G 72K 6.7G 1% /var/run
app 667G 44K 748M 1% /app
app/backup 40G 45K 40G 1% /backup
oslocal/export_home 60G 15G 45G 26% /export/home
app/home_app 12G 3.5G 8.5G 30% /home/app
app/oradata_smart_ora1
13G 1.1G 12G 9% /oradata/SMART/ora1
app/oradata_smart_ora2
18G 7.1G 11G 40% /oradata/SMART/ora2
app/oradata_smart_ora3
36G 20G 16G 56% /oradata/SMART/ora3
app/oradata_smart_ora4
166G 136G 30G 82% /oradata/SMART/ora4
app/oradata_smart_ora5
55G 12G 43G 22% /oradata/SMART/ora5
app/oradata_smart_ora6
75G 47G 28G 63% /oradata/SMART/ora6
app/oradata_smart_ora7
147G 122G 25G 84% /oradata/SMART/ora7
app/oradata_smart_redo1
3.0G 601M 2.4G 20% /oradata/SMART/redo1
app/oradata_smart_redo2
3.0G 601M 2.4G 20% /oradata/SMART/redo2
app/oradata_smart_redo3
3.0G 601M 2.4G 20% /oradata/SMART/redo3
oslocal 100G 20K 25G 1% /oslocal
app/smart 95G 45K 95G 1% /smart


3. I will need to maximize space for the application since I theres q requirement of 400GB+

4. I really really really want to avoid wiping the server and configuring from scratch…

What are your thoughts of this? What approach should I take? If you need more information let me know…

Thanks in advance

Source: FULL ARTICLE at The UNIX and Linux Forums

Finding process that turned on ports

By csross

I have 2 identical solaris 10 servers that are simply apache servers, running a version of apache I installed.

# uname -a
SunOS wilber 5.10 Generic_147440-25 sun4u sparc SUNW,Sun-Fire-V245

I did a netstat on one of the servers and see 2 ports that are on. These are only on on one of the servers.

*.52606 Idle
*.52625 Idle

I compared all the online services and they are identical. I did a ps and there is no process associated with it.

Does any one know what they are from and how to turn it off please?

Source: FULL ARTICLE at The UNIX and Linux Forums

Not able to access console

Hi,
I have a scheduled activity to reboot E2900 server. But suddenly I came to know that console ip is not pinging, not connecting via telnet, as it used to connect. I already checked with my onsite person and he changed cable, still no luck. Network person checked his switch, which is showing online. I think, it should have rsc card, but I do not see rscadm inside /usr/platform/`uname -i`/sbin/. Otherwise I could have done “rscadm resetrsc”.

HTML Code:
root@ora_prod16:/# uname -a
SunOS ora_prod16 5.10 Generic_120011-14 sun4u sparc SUNW,Netra-T12
root@ora_prod16:/# prtdiag -v | head -3
System Configuration: Sun Microsystems sun4u Sun Fire E2900
System clock frequency: 150 MHZ
Memory size: 64GB
root@ora_prod16:/# ls -l /usr/platform/`uname -i`/sbin/
total 232
-r-xr-sr-x 1 root sys 18888 Jan 24 2007 eeprom
-rwxr-xr-x 1 root sys 18880 Jan 24 2007 fruadm
-rwxr-sr-x 1 root sys 10024 Jan 24 2007 prtdiag
drwxr-xr-x 2 root bin 512 Nov 9 2007 sparcv9+vis2
-r-xr-xr-x 1 root bin 39520 Aug 16 2007 trapstat
lrwxrwxrwx 1 root root 40 Nov 9 2007 wrsmconf -> ../../../../platform/sun4u/sbin/wrsmconf
-rwxr-xr-x 1 root sys 27048 Jan 23 2005 wrsmstat
I am really not sure, if E2900 have rsc or sc console.
Can somebody suggest some help on this ?
Regards
Source: The UNIX and Linux Forums

Solaris: Not able to access E2900 console

Hi,
I have a scheduled activity to reboot E2900 server. But suddenly I came to know that console ip is not pinging, not connecting via telnet, as it used to connect. I already checked with my onsite person and he changed cable, still no luck. Network person checked his switch, which is showing online. I think, it should have rsc card, but I do not see rscadm inside /usr/platform/`uname -i`/sbin/. Otherwise I could have done “rscadm resetrsc”.

HTML Code:
root@ora_prod16:/# uname -a
SunOS ora_prod16 5.10 Generic_120011-14 sun4u sparc SUNW,Netra-T12
root@ora_prod16:/# prtdiag -v | head -3
System Configuration: Sun Microsystems sun4u Sun Fire E2900
System clock frequency: 150 MHZ
Memory size: 64GB
root@ora_prod16:/# ls -l /usr/platform/`uname -i`/sbin/
total 232
-r-xr-sr-x 1 root sys 18888 Jan 24 2007 eeprom
-rwxr-xr-x 1 root sys 18880 Jan 24 2007 fruadm
-rwxr-sr-x 1 root sys 10024 Jan 24 2007 prtdiag
drwxr-xr-x 2 root bin 512 Nov 9 2007 sparcv9+vis2
-r-xr-xr-x 1 root bin 39520 Aug 16 2007 trapstat
lrwxrwxrwx 1 root root 40 Nov 9 2007 wrsmconf -> ../../../../platform/sun4u/sbin/wrsmconf
-rwxr-xr-x 1 root sys 27048 Jan 23 2005 wrsmstat
I am really not sure, if E2900 have rsc or sc console.
Can somebody suggest some help on this ?
Regards
Source: The UNIX and Linux Forums

Incompatiblity of the code due to CC compiler version mismatch.

Incompatiblity of the code due to CC compiler version mismatch.

I have a machine with

Code:
Machine A– Operating System:SunOs 5.8 Generic_117350-45 sun4u sparc SUNW,Ultra-80(solaris 5.8)
CC Compiler:CC: WorkShop Compilers 4.2 16 Jun 1998 C++ 4.2 patch 104631-07
we have compiled C++ code, generated .so files are working fine on the Machine C —
Machine C)Operating System:5.10 Generic_147440-03 sun4v sparc sun4v(Solaris 5.10)

Machine B — Operating System:5.8 Generic_Virtual sun4v sparc sun4v
CC Compiler:CC:CC: Sun C++ 5.8 2005/10/13
we have compiled C++ code, generated .so files are not working fine on the Machine C

Machine C — Operating System:5.10 Generic_147440-03 sun4v sparc sun4v(Solaris 5.10)
I would like to know
1) If the code compiled with compiler on Machine A is compatable on Machine C.why the code compiled on Machine B incompatable on Machine C.
2)Machine A and Machine B are with the same SunOs 5.8 version but with a different CC compiler version.we suspect the CC compiler version mismatch on the machines A and B is the cause of the problem.

Expecting solution so that we could able to run the code on Machine C with the compiler available in Market(WorkShop Compilers 4.2 16 Jun 1998 C++ 4.2 patch 104631-07 was not found)
any solution to the problem is helpful and appreciable.Thanks in advance.

Regards,
Revathi

Moderator’s Comments:

Code tags please

Source: The UNIX and Linux Forums