I carelessly remove the contents of /var/sadm/pkg

I carelessly remove the contents of /var/sadm/pkg. I do not have any backup of the folder. What can I do ? Thanks a lot.

Backup anything you care about.
Reinstall the server from scratch.
Restore your backups..

Similar Messages

  • Package question - what are the uses for  /var/sadm/pkg ?

    I'm writing packages and noticed once a packages is installed using pkgadd, that files and dirs are created in the /var/sadm/pkg directory. I'm specificly intereseted in the pkginfo file - it contains all the variables from my request script and their values. My question is what are all the uses for this file?
    I've noticed that pkginfo reads from it but would there be any problem deleting certain lines from that file (lines not used by pkginfo - just variables used in the request script that I'd really rather not have floating around in a publicly accessable file).
    thanks!
    Bob

    I'm refering specificly to the file "/var/sadm/pkg/<pkgName>/pkginfo" - it's created during pkgadd and contains all the variable-value pairs from the packages pkginfo file as well as any variables used in the request script and copied to it's temporary response file. I'm not refering to the pkginfo file that you create as a package infofile component.
    I want to remove, from the /var/sadm/pkg/<pkgName>/pkginfo file, certain var-value pairs that were used in my request scripts (not part of the InfoFile/pkginfo component). Otherwise, any user can look at this file or run 'pkgparam <pkgName>' and get that sensative info.
    To the best of my knowledge, this file is only used by the commands pkgparam and pkginfo. Are there other uses?
    My worries are:
    -is it OK to remove lines manually during the postinstall script?
    -will doing this cause problems with any admin or package maintenance functions?
    Thanks-
    Bob

  • /var/sadm/pkg

    Is there a way to migrate the '/var/sadm/pkg' directory safely so that the related 'pkg*' commands are still reporting proper information?
    For example, if i have a bigger partition/filesystem created for it as a new destination, and the '/var/sadm/pkg' is just running out of space,
    - can i simply 'tar/cpio' the '/var/sadm/pkg' directory, and move it to the new partition, and create a symbolic link from '/var/sadm/'? and, can i do it online?
    Thanks, and any help will be appreciated.

    user5534036 wrote:
    - can i simply 'tar/cpio' the '/var/sadm/pkg' directory, and move it to the new partition, and create a symbolic link from '/var/sadm/'? and, can i do it online?Yes, you can move the contents of /var/sadm to another directory or filesystem, but you must not use a symbolic link to point at it: The next pkgadd/pkgrm or patchadd/patchrm command will remove the link and re-create a (then empty) /var/sadm/ directory.
    Use a loopback mount (man lofs, mount -F lofs ...) instead to mount e.g. /new/sadm to /var/sadm.
    Newer versions of Solaris run a "pkgserv" service (svcs -l pkgserv). Maybe it's safer to stop this before the move and restart it afterwards.
    Martin.

  • Remove the contents of the table container in workflow

    hi,
    i want remove the contents of the table container in a method in workflow.
      how can i doit. anyone pls send me the syntax.
    after removing the old contents then i want to insert new values to that table.
    Thanks
    Sankar

    hi,
    i want to refresh the container in workflow.
    anyone pls tell me.
    Thanksin advance.
    sankar.

  • Cannot provision agent - Cannot open /var/sadm/pkg/SUNWesado

    Hi All,
    I have discovered a system. When I go to the unmanaged asset tab, highlight the host and select manage asset the job fails provisioning the agent. The error is can't open /var/sadm/pkg/SUNWesado.
    If I cd to the above directory all I see is an install and a save directory. Both of these directories are empty. I have removed the agent manually and deleted the asset in opscenter. I then tryied the process again and receive the same error.
    Any suggestions how to correct this?

    Sounds like some of the packages (maybe not just this one) are corrupt? Do you have access to the Solaris media where this pkg came from? If so can you re-install the package and see if that helps?
    What does "pkginfo -p" show?

  • Pkginfo of /var/sadm/pkg/SUNWcsr missing

    Dear All,
    we have experienced following problem. On Sun Enterprise 450 machine running Solaris 8 we have installed latest Recommened patch cluster. After that we have found out that "pkginfo" file is missing inside the /var/sadm/pkg/SUNWcsr. Unfortunately this system is not backed-up at all. Is there any way how to renew this file? (roll back some patch, copy some template?). Thank you for your responses.

    Backup anything you care about.
    Reinstall the server from scratch.
    Restore your backups..

  • I bought a secondhand ipod nano, how can i remove the contents

    i bought a secondhand ipod nano, how can i remove the contents

    Connect the iPod Nano to your own iTunes library and restore it to factory settings.  This process wipes all content from the device, resets all settings back to their defaults, and reloads a fresh copy of the iPod's firmware onto the device.
    Restoring iPod to factory settings
    B-rock

  • How can I safetly remove the contents of the hidden volumes folder?

    I have 149GB of backedup data eating up my laptop's hard drive space (300GB). I want that space BACK! But I'm afraid that I'll jack up my system even worse if I go in there and start deleting files.
    Here's the my story...
    I tried many times (unsuccessfully) to get Time Machine to work with my external WD Mybook Mirror Edition Hard Drive. It was work initially but then fail to backup and it wouldn't even really give me a reason it would just say that it was unable to back up to the drive. So I gave up, turned time machine off and tried to drag what files had been backed-up by Time Machine from my external drive to the trash. That's where my problems multiplied.
    As you may know Time Machine puts some niffy locks on the files. Even holding down the option key while dragging the files didn't seem to fix things. So after doing some poking around I found this thread on the internet which showed me how to remove the ACL associated with the backup files so that they could be removed.
    http://forums.appleinsider.com/showthread.php?t=80598
    I preformed the following command line on my drive:
    sudo fsaclctl -p /Volumes/<yourVolume> -d
    Then I dragged the backup files to the trash (using the option key) and eventually the files were deleted. At least they weren't showing up on my external drive anymore.
    I thought that I was in the clear, but then yesterday I got this stupid your scratch disk is full warning while trying to use Photoshop. SO I took a peak at my local disk and discovered that I only had 45MB left on a 300GB drive. I quickly went through all of my folders in the finder looking at how much disk space they were taking up. It didn't add up. There had to be some files that the finder wasn't showing me. So did some more research online and came across this little gem:
    http://www.thexlab.com/faqs/maintscripts.html#Anchor-Manually-49575
    And so I executed this command to manually perform Mac's maintenance scripts:
    sudo periodic daily weekly monthly
    This took a while but had no effect. A few hours later, I came across this utility on the internet:
    http://www.omnigroup.com/applications/omnidisksweeper/
    According to OmniDiskSweeper I have 149GB of files in a hidden "Volumes" folder. After looking at the files, it's pretty clear to me that I'm looking at the backups from either Carbon Copy Clone, or Time Machine (Guessing the Later). I have CCC setup to backup to the same external drive mentioned earlier, but I stopped this process when I realized that I had more files on my local drive than I should have.
    *So back to my original question. How do I nuke these freaking files without breaking anything. Thanks.*

    Niel,
    Thank you for the response. I did as you suggested, and it worked. I had a few hiccups along the way:
    1. Option + Dragging the files to the trash didn't work alone. I had to unlock the files:
    $ chflags -R nouchg /myfiles
    2. My external drive was mounted with a number after it. So I tried to eject it and it gave me some crap about it being in use (Even after I quit everything). So I shut my machine down, Disconnected the USB cable, Restarted and then reconnected the external drive. It now shows under volumes without the number after it.
    Thank you for the help.
    Message was edited by: strayhand

  • When I try to delete an audiobook I can remove the content ok but the cover art is left and I can't figure out how to remove it.  Ant suggestions?

    Its gone from itunes on my notebook but the art stlll appears in the audiobook section of itunes on the iPad.

    Hello Suddsjack,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    How to delete content you've downloaded from the iTunes Store, App Store, iBooks Store, or Mac App Store
    http://support.apple.com/kb/HT5772
    iPad
    Before you delete, be sure you have a backup of the audiobook. You will need to repurchase it if you want to download it again. To delete an audiobook:
    Tap the Music app.
    Tap the More category.
    Tap Audiobooks.
    Tap and hold the audiobook you want to delete.
    Tap the "x" that appears on it.
    Best of luck,
    Mario

  • Solaris 9, /var/sadm/install/contents and fix-modes issues

    I'm in the middle of patching a bunch of systems right now using Martin Paul's PCA and Casper Dik's fix-modes and I'm getting some rather odd error messages from fix-modes after installing the Recommended and Security patches from 06 August 2007.
    I'm seeing this on better than a dozen machines right now, and it doesn't seem to be consistent on which entries have the problems.
    Here's a snippet of the fix-modes output:
    WARNING: Unparseble mode "?" at /var/sadm/install/contents:107
    WARNING: Unparseble mode "?" at /var/sadm/install/contents:1238
    WARNING: Unparseble mode "?" at /var/sadm/install/contents:2348
    WARNING: Unparseble mode "?" at /var/sadm/install/contents:2359
    secure-modes: WARNING: Incomplete entry at /var/sadm/install/contents:2377
    secure-modes: WARNING: Incomplete entry at /var/sadm/install/contents:2380
    And here's the lines referenced in the snippet above:
    107: /etc/VRTSvcs/conf/config d none ? ? ? VRTSweb
    1238: /etc/opt/SUNWsrspx d none ? ? ? SUNWsrspx
    2348: /kernel/drv/vxapm d none ? ? ? VRTSvxvm
    2359: /kernel/drv/vxapm/sparcv9 d none ? ? ? VRTSvxvm
    2377: /kernel/drv/vxdmp.conf ? none VRTSvxvm
    2380: /kernel/drv/vxio.conf ? none VRTSvxvm
    Has anyone seen this behavior before? Does anyone have any suggestions on how to remedy this?
    fpsm

    IMHO the only thing that should modify the contents of /var/sadm/install/contents is a system utility. There is work currently underway to update the way that this file is modified.
    http://mail.opensolaris.org/pipermail/opensolaris-arc/2009-March/014675.html
    alan

  • Differential flars for install & Population of /var/sadm/install/contents

    We are using differential flars to speed up installation, and have noticed that the /var/sadm/install/contents file is not being updated with the files coming from the packages in the differential flars on installation. Is this something that should be done automatically? Or is there something that we must do at flar create time or installation time to enable this? Thanks.
    Kevin

    IMHO the only thing that should modify the contents of /var/sadm/install/contents is a system utility. There is work currently underway to update the way that this file is modified.
    http://mail.opensolaris.org/pipermail/opensolaris-arc/2009-March/014675.html
    alan

  • Patch Manager 2.0 vs. /var/sadm installation problem.

    Hello -
    uname -a (minus the host name):
    SunOS 5.8 Generic_117350-34 sun4u sparc SUNW,Ultra-5_10
    Due to space restrictions, /var/sadm has been moved to another drive and a
    soft link in /var created so that /var/sadm --> /void/sadm
    Here starts the fun:
    ================== <-- More text at the matching string of equal-signs.
    # ./pmsetup
    Installing Patch Manager 2.0 ...
    Processing package instance <SUNWppror> from
    </void/home/mbecker/Patches/Patch_Manager_2.0/2.8/packages/sparc>
    PatchPro core functionality (Root)
    (sparc) 5.0,REV=2004.06.10.04.44
    Copyright 2001 Sun Microsystems, Inc. All rights reserved.
    Using <> as the package base directory.
    ## Processing package information.
    ## Processing system information.
    3 package pathnames are already properly installed.
    ## Verifying package dependencies.
    Installing PatchPro core functionality (Root) as <SUNWppror>
    ## Installing part 1 of 1.
    pkgadd: ERROR: unable to create lock file </var/sadm/install/.pkg.lock>.
    pkgadd: ERROR: Database lock failed.
    Installation of <SUNWppror> failed (internal error) - package
    partially installed.
    There are 2 more packages to be installed.
    Do you want to continue with installation [y,n,?] n
    2 packages were not processed!
    ==================
    And now /var contains a partially-populated /sadm directory. The soft-link to
    the second drive has been removed. So I remove /var/sadm, recreate the soft
    link, and <whew> everything is back to ..normal.
    Must the install remove the soft link to /var/sadm --> /void/sadm ?
    Must everything be shifted around to put /void/sadm back into /var/sadm? There
    have been a lot of patches installed.. and there's a lot of stuff in those
    folders.
    Your time is appreciated.
    Mark

    Hello -
    I ..found your response while searching for the solution to another problem.
    The problem was ..fixed.. by moving the contents of /var/sadm to a free partition on a second drive then mounting that partition to /var/sadm.
    By "free" ... I spent an evening backing up the second disk then doing a repartition. Brute force.. but it worked.
    Regards,
    Mark

  • Would like to remove the ical content at once

    Any possibility known to remove the content at the ical at once to prepare for a complete new sync?

    Am on NATIONWIDE TALK SHARE 700 with a samsung galaxy 3.
    do not use the data service.
    Thanks for the reply
    On Wed, Jul 16, 2014 at 4:34 PM, 1moretime <[email protected]>

  • I needed to remove the /var partition! now?

    Hi, I needed to install windows on my netbook, and since I already had 4 primary partition I had to uninstall the least importat... /var ... now obvsly when i run archlinux it fails checkin the last file system sda4, so what can I do besides installing arch again?

    Err, did you backup /var to root? Just remove the entry for /var from fstab then.
    If you really removed it, well, good luck recovering your pacman database (among others)...
    edit: read-think-write. oh boy.
    Last edited by hokasch (2010-10-31 18:27:30)

  • When I sync my Ipad and Mac I get a message from itunes to allow access with an email address I no longer use and asks for a password I don't know how do I remove the old email

    Whwn I sync my ipad I get a message from itunes to sign into my account but the email used is not my email and I don't have a password for the email it used - how do I get rid of the email address for itunes on the ipad - itunes on the Mac work just fine - but not on the ipad

    Hello Tonchee
    If you are seeing an Apple ID that is not yours, then you have purchased content on your iPad that is tied to that Apple ID. You would need to know that password or remove the content that is associated with that Apple ID.
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

Maybe you are looking for

  • How do I order more than one book at a time?

    I created 10 photo books I would like to order, but when I go to place my order I can only place one book at a time.  I do not want to place 10 different orders.  How do I order more than one book at a time?

  • Shared drives on computers not showing in sidebar/devices?

    I have a shared drive on a windows server that I use commonly. I'm able to place my airport airdisk under devices and it stays there, even after rebooting. it's nice because i can click on it quickly from the finder. HOWEVER, when i mount my windows

  • Error can't Click button when add value to ComboBox

    How can I do ? who know programming C#  ? help me ! ComboBox displayed value but I can't Click " Exit Button " (btnExit) and Click "Cal button"(btnCal) IF I Remove   this  code if ((pVal.ItemUID == "CbIncen") && (pVal.Before_Action == true))// && (pV

  • KE24- No Attributes exist for operating concern

    Dear Gurus, while iam generating the ke24 report, am getting the error message as No attributes exist for operating concern. Please help me out in this problem. BR, Deepak.

  • How to plot data from a GPIB function generator

    I am doing a litle application with Visual C++ and the ComponentWorks++ to control a GPIB device. I am tring to Plot a CNiGraph with data coming from the GPIB function generator. I use the code below to write/read the device and to Plot the graph. It