Image script doesn't use the correct host name

Hello NG
I created a ZCM Imaging script so that I got a prompt for the name of the
workstation. Unfortunatelly the script doesn't work correct. I set as WSName
following Name WS999
After the Image was restored, the hostname was set to Company-SJCFNSG
(example: Company = Novell) NOVELL-SJCFNSG
What could be the cause of this problem?
Here the script i used:
IMGSVR=192.168.4.30
while test ! $WSNAME; do
echo -n -e "\n Please set NetBIOS Name and a accept with Enter: ";
read WSNAME;
done;
if test $WSNAME; then
zisedit Name=$WSNAME;
fi
img -rp MyImage1.zmg
img -rp MyAddOn1.zmg
img -rp MyAddOn2.zmg
sleep 10
Regards
Ramon

I did find the solution!
In earlier Zenworks versions the wsname was set by "zisedit name=PCName01"
now in ZCM10 and ZCM11 the variable did change so I had to modify it to
zisedit Computername=PCName01
if test $WSNAME; then
zisedit ComputerName=$WSNAME;
fi
Regards
Ramon
"Ramon Lustrati" schrieb im Newsbeitrag
news:C%zup.26$C%[email protected]..
Hello NG
I created a ZCM Imaging script so that I got a prompt for the name of the
workstation. Unfortunatelly the script doesn't work correct. I set as WSName
following Name WS999
After the Image was restored, the hostname was set to Company-SJCFNSG
(example: Company = Novell) NOVELL-SJCFNSG
What could be the cause of this problem?
Here the script i used:
IMGSVR=192.168.4.30
while test ! $WSNAME; do
echo -n -e "\n Please set NetBIOS Name and a accept with Enter: ";
read WSNAME;
done;
if test $WSNAME; then
zisedit Name=$WSNAME;
fi
img -rp MyImage1.zmg
img -rp MyAddOn1.zmg
img -rp MyAddOn2.zmg
sleep 10
Regards
Ramon

