Solaris SysAdmin commands

From Tom
Jump to: navigation, search

This documentation can be redistributed and/or modified under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

Unless required by applicable law, this documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

This documentation should not be used as a replacement for a valid Oracle service contract and/or an Oracle service engagement. Failure to follow Oracle guidelines for installation and/or maintenance could result in service/warranty issues with Oracle.

Use of this documentation is at your own risk!

--Tom Stevenson (talk) 17:11, 26 May 2015 (EDT)


There are some very useful Solaris commands that I just don't use that much, so I can never remember them, including their names. I will keep a list of these commands here so that I only have to hunt for them once.

  • zfs send and receive - Send and Receive ZFS FSs via snapshots.
    Send an initial ZFS snapshot to a remote site.
    zfs send ${source_zpool}@${snapshot}"
    Receive an initial ZFS snapshot from a remote site.
    zfs receive -Fu ${destination_zpool}@${snapshot}
    Send an incremental ZFS snapshot to a remote site.
    zfs send -i ${snapshot_1} ${source_zpool}@${snapshot_2}
    Receive an incremental ZFS snapshot to a remote site.
    zfs receive -Fu ${destination_zpool}
    Send an initial ZFS FS to a remote site.
    zfs send ${source_zpool}/${filesystem}@${snapshot}
    Receive an initial ZFS FS from a remote site.
    zfs receive -Fu ${destination_zpool}/${filesystem}@${snapshot}
    Send an incremental ZFS FS snapshot to a remote site.
    zfs send -i ${snapshot_1} ${source_zpool}/${filesystem}@${snapshot_2}
    Receive an incremental ZFS FS from a remote site.
    zfs receive -Fu ${destination_zpool}/${filesystem}
  • ipcs - report inter-process communication facilities status.
    Display the Shared Memory used, including the name of the zone using it.
    ipcs -amZ
  • prctl - get or set the resource controls of running processes, tasks, and projects.
    Display the Max Shared Memory for project default.
    prctl -n project.max-shm-memory -i project default
    Display the Max Shared Memory for zone banpdbs1.
    prctl -n zone.max-shm-memory -i zone banpdbs1
    Reset (-r) the Max Shared Memory for zone banpdbs1 to 95gb.
    prctl -n zone.max-shm-memory -v 95gb -r -i zone bantdbs1
  • savecore - save a crash dump of the operating system.
    Save a crash dump of the live running Solaris system, without actually rebooting or altering the system in any way.
    /usr/bin/savecore -Lv

--Tom Stevenson (talk) 14:09, 16 April 2013 (EDT)

Help contents:

Reading: Go | Search | URL | Namespace | Page name | Section | Link | Backlinks | Piped link | Interwiki link | Redirect | Variable | Category | Special page
Tracking changes: Recent | (enhanced) | Related | Watching pages | Page history | Diff | User contributions | Edit summary | Minor edit | Patrolled edit
Logging in and preferences: Logging in | Preferences | User style
Editing: Overview | Wikitext | New page | List | Images/files | Image page | Special characters | Formula | Table | EasyTimeline | Inputbox | Template | (p. 2) | Renaming (moving) a page | Editing shortcuts | Talk page | Testing | Export | Import | rlc |