LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 02-06-2011, 12:06 AM   #1
2buck56
Member
 
Registered: Oct 2004
Posts: 54

Rep: Reputation: 15
SC message string location


I have a T2000 running Solaris 8. I don't know a lot about Sun as I mainly work with Linux. This is a server I inherited and am having to maintain.

Every hour it is sending this message:
Customer Info: "srvr2 - T2000 in local data center"
SC IP Address: "172.31.1.100"
Message: "CRITICAL: BATTERY at SC/BAT/V_BAT has exceeded low warning threshold."

How do I modify that message when I am at the sc> prompt? I want to change it because the server name is really srvr1. I know this because of the IP address. There is another T2000 server that is actually srvr2 with the IP 172.31.1.101.

I want to change the Customer Info string and then replace the battery on the controller card. If I do a showsc I see the string but I do not know how to modify it.
 
Old 02-06-2011, 01:23 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
That should be something like:
Code:
sc> setsc sc_customerinfo "srvr1 - T2000 in local data center"
 
Old 02-06-2011, 10:47 AM   #3
2buck56
Member
 
Registered: Oct 2004
Posts: 54

Original Poster
Rep: Reputation: 15
Thumbs up

That did it! Thanks jlliagre.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] copy string a to string b and change string b with toupper() and count the chars beep3r Programming 3 10-22-2010 07:22 PM
what is the best scheme on delivering a string message between kernel and userspace? supercodeing35271 Linux - Server 1 07-10-2010 01:37 PM
Repacing a string at a specific location with another in Vi (gVim) ziggy25 Linux - Newbie 6 03-18-2010 06:44 PM
Using /bin/mail command with a string for message, not a filename? SirTristan Linux - Newbie 4 03-26-2008 08:22 PM
using java to find the location of the "\" char in a string caged Programming 8 02-03-2004 10:42 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 04:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration