Perforce Server security levels questions

scmuser created the topic: perforce Server security levels questions
Hi,

I would like to clear my confusion over the p4 Server security levels.

As per the manuals, its says that “The default security level is 0: passwords are not required, and password strength is not enforced.”

but i have created user and set the password

My Questions is, if i make The default security level is 1/2/3 but do not set the password for users. will it allowed me to login

or without password, it will allow only its level is set to 0..

any clarification??

Tagged :

Perforce Password strength defined

scmuser created the topic: Perforce Password strength defined
Certain combinations of server security level and Perforce client software releases require users to set “strong” passwords. A password is considered strong if it is at least eight characters long, and at least two of the following are true:

• Password contains uppercase letters
• Password contains lowercase letters
• Password contains non-alphabetic characters.
For example, the passwords a1b2c3d4, A1B2C3D4, aBcDeFgH are considered strong.

Tagged :

Perforce password (P4PASSWD) invalid or unset.

scmuser created the topic: Perforce password (P4PASSWD) invalid or unset.
Hi,

I am trying to loginb perforce using command line using following command…
p4 -p -u Abinash_Misra sync //depot/branchname/…

but i am getting following error..
Perforce password (P4PASSWD) invalid or unset.

Any idea how to pass password over command line to login perforce?

rajeshkumar replied the topic: Re: Perforce password (P4PASSWD) invalid or unset.
You can use following command to login perforce over command line…
p4 -p -u Abinash_Misra -P sync //depot/branchname/…

You can provide passwords to the Perforce server in one of three ways:

1. Set the environment or registry variable P4PASSWD to the password value;

2. Create a setting for P4PASSWD within the P4CONFIG file;

3. Use the -P password flag on the Perforce client command line, for example:
p4 -u ida -P idaspassword sync
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Can’t cobbler writable file issues in Perforce

rajeshkumar created the topic: can’t cobbler writable file issues in Perforce
Hi,

I often get this issues in perforce client
can’t cobbler writable file

But when do force sync this error go and instead of doing force sync and spending hell lots of time, is there any ways where i can get rids of this and get the latest file in my working location?
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: Re: can’t cobbler writable file issues in Perforce
Solution:

When we sync the Head Revision We very often get one Info warning that “Can’t clobber writable file”. it’s very easy to force sync in case of less number of files. But when you have list of files this become tedious and time taking to do force sync.

The main reason for this issues is files under source control were marked as read-only and when a file is checked out or while editing in Editor(Eclipse, VS Studio), then it removes the read-only attribute.

To solve the issues, marked every file as read-only and get the latest revision without any errors.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

sharieffmd replied the topic: Re: can’t cobbler writable file issues in Perforce
another way is open clientspec

p4 client
and change the options

Options: noallwrite clobber compress unlocked nomodtime rmdir

rajeshkumar replied the topic: Re: can’t cobbler writable file issues in Perforce
Thanks for useful comments. In unix / Linux Env you can also do somthing like..
chmod ugo-w /location/
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Write a script to find all users who have not set

rajeshatbuzz created the topic: Write a script to find all users who have not set
#!/usr/bin/ruby
require “P4”
p4 = P4.new
p4.parse_forms
p4.connect
p4.run_users.each do
|u|
user = p4.fetch_user( u[ “User” ] )
puts( user[ “User” ] ) unless user.has_key?( “Password” )
end

rajeshkumar replied the topic: Re: Write a script to find all users who have not set
Above program is useful when you have p4 security level set to 0.

However, 0 is not recommend practice and you can increase the p4 server authentication process by setting up following command..

p4 counter -f security 1 or 2 or 3

for more info…refer p4 counter and seclevel in manuals
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

How to clone perforce label?

r_sathliya created the topic: How to clone perforce label?
Hi All,
I need to clone Perforce lable to automate my task. Could anyone please help me in this?

Thanks,
Raju

rajeshkumar replied the topic: Re: How to clone perforce label?
Hi Raju,

I knw its very late reply. I m sure you must have got the solution but for reference i am putting.. hope you wont mind 🙂

