Forum Discussion

Ronnie's avatar
Ronnie
Icon for Nimbostratus rankNimbostratus
Mar 10, 2014

APM - using tmsh to create resources (RDP) - How to add caption?

Hi

I'm using tmsh to create a big number of rdp resources.

tmsh::create apm resource remote-desktop rdp $name host $hostname port 3389 java-client enabled

Is there an option to set the the caption for each resource using tmsh? I don't want to modify the caption using the webgui. The caption should be set to $hostname as this is the fqdn of the RDP resource.

I'm only using English as the default language on the access profile.

Any assistance would be appreciated.

Thanks

Ronnie

  • I'm not sure where the screen capture came from in the above post but you cannot modify the customization information directly from tmsh. You need to create the XML data in a file and import it into tmsh for it to be integrated into the config.

    To modify the customization information you need to look in the bigip.conf for the rdp resource and find the "cache-path" for the customization group.

    apm resource remote-desktop rdp /Common/RDP {
        acl-order 1
        customization-group /Common/RDP_resource_remote_desktop_customization
        host 10.10.10.10
        port 3389
    }
    
    apm policy customization-group /Common/RDP_resource_remote_desktop_customization {
        cache-path /config/filestore/files_d/Common_d/customization_group_d/:Common:RDP_resource_remote_desktop_customization_56062_1
        revision 1
        type resource-remote-desktop
    }
    

    After you find the cache-path copy the file to the /tmp directory.

     cp /config/filestore/files_d/Common_d/customization_group_d/:Common:RDP_resource_remote_desktop_customization_56062_1 /tmp
    

    Now you need to modify the file using vi and add the following information into the file.

    
        
                
                /public/images/full_wt/terminal_service.png
                BLAH_RDP_BLAH
        
    
    

    Next you will want to get into tmsh and issue the following command.

    modify apm policy customization-group RDP_resource_remote_desktop_customization { local-path /tmp/:Common:RDP_resource_remote_desktop_customization_56062_1 }
    

    This will read in the file and create a new revision in the bigip.conf and in the /config/filestore/files_d/Common_d/customization_group_d directory for the file.

    Next you just need to save the running config.

    save sys config
    

    Hope this helps.

    Seth