Skip to content

Instantly share code, notes, and snippets.

@Haegin
Last active December 10, 2015 17:12
Show Gist options
  • Save Haegin/94ca9c23f637d452db5c to your computer and use it in GitHub Desktop.
Save Haegin/94ca9c23f637d452db5c to your computer and use it in GitHub Desktop.
SmartOS notes

Services

  • svccfg import file.xml imports a service manifest file

  • svcadm enable [service] start service

  • svcadm disable [service] stop service

  • tail $(svcs -L [service]) show logs for management of service

Network

  • ndd /dev/udp upd_max_buf get the max UDP buffer size
  • ndd -set /dev/udp udp_max_buf [value] set the max UDP buffer size to value

More params here: https://docs.oracle.com/cd/E23824_01/html/821-1450/chapter4-57.html and https://www.veritas.com/support/en_US/article.000066024

Package Management

  • pkgin update - update package DB
  • pgkin search [query] - find packages
  • pkgin install [package] - install package

Updating the SmartOS Platform image

This uses the smartos-platform-upgrade tool from https://github.com/calmh/smartos-platform-upgrade.

  • platform-update /dev/dsk/c1t0d0p1
  • Check the disk contents (see the README from the tool repo)
  • umount /dev/dsk/c1t0d0p1
  • reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment