Sponsored Content
Top Forums Shell Programming and Scripting Help needed with bash script providing battery status Post 302566967 by AJ-102111 on Friday 21st of October 2011 02:31:53 PM
Old 10-21-2011
Tools Help needed with bash script providing battery status

I'm really new to even doing a bash "hello world" script, so maybe someone would know how to do the following task, using bash scripting

Need to login using ssh from one dell server into another dell server, and obtain the raid battery status, using dell's open manage software commands; then provide those results back to the first server

Thanks so much in advance!
-AJ

Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

script providing input to application prompts

Hi! I want to write a script that will create an archive (via tar) that will restrict the size of the tar file. The size can be constrained using the keyword 'k' and providing the size restriction. The problem is that the script needs to know (detect) when the tar command prompts the user (which... (2 Replies)
Discussion started by: mitch8
2 Replies

2. Shell Programming and Scripting

NIC status bash shell

Hi can someone tell me what command i can use to find the NIC status im using the bash shell. I'v tried ifconfig -a but this comes back as command not found. (3 Replies)
Discussion started by: warlock129
3 Replies

3. Shell Programming and Scripting

help needed with creating challenging bash script with creating directories

Hi, Can someone help me with creating a bash shell script. I need to create a script that gets a positive number n as an argument. The script must create n directories in the current directory with names like map_1, map_2 etcetera. Each directory must be contained within its predecessor. So... (7 Replies)
Discussion started by: I-1
7 Replies

4. Solaris

Get the battery status (Sparc T1000)

Hi, How to get the battery status and temperature using command in Solaris? Thanks in advance. (4 Replies)
Discussion started by: forumguest
4 Replies

5. Programming

Bash Script to Find the status of URL

#!/bin/bash timevar=`date +%F_”%H_%M”` #-- > Storing Date and Time in a Variable get_contents=`cat urls.txt` #-- > Getting content of website from file. Note the file should not contain any http:// as its already been taken care of ######### Next Section Does all the processing ######### for i... (0 Replies)
Discussion started by: anishkumarv
0 Replies

6. Shell Programming and Scripting

Bash Script to Find the status of URL

#!/bin/bash timevar=`date +%d-%m-%Y_%H.%M.%S` #-- > Storing Date and Time in a Variable get_contents=`cat urls.txt` #-- > Getting content of website from file. Note the file should not contain any http:// as its already been taken care of echo "Datae-time URL Status code Report" >... (2 Replies)
Discussion started by: anishkumarv
2 Replies

7. Homework & Coursework Questions

Linux/UNIX Bash Shell Script trouble help needed!!

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 2. Shell Bash Script 3. !/bin/bash if echo no directory then mkdir -p /home/AC_Drywall elif ; then echo "$dir already exist" fi (4 Replies)
Discussion started by: TomFord1
4 Replies

8. Shell Programming and Scripting

Input password to bash script, save, and enter when needed

I am looking for a way to start a script and have it prompt for a password that will be used later on in the script to SSH to another host and to SFTP. I don't want the password to be hard coded. Below is my script with the actual IP's and usernames removed. #!/usr/bin/expect -f... (2 Replies)
Discussion started by: jbrass
2 Replies

9. Shell Programming and Scripting

Bash Script Help Needed

I have a small script I wrote to look for empty files on a Linux box. It finds the empty files and emails the list to me. That works great. What I need to do now is set a cron job to run the thing every 10 minutes or so (no problems there) but I don't want to get any more emails if the last email... (14 Replies)
Discussion started by: wviands
14 Replies

10. Shell Programming and Scripting

Ignore exit status for #!/bin/bash -e

I have a file /u/setuplink.txt more setuplink.txt ln -s /u/force.sh stopf.sh ln -s /u/tnohup.sh tnohup.sh ln -s /u/quick.sh startquick.sh more runstat.sh #!/bin/bash -e echo "START" /u/setuplink.txt echo "END" i wish to exit the runstat.sh for any errors except if the link... (2 Replies)
Discussion started by: mohtashims
2 Replies
fence_drac(8)						      System Manager's Manual						     fence_drac(8)

NAME
fence_drac - fencing agent for Dell Remote Access Card SYNOPSIS
fence_drac [OPTION]... DESCRIPTION
fence_drac is an I/O Fencing agent which can be used with the Dell Remote Access Card (DRAC). This card provides remote access to control- ling power to a server. It logs into the DRAC through the telnet interface of the card. By default, the telnet interface is not enabled. To enable the interface, you will need to use the racadm command in the racser-devel rpm available from Dell. To enable telnet on the DRAC: [root]# racadm config -g cfgSerial -o cfgSerialTelnetEnable 1 [root]# racadm racreset fence_drac accepts options on the command line as well as from stdin. Fenced sends parameters through stdin when it execs the agent. fence_drac can be run by itself with command line options. This is useful for testing and for turning outlets on or off from scripts. Vendor URL: http://www.dell.com OPTIONS
-a IPaddress IP address or hostname of the switch. -c cmd_prompt Force fence_drac to use cmd_prompt as the command prompt -d dracversion Force fence_drac to treat the device as though it was for the specified drac version -D dumpfile Debug file of the telnet interaction -h Print out a help message describing available options, then exit. -l login Login name. -m modulename The module name of the blade when using DRAC/MC firmware. -o action The action required. reboot (default), off, on or status. -p password Password for login. -S path Full path to an executable to generate the password for login. -f seconds Wait X seconds before fencing is started -V Print out a version message, then exit. STDIN PARAMETERS
action = < param > The action required. reboot (default), off, on or status. agent = < param > This option is used by fence_node(8) and is ignored by fence_apc. cmd_prompt = < param > Force fence_drac to use cmd_prompt as the command prompt drac_version = < param > Force fence_drac to treat the device as though it was for the specified drac version. debug = < dumpfile > Debug file of the telnet interaction ipaddr = < hostname | ip > IP address or hostname of the switch. login = < param > Login name. modulename = < param > The module name of the blade when using DRAC/MC firmware. passwd = < param > Password for login. passwd_script = < param > Full path to an executable to generate the password for login. delay = < param > Wait X seconds before fencing is started SEE ALSO fence(8), fence_node(8) fence_drac(8)
All times are GMT -4. The time now is 07:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy