OS commands with NFS protocol

Hi All,
I have written a shell script to generate a blank file at FTP folder. It works fine with FTP protocol.... But when i try to execute same script through NFS protocol it doesn't work...
Can anybody tell me why is it so? Do we have any restrictions on scripts with adaptors n protocols...?
Thanks,

Hey
there is a difference between executing an OS command via telnet and executing it via PI,secondly an OS command on FTP is executed indirectly(script on PI calls the actual script on FTP) whereas an OS command on NFS is executed directly(script on PI is the one which does all the work,no calling of any other script mandatory).
the reason you are able to execute a script via telnet and not via PI can be quiet a few,the most common one is the way you have given the OS cmd in communication channel.
is this a Unix or perl script?
Thanx
Aamir

Similar Messages

  • Username and pwd for FileAdapter with NFS as transport protocol

    Hi,
    we installed PI 7.1 in windows env.
    to access a particular target location manually from the PI windows server, the procedure is:
    in the Start->Run or in the explorer bar we type the ip as "
    121.1.2.3\SourceFolder", then the windows asks for the username and pwd, once we enter valid username/pwd, we get the access to the "
    121.1.2.3\SourceFolder".
    to poll the files under this folder, we setup a FileAdapter Communication Channel with TransportProtocol=NFS. (so its not FTP).
    In the "File access Parameters" section, in the "source directory" value we entered as "
    121.1.2.3\SourceFolder"
    but where can we provide the username and password that would be required to access this folder.
    when we activated the CC, in the RWB, we see log as:
    Configured source directory '
    121.1.2.3\SourceFolder' does not exist
    thanks.

    Hi,
    to access a particular target location manually from the PI windows server, the procedure is:
    in the Start->Run or in the explorer bar we type the ip as "\\121.1.2.3\SourceFolder", then the windows asks for the username and pwd, once we enter valid username/pwd, we get the access to the "\\121.1.2.3\SourceFolder".
    So the folder does not exits in your XI installed server. It will be there in some other Server location.If am correct then NFS protocol not work for this. you should required FTP for accessing the external server path. NFS protocol used to access the local XI machine path only.
    Regards,
    Prakasu.M

  • File sender adapter with nfs as NFS as transport protocol

    hi all.
    can any abody explain me what is the main difference between FTP and NFS protocols and why there is no need to pass connection parameters for nfr ptotocol.
    waiting for excellent reply.
    bye.
    regards.
    seeta ram.

    Hi,
    FTP - It is a file transfer protocol where the source system in this XI has to connect to any other system's particular location it requires connection parameters IP Address, port and you can have authentication in this case also.
    Here the system need not be in Network also. You can access the remote system by providing valid userid and password, hence we require conn parameters here.
    NFS - This protocol is used to access files which are present accross the network where XI also lies within the same network.
    Regards,
    Ramesh P

  • OS Command in NFS not executing

    Dear All
    I am trying to execute a script before message processing in sender file communication channel  with transport protocol NFS.
    Although in my cc message display logs says:
    Information Execute OS command "sh displayDate.sh"
    but none of the commands inside the script is running.
    I am using PI NFS directory as the location to place the script and executing it.
    As the script is running fine when executed in command prompt there is no problem with the content script
    Please help
    Regards
    Sourabh

    > #!/bin/displayDate.sh
    Wrong! Use
    #!/bin/sh
    or
    #!/bin/ksh
    depending on what shell you use.
    Then execute
    chmod 755 displayDate.sh
    Then logon as <sid>adm and execute
    $ /interface/displayDate.sh
    without a prepending "sh".
    Markus

  • File Sender Adapter with FTP protocol

    Hi,
    I implementet a file sender adapter with FTP protocol. There is a problem: the sender processes the files even if they're in use by another application.
    I.E. If another application put files (via ftp) in the sender work directory (that is on ftp), the sender processes those files before their transfer is completed.
    I don't want that this sender in a communication channel in PI 7.1, imports files in the system when they aren't completed yet.
    There are some ways to block sender before it processes incompleted files (in an ftp)?
    Thanks
    Matteo

    Hi,
    File sender adapter provides a check for NFS mode
    +Check this
    To specify additional parameters in the adapter configuration, set the Advanced Modeindicator.
    ●      Msecs to Wait Before Modification Check
    Enter the number of milliseconds that the adapter must wait before it checks whether the files have been changed.
    This parameter is not available if you have selected File Content Conversion as the Message Protocoland then made an entry under Recordsets per Message that splits an input file into several messages.
    This parameter is applicable only for the File adapter. If you enter a value in this field when configuring the sender FTP adapter, it will have no effect.+
    Other approach can be to apply OS level checks
    Regards
    Suraj

  • I used the article "How to connect Sony Tablet with adb protocol through USB?" Article ID:474705. E

    I used the article "How to connect Sony Tablet with adb protocol through USB?" Article ID:474705.
    Everytime I restart the computer now I get a open with window.
    When I select Notepad and open it I get
    0x54c  Noswal\.android\adb_usb.******
    How do i undo that.
    If it helps the Article ID:474705 this says at one point
    3. Open a shell prompt and enter the following command: echo "0x54c" >> $HOME/.android/adb_usb.******.
    I gues that's what's creating the problem.
    Please help.

    Hi elishacuthbert.
    Try disabling the start-up items in your computer to troubleshoot the issue. Follow the steps mentioned below:
    Right click on the Taskbar > Task Manager > Start-up > Select the applications > Disable.
    Note: If my post answers your question, please mark it as an "Accepted Solution."

  • FTP STOR command with REST capability

    Hi folk,
    I have a cRIO on a remote field, and I need that the program running on that platform periodically uploaded, through the internet, the data files to an FTP server.
    I have used the FTP VIs included in the Internet Toolkit to develop this functionality and I am experiencing some problems.
    During the uploading of files of medium or large size, via FTP, can happen that the FTP server closes the connection.
    The reasons can be different, network operation exceeded the user-specified or system time limit, bandwidth usage is restricted or the bandwidth is limited, etc..
    To overcome this issue the correct strategy is to reopen the FTP connection and to restart the upload from the point where it was interrupted.
    It is very important to finish to upload only the remaining part of the file, and not to restart from the beginning, otherwise you could not end the upload if the FTP server closes the connection again and again.
    For implementing the resume, the FTP protocol supports a number of commands:
    SIZE <remote file-name>  Returns the size of a file (Binary mode) .
    REST <file-size>         Sets the following STOR command to restart transfer
                             from the specified point.
    STOR <remote file-name>  If anticipated from a REST command, store (upload)
                             only the part of the file starting from the
                             specified point.
    At the present, it seams to me that the LabVIEW Internet Toolkit does not support the capability of FTP resume.
    Furthermore, if during a FTP upload the connection is closed by the FTP server, the FTP [STOR].vi exits sometime with ambiguous errors.
    Exit with a correct error:
    Error 56 occurred at TCP Read in NI_InternetTK_Common_VIs.lvlib:TCP Read xTP Reply.vi:2->NI_InternetTK_FTP_VIs.lvlib:FTP Get Command Reply.vi:1->NI_InternetTK_FTP_VIs.lvlib:FTP Data Send.vi->NI_InternetTK_FTP_VIs.lvlib:FTP [STOR].vi
    Possible reason(s):
    LabVIEW:  The network operation exceeded the user-specified or system time limit.
    Exit with an ambiguous error:
    Error 54 occurred at TCP Open Connection in NI_InternetTK_FTP_VIs.lvlib:FTP Open Data Connection.vi->NI_InternetTK_FTP_VIs.lvlib:FTP Data Send.vi->NI_InternetTK_FTP_VIs.lvlib:FTP [STOR].vi
    Possible reason(s):
    LabVIEW:  The network address is ill-formed. Make sure the address is in a valid format. For TCP/IP, the address can be either a machine name or an IP address in the form xxx.xxx.xxx.xxx. If this error occurs when specifying a machine name, make sure the machine name is valid. Try to ping the machine name. Check that you have a DNS server properly configured.
    Do you have idea or suggestion of how  realize an FTP STOR command with REST capability?
    Thanks,
    Asper

    Unfortunately the best advice I could give you would be to make a copy of the FTP toolkit and add this functionality yourself. You should have most of the building blocks available to you so it should be fairly starightforward. You could reference the RFC (RFC 959 and RFC 3659 for extensions) for any specifics you need on the packet format. You will need to save some state information so you can resume your download from the correct point.
    Would it be possible to use TFTP? This is much leaner and more likely to succeed if the other ends supports it. I recently wrote a very basic TFTP Write. I'm sure I could do the TFTP Read in short order. I'm still working on packaging it up in a distributable form but I could provide you with a basic VI if needed.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • At CRS-1,how can i use show command with pipe | ?

    HI,ALL
    when I use show command with pipe on the CRS-1,the command invalid
    RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |errors 
                                                                       ^
    % Invalid input detected at '^' marker.
    ========================================================
    But Previously on the cisco 7609,I can use the show command
    GZ-DM-SR-1.MAN.7609#show int | include line |err
    Vlan1 is down, line protocol is down
         0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
         0 packets output, 0 bytes, 0 underruns
         0 output errors, 0 interface resets
    Vlan11 is administratively down, line protocol is down
         0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
         0 packets output, 0 bytes, 0 underruns
         0 output errors, 0 interface resets
    Vlan99 is down, line protocol is down
         0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
         0 packets output, 0 bytes, 0 underruns
         0 output errors, 0 interface resets

    RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |errors 
                                                                       ^
    % Invalid input detected at '^' marker.
    RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |?    

    RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line | |?
                                                                        ^
    % Invalid input detected at '^' marker.
    RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line | ?
      begin    Begin with the line that matches
      exclude  Exclude lines that match
      file     Save the configuration
      include  Include lines that match
      utility  A set of common unix utilities
      <cr>    
    RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |
    % Incomplete command.
    RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |errors
                                                                       ^
    % Invalid input detected at '^' marker.
    RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#                                     
    RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line | ?   
      begin    Begin with the line that matches
      exclude  Exclude lines that match
      file     Save the configuration
      include  Include lines that match
      utility  A set of common unix utilities
      <cr>    
    RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line |?

    RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line | include er$
    Thu Jan 15 22:36:24.120 GMT
    RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#
    RP/0/RP0/CPU0:JA-DL-CR-1.MAN.CRS-1#show interfaces | include line           
    Thu Jan 15 22:37:05.013 GMT
    Loopback0 is up, line protocol is up
    Loopback1 is up, line protocol is up
    Loopback6 is up, line protocol is up
    Null0 is up, line protocol is up
    POS0/0/0/0 is up, line protocol is up  (APS not Configured )
    POS0/0/1/0 is up, line protocol is up  (APS not Configured )
    TenGigE0/0/4/0 is up, line protocol is up

  • Security for flash archive restore with NFS

    When Flash archive is restored by using NFS, user id and password is not required though they are asked in case of FTP used.
    If NFS client host name is registered in NFS server, anyone can restore the backup file if only they know that host name with NFS server name and exported directory.
    I found the kerberos selection during resotre process set up on Interactive install, which is on the following screen.
    --- Configure Kerberos Security ------------------------------------------
    Enter the information required to configuration your system as a Kerberos Cient.
    Your Network Administrator ca provide this inforamtion.
    Defalult Realm :
    Administration Server :
    . First KDC:
    Additional KDC:
    Additional KDC:
    Additional KDC:
    I did not yet establish the kerberos server, but if any one already tried this function, could you please let me know if this can protect NFS server access by using user id and password.

    One option is to secure the OBP with a password.
    At the OK prompt, set the security-mode to "command" and then set a password. Careful not to loose this password. With this set the only option is to "boot" without supplying the firmware password.
    Commands:
    # halt
    ok setenv security-mode = command
    ok setent security-password <enterpasswd>
    ok reset-all

  • NFS protocol

    Hello Experts,
         I do have a doubt in using NFS protocol in FILE Adapter.
    Is it is possible post the Message to a Local drive ( Say D drive ) or a Network Drive ( Say Z drive ) whcih was Mapped to server Machine .
    If so please provide me some suggestions to post the message.
    Cheers!
    Ram

    Hi Smitha,
    Thanks for the blog
    Unfortunately, I can able to post the message sucessfully.
    As mentioned I have downloaded GUILDFTPd server and installed in my system .
    I have even given the paths as mentioned. ( After clicking ok, I cant able t o find the path once again ... Stange !!!!)
    As mentioned I have also created a folder by name Output .
    I have also given my local System IP in File communication channel ( with FTP Protocol) .
    After all this when I have tried to post the message from FTP server I can see below error in RWB .
    Attempt to process file failed with Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: SocketException: Connection timed out:could be due to invalid address

  • PAUSE RTSP command with JMF

    Hello !
    How can I manage a PAUSE command with my client code to address a remote streaming server (using RTSP protocol given with JMF 2.1.1e).
    Thanks

    Actually there is a whole body of code dedicated to RTSP... the only problem is that it is undocumented. There is an RtspManager, RtspPort, MessageProcessor, even a Server and more all hidden away in com.sun.media.rtsp. Download the source code and look it up.
    However if you are not willing to make that much of an effort you could just tell me exactly what you need and I'll dredge it up.

  • Wget with HTTPS protocol

    Hi,
    I am trying to download a file from Oracle site through "wget". I am getting connection time out error. The parameter http_proxy is also set. The file I am trying to download has URL with "https" protocol.
    wget no-check-certificate http-user=<username> http-passwd=<passwd> output-document=<zip file name> "HTTPS URL"
    Please advice. Is the above command correct to download the file through https protocol?
    Thanks

    Please see (Patch download automation for Sun products using wget [ID 1199543.1]) for the correct syntax.
    You may also review these docs/links.
    Using WGET to download My Oracle Support Patches [ID 980924.1]
    Retrieving Oracle patches with wget
    http://only4left.jpiwowar.com/2009/02/retrieving-oracle-patches-with-wget/
    Thanks,
    Hussein

  • Disk repair using the format - repair command with a mounted partition

    I was going to repair some bad blocks on a disk by using the format command with the repair option. When I entered the block number to be fixed it came back withthe question of:
    "Repair is in a mounted partition, continue?"
    Will I hurt anything on my system if I answer yes to continue or should the partition be unmounted before I do this?
    Thanks

    Did you have any answer?

  • Help needed with using network disk with iMovie with NFS or AFP

    Hi,
    I have iMac with iMovie08 that talks to a remote disk hosted under Linux over a gigabit network using SMB (Samba). It all works ok and I have done a few movies.
    Now, I have done some tests with NFS and AFP (AppleTalk) and it seems that these are much faster than SMB.
    I then stopped the Samba server and proceeded to setup NFS and also AFP
    First NFS,
    So I then exported my directory using NFS and I can see everything from my Mac (correct permissions too since I made both user and group IDs the same...). The problem is that when I launch iMovie it shows me the Volume for my external networked disk but it shows it with a little triangle with yellow exclamation and it does not show any of the events (>500GB of events).
    If I stop NFS and then switch to AFP I get the same behavior. That is, everything from the Mac works on the AFS mounted disk (copying files back and forth, etc....) but I can't see the contents of the disk from within iMovie
    I changed permissions so that anybody can read/write/execute (although there are files that have an '@' sign at the end when I do ls -l on them and I can't remember what that means....)
    If I stop NFS and then go back to SMB (Samba) then I am back to a working configuration.
    Can I use NFS or AFP with iMovie? What exactly does the yellow triangle mean?
    Thanks
    Dazed and confused at 330am EST...

    More timings on smb vs nfs. Note that the big diffs is when sending single large files. The dd cmd was used to simulate 1 hour of DV video which is about 12GB
    1.27GB dvd project (twice each, note the variability... I guess because the project has multiple files?):
    MEiMac:Movies me$ time cp -r LS2000Berlin.dvdproj /Volumes/bigsmb/
    real 0m37.114s
    user 0m0.008s
    sys 0m4.164s
    MEiMac:Movies me$ time cp -r LS2000Berlin.dvdproj /Volumes/bignfs/
    real 0m59.351s
    user 0m0.009s
    sys 0m8.336s
    MEiMac:Movies me$ time cp -r LS2000Berlin.dvdproj /Volumes/bignfs/
    real 0m40.671s
    user 0m0.009s
    sys 0m8.205s
    MEiMac:Movies me$ time cp -r LS2000Berlin.dvdproj /Volumes/bigsmb/
    real 0m41.680s
    user 0m0.008s
    sys 0m4.094s
    Simulated 1 hour video single file:
    MEiMac:Movies me$ time dd if=/dev/zero of=/Volumes/bigsmb/1hour bs=16k count=786432
    786432+0 records in
    786432+0 records out
    12884901888 bytes transferred in 443.960166 secs (29022653 bytes/sec)
    real 7m23.994s
    user 0m3.434s
    sys 1m18.900s
    MEiMac:Movies me$ time dd if=/dev/zero of=/Volumes/bignfs/1hournfs bs=16k count=786432
    786432+0 records in
    786432+0 records out
    12884901888 bytes transferred in 235.887283 secs (54623131 bytes/sec)
    real 3m56.271s
    user 0m1.666s
    sys 1m56.995s

  • Problem with NFS file adapter using a network share as source of files

    Hello,
    I have set up a sender cc with NFS format file adapter, with at the source directory a network share (
    server\sharename ). The share is on another system and not mapped to a local drivename, but it is open for everybody.
    The problem is, the adapter seems to not pick up the files in the directory, so there must be something I'm overlooking.
    - Both servers run on Windows
    - Share is available normally and open for everybody for all actions (including the SAPServiceSID user)
    - Files themselves are okay. If I put a file on a local drive and make the source directory the local drive instead of the network path, the file gets processed correctly
    - Because of the need for a file completion check, FTP is not an option
    Does anybody know what is going wrong, or what I could check for trace / logging info on possible cause of the problem?

    Hi,
    While using NFS mode you are supposed to put the file on XI server directory NOT to a common share directory of any other machine. And this is the reason your adapter in not picking the file.
    You can upload the file on XI server directory by using the tcode "SXDA_TOOLS", morevere you can check the file on the same directory with tcode "AL11". It is otherway-around, you can first select or chose the dir by AL11 and then put the file in the same dir by tcode SXDA_TOOLS.
    If you need more info about SXDA_TOOLS, let me know.
    Regards,
    Sarvesh

Maybe you are looking for

  • FICO scores used for mortgage - and where to obtain them

    So would I just do the FICO Standard Purchase and select Equifax and Experian and that would show me the EQ Beacon 5.0 and Experian V2SM scores that mortgage lenders pull? Just curious as the ones I get through banks listed in my sig are drastically

  • My dynamic script is not working

    Hi SDN, I have written below code in Javascript to make subform invisible depending upon a checkbox but it not working please let me know where i am making a mistake. if (data.test.CheckBox1 == '')      data.test.Subform1.presence = "hidden"; else   

  • CCMS monitoring for adapter engine

    Hi, We have configured CCMS monitoring for Adapter Engine for our client. In RZ20 im able to see the alerts come up,with the default data that the system provides. 1. I need to send  a mail when the alert is triggerred, but if I try to set the autore

  • Occasional reboot when waking MacBook from sleep.  iTunes related?

    Recently, sometimes when I'm waking my MacBook from sleeping, instead of waking, it reboots. I'd say, one out of twenty times. It started around the same time I started subscribing to PodCasts. (I'm not using an iPod with them, just downloading them

  • Adding fields in the standard infotype

    Hi all, I have a requirement wherin i have to update four fields into infotype 0028. Two fields have to be entered into subty 0001 and two into subty 0014. Can u please give me pointers on how to do it. Regards, Amrita.