Assume Copy a label’s contents to another label. Assume that the existing label
is “xxx” and the new label is to be “abc”.
A two-step process:
1. Make the label using
“p4 label –t xxx abc”
2. Populate it using
“p4 labelsync –l abc //…@xxx”

Note that the second step is really identical to the second step in the previous question – we’re just specifying a very specific list of revisions [of files] to include in the new label.
(Also…
In 2005.1 and later, “p4 tag” will make the label and apply it to a set of files.)
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: Re: How to clone perforce label?
TO give you more specific reason.

Creating a Label in perforce can be done by following 2 steps..

Running p4 label allows you to configure the mapping that controls the set of files that are allowed to be included in the label. After configuring the label, use p4 labelsync or p4 tag to tag files with the label.

p4 label -t xxx abc
p4 labelsync -l abc //…@xxx
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Continuos Integration from the scratch

r_sathliya created the topic: Continuos Integration from the scratch
Hi all,
I want to deploy continuous integration in my company. We are using Perforce. Can any one guide me for this.
(which tool is best? and How to do it? and any existing code/project example available?)

Thanks,
Raju

rajeshkumar replied the topic: Re:Continuos Integration from the scratch
Hi Raju,

Could you please tell me following inputs before answer your questions..
1. Build Script (ant, maven, shell or perl)
2. Do you need Static Code Analysis tools to be integrated or its already done.
3. Do you need testing tools and test coverage tools to be integrated.
4. What is the frequency of build you generate everyday?
5. Why do you need CI tools in your project?
6. Are you are looking for commercial tool or open Source Tools?

once you answer following questions, i will be able to tell you correct tools which you can go ahead and implement smoothly with the project?
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

r_sathliya replied the topic: Re:Continuos Integration from the scratch
Thanks Rajesh for replying !!

Here is answer to your question

1. Build Script (ant, maven, shell or perl)
Ans: In my company we are using technologies like .Net, Java, VB, C (Unix) and for this we are using different scripting lang as Nant, Ant, Shell)
I would prefere Ant

2. Do you need Static Code Analysis tools to be integrated or its already done.
Ans: No idea for this.

3. Do you need testing tools and test coverage tools to be integrated.
Ans: Not require now..

4. What is the frequency of build you generate everyday?
Ans: We have total 15-20 client and I guess for each client 1 build/per week is require.

5. Why do you need CI tools in your project?
Ans: 1. To create nightly build
2. To let developper if they sobmitted wronge code
3. Require Dashboard to see the build status and its shedule.

6. Are you are looking for commercial tool or open Source Tools?
Ans: Preferable OpenSource but comrcial tool will do if its best fit

Thanks,
Raju

r_sathliya replied the topic: Re:Continuos Integration from the scratch
Hello Rajesh,

Could you please provide me your update on my question posted above.

Thanks,
Raju

scmuser replied the topic: Re:Continuos Integration from the scratch
Hi,

By Given Senario, I Would recommend CruiseControl for Java and CruiseControl.net for Microsoft would be great deal.

if you are planning to migrate from ant to maven the Hudson+Sonar+Maven combination would be grt.

r_sathliya replied the topic: Re:Continuos Integration from the scratch
Thanks for answering my queries.

Is “C” build from Unix environment is posible by either of cruisecontrol.net Or cruisecontrol for java?

mnanjala replied the topic: Re:Continuos Integration from the scratch
Hello,

If you want build C code or java code, Any continuous integration server should take care of that provided you have repository and build scripts well placed.I prefer Hudson is more efficient thank CC

rajeshkumar replied the topic: Re:Continuos Integration from the scratch
Hi,

Well said by praveen, As any CI tools will serve your purpose as soon as you have proper build script which noo only depends on CI tools instead of their own build capabilities.

So have proper build script which can be used to CI tools. I would rather suggest you CC.net or Visual Build Professional.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: Re:Continuos Integration from the scratch
Hi Raju,

just to add few more points on this. More often build tool such as (Ant, Make, Maven, Nanat) is not dependent of any specific platform…but build tools may be have more feature to integrate with specific platform may be Java or Microsoft technology just as make is more suitable for c and c++ and ant/maven is more with java.

