Help with sipXecs (Centos 5.2) and OpenManage

Jeffrey_L_Mendoza at Dell.com Jeffrey_L_Mendoza at Dell.com
Fri Sep 18 13:32:06 CDT 2009


Below is the code, as you can see in the bootstrap script. Can you see
what would need to change for sipXecs to work?

get_dist_version(){
    local REL_RPM rpmq
    dist_base=unknown
    dist_ver=
    rpmq='rpm --qf %{name}-%{version}-%{release}\n -q'
    if $rpmq --whatprovides redhat-release >/dev/null 2>&1; then
        REL_RPM=$($rpmq --whatprovides redhat-release 2>/dev/null | tail
-n1)
        VER=$(rpm -q --qf "%{version}\n" $REL_RPM)
        REDHAT_RELEASE=$VER

        # RedHat: format is 3AS, 4AS, 5Desktop... strip off al alpha
chars
        # Centos/SL: format is 4.1, 5.1, 5.2, ... strip off .X chars
        dist_base=el
        dist_ver=${VER%%[.a-zA-Z]*}

        if echo $REL_RPM | grep -q centos-release; then
            CENTOS_RELEASE=$VER
        elif echo $REL_RPM | grep -q sl-release; then
            # Scientific Linux (RHEL recompile)
            SCIENTIFIC_RELEASE=$VER
        elif echo $REL_RPM | grep -q fedora-release; then
            FEDORA_RELEASE=$(rpm --eval "%{fedora}")
            dist_base=f
        	dist_ver=${FEDORA_RELEASE}
        elif echo $REL_RPM | grep -q enterprise-linux; then
            # this is for Oracle Enterprise Linux (probably 4.x)
            ORACLE_RELEASE=$VER
        elif echo $REL_RPM | grep -q enterprise-release; then
            # this is for Oracle Enterprise Linux 5+
            ORACLE_RELEASE=$VER
        fi

    elif $rpmq --whatprovides sles-release >/dev/null 2>&1; then
        REL_RPM=$($rpmq --whatprovides sles-release 2>/dev/null | tail
-n1)
        SLES_RELEASE=$(rpm -q --qf "%{version}\n" $REL_RPM)
		dist_base=sles
        dist_ver=${SLES_RELEASE}

    elif $rpmq --whatprovides sled-release >/dev/null 2>&1; then
        REL_RPM=$($rpmq --whatprovides sled-release 2>/dev/null | tail
-n1)
        SLES_RELEASE=$(rpm -q --qf "%{version}\n" $REL_RPM)
		dist_base=sles
        dist_ver=${SLES_RELEASE}

    # This comes after sles-release because sles also defines
suse-release
    elif $rpmq --whatprovides suse-release >/dev/null 2>&1; then
        REL_RPM=$($rpmq --whatprovides suse-release 2>/dev/null | tail
-n1)
        SUSE_RELEASE=$(rpm -q --qf "%{version}\n" $REL_RPM)
		dist_base=suse
        dist_ver=${SUSE_RELEASE}
    fi

    dist=$dist_base$dist_ver
}



________________________________

	From: linux-poweredge-bounces at lists.us.dell.com
[mailto:linux-poweredge-bounces at lists.us.dell.com] On Behalf Of Timothy
Cox
	Sent: Friday, September 18, 2009 11:52 AM
	To: linux-poweredge-Lists
	Subject: Help with sipXecs (Centos 5.2) and OpenManage
	
	

	Hi folks, new here & need help.

	 

	I have 3 Poweredge 2850's running a default load of sipXecs
4.0.2 (Centos 5.2)

	When I attempt to follow these instructions:

	http://linux.dell.com/repo/community/

	 

	and I do:

	wget -q -O - http://linux.dell.com/repo/community/bootstrap.cgi
| bash

	 

	I get:

	"Unable to determine that you are running an OS I know about.

	Handled OSs include Red Hat Enterprise Linux and CentOS,

	Fedora Core and Novell SuSE Linux Enterprise Server and
OpenSUSE"

	 

	I tried to changing /etc/redhat-release and adding either
"Nahant" or "Tikanga" with no luck, same "undetermined OS" crap

	 

	Anybody have a clue? I'm really stuck.

	Thanks

	 

	Timothy Cox

	 

		The information in this message may be proprietary
and/or confidential, and protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received this
communication in error, please notify Dispozo Products LLC. immediately
by replying to this message and deleting it from your computer. 
	



More information about the Linux-PowerEdge mailing list