[Orca-users] non-programmer here with a question re: mounted disks

Rick Edwards rick.edwards at viterra.ca
Mon Nov 16 12:38:02 PST 2009


Hi All

I notice that in orcallator.se there is a provision to skip certain mounts:
"cdrom", "snapshot" etc.

I would like to add to that list, any mount point that begins with ".alt" - this
is a Solaris system preforming a Live Upgrade, which uses ".alt_xxxxxx" as
mountpoints.  It's making my graphing very,  very messy.

Now, not being a very good programmer (I know how to do this in PERL, but not
here), I've tried:

      // Skip Live Upgrade file systems to avoid output format changes as
      // they are mounted and unmounted.
      if (tmp_mnt.mnt_mountp =~ "^/.alt/") {
        continue;
      }

but that doesn't work.  If I try

      // Skip Live Upgrade file systems to avoid output format changes as
      // they are mounted and unmounted.
      if (tmp_mnt.mnt_mountp =~ /^.alt/) {
        continue;
      }

orcallator won't start, with a syntax error.  I'm thinking the easiest way out
for me, is to toss it out to you all (I am a tad lazy, I admit)

In short, I need to be able to omit filesystems that begin with ".alt"  - don't
miss that "dot" at the beginning - that's what is messing me up.


Thanks in advance.....
Rick
rick.edwards at viterra.ca

Cheers!


Rick Edwards
IT Contractor
Regina
Phone: 306/569-4099 | Mobile: 306/530-1158 | Fax: 306/569-4330
Mailto:rick.edwards at viterra.ca
www.viterra.ca
(Embedded image moved to file: pic08738.gif)

This e-mail and any attachment(s) are confidential and may be privileged.
If you are not the intended recipient please notify me immediately by return
e-mail, delete this e-mail and do not copy, use or disclose it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic08738.gif
Type: image/gif
Size: 1647 bytes
Desc: not available
URL: </pipermail/orca-users/attachments/20091116/44d0753b/attachment.gif>


More information about the Orca-users mailing list