|
| |
| |
| |
|
Statistics |
| Unique Visitors: 413 |
| Total Unique Visitors: 635940 |
| Visitors Out: 913 |
| Total Visitors Out: 913 |
|
|
|
| |
|
|
| |
|
| Useful AIX tips |
| 2008-05-08 09:18:00 |
Display paging space details# lsps -aPage Space Physical Volume Volume Group Size %Used Active Auto Typehd6 hdisk1 rootvg 8192MB 1 yes yes lv#Memory module details : # lscfg -vp | egrep "Memory DIMM|Size" Memory DIMM: Size........................1024 Memory DIMM: Size........................1024 Memory DIMM...
|
| |
|
| Linux RPM database recovery |
| 2008-05-07 06:29:00 |
Sometimes you may get the below error while running "rpm -qa" or any other rpm listing command. This error suggests that the RPM db is corrupted and you need to clean it up.rpmdb: PANIC: fatal region error detected; run recoveryerror: db4 error(-30977) from dbenv->open: DB_RUNRECOVERYHere are the steps to do it.Remove the rpm db lock information filesrm -f /var/lib/rpm/__db*Run the rpm rebuild database command . The rpm --rebuilddb option will rebuild the database indices from the installed RPM package headers. This process will take a while to complete. Once it is completed, the rpm -qa and other rpm listing commands will work.rpm --rebuilddb
...
|
| |
|
| Increasing swap performance |
| 2008-05-06 03:46:00 |
If your Linux machine is configured with several swap partitions, the default trend is to use of one partition at a time. Once one swap partition has been full the next will be used. This is not always the best method for performance, since when a new process needs to be swapped to disk it may be forced to wait until another process is swapped out. For instance, if there are two swap partitions specified in /etc/fstab it will look something like this: /dev/sda2 swap swap defaults 0 0/dev/sda3 swap swap defaults 0 0Change the mount options section from ''defaults'' to ''pri=0'' : /dev/sda2 swap swap pri=0 0 0/dev/sda3 swap swap pri=0 0 0If you want to do this in a live s...
|
| |
|
| Netapp deduplication |
| 2008-04-23 07:37:00 |
Netapp deduplication - is a new technology to control the rate of data growth. The average UNIX or Windows disk volume contains thousands or even millions of duplicate data objects. As data is created, distributed, backed up, and archived, duplicate data objects are stored unabated across all storage tiers. The end result is inefficient utilization of data storage resources. By eliminating redundant data objects and referencing just the original object, huge benefit is obtained through storage space efficiencies - which results in "Cost benefit" and "Management benefit".Deduplication implementation guide : http://media.netapp.com/documents/tr-3505.pdfDeduplication estimation calculator : http://www.dedupecalc.com/
...
|
| |
|
| HPUX tips |
| 2008-04-22 06:14:00 |
1) Find number of processors in the machine.# /usr/sbin/ioscan -k -C processorH/W Path Class Description===============================160 processor Processor166 processor Processor#2) Find the model of the hardware# model9000/800/L2000-44#3) Find the network devices attached to the server# /usr/sbin/ioscan -k -C lanH/W Path Class Description=======================================0/0/0/0 lan HP PCI 10/100Base-TX Core0/2/0/0 lan &nb...
|
| |
|
| Solaris LDOM virtualization documents |
| 2008-04-18 05:56:00 |
Solaris LDOM virtualization document links : Overview : http://www.sun.com/servers/coolthreads/ldoms/wp.pdfLDOMs Beginners guide : http://www.sun.com/blueprints/0207/820-0832.pdfLDOMs presentation : http://www.snpnet.com/customer_pub/sun/isv_LDOM/Admin guide : http://docs-pdf.sun.com/819-6428-11/819-6428-11.pdf
...
|
| |
|
| AIX performace monitoring : filemon |
| 2008-04-11 10:29:00 |
"filemon" command monitors the performance of the file system, and reports the I/O activity. The I/O activity monitored is based on the time interval during which the filemon is run. It reports on various levels of file system utilization, including the LVM, virtual memory, and physical disk layers. Without any options, it runs in the background while application programs or system commands are being run and monitored. The trace starts automatically until it is stopped. At that time, the command generates an I/O activity report and exits. "trcstop" command is used to stop the filemon performance capturing.A sample run belowunixfoo-aix:# filemonRun trcstop command to signal end of trace.unixfoo-aix:# Fri Apr 11 08:17:42 2008System: AIX 5.3 Node: unixfoo-aix Machine: XXXXXXXXXXXunixfoo-aix:#...
|
| |
|
| HP-UX : Kernel Parameter Recommendations |
| 2008-04-10 09:03:00 |
Below is the list of commonly recommended HPUX kernel parameters. But this may vary based on your application need.# Parameter Value bufpages 0 # on HP-UX 10.X create_fastlinks 1 dbc_max_pct 25 fs_async 1 maxdsiz 2063806464 maxfiles 200 maxfiles_lim 2048 maxssiz (80*1024*1024) maxswapchunks 4096 maxtsiz (1024*1024*1024) maxuprc 200 maxusers 124 netmemmax 0 # on desktop systems -1 # on data servers nfile 2800 ninode 15000 # 4000 on HP-UX 10.20 multi-processor systems nproc 1024 npty 512More details at : http://docs.hp.com/en/1219/tuningwp.html#kernparmrec
...
|
| |
|
| HPUX : Identify 32-bit or 64-bit kernel |
| 2008-04-10 08:09:00 |
Here are the steps to identify whether you are running a 32-bit or 64-bit kernel.getconf KERNEL_BITS will return whether it is a 32 bit or 64 bit. hpux1 # getconf KERNEL_BITS 32 --> 32-bit hpux2 # getconf KERNEL_BITS 64 &...
|
| |
|
| Oracle's Direct NFS |
| 2008-04-05 10:32:00 |
Direct NFS (DNFS) is an Oracle Database 11g implementation of NFS client that runs as part of the Oracle Database 11g engine. Through this integration, the Oracle database engine optimizes the I/O access path to NFS server to provide improved scalability and reliability. In previous Oracle versions, the I/O operations to the NFS server were done through the native NFS client of the Operating system. Even though the native NFS client implementations evolved over the last few years, the features & configuration varied across operating systems and the end user experience was not uniform across them. Each operating system needed a special set of NFS mount options to maximize its performance.Oracle Direct NFS client provides uniform features across all oper...
|
| |
|
| Few /proc files |
| 2008-04-04 11:21:00 |
/proc/cmdline - file has the parameters passed to the kernel while the system boots-up. /proc/kcore - This file represents the physical memory of the system and is stored in the core file format. The size of this file is equal to the size of the physical memory (RAM) used plus 4 KB./proc/filesystems - This file displays a list of the file system types currently supported by the kernel. /proc/kmsg - This file is used to hold messages generated by the kernel. These messages are then picked up by other programs, such as /sbin/klogd or /bin/dmesg./proc/stat - This file keeps track of a variety of different statistics about the system since it was last restarted.
...
|
| |
|
| Know about Netapp Snapvault |
| 2008-04-04 10:20:00 |
Netapp SnapVault is a heterogeneous disk-to-disk backup solution for Netapp filers and systems with other OS (Solaris, HP-UX, AIX, Windows, and Linux). In event of data loss or corruption on a filer, backed up data can be restored from the SnapVault secondary storage system with less downtime and less of the uncertainty associated with conventional tape backup and restore operations.About Snapvault : http://www.netapp.com/us/products/protection-software/snapvault.htmlOpen systems snapvault : http://www.netapp.com/us/products/protection-software/ossv.htmlPresentation on Snapvault features : http://www-download.netapp.com/edm/TT/WOD/WOD20070222/index.html
...
|
| |
|
| AIX : Managing service subsystem |
| 2008-03-29 00:05:00 |
lssrv , stopsrc and startsrc are used to manage service subsystem in AIX. lssrc lists out all services that are active and inactive. "startsrc" and "stopsrc" are used to start and stop subsystems.# lssrc -aSubsystem Group PID Status syslogd ras 200938 active inetd tcpip 213152 &nbs...
|
| |
|
| Netapp VIFs loadbalancing |
| 2008-03-18 11:14:00 |
NetApp loadbalancing algorithm for determining ethernet load balancing (vifs) differs from Cisco, so it's normal to see unbalanced traffic in Netapp vifs. The Cisco method for determining load balancing is : http://www.cisco.com/warp/public/473/4.html The NetApp method is described as:((source_address XOR destination_address) % number_of_links) -- where source and destination take the last byte of the IP or MAC address to perform the calculation.Example : Filer IP is 10.128.60.1clients are 10.128.60.[3-6](1 xor 3) % 3 == 2 % 3 == link#2 (e0d)(1 xor 4) % 3 == 5 % 3 == link#2 (e0d)(1 xor 5) % 3 == 4 % 3 == link#1 (e0c)(1 xor 6) % 3 == 7 % 3 == link#1 (e0c) If a client used 10.128.60.2 or 10.128.60.9, then we would see outgoing traffic on e0b. MAC address hashing c...
|
| |
|
| Steps to create initrd |
| 2008-03-06 11:31:00 |
Creating initrd using mkinitrd# mkinitrd -v -f --with=e1000 /tmp/initrd.gz 2.6.9-55Extracting the initrd image to add contents in it# mkdir /initrdroot# cd /initrdroot# gzip -dc /tmp/initrd.gz | cpio -id# ls /initrdrootbin dev etc init lib linuxrc lost+found mnt proc root sbin sys sysroot tmp usr var#Now add binaries and libraries to the initrdrootTo recreate the initrd based on /initrdroot# find ./ | cpio -H newc -o > /tmp/unixfooinitrd# gzip /tmp/unixfooinitrd# mv /tmp/unixfooinitrd /boot/unixfooinitrd.gz
...
|
| |
|
| Resizing ext3 filesystem |
| 2008-03-03 05:27:00 |
The ext3 filesystem on Linux can be resized using ext2online . This can only be done when the filesystem is online (mounted) and where the the filesystem is on a resizable logical volume. More details at http://ext2resize.sourceforge.net/Note : I have'nt tried this program and there is no warranty for this program. Use it carefully.
...
|
| |
|
| Windows provisioning from PXE |
| 2008-03-03 04:27:00 |
Two opensource solutions through which you can provision Windows servers by network booting from a Linux PXE : http://unattended.sourceforge.net/http://unattended-gui.sourceforge.net/Good one & they worked for me.
...
|
| |
|
| NFS mount options |
| 2008-02-21 03:23:00 |
Some important nfs mount options in Linux. tcp - Specifies for the NFS mount to use the TCP protocol instead of UDP.rsize=8192 and wsize=8192 - These settings speed up NFS communication for reads (rsize) and writes (wsize) by setting a larger data block size, in bytes, to be transferred at one time. Do performance tests before changing these values.hard or soft - Specifies whether the program using a file via an NFS connection should stop and wait (hard) for the server to come back online if the host serving the exported file system is unavailable, or if it should report an error (soft). If hard is specified, the user cannot terminate the process waiting for the NFS communication to resume unless the intrsoft, is specified, the user can set an addition...
|
| |
|
| Netapp Flexshare |
| 2008-02-18 08:59:00 |
A very good demo on Netapp Flexshare and how it impacts performance : http://www.netapp.com/ftp/flash/flexshare-demo/flexshare_demo.html
...
|
| |
|
| Know about /proc/meminfo |
| 2008-02-14 01:35:00 |
[root@unixfoo root]# cat /proc/meminfo total: used: free: shared: buffers: cached:Mem: 8298250240 2093281280 6204968960 0 177729536 1242714112Swap: 17174069248 0 17174069248MemTotal: 8103760 kBMemFree: 6059540 kBMemShared: 0 kBBuffers: 173564 kBCached: 1213588 kBSwapCached: 0 kBActive: 1062128 kBActiveAnon: ...
|
| |
|
| Converting ext2 filesystem to ext3 filesystem |
| 2008-02-13 03:31:00 |
ext3 filesytem is a journal'd filesystem. The command "tune2fs" can add a journal to an existing ext2 file system and convert it to ext3, without altering the data already on the partition. To convert an ext2 file system to ext3, log in as root and type: /sbin/tune2fs -j /dev/hdbX In the above command, replace /dev/hdb with the device name and X with the partition number.
...
|
| |
|
| Xen 4.1 beta released |
| 2008-02-04 21:09:00 |
Citrix XenServer 4.1 beta is released, with below features and improvementsScalability and Performance Increased number of simultaneous running VMsEnhanced nested page table (NPT) support for modern AMD processorsVLAN support in Standard EditionImproved Citrix Presentation Server performance and maximum number of user sessions Reliability and Manageability Host NIC bonding for fail-over (configured via CLI)Centralized loggingConfiguration of network management interfaces via the CLIUpdate/patch management integrated in XenCenterJava bindings for XenAPI in SDK Storage Initial shared fibre channel storage support (via CLI only)Enhanced support for NetApp filers, including snapshot and cloningWindows guest Hot disk removeISCSI improvementsSupport for hot-plugging USB storage as a...
|
| |
|
| Network bonding : Part II ( modes of bonding ) |
| 2008-02-01 02:59:00 |
The steps for creating network boding in Linux is available in http://unixfoo.blogspot.com/search/label/networking. RHEL bonding supports 7 possible "modes" for bonded interfaces. These modes determine the way in which traffic sent out of the bonded interface is actually dispersed over the real interfaces. Modes 0, 1, and 2 are by far the most commonly used among them.Mode 0 (balance-rr)This mode transmits packets in a sequential order from the first available slave through the last. If two real interfaces are slaves in the bond and two packets arrive destined out of the bonded interface the first will be transmitted on the first slave and the second frame will be transmitted on the second slave. The third packet will be sent on the first and so on. This...
|
| |
|
| How to configure Linux machine as router? |
| 2008-02-01 02:26:00 |
Here are some simple steps to do it, using Network Address Translation (NAT)Enable packet forwarding . Make it permanent by adding "net.ipv4.ip_forward = 1" to /etc/sysctl.confecho "1" > /proc/sys/net/ipv4/ip_forwardEnable iptables to handle NAT. ( eth0 is the public connection )/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADESave iptables settings service iptables saveDone. Check by routing table by verifying "netstat -nr" and iptables rules by "iptables -L"This is a simple method for Redhat Enterprise Linux. See iptables docs for more detailed info.
...
|
| |
|
| AIX tips : Switching to 64-bit kernel |
| 2008-01-31 10:01:00 |
The AIX kernel is available in 32-bit or 64-bit mode. If a 32-bit kernel is running and you want to switch to 64-bit kernel , use the following command. ( provided the system has the “bos.mp64†file set installed. )# ln –sf /usr/lib/boot/unix_64 /unix# ln –sf /usr/lib/boot/unix_64 /usr/lib/boot/unix# bosboot –ak /usr/lib/boot/unix_64# shutdown –Fr
...
|
| |
|
| Sticky bit |
| 2008-01-30 10:23:00 |
What is the "sticky bit"? (t and T)The sticky bit is primarily used on shared directories. It is useful for shared directories such as /var/tmp and /tmp/ because users CAN CREATE files, READ and EXECUTE files owned by other users, but ARE NOT ALLOWED to REMOVE files owned by other users. Of course, users CAN REMOVE their own files. The sticky bit (file mode bit 01000) is used to indicate special treatment of certain files and directories. A directory for which the sticky bit is set restricts deletion of files it contains. A file in a sticky directory may only be removed or renamed by a user who has write permission on the directory, and either owns the file, owns the directory, or is the super-user. This is useful for directories such a...
|
| |
|
| Linux Benchmarking tools |
| 2008-01-30 03:21:00 |
Here is a list of few benchmarking tools put togetherBonnie++ : This is a benchmark suite that is aimed at performing a number of simple tests of hard drive and file system performance.Iozone : Iozone is a filesystem benchmark tool. The benchmark generates and measures a variety of file operations. Iozone has been ported to many machines and runs under many operating systems. Bonnie : This is a I/O throughput benchmarking toollmbench : This is a simple and portable benchmarking tool, which analyzes memory, cpu of a system.Netperf : Netperf is a benchmark that can be used to measure the performance of many different types of networking. It provides tests for both unidirecitonal throughput, and end-to-end latency.Cachebench : Benchmarking tool for memory sub
...
|
| |
|
| nmon : AIX and Linux performance monitoring tool |
| 2008-01-29 03:46:00 |
Nmon : A free performance monitoring script for Linux and AIX systems. It gives lot of performance information and can output the performance analysis results in many format. nmon Document and download details @ http://www-941.haw.ibm.com/collaboration/wiki/display/WikiPtype/nmon
...
|
| |
|
| What is Direct I/O |
| 2008-01-29 03:29:00 |
A file is simply a collection of data stored on media. When a process wants to access data from a file, the operating system brings the data into main memory, the process reads it, alters it and stores to the disk . The operating system could read and write data directly to and from the disk for each request, but the response time and throughput would be poor due to slow disk access times. The operating system therefore attempts to minimize the frequency of disk accesses by buffering data in main memory, within a structure called the file buffer cache.Certain applications derive no benefit from the file buffer cache. Databases normally manage data caching at the application level, so they do not need the file system to implement this service for them. The use of a file buffer cache results
...
|
| |
|
| Kernel parameter : file-nr and file-max |
| 2008-01-29 00:08:00 |
file-max : The Linux Operating system kernel allocates file handles dynamically and the value in file-max denotes the maximum number of file handles that the Linux kernel will allocate. When you get a lot of error messages about "running out of file handles" , increasing this limit will help. To change the value, just write the new number into the file as below: [root@unixfoo root]# cat /proc/sys/fs/file-max 8192 [root@unixfoo root]# echo 943718 > /proc/sys/fs/file-max [root@unixfoo root]# cat /proc/sys/fs/file-max 943718 [root@unixfoo root]#This value also can be changed using "sysctl" command. To make the change permanent, add the entries to /etc/sysctl.conf [root@unixfoo root]# cat /etc/sysctl.conf&n
...
|
| |
|
| Simple perl ipcalc |
| 2008-01-22 09:02:00 |
Here is a simple program to calculate Network address and broadcast address, given input of IP address and netmask.Perl code : #!/usr/bin/perl# Get ipaddress and netmask from usermy $ipaddr=$ARGV[0];my $nmask=$ARGV[1];my @addrarr=split(/./,$ipaddr);my ( $ipaddress ) = unpack( "N", pack( "C4",@addrarr ) );my @maskarr=split(/./,$nmask);my ( $netmask ) = unpack( "N", pack( "C4",@maskarr ) );# Calculate network address by logical AND operation of addr & netmask# and convert network address to IP address formatmy $netadd = ( $ipaddress & $netmask );my @netarr=unpack( "C4", pack( "N",$netadd ) );my $netaddress=join(".",@netarr);print "Network address : $netaddress
";# Calculate broadcase address by inverting the netmask # and do a logical or with network addressmy $bcast = ( $ipaddress & $netmask ) + ( ~ $netmask );my @bcastarr=unpack( "C4", pack( "N",$bcast ) ) ;my $broadcast=join(".",@bcastarr);print "Broadcast address: $broadcast
";# END of programHere is the output of it.[root@rws60060pxe tmp]# ./ipcalc.pl 139.18.16.119 255.255.254.0Network address : 139.18.16.0Broadcast address: 139.18.17.255[root@rws60060pxe tmp]#
...
|
| |
|
| Linux modules handling commands |
| 2008-01-20 11:02:00 |
modproble - This command is used for listing and loads the modules on a linux machine.[root@unixfoo root]# modprobe -c | less# Generated by modprobe -c (2.4.25)path[boot]=/lib/modules/bootpath[toplevel]=/lib/modules/2.4.21-40.ELsmppath[toplevel]=/lib/modules/2.4path[updates]=/lib/modules/updatespath[kernel]=/lib/modules/kernelpath[fs]=/lib/modules/fspath[net]=/lib/modules/netpath[scsi]=/lib/modules/scsi<snip>lsmod - This command lists the loaded modules on a linux machine.insmod - This command tries to install a module into the running kernel.rmmod - This command unloads loadable modules from the running kernel.
...
|
| |
|
| AIX tips |
| 2008-01-19 02:10:00 |
How to find the processors on an AIX server?[root@unixfoo-aix /]# lsdev -C -c processor -S aproc0 Available 00-00 Processor[root@unixfoo-aix /]#How to identify the disks attached to an AIX server?[root@unixfoo-aix /]# lsdev -C -c disk -S ahdisk0 Available 10-80-00-2,0 16 Bit LVD SCSI Disk Drivehdisk1 Available 10-80-00-4,0 16 Bit LVD SCSI Disk Drive[root@unixfoo-aix /]#How to identify firmware, model, systemid, memory of a AIX server?[root@unixfoo-aix /]# lsattr -El sys0 -a boottype,fwversion,modelname,systemid,realmemboottype disk N/A &
...
|
| |
|
| Netapp : SNMP tips |
| 2008-01-17 01:43:00 |
How to enable SNMP on a netapp filerfiler1> options snmp.enable onfiler1> options snmpsnmp.access legacy snmp.enable on filer1>How to set and modify SNMP configration values?filer1*> snmp contact unixfoo@un1xf00.org filer1*> snmp contact unixfoo@un1xf00.org filer1*>You can use Cacti ( http://www.cacti.net/index.php ) to monitor your netapp. This tool uses Netapp SNMP and plots graphs using RRD.
...
|
| |
|
| KDE 4.0 released |
| 2008-01-16 22:51:00 |
After a long period of planning and development, KDE 4.0 has been released last week ( Jan 11 2008 ). Some major developments includes .. The KDE 4 Libraries have seen major improvements in almost all areas. The Phonon multimedia framework provides platform independent multimedia support to all KDE applications, the Solid hardware integration framework makes interacting with (removable) devices easier and provides tools for better power management. The KDE 4 Desktop has gained some major new capabilities. The Plasma desktop shell offers a new desktop interface, including panel, menu and widgets on the desktop as well as a dashboard function. KWin, the KDE Window manager, now supports advanced graphical effects to ease interaction with your windows. Lots of KDE Applications have seen
...
|
| |
|
| Netapp - Linux iscsi setup |
| 2008-01-04 10:12:00 |
A quick guide to setup IP SAN using Linux-Netapp-iscsi.On Linux server : Install iSCSI initiator (iscsi-initiator-utils rpm) on your linux machine. This will create the necessary binaries and will create /etc/iscsi.conf and /etc/initiatorname.iscsiAdd iscsi-iname to /etc/initiatorname.iscsi .[root@unixfoo ~]# iscsi-inameiqn.1987-05.com.cisco:01.44c65d9587d9[root@unixfoo ~]#Add the output to /etc/initiatorname.iscsiAdd the below lines to /etc/iscsi.confContinuous=noHeaderDigest=neverDataDigest=neverImmediateData=yesDiscoveryAddress=192.185.12.12DiscoveryAddress should be the IP address of the storage. On Netapp filer : Make sure you have iscsi license enabled.Create volume for holding the iscsi luns.filer1> vol create iscs...
|
| |
|
| Linux tips : tftpd |
| 2007-12-28 02:40:00 |
When you are trying to analyze/debug tftpd service on your linux boot server , you expect tftpd to return more debug information on the logs. To setup tftp in debug mode, use -v option in "server_args". As many as "-v" option you use , more debug log information you get. Try it.service tftp{ disable = no socket_type = dgram protocol = udp wait &n
...
|
| |
|
| Netapp : Pocket Survival Guide |
| 2007-12-19 08:39:00 |
The url http://www.cs.fiu.edu/~tho01/psg/netapp.html has good information on netapp command set and its usage. A quick reference guide for a netapp admin. The site also has tips for Solaris, Veritas, EMC, HPUX .... Good & useful one.
...
|
| |
|
| Netapp Tips : Changing exports |
| 2007-12-17 04:14:00 |
/etc/exports file controls the nfs exports on a netapp filer. An easy way to edit this file is described below.From your unix box : rsh netapp rdfile /etc/exports > /tmp/exportsvi /tmp/exportsrsh netapp wrfile /etc/exports < /tmp/exportsrsh netapp exportfs -a
...
|
| |
|
| Perl : Xen API |
| 2007-12-15 23:58:00 |
Xen host can be monitored and controlled via Xen API ( it uses XML-RPC communications). Here is a sample how to program using XenAPI. For XenAPI to work, you should have the below enty in /etc/xen/xend-config.sxp. You can also control which hosts can connect through API. -- /etc/xen/xend-config.sxp--(xen-api-server ((9363 none) (unix none))) --Here is a sample perl script which can query and get details from Xen host using Xen API.x--------------------------------------------x#!/usr/bin/perl# Xen API Programming.# unixfoo - http://unixfoo.blogspot.com/use Net::Ping;use RPC::XML;use RPC::XML::Client;my $xenhost = $ARGV[0];my $user = $ARGV[1];my $passwd = $ARGV[2];my $xenport = 9363;my $state = { "Running" => "ON", "Halted" => "OFF", "Suspended" => "SUSPENDED", "Paused" => "SUSPENDED", "Unknown" => "UNKNOWN" }; my %hash=();# Check ping statusmy $ping = Net::Ping->new();if ( $ping->ping($xenhost,2) ne '1' ){ print "$xenhost is down
"; exit;}else{ # Establish the XEN API connection my $xen = RPC::XML::Client->new("http://$xenhost:$xenport"); my $session = extractvalue($xen->simple_request("session.login_with_password", $user,$passwd)); if (! $session) &...
|
| |
|
| |
 |