11-01-2009
That's a lot simpler than my suggestion!
10 More Discussions You Might Find Interesting
1. Solaris
Hi,
I have a solaris 5.6 box, and i need to create a Flash Archive for DRP porposes. When i execute the falarcreate commnad the system returns "flarcreate: command not found" . I search the entire system (find . -name *flar*) for that comand and i can find it. Solaris 5.6 donīt have this... (1 Reply)
Discussion started by: spacewalker
1 Replies
2. Solaris
Hi,
Someone knows hot to create a flash archive to a remote tape device?
Here is my try:
$flarcreate -n nereus -S -t lisdev:/dev/rmt/1n
WARNING: hash generation disabled when using tape (-t)
current filter settings
Creating the archive...
ERROR: Unable to work archive.
Regards (4 Replies)
Discussion started by: spacewalker
4 Replies
3. Solaris
Hi there
I have created a flash archive using flarcreate and rolled out via jumpstart and everything seems fine, however when I roll out the archive to another box, everything is fine apart from the /etc/hosts file which is the same as the masters hosts file (i.e. it still has the original... (1 Reply)
Discussion started by: hcclnoodles
1 Replies
4. Solaris
I want to image solaris 8 with flarcreate like ghost in windows. the error come like errno 28, No space left?
this is error message
absapp@nepalabs1 # flarcreate -n "sol8utl" -S -R / -x /var/tmp /var/tmp/s8.utl.061222
Determining which filesystems will be included in the archive...
Creating... (15 Replies)
Discussion started by: 197oo302
15 Replies
5. Solaris
found my notes got it
flarcreate -n jumpstart -x /jumpstart/flash /jumpstart/flash/jumpstart.flar
i think this will omit that directory and save it there correct? (3 Replies)
Discussion started by: deaconf19
3 Replies
6. Solaris
Hi, i'm trying to make a system copy from one server to another (solaris 9), they have the same configuration. I've tried to create a flash archive using the flarcreate but the flash file size is 5.06 approx. and the method the flarcreate is using is CPIO and he cannot handle sizes over 4 GB.
Is... (2 Replies)
Discussion started by: pasalagua
2 Replies
7. IP Networking
Hi every body,
Is it possible to connect two servers Back-to-Back (Point-to-Point) using HBA adapters & using Fiber.
Note it is direct connection & there is no switches between the servers.
I'm concern about using HBA adapters, it is possible or not.
Thanks in advance. :) (3 Replies)
Discussion started by: aldowsary
3 Replies
8. Solaris
Hi, I have to clone a system and i would like to use flarcreate. My question is regarding excluding some NFS mounts and some directories under /. If somebody have done this earlier please advice on the following procedure.
Create a file like /exclude_list and put the following lines in it
... (1 Reply)
Discussion started by: uxadmin007
1 Replies
9. Solaris
hi,
i would like to know if it is posible to create the flash archive and in the same line add another command to save it in another server through SCP.
flarcreate -n "sv756flash" -c -X excludefilelist |...
i appreciate your help.
thanks a lot. (4 Replies)
Discussion started by: pabloli150
4 Replies
10. Solaris
Got a solaris 10 server that I want to take a flar of in order to use to build a new server. Works fine.
Only trouble is there is software on the original server that is not needed on the new server - it will be uninstalled.
I was thinking of creating the flar from the original server and... (0 Replies)
Discussion started by: psychocandy
0 Replies
LEARN ABOUT CENTOS
perl::critic::policy::modules::prohibitexcessmaincomplexity
Perl::Critic::Policy::Modules::ProhibitExcessMainComplexUser3Contributed Perl DocumePerl::Critic::Policy::Modules::ProhibitExcessMainComplexity(3)
NAME
Perl::Critic::Policy::Modules::ProhibitExcessMainComplexity - Minimize complexity in code that is outside of subroutines.
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
All else being equal, complicated code is more error-prone and more expensive to maintain than simpler code. The first step towards
managing complexity is to establish formal complexity metrics. One such metric is the McCabe score, which describes the number of possible
paths through a block of code. This Policy approximates the McCabe score by summing the number of conditional statements and operators
within a block of code. Research has shown that a McCabe score higher than 20 is a sign of high-risk, potentially untestable code. See
<http://en.wikipedia.org/wiki/Cyclomatic_complexity> for some discussion about the McCabe number and other complexity metrics.
Whereas Perl::Critic::Policy::Subroutines::ProhibitExcessComplexity scores the complexity of each subroutine, this Policy scores the total
complexity of all the code that is outside of any subroutine declaration.
The usual prescription for reducing complexity is to refactor code into smaller subroutines. Mark Dominus book "Higher Order Perl" also
describes callbacks, recursion, memoization, iterators, and other techniques that help create simple and extensible Perl code.
CONFIGURATION
The maximum acceptable McCabe score can be set with the "max_mccabe"
configuration item. If the sum of all code outside any subroutine has a McCabe score higher than this number, it will generate a Policy
violation. The default is 20. An example section for a .perlcriticrc:
[Modules::ProhibitExcessMainComplexity]
max_mccabe = 30
NOTES
"Everything should be made as simple as possible, but no simpler."
-- Albert Einstein
Complexity is subjective, but formal complexity metrics are still incredibly valuable. Every problem has an inherent level of complexity,
so it is not necessarily optimal to minimize the McCabe number. So don't get offended if your code triggers this Policy. Just consider if
there might be a simpler way to get the job done.
SEE ALSO
Perl::Critic::Policy::Subroutines::ProhibitExcessComplexity
AUTHOR
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>
COPYRIGHT
Copyright (c) 2005-2011 Imaginative Software Systems. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license
can be found in the LICENSE file included with this module.
perl v5.16.3 2014-06-09 Perl::Critic::Policy::Modules::ProhibitExcessMainComplexity(3)