Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to detect OS is SLES 10 or not Post 302256575 by krishnamurthig on Monday 10th of November 2008 06:32:25 AM
Old 11-10-2008
How to detect OS is SLES 10 or not

Hi,

I would like to programmatically find if given OS is SLES 10 / RHEL 3/.RHEL 4/RHEL5 etc ..
For this do we have any library call/sys call? Or should we use any sys. structure which would give me detailed info. Share me if you have any pointers.

Thanks in advance
- Krishna
 

10 More Discussions You Might Find Interesting

1. Linux

How to take OS Backup of SLES 10 on DVD....???

Dear All, I have two intel xeon servers running with SLES 10 on a cluster environment (Veritas Cluster 4.1 - 2 Node Cluster - Active Passive). Both the systems are having hardware RAID 1 for OS disk. Both the systems are having DVD writer. I would like to take the OS backup on DVD which can... (0 Replies)
Discussion started by: jumadhiya
0 Replies

2. SuSE

YaST no longer works on SLES 10

YaST no longer works on one of our SUSE Linux Enterprise Server 10, When I issue “Yast” I get the following error messages "warning: the ncurses frontend is installed but does not work" "You need to install yast2-ncurses to use the YaST2 text mode interface" Can you help? please (2 Replies)
Discussion started by: hassan1
2 Replies

3. SuSE

configure vnc sles 11

Is there any doc/procedure to set up VNC on SLES 11 to connect from windows clients?? (1 Reply)
Discussion started by: s_linux
1 Replies

4. SuSE

errors after upgrading from SLES10Sp2 to SLES 11

I just upgraded sles 10 sp2 to sles 11. Apache is running on the server. apache needs to contact the backend server which is weblogic. But once I upgrade to sles 11 i cant able to telnet or ping to the backend (weblogic)server. I checked firewall and is disabled. Any ideas. Thanks. (4 Replies)
Discussion started by: s_linux
4 Replies

5. Shell Programming and Scripting

shell scripts for linux SLES 10

Hi, could someone help me to create the following scripts Need to create couple of shell scripts on LINUX SLES 10 Using my id --------------- First script – this script should contain su and should take input <process name> 1 -login using my id and then sudo to... (1 Reply)
Discussion started by: lookinginfo
1 Replies

6. SuSE

user simple password SLES

Hello, I would like to change a password of a user to a simple one but when i try to add an only lowercase pass i get the error: Weak password: too short. Try again. You can now choose the new password. A valid password should be a mix of upper and lower case letters, digits, and... (2 Replies)
Discussion started by: @dagio
2 Replies

7. SuSE

SLES 9 vs SLES 11 hard drive cache read timings are diffrent

Can anyone give me a little clue on why the hard drive cache read timings on sles 9 is better then sles 11? The same hardware was used in both test. I even deleted the ata_generic module from initrd. The speed difference is 10MB vs 5 MB Thanks (1 Reply)
Discussion started by: 3junior
1 Replies

8. UNIX for Advanced & Expert Users

YUM GROUPLIST not working on SLES 11

I have a SLES 11 install with yum also installed. yum works when I try to install single packages. However, when i try the yum command: "yum grouplist" yum can not detect any groups. Is there some way to "enable" or install a grouplist feature in SLES 11 ? ==== details ==== SUSE Linux... (0 Replies)
Discussion started by: toro95037
0 Replies

9. SuSE

Linux SLES Gui Not coming up

I had sles 11 sp2 installed on my system some days back and it was running fine. Today after I restarted my system the gui is not coming up and system starts in command terminal. sax2 command returns error: sax: gui is missing, starting command line interface sax: no x-server... (4 Replies)
Discussion started by: rupeshkp728
4 Replies

10. SuSE

'createrepo' not found on SLES 10.3

Hello All, I'm trying to configure a SLES 10.3 machine as our Zypper server. I created the zypper directories with all the RPMs, made the directory structure accessible over HTTP but I'm stuck at the final stage: createrepo. Looks like 'createrepo' is not present on this version :confused: ... (3 Replies)
Discussion started by: satish51392111
3 Replies
REDHAT-UPGRADE-TOOL(8)					  redhat-upgrade-tool User Manual				    REDHAT-UPGRADE-TOOL(8)

NAME
redhat-upgrade-tool - Red Hat Upgrade tool SYNOPSIS
redhat-upgrade-tool [OPTIONS] SOURCE DESCRIPTION
redhat-upgrade-tool is the Red Hat Upgrade tool. The redhat-upgrade-tool client runs on the system to be upgraded. It determines what packages are needed for upgrade and gathers them from the source(s) given. It also fetches and sets up the boot images needed to run the upgrade and sets up the system to perform the upgrade at next boot. The actual upgrade takes place when the system is rebooted, using the boot images set up by redhat-upgrade-tool. The upgrade initrd starts the existing system (mostly) as normal, lets it mount all the local filesystems, then starts the upgrade. When the upgrade finishes, it reboots the system into the newly-upgraded OS. OPTIONS
Optional arguments -h, --help Show a help message and exit. -v, --verbose Print more info. -d, --debug Print lots of debugging info. --debuglog DEBUGLOG Write debugging output to the given file. Defaults to /var/log/redhat-upgrade-tool.log. --reboot Automatically reboot to start the upgrade when ready. SOURCE These options tell redhat-upgrade-tool where to look for the packages and boot images needed to run the upgrade. At least one of these options is required. --device [DEV] Device or mountpoint of mounted install media. If DEV is omitted, redhat-upgrade-tool will scan all currently-mounted removable devices (USB disks, optical media, etc.) --iso ISO Installation image file. --network VERSION Online repos matching VERSION (a number or "rawhide") Multiple sources may be used, if desired. Additional options for --network --enablerepo REPOID Enable one or more repos (wildcards allowed). --disablerepo REPOID Disable one or more repos (wildcards allowed). --addrepo REPOID=[@]URL Add the repo at URL. Prefix URL with @ to indicate that the URL is a mirrorlist. --instrepo REPOID Get upgrader boot images from the repo named REPOID. The repo must contain a valid .treeinfo file which points to the location of usable kernel and upgrade images. Cleanup commands --resetbootloader Remove any modifications made to bootloader configuration. --clean Clean up everything written by redhat-upgrade-tool. EXAMPLES
redhat-upgrade-tool --network 7.0 --instrepo <repo URL> Upgrade to RHEL 7.0 by downloading all needed packages and data from the specified repository. redhat-upgrade-tool --device --network 7.0 Upgrade to RHEL 7.0 using install media mounted somewhere on the system, fetching updates from the network if needed. EXIT STATUS
0 Success. 1 Cancelled by user, failure writing files to disk, or other unknown error 2 Failed to download/copy files from the given SOURCE 3 RPM upgrade transaction test failed BUGS
The --iso image must be on a filesystem listed in /etc/fstab. AUTHORS
Will Woods <wwoods@redhat.com> redhat-upgrade-tool 11/08/2013 REDHAT-UPGRADE-TOOL(8)
All times are GMT -4. The time now is 09:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy