[Scopes] Execute command in specific scope
Hello fellow Powershell users,
I am currently looking for a way to execute a command in a specific scope of my choice. While some commands offer a choice in how they do that, many do not. Any ideas on how to do this?
Background:
I occasionally find it useful or necessary to affect items on another scope. With Variables that's not an issue, but with items like Aliases or Functions that's not quite as simple, since the standard provider cmdlets only appear to work within the current
scope (And that allscope option on Aliases is a joke - you can remove-item them all day long without affecting them in a parent scope, which es exactly what the documentation suggests should work).
That situation got me thinking, and knowing generally on how to do this would be great.
Cheers,
Fred
There's no place like 127.0.0.1
Hi Matt,
sure I can:
Remove-Item Alias:\ri
This will delete the Alias from the current scope, but not globally. I know of no way to specify scope on PSDrive stored variables and functions / commands will by default affect content in the current scope (yeah, I was a bit inprecise in my
terminology there).
The concrete mater at hand is that I'm busy writing a module that creates extended Aliases (Predefined parameters, added aliases for parameters, constrained Validate-Sets ... stuff like that). So I'm trying to implement a Force parameter that will replace
current aliases with the "new one" (I actually compile it as a function and real Aliases take precedence over functions ... and any changes I make to the aliases revert once the command ends and the user returns to the parent scope).
Anyway, since I don't want to be fighting that same battle the next time I have trouble with scopes, I got wondering whether there's a way to choose on the function side which scope it affects, instead of finding an individual way each time a problem occurs...
Cheers,
Fred
There's no place like 127.0.0.1
Similar Messages
-
Executing command in new powershell window
Hello guys, I'd like explore directions with gci, but the thing is that istead of using -recurse I'd like to open every single direction in new powershell window. I've made something like this:
function Get-ScriptDirectory
$Invocation = (Get-Variable MyInvocation -Scope 1).Value
Split-Path $Invocation.MyCommand.Path
$path = Get-ScriptDirectory
$paths = Get-ChildItem $path -Recurse | ?{ $_.PSIsContainer }
foreach ($element in $paths)
start-process powershell
$new= $path, $element -join "\"
gci $new
But I don't know to make Powershelle execute command in new window. Start-process powershell only opens new window, but it doesn't import bolded commands. Can I get any suggestions?Hi Shadston,
To add cmdlet in "-command", please refer to the script below:
Get-ChildItem (Split-Path $MyInvocation.MyCommand.Path) -Recurse -Directory |ForEach-Object{
start-process -FilePath powershell -ArgumentList @('-NoExit',"& {GCI '$($_.FullName)'; Write-Host 'Hello' }")
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
I m working to migrate from XP SP3 to Windows 7 using SCCM 2012 R2 CU4 but I have a boot error similar as above. Normally with CU4, XP will be supported by WInPE 5.1 (ADK 8.1). it's a refresh scenario, the task sequence was launched from XP. USMT will
use a local store.
The smsts log has a content as follow:
[Successfully completed the action (Restart Computer in WinPE) with the exit win32 code 0]LOG]!><time="10:18:00.843+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740"
file="instruction.cxx:830">
<![LOG[Set authenticator in transport]LOG]!><time="10:18:00.859+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="libsmsmessaging.cpp:7734">
<![LOG[Set a global environment variable _SMSTSLastActionRetCode=0]LOG]!><time="10:18:01.156+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="executionenv.cxx:668">
<![LOG[Set a global environment variable _SMSTSLastActionSucceeded=true]LOG]!><time="10:18:01.156+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="executionenv.cxx:668">
<![LOG[Clear local default environment]LOG]!><time="10:18:01.156+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="executionenv.cxx:807">
<![LOG[Updated security on object C:\_SMSTaskSequence.]LOG]!><time="10:18:01.218+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="utils.cpp:1704">
<![LOG[Set a global environment variable _SMSTSNextInstructionPointer=2]LOG]!><time="10:18:01.218+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="executionenv.cxx:668">
<![LOG[Set a TS execution environment variable _SMSTSNextInstructionPointer=2]LOG]!><time="10:18:01.218+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="executionenv.cxx:386">
<![LOG[Set a global environment variable _SMSTSInstructionStackString=0]LOG]!><time="10:18:01.218+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="executionenv.cxx:668">
<![LOG[Set a TS execution environment variable _SMSTSInstructionStackString=0]LOG]!><time="10:18:01.218+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="executionenv.cxx:414">
<![LOG[Save the current environment block]LOG]!><time="10:18:01.218+240" date="02-26-2015" component="TSManager" context="" type="0" thread="1740" file="executionenv.cxx:833">
<![LOG[Executing command line: "bcdedit.exe"]LOG]!><time="10:18:01.234+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="commandline.cpp:827">
<![LOG[CreateProcess failed. Code(0x80070002)]LOG]!><time="10:18:01.234+240" date="02-26-2015" component="TSManager" context="" type="3"
thread="1740" file="commandline.cpp:1018">
<![LOG[Command line execution failed (80070002)]LOG]!><time="10:18:01.234+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="commandline.cpp:1245">
<![LOG[Staging boot image P0100002]LOG]!><time="10:18:01.250+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="bootimage.cpp:717">
<![LOG[ResolveSource flags: 0x00000000]LOG]!><time="10:18:01.500+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="resolvesource.cpp:3201">
<![LOG[SMSTSPersistContent: . The content for package PO100002 will be persisted]LOG]!><time="10:18:01.500+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740"
file="resolvesource.cpp:3212">
<![LOG[Locations: Multicast = 0, HTTP = 1, SMB = 0.]LOG]!><time="10:18:01.500+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="resolvesource.cpp:2749">
<![LOG[Multicast is not enabled for the package.]LOG]!><time="10:18:01.500+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="resolvesource.cpp:2789">
<![LOG[Trying
http://sccmsrv.contoso.com:80/SMS_DP_SMSPKG$/P0100002/sccm?/boot.PO100002.wim to C:\_SMSTaskSequence\Packages\PO100002\boot.PO100002.wim ]LOG]!><time="10:18:18.265+240" date="02-26-2015" component="TSManager" context=""
type="1" thread="1740" file="downloadcontent.cpp:1592">
<![LOG[VerifyContentHash: Hash algorithm is 32780]LOG]!><time="10:18:18.265+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="downloadcontent.cpp:1870">
<![LOG[Found boot image C:\_SMSTaskSequence\Packages\PO100002\boot.PO100002.wim]LOG]!><time="10:18:22.156+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740"
file="bootimage.cpp:1115">
<![LOG[Copying boot image locally...]LOG]!><time="10:18:22.156+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="bootimage.cpp:745">
<![LOG[ADK installation root registry value not found.]LOG]!><time="10:18:30.125+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="wimfile.cpp:207">
<![LOG[Loaded C:\Program Files\Windows Imaging\wimgapi.dll]LOG]!><time="10:18:30.171+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="wimfile.cpp:344">
<![LOG[Opening image file C:\_SMSTaskSequence\WinPE\sources\boot.wim]LOG]!><time="10:18:30.171+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="wimfile.cpp:422">
<![LOG[Applying image 1 to volume C:\_SMSTaskSequence\WinPE]LOG]!><time="10:18:30.296+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="wimfile.cpp:613">
<![LOG[Closing image file C:\_SMSTaskSequence\WinPE\sources\boot.wim]LOG]!><time="10:18:32.906+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="wimfile.cpp:458">
<![LOG[Capturing WinPE bootstrap settings]LOG]!><time="10:18:32.921+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="winpesettings.cpp:80">
<![LOG[Environment scope successfully created: Global\{E7E5BB69-6198-4555-B5CA-6C46A2B5EB78}]LOG]!><time="10:18:32.921+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740"
file="environmentscope.cpp:623">
<![LOG[Executing command line: "osdnetsettings.exe" capture adapters:true scope:Global\{E7E5BB69-6198-4555-B5CA-6C46A2B5EB78}]LOG]!><time="10:18:32.921+240" date="02-26-2015" component="TSManager" context=""
type="1" thread="1740" file="commandline.cpp:827">
<![LOG[==============================[ OSDNetSettings.exe ]===========================]LOG]!><time="10:18:33.343+240" date="02-26-2015" component="OSDNetSettings" context="" type="1" thread="3644"
file="main.cpp:134">
<![LOG[Command line: "osdnetsettings.exe" capture adapters:true scope:Global\{E7E5BB69-6198-4555-B5CA-6C46A2B5EB78}]LOG]!><time="10:18:33.343+240" date="02-26-2015" component="OSDNetSettings" context=""
type="1" thread="3644" file="main.cpp:135">
<![LOG[No adapters found with non-empty DNSDomainSuffixSearchOrder]LOG]!><time="10:18:33.484+240" date="02-26-2015" component="OSDNetSettings" context="" type="0" thread="3644" file="netwmiadapterconfig.cpp:408">
<![LOG[Captured settings for adapter 1]LOG]!><time="10:18:34.875+240" date="02-26-2015" component="OSDNetSettings" context="" type="1" thread="3644" file="netsettings.cpp:99">
<![LOG[OSDNetSettings finished: 0x00000000]LOG]!><time="10:18:34.875+240" date="02-26-2015" component="OSDNetSettings" context="" type="1" thread="3644" file="main.cpp:192">
<![LOG[Process completed with exit code 0]LOG]!><time="10:18:34.875+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="commandline.cpp:1123">
<![LOG[Installing boot image to hard drive]LOG]!><time="10:18:34.906+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="bootimage.cpp:622">
<![LOG[Backing up existing boot system before trying to set up new boot system]LOG]!><time="10:18:34.906+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740"
file="bootimage.cpp:645">
<![LOG[BootLoader::backup: C:\, C:\_SMSTaskSequence\backup]LOG]!><time="10:18:35.109+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="bootloader.cpp:85">
<![LOG[BootLoader::restore: C:\_SMSTaskSequence\WinPE, C:\]LOG]!><time="10:18:41.187+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="bootloader.cpp:382">
<![LOG[Saving bcd store to C:\_SMSTaskSequence\WinPE\boot\BCD]LOG]!><time="10:18:41.734+240" date="02-26-2015" component="TSManager" context="" type="1" thread="1740" file="bootconfigimplbcd.cpp:703">
<![LOG[Executing command line: "C:\_SMSTaskSequence\WinPE\windows\system32\bootsect.exe" /NT60 SYS /MBR]LOG]!><time="10:18:42.500+240" date="02-26-2015" component="TSManager" context="" type="1"
thread="1740" file="commandline.cpp:827">
<![LOG[CreateProcess failed. Code(0x800700C1)]LOG]!><time="10:18:42.500+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="commandline.cpp:1018">
<![LOG[Command line execution failed (800700C1)]LOG]!><time="10:18:42.500+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="commandline.cpp:1245">
<![LOG[Failed to install boot image.
Unknown error (Error: 800700C1; Source: Unknown)]LOG]!><time="10:18:42.515+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="bootimage.cpp:682">
<![LOG[Failed to install boot image PO100002.
Unknown error (Error: 800700C1; Source: Unknown)]LOG]!><time="10:18:42.515+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="engine.cxx:840">
<![LOG[Failed to reboot the system. Error 0x(800700c1)]LOG]!><time="10:18:42.515+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="engine.cxx:953">
<![LOG[Failed to initialize a system reboot.
Unknown error (Error: 800700C1; Source: Unknown)]LOG]!><time="10:18:42.515+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="engine.cxx:577">
<![LOG[Fatal error is returned in check for reboot request of the action (Restart Computer in WinPE).
Unknown error (Error: 800700C1; Source: Unknown)]LOG]!><time="10:18:42.515+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="engine.cxx:273">
<![LOG[An error (0x800700c1) is encountered in execution of the task sequence]LOG]!><time="10:18:42.515+240" date="02-26-2015" component="TSManager" context="" type="3" thread="1740" file="engine.cxx:348">
Thank
LourhI'm not entirely sure if this was fixed in the newer CUs, but have you seen this thread?
https://social.technet.microsoft.com/Forums/en-US/041975df-a8a8-48cb-8d9f-0446c35210fe/sccm-2012-r2-boot-image-wont-load-in-windows-xp?forum=configmanagerosd
It offers a couple of alternatives too (i.e., http://davejaskie.com/2014/04/03/installing-a-legacy-boot-image-in-sccm-to-support-xp-migrations/)
Fausto -
I'm new in Sun, i just recieved a sun v100 server, i already connected the server to a workstation (using the hyperterminal tool) and it seemmed to be fine... however when the LOM> prompt appears and i try to introduce various commands but it does nothing.
LOMlite starting up.
CPU type: H8/3437S, mode 3
Ram-test: 2048 bytes OK
Initialising i2c bus: OK
Searching for EEPROMs: 50(cfg)
I2c eeprom @50: OK
i2c bus speed code 01... OK
Probing for lm80s: none
Probing for lm75s: 48
Initialising lm75 @48: OK
System functions: PSUs fans breakers rails gpio temps host CLI ebus clock
LOMlite console
lom>
LOM event: +0h0m0s LOM booted
lom>poweron
(it does nothing...)
also when i turn the server on with the on/standby switch it also seems to be starting fine, but again when the ok prompt is displayed i try to execute commands and it does again nothing.
Firmware CORE Sun Microsystems, Inc.
@(#) core 1.0.18 2002/05/23 18:22
Software Power ON
Verifying NVRAM...Done
Bootmode is 0
MCR0 = 57b2ce06
MCR1 = 80008000
MCR2 = cff0ffff
MCR3 = b00003ff
Ecache Size = 512 KB
Clearing E$ Tags Done
Clearing I/D TLBs Done
Probing memory
Done
MEMBASE=0xc0000000
MEMSIZE=0x20000000
Clearing memory...Done
Turning ON MMUs Done
Copy ROM to RAM (154720 bytes) Done
Orig PC=0x1fff0007edc New PC=0xf0f07f34
Processor Speed=648MHz
Looking for Dropin FVM ... found
Decompressing Client Done
Transferring control to Client...
Reset Control: BXIR:0 BPOR:0 SXIR:0 SPOR:1 POR:0
Probing upa at 1f,0 pci
Probing upa at 0,0 SUNW,UltraSPARC-IIe (512 Kb)
Loading Support Packages: kbd-translator
Loading onboard drivers:
Probing /pci@1f,0 Device 7 isa dma rtc power SUNW,lomh serial serial
flashprom
Probing /pci@1f,0 Device 3 pmu i2c temperature dimm dimm dimm dimm
i2c-nvram idprom motherboard-fru ppm beep fan-control
lomp
Probing Memory Bank #0 512 Megabytes
Probing Memory Bank #1 512 Megabytes
Probing Memory Bank #2 512 Megabytes
Probing Memory Bank #3 512 Megabytes
Probing /pci@1f,0 Device 7
Probing /pci@1f,0 Device 3
Probing /pci@1f,0 Device c ethernet
Probing /pci@1f,0 Device 5 ethernet
Probing /pci@1f,0 Device a usb
Probing /pci@1f,0 Device d ide disk cdrom
todm5819 Sun Fire V100 (UltraSPARC-IIe 648MHz), No Keyboard
OpenBoot 4.0, 2048 MB memory installed, Serial #53320536.
Ethernet address 0:3:ba:2d:9b:58, Host ID: 832d9b58.
Environment monitoring: disabled
ok boot
(again... did nothing)
i think is a hyperterminal configuration problem but please advide.
thanks in advance.I think I took the wrong path to validate the New Zealand specific tax number. Is it possible to set some rules in PRST1_005 in table T005.
If this is possible then please pass me the steps description.
Thanks.
Naz -
Execute commands/statements in txt file supplied to plsql procedure
Hi,
I need to execute commands which are in txt file , this txt filepath is supplied to the procedure.
In the procedure i want to open the txt file and read the commands and run the commands.
Please help on this .
Edited by: 904032 on Jun 26, 2012 12:02 AMThe fact that you are supplying a file path (more correctly known as a directory) is going to be your first problem. Security within Oracle means that access to files on the file server require a directory object to be specified and these directory objects refer to a specific directory on the file server. If you're going to be passing different directories into your procedure then you're going to have to have different directory objects set up for all the possible directories that can be accessed (or issue dynamic DDL to redefine a known directory object each time).
Once you've done that you can use the UTL_FILE package (http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/u_file.htm#ARPLS70906) to read the contents of the file as lines.
Then it depends what you mean by "commands" and "statements". Are you referring to operating system commands?... If so you will need to use something like the DBMS_SCHEDULER package to issue a job to run immediately with the appropriate command, as that is able to issue operating system commands, or you are going to have to write some Java code to issue commands for you (plenty of examples if you google). OR, perhaps you are referring to SQL statements? These could possibly be issued using the PL/SQL execute immediate statement, but you will be leaving your database open to SQL injection and major security issues, something that most companies would consider a serious flaw and not want.
how to read string which is delimited by ';'. or how read each charater in a file ..About time you read the documentation (http://tahiti.oracle.com/). There are functions: SUBSTR and INSTR which can search for things in strings and extract parts of strings, or you can use the more advanced regular expression versions of those REGEXP_SUBSTR and REGEXP_INSTR, or even REGEXP_REPLACE (which is also good for extracting parts of strings).
If you want a more concise answer, you need to ask a more concise question... {message:id=9360002} -
Web to execute commands in other machines
Hi,
I have to do a web page to execute commands (exe, bat) situated in different machines.
I need to see the results in my web page, and I would prefer to have my distributed application deployed in application servers instead of have to run jvm in the machines.
Can you give me any concrete idea? And web sites or books to begin with this?
Thank you very much by your help.
J.First of all, thanks a lot by your help.
I will try explain better (sorry about my english).Don't worry about that!
There are several servers and clients that I want to
monitor and I want to execute some operations over
them, like for example reboot, reboot the database,
creating some specific things, whatever, and these
operations are impletemented in every machine (they
use to be .exe and .bat applications)So far, so good
Now I want to do and interface to do all these
operations from it and to monitor the whole system
(if the system is running correctly in every
machine), I want to have a common interface for the
whole system and I want to access to it from
everywhere (if it is possible).
Everywhere?? Are you sure? Sounds extremely insecure, to me!
In terms of security, the application will need a
login and whatever it is neccesary.
I want to go in the right direction :)
Thank you!Ok, you've actually got several problems to solve here. You need a single monitoring app that runs on these servers, which allows you to connect to it from over a network, so that you can request the logs, or issue the admin commands. Then you need a client to connect to that piece of software, and since you want to do this via a web browser, that's probably best to be a servlet. How I'd tackle this, I'd first write the server software that does the listening, and have it pretend to send logs, reboot machines and what-not. Then I'd write the servlet and the web pages to control and monitor it. Then I'd go about writing the hooks between your shiny server and the various commands you need to run. You could do them in any order you like, really. The trick is, though - and this applies to all software projects - to tackle them one by one. Almost all problems can be decomposed into smaller, more manageable chunks. Do that, and nothing will be so scary again -
Hi,
When I execute SM49 I can see a whole list of executable commands. How can I limit the executable command to a particular person?
Thanks,
Manjula.Hi,
The transaction, S_LOG_COM, for executing Logical Operating System Commands, has only 3 field values:
1.COMMAND
2.HOST
3.OPSYSTEM
It doesn't seem like you can restrict a user with the Authorization, to a specific command he can execute, at least from PFCG.
The object might need to be modified, maybe by some coding.
If you have other users who have the transactionSM49 in their profile, and you don't want them to ever be able to run the transaction, I suggest you go to PFCG and inactivate the Authorization object-S_LOG_COM.
Reward points if found helpfull...
Cheers,
Siva. -
Diadem runtime error while executing command "SchemeMeasStar"
Hello:
I used DIAdem9.0 and DAQCard6062E to acquire 16 channel data. I collected 65536 data for every channel. Whereas After the data acquisition stopped, an Error Message would poped up, but the data is still stored in data portal. the Error is like follows:
-Error- DIAdem
Runtime Error While Executing Command "SchemeMeasStar"
Error Type: UNKNOWN
Error Address:00001720
Module Name:GFSBase.Dll
Would you like to give me some suggestions?
thanks very much
jingDear MarcusP:
Thank you very much.
your solution really works. The attached is the detailed information of the problem. Would you like to tell me more about the prolem and how to solve the problem thoroughly.
Thank you very much.
yours
Jing
Attachments:
DIAdem_Error.doc 305 KB -
Hi All,
I'm using diadem from .net Program. While on the run I'm getting the following error.
Error While executing "" Command
Error type ACCESS VIOLATION
Error Address: 0006898E
Module name:gfsdesk.DLL
Anyone have any idea why this is happening?
regards,
SwaroopHi Swaroop,
It would be helpful to better understand what your code really does. The information that you called DIAdem from your enviroenment is not yet sufficient to understand what the problem might be.
Andreas -
Just installed Lion and the Magic TrackPad and I am having a problem with one click commands. I have to hit the pad fairly hard with one finger to get it to accept the command. Is this normal, is there another way that I am suppose to execute commands?
No you just need to turn on Tap to Click. Go into System Preferences - Trackpad and click the Point to Click tab and select the first box which will say Tap to Click and you should be in business.
-
How to execute command(program) from external file in Oracle SQL developer
Hi,
Does anyone know, Oracle SQL developer version 1.0.0.14.67 got any function that can execute command from an external file?
Example, i have 100 insert SQL inside a text file,
and i want to use Oracle SQL developer to execute it. How do i read from my text file? Thanks a lots.If you're new to Oracle, do yourself and us a favour: read some tutorials and manuals. What sqldev's worth, better download the latest version (1.1.2), lots of fixes and enhancements...
Now for the big popper: to run an external file: @file
Best of luck,
K. -
Problem in using JDBC Execute commands(Update & Delete Only) with af:Table
HI Everyone,
I have one issue with Updating and Deleting Row Data using JDBC Execute commands.
Suppose In My Application i have two pages, in Page 1 I have Two Command Buttons(Delete and Save) and One Input TextBox to write the String to be stored in the Database. and Page 2 where the result Table is shown and table is binded with a ViewObject, Now When User Types some String in InTB and click Save then By Programmatically I'm searching, that string is already present in database or not, if it is already exist then Save button converts in Update button and instead of inserting it allows user to Update the String already exist in database.
Everything is working fine but the problem comes when i put those all buttons on the same page where result table is present.After putting all things on the same page and When i click save button to insert new String it is Successfully inserting but when any of other action is performed like updating or Deleting the existing one.. then my application just hanged and then nothing I able to do.
Please Help me to understand this problem and give me the solution for this..
Thanks
Fizzz...Hi frank,
Thanks to reply me...
I'm refreshing table's iterator on each command button's action to reflect the changed result... and i'm sorry i mentioned two pages in my project.. actually these are two forms in the same page..which conditionally changed its renderer properties.. its working fine when only one form is renderred and the otherside when both are rendered then it is not working.
Hope this change will help you to understand the problem.. if something else you are looking for then please tell me..
Thanks
Fizzz... -
ERROR: executing command /usr/openv/netbackup/bin/bpbackup
Hi,
Online backup in one of our integration systems is failing with the followin reasons
Status = 58 : can't connect to client
Status = 54 : timed out connecting to client
The complete work log is
[843860.00] Backup started 08/29/2007 07:21:27
[843860.00]
[983220.02] Backup started 08/29/2007 07:21:27
[983220.02]
[880690.03] Backup started 08/29/2007 07:21:27
[880690.03]
[1085482.01] Backup started 08/29/2007 07:21:27
[1085482.01]
[843860.00] 07:22:07 Initiating backup
[983220.02] 07:22:02 Initiating backup
[880690.03] 07:22:12 Initiating backup
[983220.02] 07:22:34 INF - Waiting for mount of media id MY0015 on server spnb6master.apac.gdc for writing.
[843860.00] 07:22:49 INF - Processing /oracle/OMI/sapdata1/undo_1/undo.data1
[843860.00] 07:22:49 /
[843860.00] 07:22:49 /oracle/
[843860.00] 07:22:49 /oracle/OMI/
[843860.00] 07:22:49 /oracle/OMI/sapdata1/
[843860.00] 07:22:49 /oracle/OMI/sapdata1/undo_1/
[880690.03] 07:24:35 INF - Processing /oracle/OMI/sapdata3/omi_5/omi.data5
[880690.03] 07:24:35 /
[880690.03] 07:24:35 /oracle/
[880690.03] 07:24:35 /oracle/OMI/
[880690.03] 07:24:35 /oracle/OMI/sapdata3/
[880690.03] 07:24:35 /oracle/OMI/sapdata3/omi_5/
[983220.02] 07:24:55 INF - Beginning backup on server spnb6master.apac.gdc of client ipcby104b1.apac.gdc.
ERROR: executing command /usr/openv/netbackup/bin/bpbackup -w -t 17 -S spnb6masterb1.apac.gdc -c APAC_SAP_DC1 -s U_xx_1m -L /oracle/GIP/sapbackup/backint/.backint.log.1.1188372087.561352 -k ".bdwaniws.lst561352" -f /oracle/GIP/sapbackup/backint/.backint
Status = 58 : can't connect to client
[1085482.01] EXIT STATUS 58: can't connect to client
ERR - job (1085482) failed status (58)
[880690.03] 07:25:38 /oracle/OMI/sapdata3/omi_5/omi.data5
[880690.03] 07:25:38 INF - Processing /oracle/OMI/sapdata3/omi640_11/omi640.data11
[880690.03] 07:25:38 /oracle/OMI/sapdata3/omi640_11/
[983220.02] 07:26:25 INF - Server status = 54
[880690.03] 07:26:41 /oracle/OMI/sapdata3/omi640_11/omi640.data11
[880690.03] 07:26:41 INF - Processing /oracle/OMI/sapdata4/omi_6/omi.data6
[880690.03] 07:26:41 /oracle/OMI/sapdata4/
[880690.03] 07:26:41 /oracle/OMI/sapdata4/omi_6/
[880690.03] 07:27:44 /oracle/OMI/sapdata4/omi_6/omi.data6
[880690.03] 07:27:44 INF - Processing /oracle/OMI/sapdata4/omi_9/omi.data9
[880690.03] 07:27:44 /oracle/OMI/sapdata4/omi_9/
ERROR: executing command /usr/openv/netbackup/bin/bpbackup -w -t 17 -S spnb6masterb1.apac.gdc -c APAC_SAP_DC1 -s U_xx_1m -L /oracle/GIP/sapbackup/backint/.backint.log.2.1188372087.561352 -k ".bdwaniws.lst561352" -f /oracle/GIP/sapbackup/backint/.backint
Status = 54 : timed out connecting to client
[983220.02] EXIT STATUS 54: timed out connecting to client
ERR - job (983220) failed status (54)
[843860.00] 07:28:28 /oracle/OMI/sapdata1/undo_1/undo.data1
[843860.00] 07:28:28 INF - Processing /oracle/OMI/sapdata1/omi640_4/omi640.data4
[843860.00] 07:28:28 /oracle/OMI/sapdata1/omi640_4/
[880690.03] 07:28:40 /oracle/OMI/sapdata4/omi_9/omi.data9
[880690.03] 07:28:40 INF - Processing /oracle/OMI/sapdata1/omi640_3/omi640.data3
[880690.03] 07:28:40 /oracle/OMI/sapdata1/
[880690.03] 07:28:40 /oracle/OMI/sapdata1/omi640_3/
[843860.00] 07:29:32 /oracle/OMI/sapdata1/omi640_4/omi640.data4
[843860.00] 07:29:32 INF - Processing /oracle/OMI/sapdata2/omi640_10/omi640.data10
[843860.00] 07:29:32 /oracle/OMI/sapdata2/
[843860.00] 07:29:32 /oracle/OMI/sapdata2/omi640_10/
[880690.03] 07:29:47 /oracle/OMI/sapdata1/omi640_3/omi640.data3
[880690.03] 07:29:47 INF - Processing /oracle/OMI/sapdata4/omi640_13/omi640.data13
[880690.03] 07:29:47 /oracle/OMI/sapdata4/
[880690.03] 07:29:47 /oracle/OMI/sapdata4/omi640_13/
[843860.00] 07:31:03 /oracle/OMI/sapdata2/omi640_10/omi640.data10
[843860.00] 07:31:03 INF - Processing /oracle/OMI/sapdata2/omi640_9/omi640.data9
[843860.00] 07:31:03 /oracle/OMI/sapdata2/omi640_9/
[880690.03] 07:31:20 /oracle/OMI/sapdata4/omi640_13/omi640.data13
[880690.03] 07:31:20 INF - Processing /oracle/OMI/sapdata2/omi640_8/omi640.data8
[880690.03] 07:31:20 /oracle/OMI/sapdata2/
[880690.03] 07:31:20 /oracle/OMI/sapdata2/omi640_8/
[843860.00] 07:32:29 /oracle/OMI/sapdata2/omi640_9/omi640.data9
[843860.00] 07:32:29 INF - Processing /oracle/OMI/sapdata4/omi_13/omi.data13
[843860.00] 07:32:29 /oracle/OMI/sapdata4/
[843860.00] 07:32:29 /oracle/OMI/sapdata4/omi_13/
[880690.03] 07:32:44 /oracle/OMI/sapdata2/omi640_8/omi640.data8
[880690.03] 07:32:44 INF - Processing /oracle/OMI/sapdata4/omi640_15/omi640.data15
[880690.03] 07:32:44 /oracle/OMI/sapdata4/
[880690.03] 07:32:44 /oracle/OMI/sapdata4/omi640_15/
[843860.00] 07:33:04 /oracle/OMI/sapdata4/omi_13/omi.data13
[843860.00] 07:33:04 INF - Processing /oracle/OMI/sapdata1/system_1/system.data1
[843860.00] 07:33:04 /oracle/OMI/sapdata1/
[843860.00] 07:33:04 /oracle/OMI/sapdata1/system_1/
[843860.00] 07:33:23 /oracle/OMI/sapdata1/system_1/system.data1
[843860.00] 07:33:23 INF - Client completed sending data for backup
[843860.00]
[880690.03] 07:33:18 /oracle/OMI/sapdata4/omi640_15/omi640.data15
[880690.03] 07:33:18 INF - Processing /oracle/OMI/sapdata4/omi_14/omi.data14
[880690.03] 07:33:18 /oracle/OMI/sapdata4/omi_14/
[880690.03] 07:33:49 /oracle/OMI/sapdata4/omi_14/omi.data14
[880690.03] 07:33:49 INF - Processing /oracle/OMI/sapbackup/cntrlOMI.dbf
[880690.03] 07:33:49 /oracle/OMI/sapbackup/
[880690.03] 07:33:50 /oracle/OMI/sapbackup/cntrlOMI.dbf
[880690.03] 07:33:50 INF - Client completed sending data for backup
[880690.03]
[843860.00] 07:34:47 INF - Server status = 0
[880690.03] 07:34:57 INF - Server status = 0
[880690.03] 07:36:02 INF - Backup by oraomi on client ipcby104b1.apac.gdc using policy APAC_SAP_DC1, sched U_xx_1m: the requested operation was successfully completed.
[880690.03]
[843860.00] 07:36:07 INF - Backup by oraomi on client ipcby104b1.apac.gdc using policy APAC_SAP_DC1, sched U_xx_1m: the requested operation was successfully completed.
[843860.00]
ERROR: wait for process to complete
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi640_12/omi640.data12
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata2/omi640_7/omi640.data7
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata3/omi_1/omi.data1
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata3/omi_2/omi.data2
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata3/omi_3/omi.data3
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata3/omi_4/omi.data4
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/system_2/system.data2
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_10/omi.data10
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_11/omi.data11
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_12/omi.data12
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata2/omi640_6/omi640.data6
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/system_3/system.data3
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omiusr_1/omiusr.data1
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_7/omi.data7
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_8/omi.data8
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi640_14/omi640.data14
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/omi640_1/omi640.data1
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/omi640_2/omi640.data2
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/omi640_5/omi640.data5
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/system_1/sysaux01.dbf
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata1/system_1/system.data1
#SAVED.... NS1188352332
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata2/omi640_10/omi640.data10
#SAVED.... NS1188352332
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata4/omi_13/omi.data13
#SAVED.... NS1188352332
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata2/omi640_9/omi640.data9
#SAVED.... NS1188352332
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata1/undo_1/undo.data1
#SAVED.... NS1188352332
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata1/omi640_4/omi640.data4
#SAVED.... NS1188352332
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata2/omi640_8/omi640.data8
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata4/omi_6/omi.data6
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata4/omi_14/omi.data14
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata4/omi_9/omi.data9
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapbackup/cntrlOMI.dbf
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata4/omi640_13/omi640.data13
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata3/omi640_11/omi640.data11
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata4/omi640_15/omi640.data15
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata1/omi640_3/omi640.data3
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata3/omi_5/omi.data5
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
BR0279E Return code from 'backint -u OMI -f backup -i /oracle/OMI/sapbackup/.bdwaniws.lst -t file -p /oracle/OMI/102_64/dbs/initOMI.utl -c': 2
BR0232E 16 of 36 files saved by backup utility
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
BR0231E Backup utility call failed
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.54
BR0317I 'Alter database end backup' successful
BR0056I End of database backup: bdwaniws.anf 2007-08-29 07.36.52
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.55
BR0054I BRBACKUP terminated with errors
Thanks,
deepthiWhile surfing the net i got one solution
NetBackup patch S0820462 corrects this by ensuring file name uniqueness with a timestamp value included in the name. Obtain this patch by contacting VERITAS Technical Support. Once you have the patch, follow the instructions included in the file patchS0820462.README which accompanies the patch.
I got the idea but i dont understand where i will get the info regarding the files ??
and how this patch has to be installed in the system. -
Execute commands in multiple Cisco devices simultaneously
Hi all:
We have a big network and every time we need to execute commands in switches and routers, it takes a lot going one by one to do it. Is there any way, ie using special software, or Linux, scripts, whatever that can be used to execute same commands in all devices at the same time?
Thanks in advance
W.in CiscoWorks LMS there is the RME NetConfig task which can do this for you. You can download an eval copy of LMS here (90 day eval for 100 devices)
http://www.cisco.com/go/nmsevals or
https://cisco.mediuscorp.com/market/networkers/listSubCat.se.work?TRGT=8&/nxt/rcrs/=1126
to get the solaris version
but there is also the the "Cisco Enhanced Device Interface" which perhaps could be a solituon for you:
http://www.cisco.com/en/US/products/ps6456/tsd_products_support_series_home.html
not forget to mention the Kiwi Cat Tools:
http://www.kiwisyslog.com/kiwi-cattools-overview/ -
To grant execute on a specific procedure in a package
is there a way to grant execute on a specific procedure in a package without granting execute to the package itself.
Case 1: If you have package function,
->Then you can create a view on it and give access to specific user.
Case 2: If you have package procedure
-> I think, there is no direct method to GRANT part of package.
-> Make GLOBAL procedure only the one that you want to grant to the user. Now if you grant the package (having few global), user only able to access the GLOBAL's only..
So how do u implement?
PACKAGE global_pkg
Procedure first_global_procedure;
Procedure second_global_procedure;
END global_pkg;
Now You create Package as per user access:
Package user_1_pkg
call first_global_procedure;
END;
Package user_2_pkg
call second_global_procedure;
END;
Now, you Grant user_1_pkg to USER1 and user_2_pkg to USER2
Maybe you are looking for
-
How to save file in km using web dynpro abap
Hi Experts, We have a requirement that file should be saved in a folder in km, the name of the folder should be the employee number. Could you please tell me how to create folder with employee number in KM and store file in it using web dynpro abap.
-
Running Itunes from external hard drive
I have transferred my itunes to an external hard drive. I have changed the save to loaction in the preferences, advanced window. When I connect my IPod to the computer, it tells me that it is synced to another and asks if I want to erase and resync.
-
How to show entire TOC when clicking a CSH link
I am maintaining 2 separate help projects for 2 separate applications. Both use map files and ids to open csh topics. There is a main help link in the header of the application that is supposed to open the entire help file, including the table of con
-
Is my imessage login the same as my itunes login?
I can't log into imessage. When I restart my iphone 3GS it asks me to enter my imessage account password, as far as i know I haven't got one, unless it is the same as my itunes account which I thought it would be. Anybody know what I can do to get it
-
Hi, I have installed a WLS10.3.5 on Linux machine. We created new domain and able to start the admin server. But when created managed server; and tried to start, it throws error like: <Sep 16, 2011 2:26:02 PM> <INFO> <NodeManager> <Server output log