Screen OS

last person joined: 8 months ago 

This is a legacy community with limited Juniper monitoring.
  • 1.  How to rename custom object via CLI

    Posted 11-01-2010 02:57

    Hi all,

    I've got a 5GT, SSG5 and some other devices using ScreenOS 4.x and 6.x. My question is:

    How do you rename an object via the CLI?

    It works perfectly via the web interface, so I guess there must be a CLI command. I can't find it. Any help appreciated!

    Cheers


    #object
    #rename
    #Custom


  • 2.  RE: How to rename custom object via CLI

    Posted 11-01-2010 03:58
    Hi,
    I would move to the appropriate area of the configuration using "edit" (I.e. edit security Nat), the use "replace pattern xxx with xxx".
    John


  • 3.  RE: How to rename custom object via CLI
    Best Answer

    Posted 11-01-2010 11:25

    firewall72's suggestion would work well if you were using a Junos device, but not for ScreenOS.

     

    Renaming in ScreenOS is really just a create new/delete old operation.  If you "rename" something in NSM and push the changes, you'll see what really happens is that NSM generates the CLI commands to unset the object, then create a new object, and it replaces all references in the configuration to point to the new object name.  The Web UI is similarly helpful.

     

    Doing it manually via the CLI would require you to find all references to the old object, unset the old object and appropriate references, then set the new object and re-create the references to the new object.

     

    Short answer:  unless you have a real necessity to use the CLI for this, I would suggest you stick with the Web UI or NSM to rename objects.

     

    -kr