Some quick find examples find in current directory all files that have size greater than 0 find . -type f -size +1 -exec ls -la {} \; find in current directory all files that have size less than or equal to 0 find . -type f -size -1 -exec ls -la {} \; …
Category: Solaris
Permanent link to this article: https://daherlabs.mywire.org/wordpress/?p=237
Jan 24 2014
Copy directory from local host to remote host
Here is a simple and secure way to copy a directory structure from a local host to a remote host: # tar -czf – . | ssh root@ubuntu “(cd /mnt/tegile;tar -xpzf -)” The – repersents stdin The . means current directory
Permanent link to this article: https://daherlabs.mywire.org/wordpress/?p=233
Jan 02 2014
OmniOS General Networking Commands
General OmniOS networking commands taken from the OmniOS site. Setting up dynamic (DHCP) networking # First identify the physical interface on which you would like networking: # dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE e1000g0 Ethernet unknown 0 half e1000g0 e1000g1 Ethernet ? 1000 full e1000g1 Physical interfaces that don’t have a corresponding IP interface …
Permanent link to this article: https://daherlabs.mywire.org/wordpress/?p=127
Jan 01 2014
Configure Basic Settings for a fresh OmniOS VMware Guest
Here is a quick and dirty shell script to configure a single interface OmniOS Guest: root@ns1:~# cat addr.sh #!/bin/bash read -p “hostname:” hn hostname $hn echo $hn > /etc/nodename echo “domain csuohio.edu” > /etc/resolv.conf read -p “dns servers up to 3 separated by commas:” dns echo $dns | awk -F’,’ ‘{print “nameserver ” $1}’ >> …
Permanent link to this article: https://daherlabs.mywire.org/wordpress/?p=121
Dec 30 2013
Create Etherchannel, VLANs on Solaris and Cisco
Here is a quick guide on how to create an LACP etherchannel and add VLANs to that etherchannel. Current System root@csu-s:~# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4 inet 0.0.0.0 netmask 0 …
Permanent link to this article: https://daherlabs.mywire.org/wordpress/?p=116
Dec 23 2013
How to Increase rpool in OmiOS VMware Guest Without a Mirror
If you have ever created an OmniOS VM guest and made the root disk rpool too small, there are 2 pretty simple methods to increase the size of the disk. I found this method to be simpler and more straight forward. The mirror method is described in an earlier post. The following will outline those …
Permanent link to this article: https://daherlabs.mywire.org/wordpress/?p=102
Dec 20 2013
How to Increase rpool in OmiOS VMware Guest Using a Mirror
If you have ever created an OmniOS VM guest and made the root disk rpool too small, there is a pretty simple way to increase the size of the disk. The following will outline those steps. Sections in blue are what you would type: Edit the settings in vSphere for the VM Add a new …
Permanent link to this article: https://daherlabs.mywire.org/wordpress/?p=28
Oct 26 2013
Example syntax for Secure Copy (scp)
Example syntax for Secure Copy (scp) What is Secure Copy? scp allows files to be copied to, from, or between different hosts. It uses ssh for data transfer and provides the same authentication and same level of security as ssh. Examples Copy the file “foobar.txt” from a remote host to the local host $ scp …
Permanent link to this article: https://daherlabs.mywire.org/wordpress/?p=139

