+------------------------------------------------------------------------------ | On 2008-01-09 19:31:15, David Kleiner wrote: | | Is there a way to shorten or alias long FMRI service names? For example, if I have | svc://applicationg/foo/bar/baz:default and I would like to | alias to bar-baz when running svcsadm/svcs commands, assuming | bar-baz is unique, is there a way to do that?
Using "bar/baz" gets you what you want, unless the hyphen has to be magical. [20080109-22:39:35]:[root at a-dstore-quonix]:[~]# svcs -v '*discards*' STATE NSTATE STIME CTID FMRI online - Dec_17 94 svc:/network/discards/httpd:default online - 22:13:45 8693 svc:/network/discards/dstore:default online - 22:40:09 8702 svc:/network/discards/fulfill2-release:default [20080109-22:39:40]:[root at a-dstore-quonix]:[~]# svcs -v discards/dstore STATE NSTATE STIME CTID FMRI online - 22:13:45 8693 svc:/network/discards/dstore:default -- bda Cyberpunk is dead. Long live cyberpunk. http://mirrorshades.org