EEM to verify cfg file before copy running

I've scripted over the years in many languages. Just not TCL.
I'm wondering the feasability of intercepting a copy tftp running command, and doing a simple sanity check before execution.
Basically if my router/switch is hostname:R1, I want to copy the file to the local disk/flash, verify it has a hashtag with a hostname that MATCHES the existing box, and if so, copy said file into running.
1) I realize that not all devices have the same storage, so eaither assume that I'm writing this for a specific platform, or get crazy on captuering the local resources.
2) I know you can intercept CLI command and 'block' it. And supercede it with my own creations.
3) I do not know if you can open local files, and scan them/read them.
4) I do know that I can just execute a command to copy x running once I've passed my check.
Any other ideas on this subject?
I'm basically trying to prevent the copy tftp to running from being quite SO instant. Adding a level of "This is what is going to happen, are you sure?" That prompt isn't just are you sure you want to copy file x. But here IS file X, look at it... Now are you sure? Or, this hostname doesn't match the tag. Seems wrong... Are you sure?
--Allen

I'm not sure what you mean by hashtag, but you can certainly intercept the command and pre-check the file to be copied.  You can even prompt the user to make sure they know what will be happening.  If all the verification checks out, then all you need to do is exit with a non-zero status code.  That will cause the original command to execute.
So bottom line is that everything you want to do sounds doable (of course that's without knowing what you mean by hashtag).

Similar Messages

  • Rename File in Oracle Forms before Copy to another drive

    Dear All Seniors
    I want to ask that how to rename file before copy it to other drive.
    Actually when we get file from drive to open then it that time before copying I want to rename it.
    ------this code i am using for copying file from first path to other.
    DECLARE
    filename VARCHAR2(500);
    BEGIN
    filename := GET_FILE_NAME( File_Filter => 'Files (*.*)|*.*|');
    READ_IMAGE_FILE(filename, 'any', 'IMAGE6');
    HOST ('xcopy "'|| filename ||'" \\172.172.0.4\Combo_pic\',no_screen);
    END;
    I am using this code it is working fine, but i did't know how to use it before copying file.
    host('cmd /c rename "'||:block3.file_name||'" " '||:block3.file_name_n||' " '); --- for file rename
    thanks.

    Ghulam Yassen wrote:
    Dear All Seniors
    I want to ask that how to rename file before copy it to other drive.
    Actually when we get file from drive to open then it that time before copying I want to rename it.
    ------this code i am using for copying file from first path to other.
    DECLARE
    filename VARCHAR2(500);
    BEGIN
    filename := GET_FILE_NAME( File_Filter => 'Files (*.*)|*.*|');
    READ_IMAGE_FILE(filename, 'any', 'IMAGE6');
    HOST ('xcopy "'|| filename ||'" \\172.172.0.4\Combo_pic\',no_screen);
    END;
    I am using this code it is working fine, but i did't know how to use it before copying file.
    host('cmd /c rename "'||:block3.file_name||'" " '||:block3.file_name_n||' " '); --- for file renameDear Ghulam Yassen,
    As salamualikum
    >HOST ('xcopy "'|| filename ||'" \\172.172.0.4\Combo_pic\',no_screen);
    Change the above line by the following line. It will rename as well as copy.
    HOST ('xcopy "'|| filename ||'" \\172.172.0.4\Combo_pic\'||:EMP_CODE||'.jpg',no_screen); ---here EMP_CODE is a column value.Above code will rename to emp_code value.
    Hope this works...
    Hamid

  • Controlling autoupdate of Adobe Flash Player ActiveX with mms.cfg file

    For several years we have suppressed Flash Player ActiveX from autoupdating by using the mms.cfg file, with the setting "AutoUpdateDisable=1" -- and it has worked without a problem.
    With the constant updates of Flash Player for security reasons, we decided several months ago to change the autoupdate setting and allow Flash Player ActiveX to update automatically, without notifying the user, checking every seven days.  We changed the mms.cfg file to this:
    AutoUpdateDisable=0
    AutoUpdateInterval=7
    SilentAutoUpdateEnable=1
    We are using Windows 7 64-bit, so the mms.cfg file was copied/updated to: C:\Windows\SysWOW64\Macromed\Flash, as well as C:\Windows\System32\Macromed\Flash
    The problem we are randomly seeing across our 2500+ computers is a notification that a Flash Player update is available.  This is occurring on machines with the mms.cfg file in place.
    Does anyone else have this same issue?  We were also wondering if the encoding of the file, i.e., ANSI or UTF-8, has any bearing on the effectiveness of this mms.cfg file. Or has a registry setting been updated overriding the mms.cfg?
    We believe the file is encoded in UTF-8, but it is difficult to be 100% certain of this.
    Screenshot of the auto-update notification:
    Thanks
    Currently running Flash Player ActiveX 11.9.900

    You're right, it sounds very malwareish, but they will know more in the Flash Player forum  http://forums.adobe.com/community/flashplayer . This is teh Adobe Reader forum. When you post there, a screen shot may help.

  • I've never run verify disk permissions before, but I finally have, and it says it's going to take an hour and 35 minutes to complete.

    Although it keeps actively finding problems with the disk, the progress bar hasn't changed for more than a half an hour, and it still says it's going to take an hour and 35 minutes. I'm starting to worry it will never be done! My laptop, a Macbook Pro, is pretty old - about five years, and I don't know if the fact that I've never run a verify disk permissions before has anything to do with it.
    The only non-greyed out option is to currently 'stop permission verify'.

    Just let it run, it probably won't take that long. Also you may benefit from reading Disk Utility's Repair Disk Permissions messages that you can safely ignore.
    Roger

  • SQL Server 2012 stops running after setup files are copied.

    SQL Server 2012 setup stops running after setup files are copied.
    I've experiencing the same issue on two different machines. Both are 64 bit running Server 2008.
    On both of them I tried installing using the files from the ISO. I initially used winzip to extract the files. The setup was running fine, but the SQL Server engine had an error when it installed. Then using the Add/Remove programs i uninstalled all of the
    SQL Server 2012 applications, including the setup files.
    Now when i try to install using the "New SQL Server stand-alone..." wizard it will copy the setup files and then the wizard never comes back. I've tried mounting the ISO, extracting with winrar, Burning the ISO to a dvd and downloading the 3 files. I also
    tried mounting ISO of the version that was just recently released. I run into the same issue with all of them.
    Thanks for the help.

    can you try 
     setup.exe
    /Action=install /x86 /UpdateEnabled=false
    If this doesn't work please use below FAQ to locate and upload SQL Server setup logss.
    FAQ
    Regards,
    Ahmed Ibrahim
    SQL Server Setup Team
    My Blog
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and "Vote as Helpful"
    on posts that help you.
    This can be beneficial to other community members reading the thread.
    Thank you, it's work!!! :) Maybe problem was in /UpdateEnabled=false and I could try to install a x64 version... but too late, setup in progress and I do not want to have to try all over again :)

  • Quit an App/file running before sleep & start an App/file before Mac awake

    Hi all,
    I'm looking for a utility or a process which allows to quit a running app/file (say word, running a doc) before the Mac goes to a set SLEEP MODE, and also need that same app/file to start before the Mac wakes from the sleep mode setting.
    Thank you for your answers/directions on this!

    I'm looking for a utility
    Try doing a Google search and look for such a utility on MacUpdate.
    or a process
    Not sure if anything can be done while the computer is in "sleep" mode. Try the AppleScript forum area - http://discussions.apple.com/forum.jspa?forumID=724

  • SQL Server reporting server 2005 having error. 'The report server is not responding. Verify that report server is running and can be accessed from this computer'

    Hi team,
    I got below error message in SQL Server 2005 reporting service.
    ''The report server is not responding. Verify that report server is running and can be accessed from this computer'
    also in reports, i am getting below error:
    "The encrypted value for the "LogonCred" configuration setting cannot be decrypted. (rsFailedToDecryptConfigInformation)
    Get Online Help
    The report server has encountered a configuration error. See the report server log files for more information. (rsServerConfigurationError)
    Get Online Help "
    Please find below log:
    <Header>
      <Product>Microsoft SQL Server Reporting Services Version 9.00.4060.00</Product>
      <Locale>en-US</Locale>
      <TimeZone>Eastern Daylight Time</TimeZone>
      <Path>F:\Program Files\Microsoft SQL Server\MSSQL.6\Reporting Services\LogFiles\ReportServer__07_28_2014_09_08_41.log</Path>
      <SystemName>MFLDDDBS04</SystemName>
      <OSName>Microsoft Windows NT 5.2.3790 Service Pack 2</OSName>
      <OSVersion>5.2.3790.131072</OSVersion>
    </Header>
    w3wp!webserver!1!7/28/2014-09:08:41:: i INFO: Reporting Web Server started
    w3wp!library!1!7/28/2014-09:08:41:: i INFO: Initializing ConnectionType to '1'  as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:41:: i INFO: Initializing IsSchedulingService to 'True'  as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:41:: i INFO: Initializing IsNotificationService to 'True'  as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:41:: i INFO: Initializing IsEventService to 'True'  as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:41:: i INFO: Initializing PollingInterval to '10' second(s) as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:41:: i INFO: Initializing WindowsServiceUseFileShareStorage to 'False'  as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:41:: i INFO: Initializing MemoryLimit to '60' percent as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:41:: i INFO: Initializing RecycleTime to '720' minute(s) as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:41:: i INFO: Initializing MaximumMemoryLimit to '80' percent as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:41:: i INFO: Initializing MaxAppDomainUnloadTime to '30' minute(s) as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:41:: i INFO: Initializing MaxQueueThreads to '0' thread(s) as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:41:: i INFO: Initializing IsWebServiceEnabled to 'True'  as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:42:: i INFO: Initializing MaxActiveReqForOneUser to '20' requests(s) as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:42:: i INFO: Initializing MaxScheduleWait to '5' second(s) as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:42:: i INFO: Initializing DatabaseQueryTimeout to '120' second(s) as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:42:: i INFO: Initializing ProcessRecycleOptions to '0'  as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:42:: i INFO: Initializing RunningRequestsScavengerCycle to '60' second(s) as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:42:: i INFO: Initializing RunningRequestsDbCycle to '60' second(s) as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:42:: i INFO: Initializing RunningRequestsAge to '30' second(s) as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:42:: i INFO: Initializing CleanupCycleMinutes to '10' minute(s) as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:42:: i INFO: Initializing DailyCleanupMinuteOfDay to default value of '120' minutes since midnight because it was not specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:42:: i INFO: Initializing WatsonFlags to '1064'  as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:42:: i INFO: Initializing WatsonDumpOnExceptions to 'Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException,Microsoft.ReportingServices.Modeling.InternalModelingException'  as specified in Configuration
    file.
    w3wp!library!1!7/28/2014-09:08:42:: i INFO: Initializing WatsonDumpExcludeIfContainsExceptions to 'System.Data.SqlClient.SqlException,System.Threading.ThreadAbortException'  as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:42:: i INFO: Initializing SecureConnectionLevel to '0'  as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:42:: i INFO: Initializing DisplayErrorLink to 'True'  as specified in Configuration file.
    w3wp!library!1!7/28/2014-09:08:42:: i INFO: Initializing WebServiceUseFileShareStorage to 'False'  as specified in Configuration file.
    w3wp!resourceutilities!1!7/28/2014-09:08:42:: i INFO: Reporting Services starting SKU: Enterprise
    w3wp!resourceutilities!1!7/28/2014-09:08:42:: i INFO: Evaluation copy: 0 days left
    w3wp!library!1!7/28/2014-09:08:42:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. See the report server log files for more information., CryptUnprotectData:
    Win32 error:13;
     Info: Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. See the report server log files for more information.
    w3wp!library!1!7/28/2014-09:08:42:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.FailedToDecryptConfigInformationException: The encrypted value for the "LogonCred" configuration setting cannot be decrypted., ;
     Info: Microsoft.ReportingServices.Diagnostics.Utilities.FailedToDecryptConfigInformationException: The encrypted value for the "LogonCred" configuration setting cannot be decrypted. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException:
    The report server has encountered a configuration error. See the report server log files for more information.
       at Microsoft.ReportingServices.Diagnostics.DataProtectionLocal.UnprotectData(Byte[] data, Int32 dwFlags, Boolean transitoryData)
       at Microsoft.ReportingServices.Diagnostics.DataProtectionLocal.LocalUnprotectData(String data, Boolean transitoryData)
       at Microsoft.ReportingServices.Diagnostics.RSConfiguration.DecryptCatalogData(String encryptedData, String element)
       --- End of inner exception stack trace ---

    Hi Vivek,
    In Reporting Services, values for LogonUser, LogonDomain, and LogonCred are created when the report server connection is configured to use a domain account. As to the error that “The encrypted value for the "LogonCred" configuration setting cannot be decrypted”,
    we can know that it relates to the domain account for report server connection.
    To fix this issue, we can refer to the following steps:
    Log in to SQL Server Database Engine in SQL Server Management Studio.
    Under Security folder, give sufficient permissions for your domain account.
    Open your Reporting Services Configuration (go to Start -> All Programs -> Microsoft SQL Server 2005 -> Configuration Tools -> Reporting Services Configuration)
    Navigate to the Database Setup tab, select ‘Service Credentials’ as the Credentials Type, then type your domain account and password in there. Press Apply.
    Restart the Report Server services.
    Reference:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/2d05b404-83aa-4fb2-bba6-52b587e890ec/sql-2005-rs-configuration-tool-encryption-key-error
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Moving files without copying

    I recently updated to Lion and have found the most overlooked issue in all OS updates I have ever witnessed. Now when moving folders between finder (or your desktop) to the Mac HD the files or folders no longer just move they copy!!! This is an extremely cumbersome process for any art department or any organization who stores or houses folders on the desktop of their machines to move to servers and or any other location for that matter. Instead of the simple move like in Snow Leopard the files now copy duplicating the folder and taking up twice the space on your hard drive!!!
    The issues I have with this is that if a folder is larger than the amount of space you have on your systems hard drive you can not move it because of this silly copy feature within lion.
    The only work around I and Apple have found is to move the folder to your trash first and then to your desktop and there is no copying. This is hardly a work around for any department being that someone could come in and empty your trash therefore losing vital information!!!
    PLEASE APPLE FIX THIS ASAP!!!
    Any solutions to this are greatly appreciated. I have been using Apple for over 15 years and have never experience the down time I am experiencing now with having to go back and delete folders because they copy instead of the simple move I experienced before!!!

    Hi Thomas,
    Thanks for your very swift response.
    The 10.7.3 installation was done by the Apple Store four days ago, on Sunday 20 May 2012, so I doubt that the OS has become corrupt already.
    I've verified all HDs, as well as repaired all Disk Permissions.
    As for User Permissions, I'm the only user on the Mac, and it's a standard installation.
    There are no additional Users, and I haven't modified the standard read-write permissions, or anything like that.
    This is a very straight-forward, clean install, and I've been on Macs for 25 years.
    However, in fairness, my original posting wasn't as clear as it should have been, for which I apologise.
    The 200 GB folder is in the Trash, on an EXTERNAL hard drive.
    In other words, when the external hard drive is not connected to my MBP, the Trash is empty.
    However, when I plug the external HD into the MBP, the 200 GB folder shows up in the Trash.
    Having seen a similar discussion in the Apple forums, I've attempted the suggested workaround of holding down the Command key, whilst dragging the folder out of the Trash, onto the EXTERNAL HD icon.
    However, the entire folder immediately starts copying, instead of simply moving.
    I've also tried holding down the Command key, whilst dragging the folder out of the Trash, onto the INTERNAL HD icon.
    Again, the entire folder immediately starts copying, instead of simply moving.
    As suggested, I've started a new topic.
    However, I thought that I might as well go straight to the experts, such as yourself.
    Therefore, any further advice would be appreciated.
    Many thanks.
    Best,
    Michael

  • Verification of an uploaded file BEFORE upload - The Answer

    Hello fellow CF Maniacs...
    As many of us may have experienced, when someone uses a form
    on a site to upload a file, it can be quite a pain to have to wait
    for the file to be uploaded before it gets verified as the correct
    file name or file format.
    I set out on a quest to find a javascript solution to this
    problem.
    What I was looking for was a way for the actual filename
    selected by the user, regardless of what directory structure
    information was in the file field upon submission, to be verified
    before the upload took place.
    For instance, if the site were expecting a file called
    'myfile.jpg', when the user clicked on the browse button to select
    the file, the resulting string of text could be anything.
    It might be 'C:\myfile.jpg' or
    'D:\SomeDirectory\AnotherDirectory\YetanotherDirectory\myfile.jpg'
    Worse yet, it might even be the wrong file entirely.
    Up until now, I've always had to allow the file to be
    uploaded and then verify the file was correct.
    When you're getting large files from users, and even small
    ones at times, this can be a 'patience issue' for the user. They
    wait around for the file to be uploaded, just to be told 'Oops, you
    sent the wrong file, please try again'.
    After a few hours of trial and error, I came across an
    unrelated javascript file that seemed like it would work for my
    requirements. And it did. Yes, if the user has javascript disabled
    there's the chance this wont work - but for those who have it
    enabled, it could save a lot of bandwidth in uploads and reuploads,
    and a lot of time for the user.
    The following example can be used to create a page called
    'testform.cfm'.
    The only value in the following example form that you would
    change is:
    filename.ext = the filename and extension you require to be
    selected (i.e. myfile.jpg or somefile.html)
    This code will work 'out of the box' if you just want to put
    a specific filename in the 'thefilename' field. However, this will
    mean that everyone user uploading a file will be sending the same
    filename as everyone else.
    I wont go into how to get unique filenames for each user,
    because that's not what this instruction page is for. If you need
    unique filenames, there are a variety of ways to change the passed
    value of 'thefilename' to accomodate them.
    Enough yacking.. here's the code:
    <!-- content of testform.cfm --->
    <cfif parameterexists(field2) is 'no'>
    <script language="Javascript">
    <!--
    function copyData(from,to) { to.value = from.value }
    // -->
    </script>
    <form name="myForm" action="testform.cfm" method="post"
    enctype="multipart/form-data">
    <input type="file" name="field1"
    onchange="copyData(this,document.myForm.field2)"
    onKeyUp="copyData(this,document.myForm.field2)">
    <input type="hidden" name="field2"
    onchange="copyData(this.document.myForm.field1)"
    onKeyUp="copyData(this,document.myForm.field1)"><input
    type="submit" value="go">
    <input type="hidden" name="thefilename"
    value="filename.ext">
    </form>
    <Cfelse>
    Field 2 is
    <cfoutput>#field2#</cfoutput><Br><BR>
    <cfset namelength = #LEN(thefilename)#>
    <cfset actualfile = #RIGHT(field2, namelength)#>
    Actual Filename picked on form was:
    <cfoutput>#actualfile#</cfoutput><Br>
    Looking for the filename:
    <cfoutput>#thefilename#</cfoutput><Br>
    <cfif #actualfile# is not '#thefilename#'>
    File did not match - don't continue with upload
    <cfelse>
    File matched - continue with upload
    </cfif>
    </cfif>
    Perhaps someone will come along and make this work even
    better. But at least this works :)
    Kudos,
    eTeli.com

    Oops.. perhaps I should explain what is happening when this
    code is used.
    First off, there is a file input field (field1).
    Secondly there is a hidden field (field2).
    What the code is doing, is taking whatever text appears in
    field1 and automatically inserting it into the hidden field2 value.
    When the form is submitted, the field1 value will be changed
    by the server to some temporary value - which is of no use when
    you're trying to find out the actual text that was in the field to
    begin with.
    But, since the hidden field has a 'copy' of that value, and
    the hidden field doesn't get changed to a temporary one, you have
    something to work with before the file gets delivered to the
    server.
    Pretty simple solution really.. too bad it took me hours to
    find it.
    I went through everything from using regex searches and finds
    to trying to disable the submit button if the filename was
    incorrect.
    Everything else I tried failed.
    Hope it works for you :)
    eTeli.com

  • JNLP file failed to run using javaws - NumberFormatException

    Hi all,
    I am clueless about this one. A fresh pair of eyes would be helpful.
    I am trying to run two JNLP files on for running remote consoles on
    2 separate Linux blades.
    Here is one of them:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="https://icn1-bmc:443/">
         <information>
            <title>JavaRConsole</title>
            <vendor>Sun Microsystems</vendor>
            <description kind="one-line">JavaRConsole Console Redirection Application</description>
            <description kind="tooltip">JavaRConsole Console Redirection Application</description>
            <description kind="short">
                JavaRConsole enables a user to view the video display of an
                Andromeda computer equipped with a service processor.  It also enables
                the user to redirect his local keyboard, mouse, CD-ROM and floppy drives to
                the remote computer to give him complete control over the remote machine.
            </description>
        </information>
        <security>
            <all-permissions/>
        </security>
        <resources>
            <j2se version="1.5+"/>
            <jar href="Java/JavaRConsole.jar"/>
            <jar href="Java/RedirLib.jar"/>
            <property name="DEBUGLIST" value="ui,general,video,threads,cdrom,floppy,dispatcher,hid,scsi,network"/>
            <property name="SEV_WARN" value="ilomrc.log"/>
            <property name="SEV_CRIT" value="ilomrc.log"/>
        </resources>
        <resources os="Linux" arch="i386">
            <nativelib href="Java/linuxi386.jar"/>
        </resources>
        <resources os="Windows" arch="x86">
            <nativelib href="Java/win32.jar"/>
        </resources>
        <resources os="SunOS" arch="x86">
            <nativelib href="Java/solarisx86.jar"/>
        </resources>
        <resources os="SunOS" arch="sparc">
            <nativelib href="Java/solarissparc.jar"/>
        </resources>
        <application-desc>
            <argument>8</argument>
            <argument>icn1-bmc</argument>
            <argument>root</argument>
        </application-desc>
    </jnlp>The other file is essentially the same with "icn2-bmc" replacing all
    instances of "icn1-bmc". here is the output of the "diff" command:
    3c3
    < <jnlp spec="1.0+" codebase="https://icn1-bmc:443/">
    <jnlp spec="1.0+" codebase="https://icn2-bmc:443/">
    41c41
    <         <argument>icn1-bmc</argument>
    <argument>icn2-bmc</argument>The command I use to run these files is:
    javaws <filename>The first file runs fine, and opens a remote console to the blade.
    However when I try to run javaws with the second file, it fails to start the
    app, with the foll exception:
    java.lang.NumberFormatException: For input string: "icn2-bmc"
         at java.lang.NumberFormatException.forInputString(Unknown Source)
         at java.lang.Integer.parseInt(Unknown Source)
         at java.lang.Integer.valueOf(Unknown Source)
         at java.lang.Integer.decode(Unknown Source)
         at com.ami.javarconsole.ui.FrameMain.main(FrameMain.java:1326)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)This is unusual, since it was able to parse "icn1-bmc" just fine.
    Similar exception when I replace hostname with the IP address:
    java.lang.NumberFormatException: For input string: "10.0.19.214"
         at java.lang.NumberFormatException.forInputString(Unknown Source)
         at java.lang.Integer.parseInt(Unknown Source)
         at java.lang.Integer.valueOf(Unknown Source)
         at java.lang.Integer.decode(Unknown Source)
         at com.ami.javarconsole.ui.FrameMain.main(FrameMain.java:1326)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)Any clues? Let me know if you need any more information?
    Message was edited by:
    amateurPro

    I was about to post a question in the forums for this same issue, but I thought I'd reply to this thread instead. I am actually getting a fairly consistent error with this code. Here's my scenario:
    I'm running an OSD TS which performs a "Format and Partition Disk" task immediately before an "Apply Operating System" task (well, almost immediately... there are a few tasks for setting custom variables and whatnot in between). The Format
    and Partition Disk task returns a success code. The Apply Operating System task returns these lines (edited for relevance) with the command line "OSDApplyOS.exe /image:PRI00011,1 /target:C: /runfromnet:False":
    'C:\' not a removable drive
    The volume C:\ exists and is a local hard drive.
    The volume C:\ is using a valid file system.
    Windows target partition is 0-1, drive letter is C:\
    Verifying boot volume is NTFS.
    * Boot volume D:\ is not valid: unsupported file system. Please ensure the boot volume file system on the system you are applying the image to is NTFS. The request is not supported. (Error: 80070032; Source: Windows) *
    I am specifying in the Apply Operating System task to apply the OS to a specific logical drive letter (C:). The odd part is that if I reboot the computer and run the task sequence again, it goes through just fine... every time. Thanks for your help.
    * EDIT: I'm running SCCM 2012 R2.

  • Finder moving files not copying

    I have been using a mac for over 15 years but this one has me stumped.
    When coping files I have always held down 'option' to copy the file. A small green plus symbol appears and the files then copy into the target folder, or hard drive.
    I have a Mac Pro, with the latest updates of Yosemite .... but now the files are moving and NOT copying.
    So when I back something up, they are no longer in the original location, only where i have copyied them to. They disappear.
    Should I be using cut and paste instead? Anyone else have this problem?

    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Download and re-install the 10.10.1 update.
    Also see:
    Reinstall OS X Without Erasing the Drive
    OS X Yosemite- Reinstall OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • JAR app reading text from .cfg file

    I wrote an application that needs to read txt a file. The file is saved as a .cfg file. I access it with the getResource() method:
    url = myClass.class.getResource("desiredFile.cfg");
    Before I jar it, it runs fine (in JBuilder). Then, when I jar the app and I run the .jar, it gave me the following error:
    file:\C:\ES\ES.jar!\es\textFile.cfg (The system cannot find the path specified)
    The wierd thing is that my app also plays audio from a .wav file, and it has no problem with that. I access the .wav file the same way:
    url = myClass.class.getResource("desiredFile.wav");
    And it plays the audio just fine!
    How can I read from the .cfg???
    Please help!!! Thanks!

    use myclass.class.getResourceAsStream("desiredFile.cfg") this will return you an InputStream, so you'll be able to use a FileReader, or whatever your favourite reader is.

  • Do macs keep a record of what files are copied to an external hard drive?

    Is it possible to set up a MacBook to keep a record of what files are copied to an external hard drive?

    Start up in safe mode and log in to the account with the problem. Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t start in safe mode.
    Safe mode is much slower to start up and run than normal. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    You may now be able to log in and move the files off the Desktop. Then restart as usual.

  • Syslog massage for copy running-config

    Hello,
    i have syslog server and i want to receive syslog message that say "config saved" from the switch/router.
    i cant find any log message that syslog generate for the copy command.
    can i achieve this with EEM ?
    i need this for NX-OS and regular IOS.
    Thanks.

    Hello Ricarte,
    Not sure I follow your question but let me explain something:
    can i copy running-config to another file in the flash, do testing on it, if something goes wrong, put it back.  like...
    asa>copy running-config my-config
    Yes, it is possible
    copy my-config running-config
    This will do a merge of both the file my-config and the running-config.. It will be a merge.
    A merge adds any new commands from the new configuration to the running configuration. If the configurations are the same, no changes occur. If commands conflict or if commands affect the running of the context, then the effect of the merge depends on the command. You might get errors, or you might have unexpected results.

  • NIDAQ MXbase cfg files

    Hello,
    I am using an USB 6009 module. I installed NIDAQ MXbase CD. The configuration utility was run and saved.MAX recognizes the device, the example datalogger works, yet when you are going to program an application, the system returns an error message stating that there are no tasks created. When you click to create a new task, it says that the device identifier is invalid. When you try to browse tasks on the MXbase VIs, the list comes out blank! I also have a third party application that can talk to NI NIDAQ MX devices, and the application returns a device identifier invalid error.
    What is going on? I have run some examples and they seem to work with one or two channels, but thats it. I have configured more channels, but they don't show up. Where is Labview going to look for the CFG files? Do I also need NIDAQ MX in addition to MXbase for this to run? Help!
    Gariel Sierra, UCC

    Hi Gariel,
    The DAQmx Task control used is only populated with DAQmx tasks, hence it's normal that the list is blank. You can type in the DAQmx Base task name manually to run it. You do not need to install DAQmx to run your USB6009 tasks. The reason you're receiving an error message is likely because LabVIEW was opened before the task was created and saved in the Configuration Utility. To resolve this, simply re-open LabVIEW, or make sure you save the task in the Utility before opening LabVIEW. You can find more details from the following article:
    Error -200428 Occurred at Unidentified Location When Trying to Use a Task in NI-DAQmx Base
    The task configuration is written to a .cfg file. You can see a similar file when you select "Export Task List".
    I'm not familiar with your third party application, hence cannot make any suggestions. Can you describe what kind of software it is and how it's communicating with your 6009 device?
    Thanks,
    Lesley Y.

Maybe you are looking for