Solaris 2.6 crontab

Hello.
I happen to have a problem with crontab in Solaris 2.6
(However, this is not the case in Solaris 8 or 9 - crontab behaves just fine there
-- By the way sorry for writing on Sol 9 list ).
I edit the root crontab file using crontab -e, while the EDITOR is vi.
Whenever I have tried to make a new entry I am given the following output
" Your contab file has an error in it =20
unexpected end of line
This entry has been ignored"
Could anybody please suggest me what to do???
I have also tried to press the return key at the end of the line
but nothing has happened.
Thanks a lot
Eva

Hi,
Set and export the EDITOR environment variable to use vi to edit
crontab files.
If you are using the Bourne or Korn shell, enter the following:
# EDITOR=vi
# export EDITOR
If you are using the C shell, enter the following:
# setenv EDITOR vi
Revert back.
Thanks.
Senthilkumar
SUN - DTS

Similar Messages

  • Solaris 10 zone: root crontab deleted.

    Hello,
    for a couple of weeks I have notice that one of our solaris zone has its root crontab deleted. the file root on /var/spool/cron/crontabs is simply gone.
    I have changed the password so it is somethign inside the OS which is deleting the crontab... i cannot see anything in the cron log.
    how can i stop or find the root cause for this..
    thank you.

    This should help you.
    https://blogs.oracle.com/zoneszone/entry/who_keeps_removing_that_file
    alan

  • Crontab in solaris

    Hi;
    At linux
    I can edit crontab with command
    $crontab -e
    ButI don't know to edit crontab at Solaris, when i try to use upper command i cant edit nothing i just have "?"... I found some site but not helpful
    Anyone can say me how i can edit crontab in solaris?
    Thanks a lot
    Helios

    Hi
    I found solution:
    login system as root
    then: type bash
    bash# export EDITOR=vi
    bash# crontab -e
    Regards

  • Scheduling scp through crontab in Solaris

    Hi All,
    I am trying to schedule the scp command in crontab in solaris production environment. It asks me to type the password seperately. Is there a way to schedule the scp without any interrupts like providing passwords.
    If there is any script can you kindly share it with me.
    Can anyone kindly help me please.
    Warm regards,
    Dan

    To configure SSH, complete the following:
    D.1.2.1 Create SSH Directory, and Create SSH Keys On Each Node
    Complete the following steps on each node:
    Log in as the software owner (in this example, the grid user).
    To ensure that you are logged in as grid, and to verify that the user ID matches the expected user ID you have assigned to the grid user, enter the commands id and id grid. Ensure that Oracle user group and user and the user terminal window process you are using have group and user IDs are identical. For example:
    $ id
    uid=502(grid) gid=501(oinstall) groups=501(oinstall),502(grid,asmadmin,asmdba)
    $ id grid
    uid=502(grid) gid=501(oinstall) groups=501(oinstall),502(grid,asmadmin,asmdba)
    If necessary, create the .ssh directory in the grid user's home directory, and set permissions on it to ensure that only the oracle user has read and write permissions:
    $ mkdir ~/.ssh
    $ chmod 700 ~/.ssh
    Note:
    SSH configuration will fail if the permissions are not set to 700.
    Enter the following command:
    $ /usr/bin/ssh-keygen -t dsa
    At the prompts, accept the default location for the key file (press Enter).
    Note:
    SSH with passphrase is not supported for Oracle Clusterware 11g release 2 and later releases.
    This command writes the DSA public key to the ~/.ssh/id_dsa.pub file and the private key to the ~/.ssh/id_dsa file.
    Never distribute the private key to anyone not authorized to perform Oracle software installations.
    Repeat steps 1 through 4 on each node that you intend to make a member of the cluster, using the DSA key.
    D.1.2.2 Add All Keys to a Common authorized_keys File
    Complete the following steps:
    On the local node, change directories to the .ssh directory in the Oracle grid infrastructure owner's home directory (typically, either grid or oracle).
    Then, add the DSA key to the authorized_keys file using the following commands:
    $ cat id_dsa.pub >> authorized_keys
    $ ls
    In the .ssh directory, you should see the id_rsa.pub keys that you have created, and the file authorized_keys.
    On the local node, use SCP (Secure Copy) or SFTP (Secure FTP) to copy the authorized_keys file to the oracle user .ssh directory on a remote node. The following example is with SCP, on a node called node2, with the Oracle grid infrastructure owner grid, where the grid user path is /home/grid:
    [grid@node1 .ssh]$ scp authorized_keys node2:/home/grid/.ssh/
    You are prompted to accept a DSA key. Enter Yes, and you see that the node you are copying to is added to the known_hosts file.
    When prompted, provide the password for the grid user, which should be the same on all nodes in the cluster. The authorized_keys file is copied to the remote node.
    Your output should be similar to the following, where xxx represents parts of a valid IP address:
    [grid@node1 .ssh]$ scp authorized_keys node2:/home/grid/.ssh/
    The authenticity of host 'node2 (xxx.xxx.173.152) can't be established.
    DSA key fingerprint is 7e:60:60:ae:40:40:d1:a6:f7:4e:zz:me:a7:48:ae:f6:7e.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added 'node1,xxx.xxx.173.152' (dsa) to the list
    of known hosts
    grid@node2's password:
    authorized_keys 100% 828 7.5MB/s 00:00
    Using SSH, log in to the node where you copied the authorized_keys file. Then change to the .ssh directory, and using the cat command, add the DSA keys for the second node to the authorized_keys file, clicking Enter when you are prompted for a password, so that passwordless SSH is set up:
    [grid@node1 .ssh]$ ssh node2
    [grid@node2 grid]$ cd .ssh
    [grid@node2 ssh]$ cat id_dsa.pub >> authorized_keys
    Repeat steps 2 and 3 from each node to each other member node in the cluster.
    When you have added keys from each cluster node member to the authorized_keys file on the last node you want to have as a cluster node member, then use scp to copy the authorized_keys file with the keys from all nodes back to each cluster node member, overwriting the existing version on the other nodes.
    To confirm that you have all nodes in the authorized_keys file, enter the command more authorized_keys, and determine if there is a DSA key for each member node. The file lists the type of key (ssh-dsa), followed by the key, and then followed by the user and server. For example:
    ssh-dsa AAAABBBB . . . = grid@node1
    Note:
    The grid user's /.ssh/authorized_keys file on every node must contain the contents from all of the /.ssh/id_dsa.pub files that you generated on all cluster nodes.
    D.1.3 Enabling SSH User Equivalency on Cluster Nodes
    After you have copied the authorized_keys file that contains all keys to each node in the cluster, complete the following procedure, in the order listed. In this example, the Oracle grid infrastructure software owner is named grid:
    On the system where you want to run OUI, log in as the grid user.
    Use the following command syntax, where hostname1, hostname2, and so on, are the public hostnames (alias and fully qualified domain name) of nodes in the cluster to run SSH from the local node to each node, including from the local node to itself, and from each node to each other node:
    [grid@nodename]$ ssh hostname1 date
    [grid@nodename]$ ssh hostname2 date
    For example:
    [grid@node1 grid]$ ssh node1 date
    The authenticity of host 'node1 (xxx.xxx.100.101)' can't be established.
    DSA key fingerprint is 7z:60:60:zz:48:48:z1:a0:f7:4e.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added 'node1,xxx.xxx.100.101' (DSA) to the list of
    known hosts.
    Mon Dec 4 11:08:13 PST 2006
    [grid@node1 grid]$ ssh node1.example.com date
    The authenticity of host 'node1.example.com (xxx.xxx.100.101)' can't be
    established.
    DSA key fingerprint is 7z:60:60:zz:48:48:z1:a0:f7:4e.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added 'node1.example.com,xxx.xxx.100.101' (DSA) to the
    list of known hosts.
    Mon Dec 4 11:08:13 PST 2006
    [grid@node1 grid]$ ssh node2 date
    Mon Dec 4 11:08:35 PST 2006
    At the end of this process, the public hostname for each member node should be registered in the known_hosts file for all other cluster nodes.
    If you are using a remote client to connect to the local node, and you see a message similar to "Warning: No xauth data; using fake authentication data for X11 forwarding," then this means that your authorized keys file is configured correctly, but your SSH configuration has X11 forwarding enabled. To correct this issue, proceed to "Setting Display and X11 Forwarding Configuration".
    Repeat step 2 on each cluster node member.

  • Solaris custom environment variables in crontab

    Hi everyone,
    I am searching a way to use custom variable on my crontab.
    In fact, I need to launch a binary file which will use the "swap" command, but the swap command is not in the PATH of the crontab.
    I know that on Linux it's possible to define directly a variable in the crontab, but in solaris it fails....
    I tried this (for test) : env > /cron.env
    and the output was :
    HOME=/
    LOGNAME=root
    PATH=/usr/sbin:/usr/bin
    SHELL=/usr/bin/sh
    TZ=Europe/Paris
    I also tried : source /etc/profile ; env > /cron.env
    but the output was the same.
    does anybody knows a way to define custom variable in the solaris crontab?
    thx a lot in advance

    Hi,
    For example you need to set a veriable name IMAP_ROOT
    Please follow the steps
    1) Make a sciprt in /root (You can save the script as per your required location)
    #vi Set_Veriable.sh
    #!/bin/bash
    IMAP_ROOT=/opt/OMC;
    export IMAP_ROOT
    2)Set the permission
    #chmod 755 Set_Veriable.sh
    3) Exectue the script
    #. /root/Set_Veriable.sh (There should be a space between dot and /)
    4) Now test the result
    #echo $IMAP_ROOT
    /opt/OMC
    5) Now put the /root/Set_Veriable.sh file under cron
    Please share your feedback.
    Thanks,
    Myth

  • Crontab problem in Solaris 7

    After putting an entry in the crontab and saved the entry. When log out of the session and login again the crontab entry disappears and crontab -l shows nothing.
    Any help will be highly appreciated.
    Thanks
    Suresh

    You cannot open a session in graphic mode with a console

  • Backup to disk storage, from ASM enabled DB, Solaris 10,11gRel1. RAC

    Hi,
    I am struggling with completing backup of database within appropriate time. It keeps running for days. I have tried with 07 channels and now trying with 03 channels.
    Database is 2 node RAC cluster, each running "Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production" on Solaris 10, SPARC-Enterprise-T5220 with 6 CPU and 32GB RAM. The ASM is running on LUNs taken from IBM XIV.
    RMAN> SHOW ALL;
    RMAN configuration parameters for database with db_unique_name EPMPRD are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 10 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u998/backups/epmprd/rman_backup/ora_cf%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 3 BACKUP TYPE TO COPY;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 2;
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/u998/backups/oepmprd/rman_backup/%d_%u_%p_%N_fileno:%f.dbf';
    CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/u998/backups/epmprd/rman_backup/ora_df_%d_%T_%s_%c_%p' CONNECT '*';
    CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/u998/backups/epmprd/rman_backup/ora_df_%d_%T_%s_%c_%p' CONNECT '*';
    CONFIGURE CHANNEL 3 DEVICE TYPE DISK FORMAT '/u998/backups/epmprd/rman_backup/ora_df_%d_%T_%s_%c_%p' CONNECT '*';
    CONFIGURE MAXSETSIZE TO 4296 M;
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'ZLIB';
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    SQL> SELECT filename, status, bytes FROM v$block_change_tracking;
    FILENAME STATUS BYTES
    +DGA1/epmprd/block_change.dbf            ENABLED      22085632
    RMAN script running under crontab has:
    CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '$DATA_FILE_DIR/ora_df_%d_%T_%s_%c_%p' connect = '$CONNECT_TARGET1';
    CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '$DATA_FILE_DIR/ora_df_%d_%T_%s_%c_%p' connect = '$CONNECT_TARGET1';
    CONFIGURE CHANNEL 3 DEVICE TYPE DISK FORMAT '$DATA_FILE_DIR/ora_df_%d_%T_%s_%c_%p' connect = '$CONNECT_TARGET1';
    BACKUP AS COMPRESSED BACKUPSET INCREMENTAL LEVEL 0 DATABASE FILESPERSET 1;
    BACKUP ARCHIVELOG ALL not backed up FORMAT '$DATA_FILE_DIR/ora_arch_%d_%s_%T_%c_%p';
    DELETE FORCE NOPROMPT ARCHIVELOG UNTIL TIME 'SYSDATE-7' backed up 2 times to disk;
    BACKUP SPFILE format '$DATA_FILE_DIR/spfile_%d_%T_%s_%p';
    where TARGET1=epmprd1 (instance 1 of RAC i.e. using instance 1 as backup node)
    SQL> @tbs_usage.sql
    TABLESPACE_NAME SUM_SPACE(M) SUM_BLOCKS USED_SPACE(M) USED_RATE(%) FREE_SPACE(M)
    SYSTEM 2000 256000 1074.94 53.75 925.06
    CALC 250 32000 5.5 2.2 244.5
    FDMCOMMA2D 250 32000 .06 .02 249.94
    FDMXCHANGING1I 250 32000 .06 .02 249.94
    FDMXCHANGING1D 250 32000 .06 .02 249.94
    FDMXCHANGING3I 250 32000 .06 .02 249.94
    FDMXCHANGING4D 451.56 57800 421.06 93.25 30.5
    USERS 2000 256000 381.37 19.07 1618.63
    BIPLUS 250 32000 81.44 32.58 168.56
    FDMCOMMAI 250 32000 .06 .02 249.94
    FDMXCHANGING2I 250 32000 .06 .02 249.94
    UNDOTBS2 4279 547712 18.44 .43 4260.56
    EPMA 250 32000 57.81 23.12 192.19
    EPMAINT 250 32000 .06 .02 249.94
    HFM 50000 6400000 18566.75 37.13 31433.25
    HSS 250 32000 25.06 10.02 224.94
    FDMSTAT 250 32000 .06 .02 249.94
    FDMCOMMAD 250 32000 .06 .02 249.94
    FDMCOMMA2I 250 32000 .06 .02 249.94
    FDMXCHANGING2D 250 32000 .06 .02 249.94
    FDMXCHANGING3D 250 32000 .06 .02 249.94
    SYSAUX 2000 256000 1208.37 60.42 791.63
    FDMXCHANGING4I 250 32000 .06 .02 249.94
    UNDOTBS1 2000 256000 26.56 1.33 1973.44
    TEMP 10284 1316352 10284 100 0
    25 rows selected.
    SQL>select sum(bytes/1024)/1024/1024 from dba_segments;
    SUM(BYTES/1024)/1024/1024
    40.0876465
    Please share what i can do to optimize the backups. Your suggestions are highly appreciated.
    regards,
    Anjum

    Hi,
    /998 is SAN mountpoint taken from IBM XIV.
    oepmprd@basfisprddatg01$ cat /etc/vfstab | grep -i u998
    /dev/md/dsk/d200 /dev/md/rdsk/d200 /u998 ufs 2 yes logging
    I have done some testing and following are results.
    1.
    ASMCMD> cp hfm22.dbf /u998/backups/epmprd/rman_backup
    copying +DGA1/epmprd/hfm22.dbf -> /u998/backups/epmprd/rman_backup/hfm22.dbf
    oepmprd@basfisprddatg01$ du -sh hfm22.dbf
    2.0G hfm22.dbf
    Time taken: 29 seconds
    ================================================
    2.
    ASMCMD> cp group_5.600.766282841 /u998/backups/epmprd/rman_backup
    copying +FRA/epmprd/ONLINELOG/group_5.600.766282841 -> /u998/backups/epmprd/rman_backup/group_5.600.766282841
    oepmprd@basfisprddatg01$ du -sh group_5.600.766282841
    500M group_5.600.766282841
    Time taken: 11 seconds
    ================================================
    3.
    ASMCMD> cp temp01.dbf /u998/backups/epmprd/rman_backup
    copying +DGA1/epmprd/temp01.dbf -> /u998/backups/epmprd/rman_backup/temp01.dbf
    oepmprd@basfisprddatg01$ du -sh temp01.dbf
    10.0G temp01.dbf
    Time taken: 03 mins, 16 seconds
    =================================================
    Moreover, i copied a file from /u998 to /tmp and it was quick:
    grid@basfisprddatg01$ pwd
    /u998/backups/epmprd/rman_backup
    grid@basfisprddatg01$ du -sh ora_df_EPMPRD_20111210_7783_1_1
    266M ora_df_EPMPRD_20111210_7783_1_1
    grid@basfisprddatg01$ cp ora_df_EPMPRD_20111210_7783_1_1 /tmp/
    It took 2-3 seconds.
    regards,
    Anjum
    Edited by: Anjum Shehzad on Dec 12, 2011 11:18 AM

  • Help needed to install a service for Solaris machines

    Hello,
    I have installed an admin server and 2 managed servers on the solaris box. How do I start the server using a cron job? Can someone point me to the steps please?
    All help will be greatly appreciated.

    Maybe this is of some help to you: http://www.kb.iu.edu/data/afiz.html
    and this example: http://solarisguru.getquickstart.com/2008/05/solaris-crontab.html
    and: http://www.pantz.org/software/cron/croninfo.html

  • How to attach date time with dumpfile name taken with expdp in solaris

    I have to write script for daily table backup which would run from crontab in solaris platform on daily basis. I am using expdp for the first time, the following command used to work with EXP
    file=/anadbora13/Oracle_Backup/UIBS/dump/inter_UIBS_FM_`date +%d%m%y_%T`.dmp
    But,
    when I am using the following
    dumpfile=inter_UIBS_FM_`date +%d%m%y_%T`.dmp
    i am getting error :
    ORA-39001: invalid argument value
    ORA-39000: bad dump file specification
    ORA-39124: dump file name "+%d%m%y_%T.dmp" contains an invalid substitution variable
    Pls help....Thanks in advance

    Hi,
    You need to build the parfile commands first (using
    server sysdate), and then pass the parfile to
    Oracle:
    touch /tmp/parfile.txt
    Why bother with the 'touch'?
    file=/anadbora13/Oracle_Backup/UIBS/dump/inter_UIBS_FM
    _`date +%d%m%y_%T`.dmp >> /tmp/parfile.txt
    Shouldn't that be 'echo file=.... > /tmp ....'
    Why do you show the redirection to append into the temporary command file?
    Now, execute the utility. . . .
    expdp parfile=/tmp/parfile.txt
    To see working details, try Jon Emmon's book "Oracle
    Shell Scripting":
    http://www.rampant-books.com/book_2007_1_shell_scripti
    ng.htm
    Hope this helps. . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference":
    http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

  • Solaris 9 panic

    My solaris crash every week, one or two times.
    # uname -a
    SunOS venus 5.9 Generic_117171-02 sun4u sparc SUNW,Sun-Blade-100
    #tail /var/adm/messages
    Sep 9 12:08:55 venus unix: [ID 836849 kern.notice]
    Sep 9 12:08:55 venus ^Mpanic[cpu0]/thread=30002de4aa0:
    Sep 9 12:08:56 venus unix: [ID 799565 kern.notice] BAD TRAP: type=34 rp=2a1005bd2f0 addr=1 mmu_fsr=0
    Sep 9 12:08:56 venus unix: [ID 100000 kern.notice]
    Sep 9 12:08:56 venus unix: [ID 839527 kern.notice] Xsun:
    Sep 9 12:08:56 venus unix: [ID 123557 kern.notice] alignment error:
    Sep 9 12:08:56 venus unix: [ID 381800 kern.notice] addr=0x1
    Sep 9 12:08:56 venus unix: [ID 101969 kern.notice] pid=345, pc=0x1128ee8, sp=0x2a1005bcb91, tstate=0x80001601, context=0x188
    4
    Sep 9 12:08:56 venus unix: [ID 743441 kern.notice] g1-g7: 1128ecc, 0, 30000603d70, 4, 3000077dc00, 0, 30002de4aa0
    Sep 9 12:08:56 venus unix: [ID 100000 kern.notice]
    Sep 9 12:08:56 venus genunix: [ID 723222 kern.notice] 000002a1005bd020 unix:die+a4 (34, 2a1005bd2f0, 1, 0, 159000, 0)
    Sep 9 12:08:56 venus genunix: [ID 179002 kern.notice] %l0-3: 0000000000000000 00000000007f8090 0000000000000009 0000000001
    499890
    Sep 9 12:08:56 venus %l4-7: 0000000000000034 0000000003002250 000003000000b400 00000300011e6ac0
    Sep 9 12:08:56 venus genunix: [ID 723222 kern.notice] 000002a1005bd100 unix:trap+59c (2a1005bd2f0, 0, 10000, 10200, 0, ff00)
    Sep 9 12:08:57 venus genunix: [ID 179002 kern.notice] %l0-3: 0000000000000001 000000000080000f 0000030002dda050 0000000000
    000034
    Sep 9 12:08:57 venus %l4-7: 0000030002de23c8 000003000000b618 0000000000000000 0000000000000000
    Sep 9 12:08:57 venus genunix: [ID 723222 kern.notice] 000002a1005bd240 unix:ktl0+48 (0, 1, 1, 2a1005bd448, 2a1005bd444, 0)
    Sep 9 12:08:57 venus genunix: [ID 179002 kern.notice] %l0-3: 0000000000000002 0000000000001400 0000000080001601 0000000001
    02cb04
    Sep 9 12:08:57 venus %l4-7: 000003000000b618 0000030001677c80 0000000000000000 000002a1005bd2f0
    Sep 9 12:08:57 venus genunix: [ID 723222 kern.notice] 000002a1005bd390 genunix:power_dev+224 (1, 2, 1, 0, 0, 1)
    Sep 9 12:08:57 venus genunix: [ID 179002 kern.notice] %l0-3: 000003000028a758 0000000000000000 0000000000000001 0000000000
    000001
    Sep 9 12:08:57 venus %l4-7: 0000000000000002 0000000000000000 000003000028a758 0000000000000001
    Sep 9 12:08:57 venus genunix: [ID 723222 kern.notice] 000002a1005bd470 genunix:pm_set_power+428 (58, 0, 2, 2, 3000060d000, 3
    0000957dd0)
    Sep 9 12:08:57 venus genunix: [ID 179002 kern.notice] %l0-3: 0000000000000002 000003000028a758 000003000028dd10 0000000000
    000001
    Sep 9 12:08:57 venus %l4-7: 0000000000000001 0000000000000000 0000000000000002 0000000000000000
    Sep 9 12:08:58 venus genunix: [ID 723222 kern.notice] 000002a1005bd570 pm:pm_ioctl+1774 (1, 0, 0, 100003, 3000025fa48, 2a100
    5bdaec)
    Sep 9 12:08:58 venus genunix: [ID 179002 kern.notice] %l0-3: 000003000060d000 0000000000010000 000003000028a758 0000000001
    496ca0
    Sep 9 12:08:58 venus %l4-7: 0000000001492840 0000000001447000 0000030002de4aa0 0000000001447000
    Sep 9 12:08:58 venus genunix: [ID 723222 kern.notice] 000002a1005bd9a0 genunix:ioctl+1f8 (e, 2c, 153160, e, 155ffc, ffbfeab0
    Sep 9 12:08:58 venus genunix: [ID 179002 kern.notice] %l0-3: 000000000117e44c 000000000000002c 000000000000000e 0000000000
    000023
    Sep 9 12:08:58 venus %l4-7: 000003000094d9e0 0000000000000076 0000000000155ff4 0000000081010100
    Sep 9 12:08:58 venus unix: [ID 100000 kern.notice]
    Sep 9 12:08:58 venus genunix: [ID 672855 kern.notice] syncing file systems...
    Sep 9 12:08:58 venus genunix: [ID 733762 kern.notice] 1
    Sep 9 12:09:20 venus last message repeated 20 times
    Sep 9 12:09:21 venus genunix: [ID 622722 kern.notice] done (not all i/o completed)
    Sep 9 12:09:22 venus genunix: [ID 111219 kern.notice] dumping to /dev/dsk/c0t0d0s1, offset 107479040, content: kernel
    Sep 9 12:09:29 venus genunix: [ID 409368 kern.notice] ^M100% done: 10959 pages dumped, compression ratio 3.26,
    Sep 9 12:09:29 venus genunix: [ID 851671 kern.notice] dump succeeded
    What is the problem? and how can I find the problem?
    How can I fix the problem?
    Any comments will be appreciated
    Thanks in advance
    Julxu

    The easiest way is to get this core dump into a debugger and get the problem finalized. adb like debugger would do this. But you need to be an expert of memory addresses conventions and solaris internals. This is something that requires training. Another way is to see the problem step by step. Is there any script that runs that day otr a day before. Do you have some specific entry in your crontab. I see some ECC (error check control) ram problems. Some extra load on server cause CPU/RAM faults to be visible.

  • Solaris 9 sendmail (8.12.10) configuration problem

    Hi,
    I have a problem with sendmail 8.12.10 on Solaris 9. I generate my sendmail.cf file using m4 *.mc files which adds the genericstable and masquerading features etc.
    I use the genericstable to rewrite emails from certain senders on the Solaris server to another address; eg.
    root [email protected]
    This way system emails sent by the root account will appear to the receipient as coming from [email protected] and replies to these emails (including mail bounces) will go the local Sys Admins.
    With Solaris 9's sendmail (8.12.10) the genericstable sender address rewriting no longer works. Sendmail (8.11.3) on Solaris 8 using a sendmail.cf file generated from the same sendmail.mc source works fine.
    The strange things is that in sendmail rule test mode (sendmail -bt -d21.4 -d21.12 -d31.2 -d0.4) entering the ruleset
    3,1,EnvFromSMTP,4 rootprocesses the generictable and rewrites the sender address and returns:
    final returns: UnixTeam @ domain . com
    Can any sendmail GURUS out there please give me a clue what I'm missing or what needs to be changed in my sendmail.mc for Sendmail version 8.12.x??
    Thanks.

    How about issues with sendmail 8.12.12 ?
    When I setup sendmail.mc for genericstable, see below:
    divert(0)dnl
    VERSIONID(`@(#)subsidiary.mc 1.10 (Sun) 12/14/00')
    OSTYPE(`solaris8')dnl
    define(`ALIAS_FILE',`/etc/mail/aliases')dnl
    DOMAIN(`solaris-generic')dnl
    FEATURE(`msp', `[firewall.com]')dnl
    dnl
    define(`SMART_HOST',`firewall.com')dnl
    FEATURE(masquerade_envelope)dnl
    FEATURE(genericstable, `hash -o -T<TMPF> /etc/mail/genericstable')dnl
    GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')dnl
    MAILER(`local')dnl
    MAILER(`smtp')dnl
    LOCAL_NET_CONFIG
    R$* < @ $* .$m. > $* $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3
    compile...everything looks good
    /usr/lib/sendmail -bt
    ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
    Enter <ruleset> <address>
    /map generics rootmap_lookup: generics (root) returns [email protected] (0)
    /quitbut when I send out mail to root (mailx) FROM does not invoke the new value
    MAIL From:<[email protected]> SIZE=76
    250 2.5.0 Address and options OK.
    RCPT To:<[email protected]>
    Am I missing something ?
    Also notice that sendmail does not use the aliases db
    Is it necessary for the sendmail daemon to be running ?
    We just process saved messages /usr/lib/sendmail -q in crontab (outgoing only / no inbound mesages)
    thanks for any assistance

  • Solaris 10 /etc/projects

    Added attribute "process.max-address-space" to project group.dba dor user oracle. System was rebooted.
    A process that was started via oracle crontab picked up the new value. DB admin started the database after "su - oracle" from root user. The DB processes did not pick up the new value.
    Results of testing "su" as relates to project attributes are as follows...
    # su - oracle
    # id -p
    uid=101(oracle) gid=101(dba) projid=101(group.dba)
    # prctl -n process.max-address-space -i process $$
    process: 10729: -ksh
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
    process.max-address-space
            privileged      4.00GB      -   deny        OLD VALUE                         -
            system          16.0EB    max   deny                                 -
    # exit
    # su oracle
    # id -p
    uid=101(oracle) gid=101(dba) projid=101(group.dba)
    # prctl -n process.max-address-space -i process $$
    process: 10747: ksh
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
    process.max-address-space
            privileged      5.00GB      -   deny       NEW VALUE                     -
            system          16.0EB    max   deny            
    Seems like this is opposite to what I would expect.

    Thought your "hint" would solve the issue but same result...
    $ projects -l
    system
            projid : 0
            comment: ""
            users  : (none)
            groups : (none)
            attribs:
    user.root
            projid : 1
            comment: ""
            users  : (none)
            groups : (none)
            attribs:
    noproject
            projid : 2
            comment: ""
            users  : (none)
            groups : (none)
            attribs:
    default
            projid : 3
            comment: ""
            users  : (none)
            groups : (none)
            attribs:
    group.staff
            projid : 10
            comment: ""
            users  : (none)
            groups : (none)
            attribs:
    group.dba
            projid : 101
            comment: ""
            users  : oracle
            groups : (none)
            attribs: process.max-address-space=(privileged,5368709120,deny)
                     project.max-shm-memory=(priv,4294967296,deny)
    # user attributes. see user_attr(4)
    #pragma ident   "@(#)user_attr 1.1      03/07/09 SMI"
    adm::::profiles=Log Management
    lp::::profiles=Printer Management
    postgres::::type=role;profiles=Postgres Administration,All
    root::::auths=solaris.*,solaris.grant;profiles=Web Console Management,All;lock_after_retries=no;min_label=admin_low;clearance=admin_high
    oracle::::type=normal;project=group.dba

  • Upgrade 2.6 to Solaris 8 OS

    Dear All ,
    I would like to upgrade Sun OS 2.6 to 8 Operating system.
    if i upgrade a Solaris 2.6 to 8 OS , what will happens to the cron jobs file .
    will it be there after upgrade ..or should i take any backup and restore .
    If it so .. please give me some TIPS on backup cron jobs and restore .
    Please let me Friends .
    Senthil Kumar

    dear friend,
    its best you backup first my friend, but cronjobs will still be there when you upgrade, just as a precaution, backup your files. %crontab -l will show u the crontab list, just copy it if you dont want
    to backup the whole system..
    hope this helps friend..

  • Netweaver 2004s on Solaris 10 (x64) - Starting SAP after server restart?

    I have a Netweaver System running on Solaris\Oracle. Is there a guide or any general information on how to make the SAP System and all necessary components automatically start up?
    Right now, after a reboot, I have to log in as my oracle user to start the Listener, and then as my sap adm user and start the DB\Netweaver.
    Im looking for less keystrokes, can anyone help me out?

    Hi Lakeith,
    If you are looking for less keystrokes then write a script to include start listener and sap. And if you are doing this regularly then include this script into crontab.
    -Pinkle

  • Changing timezone in Solaris 9

    Hi,
    How do I change the timezone (TZ value) for all users without putting it in any profile.
    I've made the change in /etc/TIMEZONE but the system takes effect only when you restart it. How do I bring it into effect?
    I've read that for Solaris (x86) the default crontab entry /usr/sbin/rtc -c under root id does that. What needs to be done in Solaris 9 for SPARC (9/04)?
    Regards

    rtc is run in cron as root in order to take care of daylight savings.
    The problem with the timezone variable is that its picked up by the init process, which then keeps its value and sends it to any program which its spawns (and since all programs are parents or grandparents of init, all of them will get this value).
    You can of course set a value in your shell, and then start up the processes which you want to have the correct timezone, but in order for it to take effect system-wide i'm afraid you need a reboot, unless you can use kmdb to change it somewhere, but that would still leave it at its old value in most applications.
    //Magnus

Maybe you are looking for