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

Similar Messages

  • 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)

  • 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

  • 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

  • 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.

  • Command for Solaris Interactive (IA) priority class or  Timesharing

    Hello All,
    I need to find command which willgive me whether solaris is using Solaris Interactive (IA) priority class or Timesharing (TS) class
    Winston

    Well, if your system is using a non-standard schedulingclass its normally specified in /etc/system .
    The command which controls the scheduling classes is priocntl
    To check which class your processes are using you can use ps, for example you could type:
    ps -eo user,pid,comm,class
    .. to display username,pid, command and the scheduling class of each process.
    //Magnus

  • Commands in Solaris

    Hello,
    I installled the Solaris 10 in my PC (x86)
    I made a login with root.
    Then I tryed use the mkdir command, come this message:
    mkdir: Failed to make a directory "faria"; Operation no applicable.
    Same as root I cant get run the command.
    Why It's happen ?
    I have a good konowledge in Linux, but in Solaris I Beginner.
    []'s
    Faria

    my guess is you are trying to create a dir under /home. by default the automount process controls /home (and a few other dirs). you can turn this off by modifying /etc/auto_master.

Maybe you are looking for

  • How do I remove my credit card from my iTunes

    I need to know how to remove my credit card from iTunes

  • How to display the request date in query

    Hi, I want to display the No. of request ID and request date in the query, but how could I get the  request date? Can anyone give me some suggestion? Thanks Huaiyuan

  • Editing Drop Down Menus in Contribute

    I have a client who is using contribute and wants to edit drop down menus. These drop down menus link to individual pdfs and she changes the names of the pdfs on a regular basis and wants to update these links in the drop down menus. The site was cre

  • How to check for outstanding service instance creation requests

    Greetings, In preparation to upgrade my OEM Cloud Control from 12.1.0.1 to 12.1.0.3 I am reading the OEM Cloud Control Upgrade Guide. Step 2b in Chapter 3 (Getting Started) says to check for outstanding database service instance creation requests as

  • Internet sharing over wireless

    Didn't see anyone post this but is anyone else having problems with Internet Sharing over wireless? Trying to have the macbook connect to the iMac over wireless and use the iMac's wired internet connection. On the iMac, the Airport card is on, and in