but in any scenario, you can use any build tool with any technology and all build tools are technology independent.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Perforce Proxy Server: Caching selective files

scmuser created the topic: Perforce Proxy Server: Caching selective files
Hi,
I have setup p4 proxy server…

I would like to sync only few branches which are needed in development but not the entire depot files.

It will take more time as well as nobody is there to use it all the branches.

Any idea how to do this

rajeshkumar replied the topic: Re: Perforce Proxy Server: Caching selective files
The proxy only caches what you request from the server, so if you “haven’t had to sync it”, it won’t be cached. If you don’t want the entire sandbox directory cached, don’t sync the entire sandbox directory. Only sync what you need. It sounds like your doing this:
p4 sync //depot/sandbox/…

instead of this (let’s say your sandbox directory is named fbrereto):
p4 sync //depot/sandbox/fbrereto/…
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Locking a branch in perforce?

scmuser created the topic: Locking a branch in perforce?
Hi,

I have requirement to lock branch while doing code freeze and making release but the challenge is that i dont have access on perforce server so i can use p4 protect..

Hows it feasible to achieve without having perforce server accesss.

mnanjala replied the topic: Re: Locking a branch in perforce?
If you are not an admin, then you should take a look at the “group owner” feature introduced in 2007.3. This will let a non-super user to be able to add & remove people from a group. Later you have to combine with this protections table,at this point you may need to work one time with perforce admin i.e. get site admin to set up the protections table, and restrict rights to a group named “Release 1.0 Authorised”, and make you the group owner. You can then add and remove users (or subgroups) from that group to control access.

mnanjala replied the topic: Re: Locking a branch in perforce?
Straight answer is you should get the admin access else you should just pass this to perforce admins.:)

Tagged :

Add and removes files from label

scmuser created the topic: Add and removes files from label
Hi,

Could you please tell me how to add and remove files from already created labels?

mnanjala replied the topic: Re: Add and removes files from label
P4Web Release 2010.1 User Guide
[Getting Started] [How To…] [Browser Tips] [Glossary] [Road Map]
Adding and Replacing Files in a Label

There are essentially two steps to creating a label:

Create the label spec, which defines the name of the label and label view.
Tag the files with that label using Add/Replace files…
Add/Replace files… tags a set of files with a label. Once you have tagged them, you can refer to a set of files by their label name.
For more information about labels, see Working with Labels.

Add/Replace restrictions

Bear in mind that you cannot use Add/Replace files to update a label if:
The label’s Owner: field is not your userid. You can only update labels you own.
The label has its Options: field set to locked
For more information about a label’s fields, see Creating and Editing Labels.
To Add/Replace files in a label

Select the Labels tab.
Click on the name of the label to which you want to add or replace files.
Select Add/Replace labels… from the pulldown list.
On the Add/Replace Files page
Under Revision: select one of the following radio buttons:
Workspace Revision: tags the file revisions currently synced in your workspace with the label.
Head Revision: tags the file revisions that are currently the latest versions in the depot with the label.
Label, Changelist or Date: enter a label name, a changelist number, or a date to tag files at revisions matching that criteria.
Under Options: select one of the following radio buttons:
Replace label contents completely: specified files are added or replaced. Files previously in the label that do not match your specification are removed from the label.
Add files to label: adds or replaces only the files that you specify. Labeled files that do not match your specifications are unaffected.
Remove files from label: removes the named files from the label.
Under Files: you can specify or restrict the files to add or replace. Select one of the following options:
All files in label view: includes all files in this label’s label view.
Files in [path]: this option is only available when your current path is not the root of the depot tree. Select and subdirectories or at this level only, depending on which files you want to include.
Files in this list: includes only the files listed in the textbox. You must provide a full pathname for these files, and you can use wildcards. Note that the files you specify must be in the label’s view, or P4Web displays a “No such file” error. You can also specify revisions if you have selected the Workspace Revision option.
When you have finished defining the parameters, click the Preview Add/Replace button to see the results before actually updating the label. If the command has the expected results, click your browser’s “Back” button and click the Add/Replace button to proceed.
Source : www.perforce.com

Tagged :