hi thanks again for your help,
my understanding now is that it is not necessary for me to use your %result = (); code to remove the duplicates as hash creation can do this for me, make sense?
SO with that in mind, can you suggest how I create a hash for each host, then use that to provide the...
many many thanks for your help, basically I've now done this:
while (<FILEH>)
{
my
($Volume,$LUN,$Size,$Initiator,$FullHost,$Rest) = split('/\s+/');
next (my $Host,my $Rest) = split('.',$FullHost);
}
Because I want to lose the .c2 and .c1 suffixs. With this done it is now clearer to see...
Hi, Observe this output I get from a command ran from my perl script, which I OPEN as a filehande:
eg. open (FILEH, "unix_command_to_generate_output |")
1016 000b 0.2 10000000C9311154 magellan.c1
1016 000b 0.2 10000000C931106D magellan.c2
1017 000c 0.2...
I am assumming Solaris 8 here, Solaris 9 is slightly different. And you will need a console server set up for the server first as the remote management will occur from here(you can't ssh or telnet on machine that's at the ok prompt for example)
Once you're jumpstarted your server and it's...
There was no need to convert to asci in the end to append the new file "archived" wtmpx. The script, below, was written and placed in cron to run at 0300hrs 30 mins after process acounting.
Now I can run the following command;
last -f /var/adm/ARCwtmpx
to get information older than a day...
Sorry, I meant convert to asci in order that I'll be able to append it to another acsi file, which itself would then be converted back for last(1) to read it.
The problem is using the last command, with last you can use the -f switch to point to a different file, so I can use that to point at the owtmpx file which has the previous days info. But really we want to use last and get a months worth.
I am thinking about setting up a cron job to run after...
On solaris you can run the following:
logins -g [groupname]
Obviously it's better to use utility like this than a script.
Not sure if RH has a logins(1M). can you confirm?
Hi,
I was told to switch on process accounting. Problem is each night at 0230, the runacct in the adm crontab appears to truncate it. This is annoying as now the last command will only report information from the same day. We need to keep a months worth really.
Any ideas, don't want to have to...
In the /var/adm/messages (which dmesg interrogates) look for the string (link up) you should see at least one for when the machine booted.
If you see the string link down, then this indicates the server itself lost it's network connectivity. for the period until the next link up message...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.