ITEM: AJ9063L

0514-612 cfgmgr error; "banner 'mm ibm1'" executed from .envfile


Question:

Env:    3.2.5.

Desc:   Customer runs "cfgmgr -v", he and gets the following error,
        repeated some twenty times:

cfgmgr: 0514-612 unable to configure the '\#\#\#\#' device because it either
        does not exist in the customized device database or it does not
        have a corresponding entry in the predefined device database.

        
        The device name '\#\#\#\#' changes each time, sometimes being
        '\#', sometimes '\#\#\#\#', etc.

        Following these errors, he gets messages that say:

-------------------------------------
attempting to configure device '\#\#\#\#'   (or whatever)
-------------------------------------

        The 0514-612 errors occur during the stdout output of "cfgmgr -v"
        for the following rules:

"/usr/lib/methods/definet > /dev/null 2>&1;opt='lsattr -E -l inet0 \\
-a bootup_option -F value'

if [ $opt = "no" ]
 then
  /etc/rc.net -2
 else
  /etc/rc.bsdnet -2
fi"

        and

/etc/methods/startpst

        The stdout portion of these rules read:

                                                                   \#
                 \#    \#   \#    \#          \#   \#\#\#\#\#     \#    \#    \#\#
                 \#\#  \#\#   \#\#  \#\#          \#   \#    \#    \#\#  \#\#   \# \#
                 \# \#\# \#   \# \#\# \#          \#   \#\#\#\#\#     \# \#\# \#     \#
                 \#    \#   \#    \#          \#   \#    \#    \#    \#     \#
                 \#    \#   \#    \#          \#   \#\#\#\#\#     \#    \#   \#\#\#\#\#


Action: This appears that a command similar to "banner '  mm ibm1'"
        is being run and piped into the output of the definet command
        and the startpst commands listed above.

        After digging around, we found that startpst is a 3rd-party
        configuration shell script.  The definet configuration rule will
        call either rc.net or rc.bsdnet, both shell scripts.

        In the customer's .envfile for root, we found a banner like the
        one listed above.  The customer has that in place to remind
        himself of what system he is working on; "mmibm1" is the
        hostname of this particular system.

        The problem results in that environment files are reexecuted
        EACH time a user runs a shell script.  Since "cfgmgr" is running
        rc.net and startpst, it is running this banner message each
        time, and the system is trying to recognize each '\#...' string
        as a separate device.

        The customer should remove any executable commands like "banner"
        banner from the .envfile environment file.  However, a statement
        like the following will also suffice:

__________________________________
if [ 'echo $- | grep -c i' -eq 1 ]
then
        banner '  mm ibm1'
fi
__________________________________

        This will cause the statement to be issued only in interactive
        shell sessions.

Next:   Close call.


Support Line: 0514-612 cfgmgr error; "banner 'mm ibm1'" executed from .envfile ITEM: AJ9063L
Dated: July 1995 Category: N/A
This HTML file was generated 99/06/24~13:30:27
Comments or suggestions? Contact us