DX NetOps

  • 1.  Element Name getting added with interface description

    Posted Nov 22, 2017 02:06 AM
      |   view attached

    Dear We are running 6.2.2 version of ehealth in Solaris..

     

    When we discovered a Firewall we found that the naming of the Element for the same was showing not correctly..

     

    When compared with spectrum we foun that in Spectrum the Names are shown correctly.. whereas in ehealth Element Name the Interface description is getting added  -- as a result of the limitation of characters the exact naming of the Gigbit gets missed..

     

    eg.. ( The complete list attached as Attachment.).

     

    Please guide how can i fix the same...in ehealth so hte Element name can be displayed with out the Description Field getting added.. 

     

    Regards
    Thiru

    Attachment(s)



  • 2.  Re: Element Name getting added with interface description

    Posted Nov 22, 2017 07:37 AM

    Hello tsethuraman 

     

     You will need to make this changes for policy in oneClick for the following
     variables...

     

    Naming - Choose Name Service ( Default ) no Use DNS, a custom value from a file, or sysName when naming elements. Values are "DNS", "sysName", "file_name", or "No". When you set this value to DNS or sysname, you can specify a regular expression in NH_NAME_SRVC_PAT to truncate part of an element name exceeds the max name length.

     

     EXAMPLE:
     NH_NAME_SRVC_PAT = "(\.corp\.bca\.com\.br)|(\.corp\.bca\.com\.br)"

     

    (\.lam\.priv\.rhodia\.comBR1234)

     


    Naming - Truncate by Regular Expression ( Default )  Specify a regular expression to determine the part of the element name to truncate when maximum name length is exceeded. Requires NH_USE_NAME_SRVC value to be set to "DNS" or "sysName".

     

     NH_USE_NAME_SRVC = sysName
     
     Then you should be able to rerun the discovery again and above variables
     take effect.

     


    Naming - Use Alternate Alias Scheme ( Default )  Assign alias names using the specified TCL script.
    Naming - Use Alternate Name Scheme ( Default )  Assign element names using the specified TCL script.

     

     

    OR

     

    name matches ".*\.alias\.5sigcmd.*":
    {
    setName("$1$2");
    }
    May need to rename existing elements, not sure if rediscovery with rule
    will change name.
    Please test. If that works they just need to use the rule and rediscover.
    If not, they need to use nhModifyElements:
    nhListElements -where "name matches *.alias.5sigcmd*" -outFile list.txt
    Check list.txt to ensure it contains the correct list.
    Should be a single column list of all elements with .alias.5sigcmd in the
    name.
    Run:
    sed 's/\(.*\)\.alias\.5sigcmd\(.*\)/\0,\1\2/g' list.txt > rename.txt
    (Google "sed backreferences" or ask if you need an explanation of how that
    works)
    Check rename.txt to ensure it contains a list of:
    <element with .alias.5sigcmd in the name>,<element without .alias.5sigcmd
    in the name>
    <element with .alias.5sigcmd in the name>,<element without .alias.5sigcmd
    in the name>
    MAKE SURE THE LIST LOOKS CORRECT BEFORE RUNNING nhModifyElements.
    Rename the elements:
    nhModifyElements -inFile rename.txt -fieldName name
    Check to see if the elements were renamed.
    They probably want to split this into a few batches.

     

    Regards,



  • 3.  Re: Element Name getting added with interface description
    Best Answer

    Broadcom Employee
    Posted Nov 27, 2017 06:41 PM

    Hi Thiru,

     

    Further to Alex's solution, we have a KB article that addresses this very issue which you also may find helpful;

     

    Element name in eHealth does not match the name in Spectrum