Similar Messages

  • Keyboard doesn´t use the correct symbols

    Using the shift key doesn´t produce the ´correct´ symbol. For example, SHIFT + 2 produces " rather than @. (To type this I had to type it out in word first, where the shift key does work normally, and copy and past in this Details box. From left to right on the keyboard, these are the symbols I get with the shift key
    §"#$%&_()'?
    As you can imagine this makes it very difficult and irritating to work in firefox.
    Hopefully you have a solution for this.
    Thanks, Jane

    It is possible that you have switched the keyboard layout by accident by using the key sequence to rotate the keyboard layout.
    * http://support.microsoft.com/kb/258824 - How to change your keyboard layout
    Windows remembers the keyboard layout setting per application and you may have changed the keyboard layout by accident via a keyboard shortcut.
    * http://windows.microsoft.com/en-US/windows7/The-Language-bar-overview The Language bar (overview)
    * Make sure that you have the Language bar visible on the Windows Taskbar
    * You can do that via the right-click context menu of the Taskbar: Toolbars > Language Bar
    * Check the keyboard language (keyboard layout) setting for the application that has focus via the icon on the Language bar
    * You need to do that while Firefox has focus because Windows remembers the keyboard layout setting per application
    * The default key combination to rotate the layout is the Ctrl+Shift or Alt+Shift combination that is used in Firefox for menu items, so it is possible to change the layout accidentally.
    * To avoid an unintentional switch, assign a specific key sequence (Alt/Ctrl+Shift+number) to select keyboard layouts and remove the key combination to rotate layouts (Alt+Shift or Ctrl+Shift)
    * Control Panel > Regional and Language Options > Keyboards and Languages > Change keyboards > Advanced key settings > Change key sequence

  • I scanned an image and want to use the image trace tool, but it doesn't pick up all the lines.  Is there a way to darken the lines before using the image trace tool?

    I scanned an image and want to use the image trace tool, but it doesn't pick up all the lines.  Is there a way to darken the lines before using the image trace tool?  Help!

    If the scan is in B&W, then play with the Threshold setting here
    If it's in Color, then you will have to open the scan in a Raster editing software (like Photoshop) and play with the Brightness/Contrast settings to make the lines bolder.

  • Previewing an image before uploading it using the FileReference class in flex 3

    Previewing an image before uploading it using the FileReference class in flex 3 ?

    hai,
              when this code is used in my application ,i got the name of image and new frame is added each time .But image is not displayed.....
    The code  starts like this
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
                xmlns:mx="library://ns.adobe.com/flex/mx" initialize="init()"   backgroundColor="white" width="100%" height="100%">
        <fx:Script>
    <![CDATA[ 
                    import mx.controls.Alert;
                    import mx.messaging.Channel;
                    import mx.messaging.ChannelSet;
                    import mx.messaging.channels.AMFChannel;
                    import mx.rpc.events.ResultEvent;
                    import mx.controls.Image;
                    import spark.events.IndexChangeEvent;
                    import mx.managers.DragManager;
      <mx:DataGridColumn headerText="Dimension Value"  width="10" dataField="dimensionValue"/>
                                                   <mx:DataGridColumn headerText="Unit Nmae"  width="10" dataField="dimensionUnitName"/>
                                                   </mx:columns>
                                           </mx:DataGrid>
                                           <mx:Spacer width="2%"/>
                                       </mx:HDividedBox>
                                       </mx:VBox>
                   <mx:Spacer height="0"/>
                <mx:VBox width="100%">
                    <s:HGroup height="90" top="0" left="0" right="0" verticalAlign="justify" gap="10" paddingLeft="5" paddingRight="5" paddingTop="5" paddingBottom="5">
                        <s:Button id="btn_loader" top="5" bottom="24" width="100" label="load" click="loadImages()"/>
                        <s:Group width="100%">
                            <s:Group name="cl" top="0" left="0" bottom="0" width="20" mouseOver="//scroll_on(event)" mouseOut="//scroll_off(event)">
                                <s:BitmapImage source="@Embed('../assets/left.jpg')" top="0" left="0" bottom="0" right="0" fillMode="scale"/>   
                            </s:Group>
                            <s:List id="imgList" skinClass="skins.ListSkin" top="-3" left="27" right="28" bottom="10"
                                    dataProvider="{ImageCollection}" itemRenderer="Image_Render">
                                <s:layout>
                                    <s:HorizontalLayout gap="0"/>
                                </s:layout>
                            </s:List>
                            <s:Group name="cr" top="0" right="0" bottom="0" width="20" mouseOver="//scroll_on(event)" mouseOut="//scroll_off(event)">
                                <s:BitmapImage source="@Embed('../assets/right.jpg')" top="-1" left="0" bottom="0" right="0" fillMode="scale"/>
                            </s:Group>
                        </s:Group>
                    </s:HGroup>
                    <s:SkinnableContainer id="dropCanvas" top="100" left="5" right="5" bottom="5" backgroundAlpha="1.0" alpha="1.0"
                                          dragEnter="dropCanvas_dragEnterHandler(event)"
                                          dragDrop="dropCanvas_dragDropHandler(event)" contentBackgroundColor="#914E4E" backgroundColor="#F7F7F7">
                    </s:SkinnableContainer>
                </mx:VBox>
                <mx:Spacer height="5"/>
                                      </mx:VDividedBox>
        </mx:Panel>
    </mx:Canvas>

  • How does the remote object connect to the correct host

    i have had a small doubt on how the remote reference manages to find the correct host to call the subsequent methods after a sucessful lookup.
    given a rebind or bind to the registry, the registry only stores the alias and the remote reference, now imagine a client calling a lookup on the registry would only get the remote reference, and not in which machine the remote object is found.
    what i wanted to know is how does the client or atleast the remote reference returned by the registry correctly connects to the machine where the remote object is located. i dont think its stored in the stub bcos the stub is a complie time stuff.
    i would be pleased to have a comprehensive answer for this.

    The membership in the group communication framework is always accurate and upto date.Up to date to the moment when you check. Not up to date to the moment when you make the RMI call.
    i could basically chk if this ip is available in the membership list.Complete waste of time. It doesn't matter what you check ahead of time, you are still trying to predict the future.
    And you still have to deal with ConnectException etc from the actual remote method call. And the way you will deal with that in your situation is exactly the same as what you were going to do if your ahead-of-time check failed.
    So just catch the exception(s) and deal with the problem there.

  • Can you refer to the original host name when using a challenge redirect?

    I have an authentication scheme that uses a challenge redirect to cause authentication to happen using https instead of http. However, this seems to break some of our monitoring scripts because now the credential challenge is coming from a different host name. Is it possible to refer to the original host name with some type of variable in the challenge redirect parameter? Below is an example:
    1. User accesses secured URL at http://appstenv2.company.com/testurl
    2. This webserver is hosting several aliases (appstenv2.company.com, appstenv4.company.com, appstenv6.company.com) and has a main name of appsdev.company.com - but is a single apache webserver where there is an application server plugin installed which will route to the desired application server environment based on the original hostname. So if a user accesses it with a name of appstenv2.company.com/testurl they will be routed to the "test 2" environment application server. If they access it as appstenv6.company.com, they would be routed to the "test 6" environment application server.
    3. This webserver listens on both http and https.
    4. The current challenge redirect can only redirect to a specific URL so it is set to "https://appsdev.company.com" which works fine interactively but the recorded monitoring scripts suddenly see a new hostname doing the prompting for credentials even though it is the same webserver - just a different alias.
    5. If possible, I would want to do the redirect in a relative fashion rather than absolute by using the original hostname from the URL being accessed. So, if the user was accessing http://appstenv2.company.com/testurl, I would like to redirect to https://appstenv2.company.com for the basic authentication. but with the same authentication scheme, if the user accesses http://appstenv6.company.com/testurl, I would want the challenge redirect to go to https://appstenv6.company.com. I'm hoping it's possible to use some system variable like SERVER_NAME to do this.
    Challenge Redirect: https://$SERVER_NAME
    Does anyone know if that is available in OAM 10.1.4.3 or some other way to accomplish the same thing with a single authentication scheme?

    No, there are not multiple policies - the host names for all aliases on that single webserver are together in a single host identifier. And I realize I can only have a single challenge redirect, I just want to use a variable to redirect to the host name that was accessed as opposed to a static name.

  • Am I using the correct tools ?

    I need to edit a series of images for a product cataloge and would need these images cut out so that the back ground is transparent. I've been using magic extractor am I using the correct tool ? I also need the lines to be more precise are there any other tools I can use to make the lines cleaner on cutting out ? I just need it looking more cleaner and straighter ?

    Use Magic Eraser tool changes all similar pixels when you drag within a photo. If you’re working in a layer with locked transparency, the pixels change to the background color; otherwise, the pixels are erased to transparency. You can choose to erase contiguous pixels only, or all similar pixels on the current layer.
    Original image (left), and after erasing the clouds (right) 
    In the Layers panel, select the layer containing the areas you want to erase.Note: If you select the Background, it automatically becomes a layer when you use the Magic Eraser.
    Select the Magic Eraser tool in the toolbox. (If you don’t see it in the toolbox, select either the Eraser tool or the Background Eraser tool , and then click the Magic Eraser tool icon in the options bar.)
    Set options in the options bar, as desired, and then click the area of the layer you want to erase.You can set any of the following Magic Eraser tool options:
    Tolerance Defines the range of colors that will be erased. A low tolerance erases pixels within a range of color values very similar to the pixel you click. A high tolerance erases pixels within a broader range.
    Anti‑alias Smoothes the edges of the area you erase, making the edge look more natural.
    Contiguous Erases only pixels that are adjacent to the one you click. Deselect this option to erase all similar pixels in the image.
    Sample All Layers Samples the erased color using combined data from all visible layers. Deselect the option if you want to erase only the pixels on the active layer.
    Opacity Defines the strength of the erasure. An opacity of 100% erases pixels to complete transparency on a layer and to the background color on a locked layer. A lower opacity erases pixels to partial transparency on a layer and paints partially with the background color on a locked layer.

  • Previewing an image before uploading it using the FileReference class

    Previewing an image before uploading it using the FileReference class in flash player 3 not in SDK4

    Previewing an image before uploading it using the FileReference class in flash player 3 not in SDK4

  • I can't activate my iPad and I'm sure i am using the correct apple id and password but when i press net it says it cannot be used to unlock this iPad

    i can't activate my iPad and I'm sure i am using the correct apple id and password but when i press net it says it cannot be used to unlock this

    You can try to figure out which Apple ID/email address and/or password you used to activate it by going to http://iforgot.apple.com
    If you can't, you'll need to contact Apple Account Security with your proof of purchase. 

  • I have a jetpack, and when I try to "connect" to my ipad or phone, it keeps telling me I am not using the correct password.  I have tried everything.  I even changed the password, nothing is working.  Both are 4G, my ipad is an Air and my phone is a Iphon

    I have a jetpack, and when I try to "connect" to my ipad or phone, it keeps telling me I am not using the correct password.  I have tried everything.  I even changed the password, nothing is working.  Both are 4G, my ipad is an Air and my phone is a Iphone 5.  I can get connected to other wifi on these features but not with my jetpack.  Please help, I need to use this feature soon.  Thank you so much

    Chances are you mis-typed a character in the Wifi password and the devices saved that information.  Now whenever you try to connect the device refers to the wrong password and the Jetpack does not accept your connection.  Tell your devices to forget the wireless connection and start over.
    Once you enter the proper WiFi credentials the Jetpack will allow you to connect.

  • What's the reason for this message, "A server with the specified host name could not be found" ? I'm using iPhone 4s, 16gB, iOS 7.0.4

    I get a pop-up message saying "A server with the specified host name could not be found", whenever I try to access any streaming websites/apps or even WhatApp over Wi-Fi and I cannot access the specific THING for that moment, and I've tried switching Wi-Fi On and Off both in my Phone and also in the Router. I got an internet connection and a Wi-Fi router just before two days, and it's happening since. I got the internet speed around 80kbps and i can easily stream YouTube videos except sometimes, I receive that annoying message. I can't even browse the internet in Safari, which says "No Internet Connection"(Even though the Wi-Fi is connected), and I can access it after somewhile (say 10 minutes, it'll be perfectly alright). I use iPhone 4s. And everything about the internet connection is totally fine in my Computer, but not in my iPhone, as I've explained the issues, above. If there are any technical settings that I should change/modify, either on my computer(Windows 7 OS) or in my iPhone(iOS 7.0.4), PLEASE let me know
    I hope I've provided enough information for the reader to understand my point. (I apologize for my verbal mistakes, if there are )
    THANKS

    Hello Paneesh,
    Thank you for the details of the issue you are experiencing with Wi-Fi on your iPhone 4s.  I recommend the following steps:
    Be sure you're in range of your Wi-Fi router (access point).
    Tap Settings > Wi-Fi and turn Wi-Fi off and on. If your W-Fi setting is dimmed, follow these steps.
    Confirm that your Wi-Fi router and cable or DSL modem are connected to power, turned on, and connected to the Internet. If not, refer to your network administrator or Internet service provider (ISP) for assistance.
    Restart your iOS device.
    Tap Settings > Wi-Fi and locate the Wi-Fi network to which you're connected.
    Tap and Forget this Network.
    Try to connect to your desired Wi-Fi network.
    Note: You may need to enter your Wi-Fi password again if your network requires one.
    Turn your Wi-Fi router off and on2. If your ISP also provides cable or phone service, check with them before attempting this step to avoid interruption of service.
    Update your device to the latest version of software.
    Update your Wi-Fi router to the latest firmware2. For AirPort Base Stations, install updates using the AirPort Utility.
    If the issue is still unresolved Wi-Fi disconnects or signal strength is less than expected
    Move closer to the Wi-Fi router (access point).
    Check for sources of potential interference.
    Remove any case, stand, or other accessories from your iOS device and see if signal strength improves.
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings. Note: This will reset all network settings including
    previously connected Wi-Fi networks and passwords
    recently used Bluetooth accessories
    VPN and APN settings
    You can find the full article here:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • 'You Are Not Using The Correct Type of Phone Cord' Error

    Having a issue with my fax on my HP Officejet Pro 8500 wireless.  Tried to send a fax, it  received a send error.  I ran fax test and it came back with "You are not using the correct type of phone cord".  Nothing has changed since I last fax'd but I check the lines and connection, everything appears ok.  Phone jack is connected to 1-line and Officejet '2-ext' is connected to the phone.  I use a dedicated phone # and the Officejet is set to auto answer.   I can call out and receive calls on the phone connect to the Officejet.  My assumption is that since I can use the phone without issue there is nothing wrong with the phone line.  Any ideas?
    This question was solved.
    View Solution.

    I was having the same problem.  I'm using a the 2 wire phone cord provided with the printer and still getting this error.  Turns out that it related to have a phone extension plugged into the printer.  If I unplug the telephone form the extension jack on the back of the printer, then the fax test passes.   I was even using a 2 wire cord on the phone extension but it seems that simply having a telephone plugged into the extension jack will cause this error. 
    Run the test without a telephone plugged into the printer's extension jack and you should be fine.
    Worked for me!

  • I have tried to log in on a web site and this is what I'm gettig: Alert 530 Autentication failed. I have used the correct password and user's name.

    ftp.oxbow.fr This is the file I have log on and I have used the correct password and user's name and this is what comes up:
    Alert 530 Authentication Failed!

    This is a user to user forum. Apple is not here. Apple does not answer questions here.
    iTunes Support -
    http://www.apple.com/support/itunes/
    Mac App Store Support -
    http://www.apple.com/support/mac/app-store/

  • HT203167 I lost my ringtones from my phone when I upgraded to iOS 6 on my iPhone 4.  They are still on my computer, but won't re-transfer back to the phone.  I'm using the correct iTunes account.  How do I get my ringtones back on my phone?

    How do I get my ringtones back on my phone?
    I lost my ringtones from my phone when I upgraded to iOS 6 on my iPhone 4.  The ringtones are still on my computer and play in iTunes, but they won't re-transfer back to the phone.  I'm using the correct iTunes account on both my computer and phone.  In the iPhone view of iTunes on my computer, it shows that my phone recognizes that I had those ringtones, but there is an exclamation mark showing that my phone can't find the files.  I can't delete these "placeholders" from my phone with the hopes of re-transfering the files back to the phone, either.  I cannot just simply re-transfer the files from my computer back to the phone.  It won't let me using the regular synch options and I can't find anything in the menus of iTunes to help me out either.
    Any advice would be much appreciated. 

    Ignore.  I figured it out:)

  • "itunes could not restore the iphone because the password was incorrect" I know for a fact im using the correct password. and it has previously worked. is anyone else having this issue.

    "itunes could not restore the iphone because the password was incorrect" I know for a fact im using the correct password. and it has previously worked. is anyone else having this issue.

    Hi, I also get the message "itunes could not restore the iphone because the password was incorrect" though I am never prompted to enter a password anywhere! Nor was the backup password encrypted to begin with! Really strange, any pointers will be greatly appriciated!

Maybe you are looking for