Reg: stat command in solaris 10

Hi Gurus,
Where i can find the stat command in solaris 10.
Any one help is appreciated.

Hi
/opt/sfw/bin/stat
if you do a full install including the Companion DVD.
More importantly, what exactly are you trying to achieve?
Paul

Similar Messages

  • Sysdef command in Solaris 10.

    Hi All,
    sysdef command in Solaris 10 ( 5.10, s10_58 ) no more reports the message queue related Kernel
    parameters i.e msgsys:msginfo_msgmax ( MSGMAX ) etc. For more info refer the link below :
    http://docs.sun.com/db/doc/816-7137/6md5paukq?a=view
    Since sysdef command no more reports the above parameters, what is the other way we can get the
    same in Solaris 10? We have written our script in such a way that it greps for MSGMAX from the outcome
    of sysdef and gets its value and perform certain operations. Quick reply would be greatly appreciated.
    Thanks

    We have written our script in such
    a way that it greps for MSGMAX from the outcome
    of sysdef and gets its value and perform certain
    operations. Quick reply would be greatly appreciated.msgmax (maximum per-message size) has been removed completely -- there is no equivalent on Solaris 10. Instead, the
    maximum total bytes on the queue, process.max-msg-qbytes (previously msginfo_msgmnb) is the only restriction on what can be placed in a SysV message queue.
    To retrieve the current value of this in a script, you can use:prctl -P -n process.max-msg-qbytes -t privileged $$ | tail -1 | read x x value x x xNote that this is no longer a system-wide tunable -- the administrator can control this on a per-project basis. (see projects(1))
    - jonathan

  • Cannot run zpool (zfs feature) command in Solaris 10 6/06

    Hi, I couldnt run ZPOOL command in Solaris 10 6/06. It said command not found.
    May I know what should I do? My Solaris 10 version provide Solaris zoning features, but no ZFS feature provided.
    How?

    check your PATH- the zpool command is in the /usr/sbin directory.
    Also, double check you have the zfs packages-
    #pkginfo | grep zfs
    system SUNWzfskr ZFS Kernel (Root)
    system SUNWzfsr ZFS (Root)
    system SUNWzfsu ZFS (Usr)

  • How to Setup an ACL over a Command in solaris 2.6

    Hi all,
    Has anyone have an idea on how to setup an ACL over a command
    in solaris 2.6 . i.e: to force a user (or a group) to enter a
    password to run a command (like mount and others).
    Thanks for your help.
    haed98.
    [email protected]

    Hi head98,
    You can set ACL using setfacl commands. This way you can exclusively assign read/write/execute permissions on command that you wish. But ACL doesn't prompt for passwords or you can set passwords using ACL. One way of doing this will be to create wrapper for commands which will prompt for passwd, compare them with /etc/shadow and then execute the real command.
    Hope this helps, Thanks. SUN/DTS

  • Is there chatr command for solaris??

    Hi Everybody,
    In HP-UX, I use chatr command for finding the library dependencies and for changing their flags dynamically.
    Can you please let me know if there is any such command in solaris 10??
    I know ldd command, but it does not allow me to change the library loading flags.
    Thanks in advance
    Durga Prasad

    Solaris will always use your LD_LIBRARY_PATH to find the location of your dynamic libraries. If you haven't defined any LD_LIBRARY_PATH the systems settings are used instead. You may alter the default settings of your system by running the crle utility.
    As far as i understand; if you build a static library under Solaris, the executable will actually contain the static libraries which you linked into it so it won't have to load external libraries.
    7/M.

  • A locate command for solaris

    Hi all,
    does anyone know any equivalent to the locate command for Solaris?
    Thanks all
    Here I'm helping others to find it faster than me :-)
    locate for solaris
    locate equivalent for solaris
    how to find files in solaris
    how to find directories in solaris
    find filenames quickly

    This would be a good question for one of the forums on opensolaris.org, you might
    get better answers there. If the file you are looking for was installed via packages,
    then you can use the package database to look it up.
    I think you have to be root (which is lame). Here is an example for
    the file "libxil.so.1"
    # pkgchk -l -P libxil.so.1
    Pathname: /opt/SUNWits/Graphics-sw/xil/lib/libxil.so
    Type: symbolic link
    Source of link: /usr/openwin/lib/libxil.so.1
    Referenced by the following packages:
    SUNWxilrl
    Current status: installed
    Pathname: /opt/SUNWits/Graphics-sw/xil/lib/libxil.so.1
    Type: symbolic link
    Source of link: /usr/openwin/lib/libxil.so.1
    Referenced by the following packages:
    SUNWxilrl
    Current status: installed
    Pathname: /usr/lib/libxil.so
    Type: symbolic link
    Source of link: ./libxil.so.1
    Referenced by the following packages:
    SUNWxwrtl
    Current status: installed
    Pathname: /usr/lib/libxil.so.1
    Type: symbolic link
    Source of link: ../openwin/lib/libxil.so.1
    Referenced by the following packages:
    SUNWxwrtl
    Current status: installed
    Pathname: /usr/openwin/lib/libxil.so
    Type: symbolic link
    Source of link: libxil.so.1
    Referenced by the following packages:
    SUNWxilrl
    Current status: installed
    Pathname: /usr/openwin/lib/libxil.so.1
    Type: regular file
    Expected mode: 0755
    Expected owner: root
    Expected group: bin
    Expected file size (bytes): 952740
    Expected sum(1) of contents: 59048
    Expected last modification: Jan 22 19:00:53 2005
    Referenced by the following packages:
    SUNWxilrl
    Current status: installed

  • Uptime command in solaris 10

    Hi,
    On one of my solaris 10 installation i tried giving the "uptime" command and got the below output
    10:31am 2 users, load average: 0.02, 0.02, 0.01
    To my surprise it did not show the no.of days the system is up. Could anyone please help me.
    Thanks.

    Hi,
    Both /usr/bin/uptime and /usr/bin/w came from the same source file:
    http://cvs.opensolaris.org/source/xref/usr/src/cmd/w/w.c
    w/uptime depends on /var/adm/utmpx as their source of data. Judging from the observation you have noted, the utmpx file did exist. Otherwise you would be seeing "stat error of /var/adm/utmpx: No such file or directory".
        244      if (stat(UTMPX_FILE, &sbuf) == ERR) {
        245           (void) fprintf(stderr, gettext("%s: stat error of %s: %s\n"),
        246                prog, UTMPX_FILE, strerror(errno));
        247           exit(1);
        248      }
    ...The reason that you did not have a system uptime was that in the /var/adm/utmpx file, there was no record or type BOOT_TIME.
        275                } else if (ut->ut_type == BOOT_TIME) {
        276                     uptime = now - ut->ut_xtime;
        277                     uptime += 30;
    ...Either the file is corrupted or truncated.
    Hope this helps.

  • Grep command in Solaris 10

    Hi all,
    I linux i can use this command
    grep -C 3 err /u01/oracle/admin/ORCL/bdump/alert_ORCL.log
    How can i do this in Solaris 10?
    Thanks in advance!
    Dan.

    This work perfectly!
    -bash-3.00$ /usr/sfw/bin/ggrep -C 3 err /u01/oracle/admin/ORCL/bdump/alert_ORCL.log
    Thank you all!
    Dân
    Edited by: Dan on Jan 9, 2012 10:36 PM

  • How to remove truncation in the output of ps -ef command in solaris

    Hi,
    One silly question but i m unable to find solution.
    In solaris-10 when i executed the command ps -ef some datas in the output in the command column is truncated as below
    UID PID PPID C STIME TTY TIME CMD
    root 6811 1 0 19:33:36 pts/3 0:00 sh /export/home/bti/bti/Revathi/BTI/EMS/bin/startemsserver.sh
    root 6827 6819 0 19:33:37 pts/3 2:33 /export/home/bti/bti/Revathi/BTI/EMS/jre/bin/java -DJBOSS_HOME=/export/home/bti
    Where in the CMD column the path */export/home/bti/bti/Revathi/BTI/EMS/jre/bin/java -DJBOSS_HOME=/export/home/bti* continues. Only half of the path is shown. I need the entire path how to achieve it
    Regards
    Revathi

    Just to make things a little more complex...
    /usr/ucb/ps (actually /usr/ucb/sparcv9/ps) used to be SUID root so that it could read the full args directly out of the address space of the process (/proc/<pid>/as).
    Sun removed this behavior in Solaris 8 with patch 109023-05 and in Solaris 9 with patch 120240-01 (it's been removed from Solaris 10 since FCS)

  • The result of id command in Solaris 10

    Hi Guys,
    I was trying to install oracle database in Solaris 10 8/11.
    at the end of installation where we supposed to execute the root.sh in the ORACLE_HOME it is said that I am not root.
    Actually I was already connected as root.
    in this root.sh command, it actually validates the user which trying to execute it.
    here's the validation part:
    RUID=`/usr/bin/id|$AWK -F\( '{print $2}'|$AWK -F\) '{print $1}'`
    if [ ${RUID} != "root" ];then
      $ECHO "You must be logged in as root to run root.sh."| $TEE -a $LOG
      $ECHO "Log in as root and restart root.sh execution."| $TEE -a $LOG
      exit 1
    fiapparently the result of id in this Solaris I'm using is:
    uid=0(#root) gid=0(root)
    that is why the validation is always failed because it always compares root against #root.
    is this something new in Solaris 10 8/11?
    anyway, once I fixed the script, everything is running fine.
    btw, this is a Solaris 10 X64 installed inside a virtual box.
    Regards,
    Adhika

    Hi Abrante,
    Thanks a lot!
    You're right I changed the shell on the /etc/passwd but I want to maintain the old value so I just comment out the original line.
    I didn't think that it will still be read like this.
    is there any way to comment out lines in /etc/passwd?
    Thank you,
    Adhika

  • Ps (list process) command in Solaris 10

    Dear all
    I'm upgrade from Solaris 9 to Solaris 10 and recently I meet one problem:
    In solaris 9, If I want to check the complete command for the running process, I could use
    /usr/ucb/ps -auxww
    then, the system could gives me everything.
    But in Solaris 10, I use the same command, but it seems that system has "cut" the args and I can't get the expected result anymore.
    Anybody ever meet such a problem before? could you give me some hints?
    Cheers
    Shen

    Under normal circumstances, the /usr/ucb/ps command is attempting to read the ARGV[0] from the process itself. This string can be long, but is under the control of the process (it can change it while it runs). Also, because of security issues, reading this data requires process privileges (usually have to be the owner or root).
    If privileges do not exist, ps will fall back to using the kernel buffer holding the first 80 characters of the exec string. This string is potentially shorter, but not under the control of the process, and no security restrictions exist for reading it.
    Besides /usr/ucb/ps, you can use 'pargs <PID>' to view this string. Of course if privileges aren't held, it won't tell you anything new. But it may be more explicit in telling you that fact, rather than silently substituting the kernel string instead.
    $ pargs 597
    pargs: cannto examine 597: permission denied
    Darren

  • SQL 2012 Management Studio messages outcome is not in english after running any statement/command

    I have recently installed SQL 2012 and by default I have selected "english" as first language. When I run any statement into SQL management studio the messages outcome shows into different language
    How I can change it back to English
    Example
    Przetworzono: 10 procent.
    Przetworzono: 20 procent.
    Przetworzono: 30 procent.
    Przetworzono: 40 procent.
    Przetworzono: 50 procent.
    Przetworzono: 60 procent.
    Przetworzono: 70 procent.
    Przetworzono: 80 procent.
    Przetworzono: 90 procent.
    Przetworzono: 100 procent.
    Muhammad Mehdi

    @ Sofiya
    After I run command I got message
    Changed language setting to us_english.
    But when I try other syntax like recovery of database it is not in english
    Przetworzono: 10 procent.
    Przetworzono: 20 procent.
    Przetworzono: 30 procent.
    Przetworzono: 40 procent.
    Przetworzono: 50 procent.
    Przetworzono: 60 procent.
    Przetworzono: 70 procent.
    Przetworzono: 80 procent.
    Przetworzono: 90 procent.
    Przetworzono: 100 procent.
    Muhammad Mehdi
    Hi,
    , you will have to use SET LANGUAGE to change the language in the above of syntax. If you have not installed the localized version of SQL Server, the default language is US English. I recommend you use the following stetament to check if you install
    the localized version of SQL Server.
    select @@language
     If you need to change the default language on this machine, then you will have to change the default language for individual logins, as doing it on a server level won't work. For more ifnormation, see:http://www.sqlservercurry.com/2010/11/change-default-language-for-sql-server.html
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Reg; password reset in solaris

    Hi,
    Can anyone help me to reset one of my login password in solaris server .
    Actually, my password got expired and unix team has reset the password based on my request.Thereafter they have warned me to chnage the password using password -r, but I am unable to do so.
    Can any one help me in giving the complete command.
    I have tried twice in two ways, but no use --
    1) passwd -r username
    2)passwd -r existingpasswd
    But both the ways, No luck.
    can anyone share the exact coomand.please
    With regards,
    Srini

    Hi,
    I dont have root password.
    I have tried both ways, noluck
    sd1db01:oradb$ passwd oradb
    passwd: Unsupported nsswitch entry for "passwd:". Use "-r repository ".
    Unexpected failure. Password file/table unchanged.
    sd1db01:oradb$ passwd
    passwd: Changing password for oradb
    passwd: Unsupported nsswitch entry for "passwd:". Use "-r repository ".
    Unexpected failure. Password file/table unchanged.
    sd1db01:oradb$
    With Regards,
    Srini

  • Is there an md5 command in Solaris 11

    Hi All,
    We have a customer looking for the executable 'md5' command in Solaris11.  Cust has several scripts that has the md5 command hardcoded in their scripts, and would like to use the exact 'md5' command.  I inform them about the built-in /usr/bin/md5sum and /usr/bin/digest checksum utility in Solaris, but they're still looking for the md5 command cause it will be difficult for them to rewrite multple scripts, and also they mentioned that the output of digest is different from the md5 command output.
    Is there an md5 command available for Solaris 11?  is there an optional package that contains the md5 executable? Pls help. thanks.

    Hello
    the md5 of a file can be done using the command digest (man digest)
    example
    /usr/bin/digest -a md5 /usr/bin/ls
    821a17eb71fc5c409ec289ae90539484
    -bash-4.1$ uname -a
    SunOS xxxxx.11 11.2 sun4v sparc sun4v
    the disgest command is installed in the core-os pkg
    basename   file   usr/bin/digest                                 
    pkg:/system/[email protected]
    Regards
    Eze

  • TFTP command under solaris 10

    I use tftp in solaris 10,like follows:
    $ tftp
    tftp> connect 127.0.0.1
    tftp> ls
    ?Invalid command
    tftp> put a.txt
    Transfer timed out.
    I want to know if I need to configure tftp under solaris 10,if need,how to configure it?
    how to show directory and file after connect command,which command I can use? ls is not right command. when I want to put a file,why Transfer timed out. I am puzzled with it. Which directory is source directory and which directory is destinate directory?A detailed example is better.
    Thanks

    You cannot list directory contents with tftp. If you want any sort of interactive session, use ftp.

Maybe you are looking for

  • Skype Number - Recebimento de chamada não está funcionando

    Comprei um Número Skype. E meus amigos tentam ligar e não dá nem mesmo sinal de toque. O número está ativado mas não consigo receber as ligações pelo meu número skype. O que fazer?

  • Dump in tragation J2IUN

    Hi experts, I am getting dump in J2IUN tragation ...dump analysis in st22 is as fallow Runtime Errors         DYNPRO_FIELD_CONVERSION Date and Time          31.10.2007 14:02:22 Short text Conversion error What happened? The current screen processing

  • How do I open Aperture in Yosemite

    I have recently upgraded my OS to Yosemite, and now I can't open Aperture and access any of my photos. What to do?

  • Connecting iPad mini to tv

    im wanting to connect my iPad mini to my HDTV so I can watch Netflix on a bigger screen is there a way I can do that? And what cords would I need to buy?

  • Views, not updatable???

    Have run the script demobld.sql in schema SCOTT/TIGER and created the following view SQL> @C:\scripts\demobld.sql Building demonstration tables. Please wait. Demonstration table build is complete. CREATE OR REPLACE VIEW empdept AS SELECT emp.empno, e