This discussion is archived
0 Replies Latest reply: Dec 24, 2012 3:55 AM by user6476282 RSS

Unable to run NSM agent installation script in Solaris 10

user6476282 Newbie
Currently Being Moderated
Unable to run NSM agent installation script in Solaris 10 , the same is not starting

root@cnuspp07 # ./setupNSM -V
root@cnuspp07 #
root@cnuspp07 #


Truss output

root@cnuspp07 # truss ./setupNSM -V
execve("/sbin/sh", 0xFFBFFA7C, 0xFFBFFA8C) argc = 3
sysinfo(SI_MACHINE, "sun4v", 257) = 6
mmap(0x00000000, 32, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF3F0000
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF3A0000
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF390000
memcntl(0xFF3B0000, 17632, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF380000
memcntl(0x00010000, 19932, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
resolvepath("/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
resolvepath("/sbin/sh", "/sbin/sh", 1023) = 8
stat64("/sbin/sh", 0xFFBFF548) = 0
open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
stat64("/usr/openwin/lib/libc.so.1", 0xFFBFECA8) Err#2 ENOENT
stat64("/lib/libc.so.1", 0xFFBFECA8) = 0
resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
open("/lib/libc.so.1", O_RDONLY) = 3
mmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF370000
mmap(0x00010000, 1368064, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF220000
mmap(0xFF220000, 1245789, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFF220000
mmap(0xFF362000, 35965, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 1253376) = 0xFF362000
mmap(0xFF36C000, 1616, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF36C000
munmap(0xFF352000, 65536) = 0
munmap(0xFF370000, 32768) = 0
close(3) = 0
memcntl(0xFF220000, 145988, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF370000
getcontext(0xFFBFF3B8)
getrlimit(RLIMIT_STACK, 0xFFBFF398) = 0
getpid() = 28049 [28048]
setustack(0xFF372A88)
getpid() = 28049 [28048]
getpgid(28049) = 28048
getsid(28049) = 26785
access("/usr/lib/locale", F_OK) = 0
brk(0x0003A108) = 0
sysconfig(_CONFIG_SIGRT_MIN) = 41
sysconfig(_CONFIG_SIGRT_MAX) = 48
sigaltstack(0xFFBFF984, 0x00000000) = 0
schedctl() = 0xFF212000
sigaction(SIGHUP, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGHUP, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGINT, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGINT, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGQUIT, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGQUIT, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGILL, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGILL, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGTRAP, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGTRAP, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGABRT, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGABRT, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGEMT, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGEMT, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGFPE, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGFPE, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGBUS, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGBUS, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGSEGV, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGSYS, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGSYS, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGPIPE, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGPIPE, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGALRM, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGALRM, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGTERM, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGTERM, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGUSR1, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGUSR1, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGUSR2, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGUSR2, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGPWR, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGPWR, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGURG, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGURG, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGPOLL, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGPOLL, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGVTALRM, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGVTALRM, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGPROF, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGPROF, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGXCPU, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGXCPU, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGXFSZ, 0x00000000, 0xFFBFF900) = 0
sigaction(SIGXFSZ, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGRTMIN, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGRTMIN+1, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGRTMIN+2, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGRTMIN+3, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGRTMAX-3, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGRTMAX-2, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGRTMAX-1, 0xFFBFF840, 0xFFBFF8E0) = 0
sigaction(SIGRTMAX, 0xFFBFF840, 0xFFBFF8E0) = 0
stat64("/platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1", 0xFFBFEC20) = 0
resolvepath("/platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1", "/platform/sun4v/lib/libc_psr.so.1", 1023) = 33
open("/platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1", O_RDONLY) = 3
mmap(0x00010000, 9244, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF200000
munmap(0xFF202000, 1052) = 0
close(3) = 0
brk(0x0003A1F0) = 0
brk(0x0003A3F0) = 0
brk(0x0003A5F0) = 0
getuid() = 0 [0]
getuid() = 0 [0]
getgid() = 0 [0]
getgid() = 0 [0]
open64("./setupNSM", O_RDONLY) = 3
close(19) Err#9 EBADF
fcntl(3, F_DUPFD, 0x00000013) = 19
close(3) = 0
fcntl(19, F_SETFD, 0x00000001) = 0
ioctl(2, TCGETA, 0xFFBFF8AC) = 0
ioctl(19, TCGETA, 0xFFBFF8AC) Err#25 ENOTTY
read(19, " # ! / b i n / s h\n # *".., 128) = 128
read(19, " l I n f o r m a t i o".., 128) = 128
read(19, " i n f o r m a t i o n".., 128) = 128
read(19, " , d i s c l o s e d ".., 128) = 128
read(19, " A T E S . A l l a u".., 128) = 128
read(19, " ".., 128) = 128
read(19, " - - - - - - - - - - - -".., 128) = 128
read(19, " - - - - - - - - - - - -".., 128) = 128
read(19, " e r n a t i o n a l , ".., 128) = 128
read(19, " E C H O = " e c h o "\n".., 128) = 128
getuid() = 0 [0]
stat64("/opt/CA/SharedComponents/bin/uname", 0xFFBFF220) Err#2 ENOENT
stat64("/opt/CA/SharedComponents/bin/uname", 0xFFBFF220) Err#2 ENOENT
stat64("/usr/sbin/uname", 0xFFBFF220) Err#2 ENOENT
stat64("/usr/bin/uname", 0xFFBFF220) = 0
access("/usr/bin/uname", X_OK|E_OK) = 0
pipe() = 3 [4]
fork1() = 28050
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
close(4) = 0
read(3, " S u n O S\n", 128) = 6
read(3, 0xFFBFF5B8, 128) = 0
ioctl(3, TCGETA, 0xFFBFF43C) Err#22 EINVAL
ioctl(3, TCGETA, 0xFFBFF49C) Err#22 EINVAL
close(3) = 0
waitid(P_PID, 28050, 0xFFBFF438, WEXITED|WTRAPPED) = 0
read(19, " a t u s > / d e v /".., 128) = 128
brk(0x0003A8F0) = 0
fork1() = 28051
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
waitid(P_PID, 28051, 0xFFBFF758, WEXITED|WTRAPPED|WNOWAIT) = 0
ioctl(0, TIOCGPGRP, 0xFFBFF774) = 0
ioctl(0, TCGETS, 0x00039190) = 0
waitid(P_PID, 28051, 0xFFBFF758, WEXITED|WTRAPPED) = 0
brk(0x0003A6F0) = 0
read(19, " L i n u".., 128) = 128
read(19, " C A - D S M " ] & &".., 128) = 128
brk(0x0003AAF0) = 0
read(19, "\n ".., 128) = 128
pipe() = 3 [4]
fork1() = 28052
lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
close(4) = 0
read(3, " S u n O S\n", 128) = 6
read(3, 0xFFBFF638, 128) = 0
ioctl(3, TCGETA, 0xFFBFF4BC) Err#22 EINVAL
ioctl(3, TCGETA, 0xFFBFF51C) Err#22 EINVAL
close(3) = 0
waitid(P_PID, 28052, 0xFFBFF4B8, WEXITED|WTRAPPED) = 0
stat64("/usr/openwin/lib/libgen.so.1", 0xFFBFED60) Err#2 ENOENT
stat64("/lib/libgen.so.1", 0xFFBFED60) = 0
resolvepath("/lib/libgen.so.1", "/lib/libgen.so.1", 1023) = 16
open("/lib/libgen.so.1", O_RDONLY) = 3
mmap(0x00010000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFF1F0000
mmap(0x00010000, 98304, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF1D0000
mmap(0xFF1D0000, 22089, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFF1D0000
mmap(0xFF1E6000, 2303, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 24576) = 0xFF1E6000
munmap(0xFF1D6000, 65536) = 0
munmap(0xFF1F0000, 32768) = 0
close(3) = 0
memcntl(0xFF1D0000, 5656, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
stat64("/etc/init.d/CA-DSM", 0xFFBFF570) Err#2 ENOENT
brk(0x0003A8F0) = 0
brk(0x0003A6F0) = 0
read(19, " " $ f i l e " ] &".., 128) = 128
brk(0x0003ABF0) = 0
stat64("/etc/profile", 0xFFBFF570) = 0
fcntl(1, F_DUPFD, 0x0000000A) = 10
fcntl(10, F_SETFD, 0x00000001) = 0
creat64("/dev/null", 0666) = 3
fcntl(1, F_GETFD, 0x00000000) = 0
close(1) = 0
fcntl(3, F_DUPFD, 0x00000001) = 1
close(3) = 0
fcntl(2, F_DUPFD, 0x0000000A) = 11
fcntl(11, F_SETFD, 0x00000001) = 0
dup(1) = 3
fcntl(2, F_GETFD, 0x00000000) = 0
close(2) = 0
fcntl(3, F_DUPFD, 0x00000002) = 2
close(3) = 0
open64("/etc/profile", O_RDONLY) = 3
read(3, " # i d e n t\t " @ ( # )".., 128) = 128
read(3, " p " " 2 3\n e x".., 128) = 128
read(3, " i\n\n #\t L o g i n a".., 128) = 128
read(3, " - j s h | - b a s".., 128) = 128
read(3, " " t r a p ' ' 2 " ".., 128) = 128
brk(0x0003B1F0) = 0
read(3, "\n\t\t\t e c h o " Y o".., 128) = 72
read(3, 0xFFBFF6A8, 128) = 0
ioctl(3, TCGETA, 0xFFBFF0BC) Err#25 ENOTTY
ioctl(3, TCGETA, 0xFFBFF11C) Err#25 ENOTTY
close(3) = 0
sigaction(SIGINT, 0xFFBFF358, 0xFFBFF3F8) = 0
sigaction(SIGQUIT, 0xFFBFF358, 0xFFBFF3F8) = 0
umask(022) = 022
sigaction(SIGINT, 0xFFBFF158, 0xFFBFF1F8) = 0
sigaction(SIGQUIT, 0xFFBFF158, 0xFFBFF1F8) = 0
fcntl(2, F_GETFD, 0x00000000) = 0
close(2) = 0
fcntl(11, F_DUPFD, 0x00000002) = 2
close(11) = 0
fcntl(1, F_GETFD, 0x00000000) = 0
close(1) = 0
fcntl(10, F_DUPFD, 0x00000001) = 1
close(10) = 0
stat64("/etc/profile.CA", 0xFFBFF570) = 0
fcntl(1, F_DUPFD, 0x0000000A) = 10
fcntl(10, F_SETFD, 0x00000001) = 0
creat64("/dev/null", 0666) = 3
fcntl(1, F_GETFD, 0x00000000) = 0
close(1) = 0
fcntl(3, F_DUPFD, 0x00000001) = 1
close(3) = 0
fcntl(2, F_DUPFD, 0x0000000A) = 11
fcntl(11, F_SETFD, 0x00000001) = 0
dup(1) = 3
fcntl(2, F_GETFD, 0x00000000) = 0
close(2) = 0
fcntl(3, F_DUPFD, 0x00000002) = 2
close(3) = 0
open64("/etc/profile.CA", O_RDONLY) = 3
read(3, " C A _ S E C T I O N = $".., 128) = 128
write(2, " . / s e t u p N S M", 10) = 10
write(2, " : ", 2) = 2
write(2, " s y n t a x e r r o r", 12) = 12
write(2, " a t l i n e ", 9) = 9
write(2, " 3", 1) = 1
write(2, " : ", 2) = 2
write(2, " `", 1) = 1
write(2, " }", 1) = 1
write(2, " '", 1) = 1
write(2, " u n e x p e c t e d", 11) = 11
write(2, "\n", 1) = 1
_exit(2)
root@cnuspp07 #

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points