SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Bind CPU Utility

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Bind CPU Utility
Author Message
Brent



Joined: 20 Feb 2002
Posts: 57

Post Bind CPU Utility Reply with quote

What are some syntax examples of how to use the
BindCPU and BindCPUw utilities? I am trying to get
24x7 to kick off a Linc report and pass in a parameter,
and I can't get a parameter to pass. The web site states
that when you run the utility from a command prompt, the
full description is supposed to display. When I run
it from a command prompt, all I get is about half
the description that is on this site (BindCPUw).

Any help would be great. Thank you.

Tue Aug 12, 2003 10:45 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7968

Post Re: Bind CPU Utility Reply with quote

What is the Linc command line that you want to pass to BindCPU?

: What are some syntax examples of how to use the
: BindCPU and BindCPUw utilities? I am trying to get
: 24x7 to kick off a Linc report and pass in a parameter,
: and I can't get a parameter to pass. The web site states
: that when you run the utility from a command prompt, the
: full description is supposed to display. When I run
: it from a command prompt, all I get is about half
: the description that is on this site (BindCPUw).

: Any help would be great. Thank you.

Tue Aug 12, 2003 12:08 pm View user's profile Send private message
Brent



Joined: 20 Feb 2002
Posts: 57

Post Re: Bind CPU Utility Reply with quote

From the script I would build the line into a string
variable like this:

Set Run_command "S:\\24x7_scripts\\utils\\BindCPUw.exe 4 S:\\systems\\linc\\abadb\\SMPLRPT2.EXE PA 00ABA_SPECREQ Y"

But because I need the exact number of spaces in the
parameter following the 00ABA_SPECREQ, I tried this
(putting the parameter inside double quotes):

Set Run_command "S:\\24x7_scripts\\utils\\BindCPUw.exe 4 S:\\systems\\linc\\abadb\\SMPLRPT2.EXE PA ""00ABA_SPECREQ Y"""

That didn't work either.

I run this command through the RunandWait command:

RunandWait Run_command, Start_dir, 0, Run_return_value

What do I need to do to get the BindCPUw to run my
Linc report using the parameter given and keeping the
spaces (the Y must to appear in the 21st position
of the parameter)?

: What is the Linc command line that you want to pass to BindCPU?

Tue Aug 12, 2003 2:25 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7968

Post Re: Bind CPU Utility Reply with quote

You need to include PA as part of your parameters string

"S:\\24x7_scripts\\utils\\BindCPUw.exe 4 S:\\systems\\linc\\abadb\\SMPLRPT2.EXE \"PA 00ABA_SPECREQ
Y\""

BindCPU recognizes 3 parameters as described in program help screen

First parameter is used to specify the CPU binding.
Second parameter is used to specify the program to start.
Third parameter is to pass all other parameters to the program specified in the second parameter.

From BindCPU point of view all your program parameters are considered as a single string (and as a single parameter to BindCPU). If you have multiple parameters separated by spaces you need to enclose the entire thing in double-quotes then Windows will treat it as a single string which in the end will be passed to command line of your program.

RunAndWait "S:\\24x7_scripts\\utils\\BindCPUw.exe 4 SMPLRPT2.EXE PA 00ABA_SPECREQ Y",
"S:\\systems\\linc\\abadb", 0, Run_return_value

: From the script I would build the line into a string
: variable like this: Set Run_command
: "S:\\24x7_scripts\\utils\\BindCPUw.exe 4
: S:\\systems\\linc\\abadb\\SMPLRPT2.EXE PA 00ABA_SPECREQ Y"

: But because I need the exact number of spaces in the
: parameter following the 00ABA_SPECREQ, I tried this
: (putting the parameter inside double quotes): Set Run_command
: "S:\\24x7_scripts\\utils\\BindCPUw.exe 4
: S:\\systems\\linc\\abadb\\SMPLRPT2.EXE PA ""00ABA_SPECREQ
: Y"""

: That didn't work either.

: I run this command through the RunandWait command: RunandWait Run_command,
: Start_dir, 0, Run_return_value

: What do I need to do to get the BindCPUw to run my
: Linc report using the parameter given and keeping the
: spaces (the Y must to appear in the 21st position
: of the parameter)?

Tue Aug 12, 2003 2:47 pm View user's profile Send private message
Brent



Joined: 20 Feb 2002
Posts: 57

Post Re: Bind CPU Utility Reply with quote

Thank you. That worked. What confused me was how
to syntax the command. Suggestion: include examples
on the help pages and exact syntax. With having to
know different languages and syntaxes, people get
confused often as to what to use. Like with this
example, I would have never thought to use the \
until you said something.

Thank you again for the help.

: You need to include PA as part of your parameters string

: "S:\\24x7_scripts\\utils\\BindCPUw.exe 4
: S:\\systems\\linc\\abadb\\SMPLRPT2.EXE \"PA 00ABA_SPECREQ
: Y\""

: BindCPU recognizes 3 parameters as described in program help screen

: First parameter is used to specify the CPU binding.
: Second parameter is used to specify the program to start.
: Third parameter is to pass all other parameters to the program specified in
: the second parameter.

: From BindCPU point of view all your program parameters are considered as a
: single string (and as a single parameter to BindCPU). If you have multiple
: parameters separated by spaces you need to enclose the entire thing in
: double-quotes then Windows will treat it as a single string which in the
: end will be passed to command line of your program.

: RunAndWait "S:\\24x7_scripts\\utils\\BindCPUw.exe 4 SMPLRPT2.EXE PA
: 00ABA_SPECREQ Y",
: "S:\\systems\\linc\\abadb", 0, Run_return_value

Tue Aug 12, 2003 3:03 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.