Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by dUbbsNIX

  1. dUbbsNIX

    create a hash

    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...
  2. dUbbsNIX

    create a hash

    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...
  3. dUbbsNIX

    create a hash

    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...
  4. dUbbsNIX

    Configure LOM IP for Remote Access

    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...
  5. dUbbsNIX

    How to access Windows directory in UNIX

    Yes, it comes bundled with Solaris 8 and 9, but best to keep with the latest. www.samba.org
  6. dUbbsNIX

    How to access Windows directory in UNIX

    NFS is not as secure as SAMBA and should be avoided if possible.
  7. dUbbsNIX

    How to access Windows directory in UNIX

    SAMBA 3.00 supports it the other way round as well.
  8. dUbbsNIX

    wtmpx truncated by accounting?

    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...
  9. dUbbsNIX

    wtmpx truncated by accounting?

    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.
  10. dUbbsNIX

    wtmpx truncated by accounting?

    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...
  11. dUbbsNIX

    Display Members of Group

    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?
  12. dUbbsNIX

    wtmpx truncated by accounting?

    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...
  13. dUbbsNIX

    Server Dropping????

    to clarify no brackets. dmesg | grep -i link Just run the above. SOlaris 2.6 is very old, are you able to upgrade? D.
  14. dUbbsNIX

    Server Dropping????

    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...
  15. dUbbsNIX

    how to find if file has been modified

    Have you considered using tripwire? www.tripwire.org Or possibly better is AIDE. It's a great security tool. Dubbs.

Part and Inventory Search

Back
Top